/* ============================================================
   Proto — The Human Phenome
   Split-tone editorial dispatch
   ============================================================ */

:root {
  /* palette */
  --ink: #16150F;         /* body text on cream */
  --ink-soft: #3A382F;
  --ink-muted: #8A8880;
  --cream: #F7F6F2;
  --cream-2: #EFEDE5;
  --cream-line: #DCD9CE;
  --dark: #0B0B0A;
  --dark-2: #131311;
  --dark-line: rgba(255,255,255,0.10);
  --dark-text: #EDEBE4;
  --dark-muted: #9C998F;
  --teal: #20B2A6;
  --teal-deep: #178E85;

  /* type */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  /* rhythm */
  --col: 720px;
  --wide: 1200px;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;
  --space-4xl: 10rem;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ti: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- reading progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--teal);
  z-index: 200;
  transition: width 80ms linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(11,11,10,0);
  transition: background 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}
/* over dark hero: white text. once scrolled into cream: dark text */
.nav { color: var(--dark-text); }
.nav.scrolled {
  background: rgba(247,246,242,0.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
  border-bottom-color: var(--cream-line);
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.nav-logo { display: block; }
.nav-brand-text {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex; align-items: center; gap: clamp(0.4rem, 1vw, 1.1rem);
  flex-wrap: nowrap;
}
.nav-links a {
  font-family: var(--mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; color: inherit;
  opacity: 0.72;
  padding: 0.3rem 0;
  position: relative;
  white-space: nowrap;
  transition: opacity var(--ti), color var(--ti);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--teal);
  transition: right var(--ti);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--teal-deep); }
.nav.scrolled .nav-links a.active { color: var(--teal-deep); }
.nav-links a.active::after { right: 0; }

.nav-pdf {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.45rem 0.95rem !important;
  opacity: 0.9 !important;
}
.nav-pdf::after { display: none; }
.nav-pdf:hover { background: var(--teal); border-color: var(--teal); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 34px; height: 30px; padding: 6px 4px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO (dark)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--dark);
  color: var(--dark-text);
  overflow: hidden;
  padding: 7rem clamp(1.4rem, 5vw, 4rem) 6rem;
}
.hero-bg {
  position: absolute; inset: -8% -4% -4% -4%;
  background:
    radial-gradient(120% 90% at 72% 18%, rgba(32,178,166,0.16), transparent 55%),
    radial-gradient(100% 80% at 20% 90%, rgba(120,110,90,0.14), transparent 60%),
    linear-gradient(180deg, #111110 0%, #0B0B0A 60%, #0A0A09 100%);
  will-change: transform;
  z-index: 0;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.045; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 8s steps(6) infinite;
}
@keyframes grainshift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-2%); }
  60% { transform: translate(-2%,-3%); }
  80% { transform: translate(2%,2%); }
}

.hero-inner {
  position: relative; z-index: 3;
  max-width: 960px; margin: 0 auto; width: 100%;
}
.hero-kicker {
  font-family: var(--mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--teal);
  margin: 0 0 1.6rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 9.5rem);
  line-height: 0.94; letter-spacing: -0.015em;
  margin: 0 0 1.8rem;
}
.hero-title span { display: block; }
.hero-title em { font-style: italic; color: var(--teal); }
.hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.6; color: var(--dark-muted);
  max-width: 40ch; margin: 0 0 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }
.hero-meta {
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--dark-muted); margin: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  transition: transform var(--ti), background var(--ti), color var(--ti), border-color var(--ti);
}
.btn-primary { background: var(--teal); color: #04110F; border: 1px solid var(--teal); }
.btn-primary:hover { transform: translateY(-2px); background: #2ac6b9; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--dark-text); border: 1px solid var(--dark-line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--dark-text); }
.btn-ghost:active { transform: translateY(0); }

.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--dark-muted);
}
.hero-scroll-line { width: 1px; height: 42px; background: linear-gradient(var(--dark-muted), transparent); }

/* ============================================================
   LEAD GALLERY
   ============================================================ */
.gallery-dark { background: var(--dark); padding: 0 0 3rem; }

.g-figure { margin: 0; }
.g-imgwrap { overflow: hidden; }
.g-imgwrap img { width: 100%; height: 100%; object-fit: cover; }

