:root {
  --ivory: #F4F1EA;
  --beige: #111111;
  --charcoal: #F4F1EA;
  --ink: #1c1c1b;
  --muted: rgba(244, 241, 234, 0.62);
  --soft: rgba(244, 241, 234, 0.42);
  --lavender: rgba(244, 241, 234, 0.85);
  --line: rgba(244, 241, 234, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --nav: 64px;
  --cream: #ede9dc;
  --champagne: #d4c2a2;
  --taupe: #aaa395;
  --gold-muted: #dec69b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--lavender);
  margin-right: 10px;
  vertical-align: middle;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--ivory);
  pointer-events: none;
}
.site-nav a,
.site-nav button { color: var(--ivory); pointer-events: auto; }
.nav-row {
  width: min(1440px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  gap: 12px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.menu-btn {
  display: none;
  position: relative;
  z-index: 26;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
body.nav-open {
  overflow: hidden;
}
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(12, 12, 11, 0.42);
  pointer-events: auto;
}
.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 234, 0.78);
}
.nav-links a:hover { color: var(--ivory); }
.nav-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(237, 233, 220, 0.28);
  color: var(--cream);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.nav-ico svg { width: 15px; height: 15px; }
.nav-ico:hover {
  background: rgba(237, 233, 220, 0.1);
  border-color: rgba(237, 233, 220, 0.55);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.pill:hover { background: #fff; }
.site-nav .pill-nav,
.site-nav .nav-resume {
  color: var(--ink);
  background: var(--champagne);
  border: 1px solid var(--gold-muted);
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.site-nav .pill-nav:hover,
.site-nav .nav-resume:hover {
  color: var(--ink);
  background: #e0cfb2;
  box-shadow: 0 3px 14px rgba(212, 194, 162, 0.14);
  transform: translateY(-1px);
}
.site-nav .pill-nav:focus-visible,
.site-nav .nav-resume:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}
@media (min-width: 861px) {
  .site-nav .nav-resume {
    min-height: auto;
    background: transparent;
    border: 0;
    color: rgba(244, 241, 234, 0.78);
  }
  .site-nav .nav-resume:hover {
    color: var(--ivory);
    background: transparent;
    box-shadow: none;
    transform: none;
  }
}

/* Cinematic scroll hero */
.cinematic-hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 0;
  overflow: clip;
}
.hero-scrollstage {
  height: 280svh;
  position: relative;
  background: var(--ink);
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 570px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero-network {
  position: absolute;
  inset: -8% -8% -8% -12%;
  width: 120%;
  height: 116%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
  /* Pointer parallax only — scroll motion lives on .strand-depth groups */
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) scaleY(var(--wave-bend, 0.82));
  transform-origin: center;
  will-change: transform, opacity;
  /* Feather the SVG boundary; strand transforms and hairline strokes stay intact. */
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 55% 54%, #000 38%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0.35) 85%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 60% at 55% 54%, #000 38%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0.35) 85%, transparent 100%);
}
.strand-depth {
  will-change: transform;
}
.strand-depth.depth-0 {
  transform: translate3d(var(--wave-right-0, 0px), var(--wave-down-0, 0px), 0);
  opacity: 0.72;
}
.strand-depth.depth-1 {
  transform: translate3d(var(--wave-right-1, 0px), var(--wave-down-1, 0px), 0);
  opacity: 0.88;
}
.strand-depth.depth-2 {
  transform: translate3d(var(--wave-right-2, 0px), var(--wave-down-2, 0px), 0);
  opacity: 1;
}
.strand-depth.depth-3 {
  transform: translate3d(var(--wave-right-3, 0px), var(--wave-down-3, 0px), 0);
  opacity: 0.9;
}
.strand-depth.depth-4 {
  transform: translate3d(var(--wave-right-4, 0px), var(--wave-down-4, 0px), 0);
  opacity: 0.78;
}
.wave-layer path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: strand-drift 32s linear infinite;
}
.wave-layer path.strand-a { stroke: #C9B898; }
.wave-layer path.strand-b { stroke: #D8C7A5; }
.wave-layer path.strand-c { stroke: #A99676; }
@keyframes strand-drift {
  to { stroke-dashoffset: -320; }
}
.wave-layer circle {
  fill: #C9B898;
  opacity: 0.28;
}
.wave-layer circle.node-b { fill: #D8C7A5; }
.wave-layer circle.node-c { fill: #A99676; }
.wave-layer circle.spark {
  fill: #D8C7A5;
  opacity: 0.42;
}
.hero-layout {
  height: calc(100% - 66px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 1.5vw;
  padding-top: clamp(4rem, 8vw, 5.5rem);
}
.cinematic-copy {
  border: 0;
  padding: 2rem 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  background: transparent;
  position: relative;
  z-index: 3;
  /* Give the portrait more breathing room beside the name. */
  margin-right: 0;
}
.cinematic-copy .hero-eyebrow {
  font: 500 0.62rem/1.4 var(--sans);
  letter-spacing: 0.28em;
  color: var(--champagne);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.75rem;
  text-transform: uppercase;
}
.eyebrow-line {
  width: 52px;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(222, 199, 161, 0.95), rgba(222, 199, 161, 0.15));
}
.cinematic-copy .hero-title {
  font-family: var(--sans);
  font-size: clamp(3.4rem, 8.8vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
  font-weight: 500;
  margin: 0;
  color: var(--cream);
  max-width: 100%;
  white-space: nowrap;
  position: relative;
  z-index: 4;
}
.cinematic-copy .hero-person {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 4.5rem);
  font-style: italic;
  margin: 0.2em 0 0;
  color: #ddcfb7;
  line-height: 1.06;
}
/* Soft load fade for name + role (gated by html.js; skipped when prefers-reduced-motion) */
html.js .cinematic-copy .hero-title,
html.js .cinematic-copy .hero-person {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .cinematic-copy .hero-person {
  transition-duration: 0.85s;
}
html.js .cinematic-copy .hero-title.is-in,
html.js .cinematic-copy .hero-person.is-in {
  opacity: 1;
  transform: translateY(0);
}
.cinematic-copy .hero-person em { font-weight: 400; font-style: italic; }
.cinematic-copy .hero-tag {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.4;
  margin: 1.7rem 0 0;
  color: #e2dcd0;
}
.cinematic-copy .hero-tag em { font-style: normal; color: inherit; }
.cinematic-copy .hero-tools {
  margin: 1.7rem 0 0;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: var(--taupe);
  line-height: 1.8;
  text-transform: uppercase;
}
.cinematic-copy .hero-mail {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(222, 199, 161, 0.55);
}
.cinematic-copy .hero-mail:hover { color: #f5efe3; }
.cinematic-copy .tool-sep {
  margin: 0 0.35em;
  color: rgba(170, 163, 149, 0.65);
}
.hero-actions {
  display: flex;
  margin-top: 1.4rem;
  gap: 10px;
}
.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(237, 233, 220, 0.32);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.hero-icon svg { width: 18px; height: 18px; }
.hero-icon:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.cinematic-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2rem;
  background: none;
  isolation: isolate;
}
.cinematic-art .hero-photo {
  position: relative;
  z-index: 2;
  width: min(36vw, 520px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 1px solid rgba(228, 214, 189, 0.47);
  filter: saturate(0.76) contrast(1.06);
  box-shadow: 0 0 0 18px rgba(217, 195, 165, 0.03), 0 0 0 45px rgba(217, 195, 165, 0.02);
}
.cinematic-hero .portrait-halo {
  position: absolute;
  width: min(46vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(205, 187, 155, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
/* Metrics: hidden at intro; scattered on the wave field during reveal */
.hero-metrics {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  opacity: var(--metrics-opacity, 0);
  transform:
    translate3d(0, var(--wave-down, 0px), 0)
    translate3d(var(--wave-right, 0px), 0, 0)
    translate3d(0, var(--metrics-rise, 18px), 0);
  will-change: opacity, transform;
}
.metric-callout {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 13.5rem;
  text-shadow: 0 2px 18px rgba(28, 28, 27, 0.75);
}
.metric-a { left: 10%; top: 26%; }
.metric-b { left: 42%; top: 62%; }
.metric-c { right: 11%; top: 34%; left: auto; }
.metric-leader {
  width: clamp(28px, 3.2vw, 44px);
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 178, 142, 0.1), rgba(222, 199, 161, 0.85));
  position: relative;
}
.metric-leader::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dec7a1;
  box-shadow: 0 0 8px rgba(234, 216, 181, 0.45);
}
.metric-body { display: grid; gap: 3px; text-align: left; }
.metric-val {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.2;
}
.metric-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 182, 157, 0.88);
  line-height: 1.35;
}
.hero-scroll-fab {
  position: absolute;
  z-index: 6;
  right: max(18px, calc((100% - min(1120px, 100%)) / 2 + 18px));
  bottom: 78px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(237, 233, 220, 0.38);
  display: grid;
  place-items: center;
  color: var(--cream);
  text-decoration: none;
  background: rgba(28, 28, 27, 0.55);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.hero-scroll-fab:hover {
  border-color: rgba(237, 233, 220, 0.75);
  background: rgba(237, 233, 220, 0.12);
  transform: translateY(2px);
}
.pill-mobile-work {
  display: none;
}
.hero-bottom {
  height: 66px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(238, 228, 211, 0.15);
  font: 500 0.61rem/1.3 ui-monospace, monospace;
  letter-spacing: 0.15em;
  color: #bcb4a7;
  text-transform: uppercase;
}
.hero-bottom a {
  color: #e6d7ba;
  text-decoration: none;
}
.hero-bottom a:hover { color: var(--cream); }
.hero-reveal {
  position: absolute;
  z-index: 4;
  left: max(18px, calc((100% - min(1120px, 100%)) / 2 + clamp(18px, 4vw, 40px)));
  top: 52%;
  right: 18px;
  transform: translateY(calc(-40% + var(--reveal-rise, 28px)));
  opacity: var(--reveal-opacity, 0);
  pointer-events: none;
  max-width: 720px;
  text-shadow: 0 3px 24px var(--ink);
}
.hero-reveal h2 {
  font: 500 clamp(3.2rem, 7.2vw, 7.5rem)/1.02 var(--sans);
  letter-spacing: -0.065em;
  margin: 0;
  color: var(--cream);
  max-width: 14ch;
}
.hero-reveal h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: #d7bea0;
}
.hero-reveal p {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: #ded5c6;
  margin-top: 1.25rem;
  max-width: 34rem;
}
.pill-hero {
  margin-top: 1.75rem;
  pointer-events: auto;
  color: var(--ink);
}
.hero-reveal .pill-hero { pointer-events: auto; }
.hero-progress {
  position: absolute;
  z-index: 5;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(230, 205, 160, 0.05);
}
.hero-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #dec7a1;
  transform: scaleX(var(--hero-progress, 0));
  transform-origin: left;
}
.cinematic-copy,
.cinematic-art {
  opacity: var(--original-opacity, 1);
  transform: translateY(var(--original-rise, 0px));
  will-change: opacity, transform;
}
#work { scroll-margin-top: 88px; }
@media (max-width: 850px) {
  .hero-scrollstage { height: 235svh; }
  .hero-sticky { min-height: 0; }
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 0;
    padding-top: 4.5rem;
    height: auto;
    min-height: 0;
  }
  .cinematic-art { order: 1; }
  .cinematic-copy {
    order: 2;
    padding: 0;
    margin-top: -1.35rem;
    margin-right: 0;
  }
  .cinematic-copy .hero-eyebrow { margin: 0 0 1.1rem; font-size: 0.52rem; }
  .cinematic-copy .hero-title {
    font-size: clamp(2.6rem, 12vw, 4.5rem);
    white-space: normal;
  }
  .cinematic-copy .hero-person { font-size: clamp(2rem, 6vw, 3.2rem); }
  .cinematic-copy .hero-tag { font-size: 0.98rem; margin-top: 0.9rem; }
  .cinematic-copy .hero-tools { margin-top: 1rem; font-size: 0.55rem; }
  .cinematic-copy .hero-mail { margin-top: 0.5rem; font-size: 0.8rem; }
  .hero-actions { margin-top: 0.9rem; }
  .cinematic-art { padding: 0.2rem; }
  .cinematic-art .hero-photo { width: min(50vw, 260px); }
  .cinematic-hero .portrait-halo { width: min(60vw, 315px); }
  .hero-bottom { height: 50px; font-size: 0.48rem; }
  /* One work CTA on mobile: keep .pill-mobile-work; hide FAB + reveal pill */
  .hero-scroll-fab { display: none; }
  .metric-a { left: 6%; top: 22%; }
  .metric-b { left: 28%; top: 68%; right: auto; }
  .metric-c { right: 6%; top: 40%; left: auto; }
  .metric-callout { max-width: 11rem; }
  .metric-leader { width: 22px; }
  .pill-mobile-work {
    display: inline-flex;
    position: relative;
    z-index: 3;
    margin: 1.25rem auto 0;
    width: calc(100% - clamp(36px, 8vw, 80px));
    max-width: min(360px, 100%);
    justify-content: center;
    color: var(--ink);
  }
  .hero-reveal {
    left: 7%;
    right: 7%;
    top: 45%;
    transform: translateY(calc(-30% + var(--reveal-rise, 28px)));
  }
  .hero-reveal h2 { font-size: clamp(2.6rem, 11vw, 4.2rem); max-width: none; }
  .hero-reveal .pill-hero { display: none; }
}
@media (max-width: 460px) {
  .hero-layout { padding-top: 3.5rem; }
  .cinematic-copy .hero-title { font-size: clamp(2.2rem, 14vw, 3.4rem); }
  .cinematic-art .hero-photo { width: min(47vw, 215px); }
  .hero-reveal h2 { font-size: clamp(3.1rem, 11vw, 4.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scrollstage { height: auto; }
  .hero-sticky {
    position: relative;
    height: auto;
    min-height: 680px;
  }
  .hero-layout { min-height: 650px; }
  .hero-network { transform: none !important; }
  .wave-layer path { animation: none; }
  .strand-depth { transform: none !important; }
  .hero-reveal {
    position: relative;
    opacity: 1;
    transform: none;
    left: auto;
    top: auto;
    padding: 2rem 7%;
    pointer-events: auto;
  }
  .cinematic-copy,
  .cinematic-art {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-metrics {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    display: grid;
    gap: 1rem;
    padding: 0 7% 1.5rem;
    margin-top: 0.5rem;
  }
  .metric-callout {
    position: static;
    max-width: none;
  }
  .hero-scroll-fab { display: none; }
  .pill-mobile-work { display: inline-flex; margin: 1.5rem auto; justify-content: center; width: calc(100% - 36px); max-width: 320px; color: var(--ink); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2,
.about-intro h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 8px;
}
.section-head p,
.lede { margin-top: 12px; color: var(--muted); max-width: 38rem; }
.quiet {
  display: inline-block;
  margin-top: 14px;
  color: var(--charcoal);
  text-underline-offset: 0.22em;
}

.js .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .rise.is-in { opacity: 1; transform: none; }

/* Bento */
.swipe-hint { display: none; margin: 0 0 8px; color: var(--charcoal); line-height: 0; }
.swipe-hint svg { display: block; }
.bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
}
.bento > li { min-width: 0; }
.span-ar { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.span-sql, .span-film { grid-column: span 5; min-height: 274px; }
.span-nike, .span-gdp, .span-odds { grid-column: span 4; min-height: 380px; }
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 22px 22px 18px;
  background: rgba(244, 241, 234, 0.03);
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
}
.card-ar { background: rgba(244, 241, 234, 0.05); }
.card-ar .kicker,
.card-ar .viz-note,
.card-ar .finding-note { color: var(--muted); }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-top .kicker { flex: 1; min-width: 0; }
.index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--soft);
}
.card-ar .index { color: var(--soft); }
.finding {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.card-ar .finding { font-size: clamp(3.6rem, 6vw, 6rem); }
.finding-note { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 16px;
}
.desc { margin-top: 8px; font-size: 1.02rem; line-height: 1.45; max-width: 36ch; }
.viz { margin-top: auto; padding-top: 22px; }
.viz-note { margin-top: 8px; color: var(--soft); font-size: 0.78rem; }
.go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}
.viz ~ .go {
  margin-top: 16px;
  padding-top: 0;
}
.go i {
  display: inline-block;
  font-style: normal;
}
.card:active { border-color: var(--lavender); }
.card.is-touch { border-color: var(--lavender); }

.states { display: flex; gap: 36px; align-items: flex-end; min-height: 200px; }
.state { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.state-col { height: 168px; display: flex; align-items: flex-end; }
.state-bar {
  display: block;
  width: 40px;
  height: var(--h);
  flex: none;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.9s cubic-bezier(.2, .7, .2, 1);
}
/* Use more of the existing plot area without increasing the card height. */
.card-ar .states { gap: clamp(16px, 4vw, 44px); min-height: 230px; justify-content: space-evenly; }
.card-ar .state-col { height: 188px; }
.card-ar .state-bar { width: clamp(64px, 8vw, 104px); }
.card-ar .state b { font-size: 1.4rem; }
.card-ar .state small { font-size: 0.82rem; }
.state:nth-child(2) .state-bar { transition-delay: 0.12s; }
.card.is-in .state-bar { transform: scaleY(1); }
.state b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.state small { color: inherit; opacity: 0.7; font-size: 0.75rem; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.facts li { border-top: 1px solid var(--line); padding-top: 8px; }
.card-ar .facts li { border-top-color: rgba(247, 244, 238, 0.2); }
.facts b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.facts span { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.card-ar .facts span { color: var(--muted); }

.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; }
.hbar span, .hbar b { font-size: 0.82rem; font-weight: 500; }
.hbar b { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.hbar i {
  grid-column: 1 / -1;
  height: 5px;
  width: var(--w);
  margin-top: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s ease;
}
.hbar.is-focus i { height: 7px; }
.hbar:nth-child(2) i { transition-delay: 0.08s; }
.hbar:nth-child(3) i { transition-delay: 0.16s; }
.card.is-in .hbar i { transform: scaleX(1); }

.arc-row { display: flex; align-items: center; gap: 16px; }
.arc-svg { width: 84px; height: 84px; flex: none; }
.arc-track { fill: none; stroke: var(--lavender); stroke-width: 1; }
.arc-value {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--c);
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 1.1s ease;
}
.card.is-in .arc-value,
.panel.is-on .arc-value { stroke-dashoffset: var(--rest); }

.hold-track {
  position: relative;
  height: 28px;
  border-bottom: 1px solid currentColor;
}
.hold-mark {
  position: absolute;
  left: 14.6%;
  bottom: 0;
  width: 1px;
  height: 22px;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.8s ease;
}
.hold-mark b {
  position: absolute;
  left: 6px;
  top: -4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  white-space: nowrap;
}
.card.is-in .hold-mark { transform: scaleY(1); }

.snap-ui { display: none; }

.more-line { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.more-line a { color: var(--ivory); }

/* Impact */
.impact { background: transparent; }
.impact-board {
  background: rgba(244, 241, 234, 0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 36px);
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--line); }
.tabs button {
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  color: var(--charcoal);
  border-bottom-color: var(--lavender);
}
.panel { padding-top: 22px; }
.pair { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-bottom: 8px; }
.pair b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}
.pair span { color: var(--muted); font-size: 0.85rem; }
.chart-wrap { position: relative; min-height: 220px; margin-top: 8px; }
#ar-chart svg { width: 100%; height: auto; font-family: var(--sans); }
#ar-chart text { fill: var(--charcoal); }
.tip {
  position: absolute;
  z-index: 2;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.78rem;
  padding: 6px 8px;
  pointer-events: none;
  white-space: nowrap;
}
.tip[hidden] { display: none; }
.chart-fallback .mini-states { margin-top: 12px; }
.chart-fallback .state-bar { transform: scaleY(1); }
.giant {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.panel .viz-note { max-width: 36rem; font-size: 0.95rem; color: var(--muted); margin-top: 10px; }
.coef-layout { display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); }
.coef-layout .arc-svg { width: min(42vw, 160px); height: auto; }

/* Toolkit, approach, about */
.tool-grid, .approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.tool-grid h3, .approach-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 10px 0;
}
.tool-grid p, .approach-grid p { color: var(--muted); }
.tool-grid article, .approach-grid article { border-top: 1px solid var(--line); padding-top: 12px; }
.aside { margin-top: 28px; color: var(--soft); font-size: 0.92rem; }
.num { font-family: var(--serif); font-style: italic; color: var(--soft); }

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 64px);
}
.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.35;
}
.about-copy p + p { margin-top: 14px; }
.edu-list { margin-top: 22px; }
.edu-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.edu-list strong { display: block; }

/* Contact */
.contact {
  background: transparent;
  color: var(--ivory);
}
.contact .kicker, .contact .lede { color: var(--muted); }
.contact-links { margin-top: 28px; }
.contact-links a {
  display: inline-block;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
}
.contact-links a:hover { border-bottom-color: var(--lavender); }
.phone {
  display: inline-block;
  margin-top: 18px;
  min-height: 44px;
  color: var(--muted);
  text-underline-offset: 0.22em;
}
.site-footer {
  background: transparent;
  color: var(--muted);
  padding: 8px 0 28px;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
.site-footer a { color: var(--ivory); }
.section-head h2,
.about-intro h2,
.contact h2,
.about-lead,
.finding,
.card h3,
.giant,
.pair b,
.contact-links a {
  font-family: var(--sans);
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--charcoal);
  outline-offset: 3px;
}
.hero a:focus-visible,
.site-nav a:focus-visible {
  outline-color: var(--ivory);
}
.card:focus-visible, .contact a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--lavender);
}
.contact a:focus-visible { box-shadow: none; outline: 1px solid var(--lavender); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.45s cubic-bezier(.22, .7, .2, 1), border-color 0.45s; }
  .card:hover { transform: translateY(-6px); border-color: var(--lavender); }
  .card:hover .go i { transform: translateX(4px); }
  .go i { transition: transform 0.3s ease; }
}

