:root {
  color-scheme: dark light;
  --navy: #08111f;
  --charcoal: #151a22;
  --ink: #edf4fb;
  --muted: #aab8c8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --blue: #48a6ff;
  --blue-deep: #1e6fd9;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(72, 166, 255, 0.16), transparent 34rem),
    linear-gradient(135deg, #08111f 0%, #111722 48%, #0b0f17 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.cta-row,
.contact-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(72, 166, 255, 0.45);
  border-radius: 50%;
  background: rgba(72, 166, 255, 0.12);
  color: var(--white);
  font-size: 0.82rem;
}

.nav-links {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover,
.contact-links a:hover,
.contact-actions a:hover {
  color: var(--blue);
}

.section-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.64fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.eyebrow,
.section-kicker,
.label,
.card-index {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.tagline {
  max-width: 48rem;
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.25;
}

.hero-summary,
.prose,
.feature-copy p,
.contact-copy p,
.card p {
  color: var(--muted);
}

.hero-summary {
  max-width: 43rem;
  font-size: 1.08rem;
}

.cta-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 2.85rem;
  padding: 0.76rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 166, 255, 0.65);
  background: rgba(72, 166, 255, 0.12);
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #03101d;
}

.button-quiet {
  color: #d8e8f7;
}

.profile-panel,
.card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 1rem;
}

.headshot-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f1724;
}

.headshot-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.snapshot-grid div {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
}

.snapshot-grid strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.28;
}

.split-section,
.skills-layout,
.contact-section {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(2rem, 6vw, 4rem);
}

.prose p:last-child,
.feature-copy p:last-child,
.contact-copy p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(16rem, 0.28fr);
  gap: 2rem;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(72, 166, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.metric-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list span,
.pill-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.metric-list span {
  width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--white);
  font-weight: 750;
}

.section-heading {
  max-width: 45rem;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.projects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.2rem;
  box-shadow: none;
}

.card-index {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skills-columns > div {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.pill-list li {
  padding: 0.5rem 0.7rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
}

.pill-list-muted li {
  color: #d8e4f0;
}

.contact-section {
  align-items: center;
}

.contact-actions,
.contact-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.contact-actions {
  margin-top: 1.5rem;
}

.contact-actions a {
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 750;
}

.contact-card {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.qr-code {
  width: 10rem;
  border: 0.5rem solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-links a {
  color: #d8e8f7;
  font-weight: 720;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.noscript-note {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .skills-layout,
  .contact-section,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .section-shell {
    width: min(100% - 1.25rem, var(--max));
  }

  .cta-row .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .projects,
  .skills-columns,
  .snapshot-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .qr-code {
    width: min(12rem, 100%);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media print {
  :root {
    --ink: #101820;
    --muted: #334155;
    --line: #cbd5e1;
    --panel: #ffffff;
  }

  body {
    color: #101820;
    background: #ffffff;
  }

  .site-header,
  .site-footer,
  .cta-row,
  .qr-code {
    display: none;
  }

  .section-shell {
    width: 100%;
    padding: 1.1rem 0;
    border-bottom: 1px solid #cbd5e1;
  }

  .hero,
  .split-section,
  .skills-layout,
  .contact-section,
  .feature-band {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .profile-panel,
  .card,
  .contact-card,
  .feature-band,
  .skills-columns > div {
    box-shadow: none;
    background: #ffffff;
  }

  a {
    color: #0f4f94;
  }
}