.g-hero .g-imgwrap {
  max-width: 50%;
  width: 50%;
  margin: 0 auto;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
}
.g-hero .g-imgwrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
/* type-heavy posters must never crop */
.g-hero.g-poster .g-imgwrap { aspect-ratio: auto; }
.g-hero.g-poster .g-imgwrap img { object-fit: contain; height: auto; }
.g-hero { position: relative; padding: 3.2rem 0 0; }
.g-hero figcaption {
  max-width: min(50%, 960px);
  margin: 0 auto;
  padding: 1.4rem clamp(1.4rem, 5vw, 2rem) 3.2rem;
}
.gallery-dark .g-cap { color: var(--dark-text); }
.gallery-dark .g-cta { color: var(--dark-muted); }

.g-cap {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35;
  margin: 0 0 0.9rem; max-width: 30ch;
}
.g-cta {
  display: inline-flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  text-decoration: none;
  transition: color var(--ti);
}
.g-cta .g-cta-url {
  color: var(--teal);
  border-bottom: 1px solid transparent;
  text-transform: none; letter-spacing: 0.02em;
  transition: border-color var(--ti);
}
.g-cta:hover .g-cta-url { border-bottom-color: var(--teal); }
.g-cta:hover { color: currentColor; }

/* campaign strip -> transition to cream */
.gallery-strip {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 8%, var(--cream) 42%);
  padding: 5rem clamp(1.4rem, 5vw, 4rem) 4rem;
}
.strip-eyebrow {
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--dark-muted);
  max-width: var(--wide); margin: 0 auto 2.4rem;
  text-align: center;
}
.strip-grid {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.g-strip .g-imgwrap {
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 380px;
  border-radius: 2px;
}
.g-strip figcaption { padding: 1.2rem 0 0; }
.g-strip .g-cap {
  color: var(--ink); font-size: 1.18rem; line-height: 1.4;
  margin-bottom: 0.7rem; max-width: none;
}
.g-strip .g-cta { color: var(--ink-muted); }

/* ============================================================
   ARTICLE (cream editorial)
   ============================================================ */
.article {
  background: var(--cream);
  padding: 2rem clamp(1.4rem, 5vw, 3rem) 4rem;
}

.article-byline {
  max-width: var(--col); margin: 1rem auto 4rem;
  text-align: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--cream-line);
}
.byline-name { font-family: var(--serif); font-size: 2rem; margin: 0 0 0.3rem; }
.byline-role { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.byline-places {
  font-family: var(--mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-muted); margin: 0;
}

.sec {
  max-width: var(--col); margin: 0 auto;
  padding: var(--space-xl) 0;
  scroll-margin-top: 84px;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--teal-deep);
  margin: 0 0 1rem;
}
.sec-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 2rem;
}
.sec-title em { font-style: italic; color: var(--teal-deep); }
.sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; line-height: 1.3;
  margin: 2.6rem 0 1.2rem; color: var(--ink-soft);
}

.prose p { margin: 0 0 1.5rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-line);
  transition: border-color var(--ti), color var(--ti);
}
.prose a:hover { color: var(--teal-deep); border-bottom-color: var(--teal); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose ul {
  margin: 0 0 1.5rem; padding-left: 0; list-style: none;
}
.prose ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); opacity: 0.65;
}