@media (min-width: 900px) {
  .hero-tag { white-space: nowrap; }
}

@media (max-width: 480px) {
  .hero h1 { white-space: normal; }
}

@media (max-width: 980px) {
  .span-ar { grid-column: span 12; grid-row: auto; min-height: 0; }
  .span-sql, .span-film { grid-column: span 6; }
  .span-nike, .span-gdp, .span-odds { grid-column: span 4; }
  .about-panel, .tool-grid, .approach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-row { grid-template-columns: minmax(0, 1fr) auto auto; width: min(1440px, calc(100% - 28px)); gap: 8px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; justify-self: end; grid-column: 3; grid-row: 1; }
  .nav-end { display: flex; grid-column: 2; grid-row: 1; }
  .nav-social { display: none; }
  .site-nav .pill-nav { padding-inline: 14px; font-size: 0.8rem; }
  /* Right-side drawer — keeps portrait clear when closed/open */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 24;
    width: min(300px, 78vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 5.5rem 1.5rem 2rem;
    background: rgba(28, 28, 27, 0.97);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.34s cubic-bezier(.22, .7, .2, 1), visibility 0.34s;
  }
  .nav-open .nav-links {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    width: 100%;
    border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .site-nav .nav-resume { justify-content: center; border-radius: 999px; margin-top: 14px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(44vw, 160px); }
  .hero-tag { white-space: normal; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .swipe-hint { display: block; }
  .bento {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    padding: 4px 4px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .span-ar, .span-sql, .span-nike, .span-film, .span-gdp, .span-odds {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .card { min-height: 460px; padding: 22px 20px 18px; }
  .card h3 { font-size: clamp(1.55rem, 5vw, 1.9rem); }
  .desc { font-size: 1.05rem; }
  .finding { font-size: clamp(3.2rem, 14vw, 4.4rem); }
  .snap-ui { display: flex; justify-content: center; gap: 0; margin-top: 4px; }
  .snap-ui button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }
  .snap-ui button::before {
    content: "";
    display: block;
    width: 14px;
    height: 1px;
    margin: 21px auto 0;
    background: var(--charcoal);
    opacity: 0.35;
  }
  .snap-ui button[aria-current="true"]::before { width: 22px; opacity: 1; background: var(--charcoal); box-shadow: 0 0 0 1px var(--lavender); }
  .coef-layout { align-items: flex-start; }
  .pair b { font-size: clamp(2.2rem, 10vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .rise { opacity: 1 !important; transform: none !important; }
  .state-bar, .hbar i, .hold-mark { transform: none !important; }
  .arc-value { stroke-dashoffset: var(--rest) !important; }
}



/* Editorial portrait and intelligence canvas */
.hero-layout.wrap {
  width: 100%;
  max-width: 1440px;
  padding-inline: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 2vw;
}
.cinematic-copy .hero-title {
  font-size: clamp(3.4rem, 8.2vw, 8.2rem);
  letter-spacing: -0.07em;
}
.cinematic-art { padding: 0; }
.cinematic-art .hero-photo {
  width: min(39vw, 560px);
  max-width: none;
  filter: saturate(0.82) contrast(1.03);
  box-shadow: none;
}
.portrait-orbits {
  position: absolute;
  width: 132%;
  max-width: none;
  height: auto;
  overflow: visible;
  stroke: rgba(212, 194, 162, 0.35);
  stroke-width: 0.65;
  pointer-events: none;
}
.portrait-orbits path { stroke-opacity: 0.55; }
.portrait-orbits .orbit-nodes { fill: #d4c2a2; stroke: none; }
.hero-network {
  inset: 0 auto auto -8%;
  width: 116%;
  max-width: none;
  height: 100%;
}
.wave-layer circle.spark { filter: drop-shadow(0 0 3px rgba(222, 198, 155, 0.5)); }
.hero-reveal {
  left: clamp(28px, 5vw, 80px);
  top: 46%;
  max-width: 390px;
  transform: translateY(calc(-40% + var(--reveal-rise, 28px)));
}
.hero-reveal h2 {
  font: 400 clamp(3.2rem, 5.3vw, 5.7rem)/0.94 var(--serif);
  letter-spacing: -0.035em;
  max-width: 8.5ch;
}
.hero-reveal p { max-width: 30ch; font-size: 1rem; line-height: 1.5; }
.hero-reveal .pill-hero,
.pill-mobile-work {
  background: rgba(212, 194, 162, 0.14);
  color: var(--cream);
  border: 1px solid rgba(212, 194, 162, 0.65);
}
.hero-reveal .pill-hero:hover,
.pill-mobile-work:hover { background: rgba(212, 194, 162, 0.25); }
.hero-metrics {
  transform: translate3d(var(--wave-right, 0px), var(--metrics-rise, 18px), 0);
}
.metric-val { font: 400 clamp(1.1rem, 1.6vw, 1.6rem)/1.15 var(--serif); letter-spacing: -0.015em; }
.metric-label { font-size: 0.72rem; text-transform: none; letter-spacing: 0; max-width: 17ch; color: var(--taupe); }
.metric-leader { width: 1px; height: 52px; background: linear-gradient(var(--champagne), transparent); }
.metric-leader::after { top: 0; right: -2px; }
.metric-a { left: 46%; top: 22%; }
.metric-b { left: 43%; top: 72%; }
.metric-c { right: 8%; top: 42%; }
.hero-bottom { border-top: 0; }
@media (min-width: 851px) {
  .hero-layout { padding-top: 3rem; }
  .hero-bottom.wrap { max-width: 1440px; padding-inline: clamp(28px, 5vw, 80px); }
}
@media (max-width: 1100px) and (min-width: 851px) {
  .hero-reveal { max-width: 320px; }
  .hero-reveal h2 { font-size: 4.5rem; }
  .metric-a { left: 49%; }
  .metric-b { left: 47%; }
}
@media (max-width: 850px) {
  .hero-layout.wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 5.5rem 7% 0;
  }
  .cinematic-art { justify-self: center; width: 100%; }
  .cinematic-art .hero-photo { width: min(65vw, 320px); max-width: 100%; }
  .portrait-orbits { width: min(86vw, 420px); }
  .cinematic-copy { margin-top: 1.5rem; }
  .cinematic-copy .hero-title { font-size: clamp(2.2rem, 10.8vw, 4.5rem); letter-spacing: -0.065em; }
  .cinematic-copy .hero-person { font-size: clamp(1.8rem, 6.5vw, 3rem); margin-top: 0.16em; }
  .cinematic-copy .hero-tag { font-size: 1rem; max-width: 25ch; }
  .hero-tools, .hero-mail, .hero-actions { position: relative; }
  .hero-network { left: -20%; width: 155%; height: 95%; top: 10%; }
  .hero-bottom { display: none; }
  .pill-mobile-work { margin-top: 1.7rem; width: 86%; min-height: 44px; }
  .hero-reveal { left: 7%; right: 7%; top: 43%; max-width: 82%; }
  .hero-reveal h2 { font-size: clamp(3rem, 12vw, 4.8rem); max-width: 8.5ch; }
  .hero-reveal p { font-size: 0.95rem; max-width: 27ch; }
  .metric-val { font-size: 1.2rem; }
  .metric-label { font-size: 0.65rem; }
  .metric-a { left: 7%; top: 15%; }
  .metric-b { left: 7%; top: 78%; }
  .metric-c { right: 6%; top: 70%; max-width: 9rem; }
  .metric-leader { width: 1px; height: 38px; }
}
@media (max-width: 850px) and (max-height: 740px) {
  .hero-layout.wrap { padding-top: 5rem; }
  .cinematic-art .hero-photo { width: min(49vw, 230px); }
  .cinematic-copy { margin-top: 1rem; }
  .cinematic-copy .hero-tools { margin-top: 0.6rem; }
  .hero-actions { margin-top: 0.65rem; }
  .pill-mobile-work { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { position: relative; left: auto; right: auto; top: auto; transform: none; max-width: none; padding: 4rem 7%; }
  .hero-metrics { display: none; }
  .hero-layout.wrap { min-height: 0; padding-bottom: 2rem; }
  .hero-reveal .pill-hero { display: inline-flex; }
}

/* Keep the mobile work action with the active scene. */
@media (max-width: 850px) {
  .pill-mobile-work { display: flex; opacity: var(--original-opacity, 1); }
  .hero-reveal .pill-hero { display: inline-flex; margin-top: 1.2rem; min-height: 44px; }
  .metric-b { top: 83%; }
  .metric-c { top: 77%; }
}


/* Luminous lead strands sit among the quieter champagne threads. */
.wave-layer path.strand-highlight { stroke: #f0d4a2; }
.wave-layer path.strand-mid { stroke: #ddc18e; }
.wave-layer circle.spark { fill: #f3dab0; }

/* Let the scroll-reveal wording breathe. */
.hero-reveal h2 { line-height: 1.12; letter-spacing: -0.015em; word-spacing: 0.035em; max-width: 11ch; }
.hero-reveal p { margin-top: 1.75rem; }

/* Keep the opening field wide; restore the focused ribbon for the reveal. */
@media (min-width: 851px) {
  .hero-network {
    left: calc(-8% + var(--scene-reveal, 0) * 30%);
    width: calc(116% - var(--scene-reveal, 0) * 28%);
  }
}
.hero-reveal { max-width: min(760px, 62vw); }
.hero-reveal h2 {
  font-size: clamp(3.2rem, 5.1vw, 5.6rem);
  line-height: 1.18;
  letter-spacing: 0;
  word-spacing: 0.08em;
  max-width: none;
}
.hero-reveal p { margin-top: 2rem; }
@media (max-width: 850px) {
  .hero-reveal { max-width: none; right: 7%; }
  .hero-reveal h2 { font-size: clamp(2.25rem, 10.8vw, 4.6rem); line-height: 1.2; }
  .hero-reveal p { margin-top: 1.6rem; }
}

/* Protect the editorial copy while leaving the central gold field luminous. */
.hero-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(28, 28, 27, 0.95) 0%,
    rgba(28, 28, 27, 0.9) 26%,
    rgba(28, 28, 27, 0.66) 36%,
    rgba(28, 28, 27, 0.22) 47%,
    transparent 62%);
}
.hero-layout { z-index: 2; }
.hero-network {
  /* Offset the opening wave only; the existing reveal and exit keep their timing. */
  translate: calc(3vw - var(--scene-reveal, 0) * 3vw)
             calc(3vh - var(--scene-reveal, 0) * 3vh);
  -webkit-mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.32) 26%, rgba(0, 0, 0, 0.62) 40%, #000 55%),
    radial-gradient(ellipse 58% 60% at 55% 54%, #000 38%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0.35) 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.32) 26%, rgba(0, 0, 0, 0.62) 40%, #000 55%),
    radial-gradient(ellipse 58% 60% at 55% 54%, #000 38%, rgba(0, 0, 0, 0.9) 62%, rgba(0, 0, 0, 0.35) 85%, transparent 100%);
  mask-composite: intersect;
}
.cinematic-copy .hero-tools { color: #c8c1b4; }
.cinematic-copy .tool-sep { color: #bcb3a4; }
.cinematic-copy .hero-mail { color: var(--ivory); text-decoration-color: rgba(222, 199, 161, 0.78); }
.cinematic-copy .hero-person,
.cinematic-copy .hero-tag,
.cinematic-copy .hero-tools,
.cinematic-copy .hero-mail {
  text-shadow: 0 1px 5px rgba(28, 28, 27, 0.85);
}
.hero-bottom { color: #c9bfad; text-shadow: 0 1px 6px var(--ink); }
.hero-bottom a { color: #ede0c8; }

/* Give fixed navigation its own clear, softly fading backdrop. */
.site-nav { top: calc(env(safe-area-inset-top, 0px) + 20px); }
.site-nav::before {
  content: "";
  position: absolute;
  inset: -24px 0 -28px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 28, 27, 0.96), rgba(28, 28, 27, 0.76) 55%, transparent);
}
.site-nav .nav-links a:not(.nav-resume) { color: var(--cream); }
@media (min-width: 861px) {
  .nav-row {
    width: min(1440px, calc(100% - clamp(40px, 6vw, 96px)));
    grid-template-columns: minmax(110px, 1fr) auto max-content;
    gap: clamp(18px, 2.5vw, 36px);
  }
  .nav-links { gap: clamp(20px, 2vw, 32px); }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-nav .nav-resume { color: var(--cream); }
  .nav-end { gap: 16px; }
}
@media (max-width: 860px) {
  .site-nav { top: calc(env(safe-area-inset-top, 0px) + 16px); }
  .nav-row { width: calc(100% - 32px); gap: 8px; }
  .menu-btn { background: rgba(28, 28, 27, 0.82); border-color: rgba(212, 194, 162, 0.4); }
  .nav-links { padding-top: calc(env(safe-area-inset-top, 0px) + 5.5rem); }
}
@media (max-width: 850px) {
  .hero-sticky::before {
    background: radial-gradient(ellipse 105% 43% at 2% 65%,
      rgba(28, 28, 27, 0.96),
      rgba(28, 28, 27, 0.84) 44%,
      rgba(28, 28, 27, 0.34) 76%,
      transparent);
  }
}

/* Organic portrait threads share the wave's masked SVG and depth motion. */
.portrait-filament-network { opacity: var(--original-opacity, 1); pointer-events: none; }
.portrait-silk {
  fill: none;
  stroke: url(#portrait-thread-fade);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: strand-drift 40s linear infinite;
}
.portrait-silk-node { fill: #d4c2a2; }
.portrait-silk-node.is-glint { filter: drop-shadow(0 0 0.8px rgba(212, 194, 162, 0.3)); }
.hero-network .wave-layer circle.spark { filter: drop-shadow(0 0 1px rgba(222, 198, 155, 0.35)); }

/* Resume leads; links follow; social targets remain quiet and accessible. */
.site-nav { top: calc(env(safe-area-inset-top, 0px) + 22px); }
.nav-row {
  width: min(1440px, calc(100% - clamp(40px, 7vw, 112px)));
  min-height: 52px;
  grid-template-columns: minmax(110px, 1fr) auto max-content;
  gap: clamp(20px, 2.4vw, 36px);
}
.site-nav .nav-links { gap: clamp(22px, 2vw, 32px); }
.site-nav .nav-links a {
  font-size: 0.90625rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}
.nav-end { gap: 20px; }
.site-nav .nav-social { gap: 8px; }
.site-nav .nav-ico { width: 40px; height: 40px; border-color: rgba(212, 194, 162, 0.28); }
.nav-ico svg { width: 17px; height: 17px; }
.site-nav .pill-nav {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--champagne);
  color: var(--ink);
  border-radius: 999px;
  flex: none;
}
@media (max-width: 1100px) {
  .nav-row { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    min-width: 60px;
    min-height: 48px;
    padding-inline: 14px;
    font-size: 0.875rem;
    z-index: 26;
    background: rgba(28, 28, 27, 0.82);
    border-color: rgba(212, 194, 162, 0.4);
  }
  .nav-end { display: flex; grid-column: 2; grid-row: 1; }
  .site-nav .nav-end .nav-social { display: none; }
  .site-nav .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 24;
    justify-self: auto;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 6.5rem) 1.75rem 2rem;
    background: rgba(28, 28, 27, 0.98);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.34s cubic-bezier(.22, .7, .2, 1), visibility 0.34s;
  }
  .site-nav .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  }
  .site-nav .nav-links a:last-child { border-bottom: 0; }
  .site-nav .nav-links .nav-resume {
    justify-content: center;
    margin-top: 18px;
    min-height: 48px;
    color: var(--ink);
    background: var(--champagne);
    border: 1px solid var(--gold-muted);
    border-radius: 999px;
  }
  .nav-open .nav-links { transform: translateX(0); visibility: visible; pointer-events: auto; }
}
@media (max-width: 480px) {
  .site-nav { top: calc(env(safe-area-inset-top, 0px) + 20px); }
  .nav-row { width: calc(100% - 32px); gap: 8px; min-height: 48px; }
  .site-nav .pill-nav { min-height: 44px; padding-inline: 14px; }
  .menu-btn { min-width: 54px; min-height: 44px; padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-silk { animation: none; }
  .site-nav .nav-links { transition: none; }
}

@media (max-width: 1100px) {
  .site-nav .nav-links { overflow-y: auto; overscroll-behavior: contain; }
  .site-nav .nav-links .nav-resume:hover { background: #e0cfb2; }
}
@media (max-width: 360px) {
  .nav-row { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-end { display: none; }
  .menu-btn { grid-column: 2; }
}