/* definition list (III) */
.def-list { margin: 1rem 0 2rem; display: grid; gap: 1.6rem; }
.def {
  padding: 1.6rem 1.8rem;
  background: var(--cream-2);
  border-left: 2px solid var(--teal);
  border-radius: 2px;
}
.def-term {
  font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.5rem;
  color: var(--ink);
}
.def-body { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.def-body a { color: var(--ink); border-bottom: 1px solid var(--cream-line); text-decoration: none; }
.def-body a:hover { color: var(--teal-deep); border-bottom-color: var(--teal); }

/* pull quote */
.pull {
  margin: 3rem 0; padding: 0 0 0 1.8rem;
  border-left: 3px solid var(--teal);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.2;
  color: var(--ink);
}
.pull cite {
  display: block; margin-top: 1rem;
  font-family: var(--mono); font-style: normal;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* inline figures */
.fig-inline { margin: 3rem auto; max-width: 50%; }
.fig-inline .g-imgwrap { border-radius: 3px; aspect-ratio: auto; height: auto; }
.fig-inline .g-imgwrap img { width: 100%; height: auto; object-fit: contain; }
.fig-inline figcaption {
  margin-top: 0.9rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.5; color: var(--ink-soft);
}
.fig-inline figcaption a {
  font-style: normal; color: var(--teal-deep);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.fig-inline figcaption a:hover { border-bottom-color: var(--teal); }

/* stats blocks */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin: 3rem 0;
  padding: 2.6rem 2rem;
  background: var(--dark); color: var(--dark-text);
  border-radius: 4px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block; margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dark-muted); line-height: 1.4;
}

/* references */
.refs { padding-bottom: var(--space-xl); }
.ref-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.ref-list li {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7;
  padding: 0.5rem 0; border-bottom: 1px solid var(--cream-line);
  color: var(--ink-soft);
}
.ref-list a { color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid transparent; }
.ref-list a:hover { border-bottom-color: var(--teal); }

/* ============================================================
   ARCHITECTURE DIAGRAM
   ============================================================ */
.arch {
  background: var(--cream);
  padding: var(--space-4xl) clamp(1.4rem, 5vw, 3rem);
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
}
.arch-head { max-width: var(--col); margin: 0 auto 4rem; text-align: center; }
.arch-head .eyebrow { color: var(--teal-deep); }
.arch-head .sec-title { margin-bottom: 1.4rem; }
.arch-deck {
  font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 52ch; margin: 0 auto;
}

.arch-diagram {
  position: relative;
  max-width: 1000px; margin: 0 auto;
}
.arch-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  overflow: visible;
}
.arch-path { opacity: 1; }
.arch-arrow { opacity: 1; }

.arch-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 2rem;
}
.arch-node {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.4rem 1rem;
}
.arch-node--proto {
  border: 1px solid var(--cream-line);
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 8px 40px -18px rgba(32,178,166,0.5), inset 0 0 0 4px rgba(247,246,242,1);
  padding: 1.8rem 1.4rem;
  margin-top: -0.4rem;
}
.arch-icon { color: var(--ink-soft); margin-bottom: 0.9rem; }
.arch-node--proto .arch-icon { color: var(--teal-deep); }
.arch-kicker {
  font-family: var(--mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-muted); margin: 0 0 0.45rem;
}
.arch-name {
  font-family: var(--serif); font-size: 1.75rem; line-height: 1;
  margin: 0 0 0.45rem; color: var(--ink);
}
.arch-name--proto { font-size: 2rem; }
.arch-name--proto em { font-style: italic; color: var(--teal-deep); }
.arch-name--you { font-size: 2rem; }
.arch-sub {
  font-family: var(--sans); font-size: 0.82rem; line-height: 1.4;
  color: var(--ink-muted); margin: 0;
}

.arch-you {
  position: relative; z-index: 1;
  text-align: center; margin-top: 4.5rem;
  display: flex; flex-direction: column; align-items: center;
}

/* traveling dots hidden until JS positions/animates them */
.arch-travel { opacity: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark); color: var(--dark-text);
  padding: 4rem clamp(1.4rem, 5vw, 3rem) 4rem;
}
.footer-inner { max-width: var(--col); margin: 0 auto; text-align: center; }
.footer-line {
  font-family: var(--mono); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--dark-text); margin: 0 0 1.6rem;
}
.footer-pdf {
  display: inline-block; margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color var(--ti);
}
.footer-pdf:hover { border-bottom-color: var(--teal); }
.footer-copy {
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--dark-muted); margin: 0;
}

/* ============================================================
   REVEAL ANIMATIONS (JS-driven; visible by default as fallback)
   ============================================================ */
.reveal, .reveal-word { opacity: 1; }

.js-motion .reveal {
  opacity: 0; transform: translateY(22px);
}
.js-motion .reveal-word {
  opacity: 0; transform: translateY(28px);
}
.js-motion .arch-diagram { will-change: opacity, transform; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { gap: 0.6rem; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0.08em; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; color: inherit; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100svh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.4rem;
    padding: 4rem 2.2rem;
    background: var(--dark);
    transform: translateX(100%);
    transition: transform 380ms var(--ease-out);
    box-shadow: -30px 0 80px -20px rgba(0,0,0,0.6);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--dark-text); font-size: 0.9rem; letter-spacing: 0.12em; opacity: 0.85; }
  .nav-links a.active { color: var(--teal); }
  .nav-links a.active::after { display: none; }
  .nav-pdf { margin-top: 0.6rem; }
}

@media (max-width: 760px) {
  body { font-size: 1.02rem; line-height: 1.65; }
  .strip-grid { grid-template-columns: 1fr; gap: 2.2rem; max-width: 88vw; margin-left: auto; margin-right: auto; }
  .g-strip .g-imgwrap { aspect-ratio: auto; max-height: none; }
  .g-strip .g-imgwrap img { height: auto; object-fit: contain; }
  .g-strip .g-cap { font-size: 1.05rem; }
  .stats { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.8rem 1.2rem; margin: 2.2rem 0; }
  .stat-num { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .sec { padding: 2.8rem 0; }

  /* keep the 50% image cap on mobile too, but bump to 78vw so it doesn't feel tiny */
  .g-hero .g-imgwrap {
    max-width: 88vw; width: 88vw;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
  }
  .g-hero .g-imgwrap img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .g-hero.g-poster .g-imgwrap,
  .g-hero.g-poster .g-imgwrap img {
    max-width: 88vw; width: 88vw;
    max-height: none;
    height: auto;
    object-fit: contain;
  }
  .g-hero figcaption {
    max-width: 88vw;
    padding: 1.2rem 6vw 2.4rem;
  }
  .g-cap { font-size: clamp(1.15rem, 4.4vw, 1.5rem); max-width: none; }
  .g-cta { font-size: 0.68rem; letter-spacing: 0.13em; }

  /* article body: comfortable phone reading */
  .article { padding: 1.4rem 6vw 3rem; }
  .article h2, .sec-title { font-size: clamp(1.7rem, 6vw, 2.1rem); line-height: 1.2; }
  .article h3 { font-size: 1.25rem; }
  .article p { margin-bottom: 1.1rem; }
  .pull { font-size: clamp(1.35rem, 5.4vw, 1.8rem); padding: 1.2rem 0 1.2rem 1rem; margin: 2rem 0; }
  .fig-inline { margin: 2rem 0; }
  .fig-inline .g-imgwrap { max-width: 88vw; margin: 0 auto; aspect-ratio: auto; height: auto; }
  .fig-inline .g-imgwrap img { width: 100%; height: auto; object-fit: contain; }
  .fig-inline figcaption { font-size: 0.95rem; padding: 0 6vw; }
  .ref-list li { font-size: 0.72rem; line-height: 1.6; }

  /* byline compact */
  .article-byline { margin: 0.4rem auto 2.4rem; padding-bottom: 2rem; }
  .byline-name { font-size: 1.6rem; }

  /* hero: reduce top whitespace, breathe */
  .hero { min-height: 92svh; }
  .hero-inner { padding: 5rem 6vw 6rem; }
  .hero-title { font-size: clamp(3rem, 13vw, 5rem); line-height: 0.95; }
  .hero-sub { font-size: 1.05rem; max-width: 34ch; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; font-size: 0.72rem; }
  .hero-meta { font-size: 0.62rem; flex-wrap: wrap; }

  /* architecture -> vertical stack */
  .arch { padding: 5rem clamp(1.2rem,5vw,2rem); }
  .arch-lines { display: none; }
  .arch-grid { grid-template-columns: 1fr; gap: 0; }
  .arch-node--proto { margin-top: 0; }
  .arch-node, .arch-you {
    position: relative; margin: 0;
    padding-top: 2.6rem; padding-bottom: 2.6rem;
  }
  /* vertical connector between stacked nodes */
  .arch-node::before, .arch-you::before {
    content: ""; position: absolute; top: 0; left: 50%;
    width: 1.5px; height: 2.6rem; background: var(--ink-muted);
    transform: translateX(-50%);
  }
  .arch-node--clinic::before { display: none; }
  .arch-you { margin-top: 0; }
  .arch-diagram { max-width: 420px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.7rem; }
  .nav-brand-text { font-size: 1.2rem; }
  .g-hero .g-imgwrap { max-width: 92vw; width: 92vw; }
  .strip-grid { max-width: 92vw; }
  .stats { padding: 1.4rem 1rem; }
  .stat-label { font-size: 0.6rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .hero-grain { animation: none !important; }
  /* force all content visible regardless of JS motion class */
  .js-motion .reveal,
  .js-motion .reveal-word {
    opacity: 1 !important; transform: none !important;
  }
  .arch-travel { display: none !important; }
  .progress-bar { transition: none; }
  .btn, a, .nav { transition: none !important; }
}
