/* Shared design foundation: "Holo lab" (Levi's pick, 2026-11-30). Pale cyan glass, deep-ink type,
   glowing cyan line work, faint scanlines, wide-tracked Barlow capitals. Section styles live in css/sections/<id>.css. */
@font-face { font-family: Barlow; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Barlow; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Barlow; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Surfaces: pale cyan glass */
  --bg: #eef7fb;
  --bg-2: #e3f1f7;                       /* quiet panel / card fill */
  --bg-3: #d3e8f1;                       /* pressed / track fill */
  --glass: rgba(255, 255, 255, 0.55);    /* card / node fill over the backdrop */
  --stage-bg: radial-gradient(100% 75% at 50% 45%, #f7fcfe 0%, #e6f3f8 55%, #cfe4ee 100%);
  --line: rgba(0, 130, 180, 0.18);
  --line-strong: rgba(0, 130, 180, 0.38);
  /* Text */
  --text: #0d2b3a;                       /* deep ink */
  --muted: #2b6d86;
  --faint: #6f9fb2;
  /* Holo: the UI glow color (structure lines, focus, the light streak). Not a biological meaning. */
  --holo: #00b4e6;
  --holo-soft: rgba(0, 180, 230, 0.16);
  /* Signal colors: one per biological actor, same meaning site-wide. Tuned to read on the pale cyan stage. */
  --accent: #0a86b8;   /* RON receptor, links (the protagonist; a deeper cyan than --holo so it reads as an object) */
  --immune: #6a4fd6;   /* innate immunity: cGAS, STING, interferon */
  --tumor: #e0603f;    /* tumor cells, tumor growth, stemness, metastasis */
  --metab: #d0920f;    /* mitochondria, cholesterol, metabolism */
  --heal: #16a06a;     /* treatment, tumor cell death as the good outcome, "good" anti-tumor immune cells, patients */
  --ligand: #2f5fd0;  /* HGFL, RON's ligand */
  --bad: #d6336c;      /* immune cells reprogrammed by RON to support the tumor ("good" → "bad") */
  --dna: #0d2b3a;      /* DNA strands (ink), with --holo for highlights */
  /* Type */
  --font-display: Barlow, system-ui, sans-serif;
  --font-body: Barlow, system-ui, sans-serif;
  --font-mono: Barlow, system-ui, sans-serif; /* labels: use .label (wide-tracked caps), not a monospace face */
  /* Layout */
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --scanlines: repeating-linear-gradient(0deg, rgba(0, 140, 190, 0.045) 0 1px, transparent 1px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--holo-soft); }
:focus-visible { outline: 2px solid var(--holo); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Wide-tracked caps label, e.g. section eyebrows, figure labels */
.label, .eyebrow { font: 600 12px/1.2 var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; gap: 0.9em; align-items: center; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--holo); box-shadow: 0 0 6px var(--holo); }

/* Kinetic headline (letters built by lib.kinetic): heavy tracked caps */
.kinetic { font: 700 clamp(24px, 4.4vw, 56px)/1.12 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.kinetic .k-word { display: inline-block; white-space: nowrap; }
.kinetic .k-ch { display: inline-block; will-change: transform, opacity; }
.kinetic .k-sp { display: inline; }
.kinetic .k-sp::before { content: " "; } /* a real, collapsible space so wrapped lines start flush */
/* Tagline: Levi's taglines inside the animations */
.tagline { font: 600 clamp(15px, 2.2vw, 26px)/1.25 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); }

/* Standard section shell for non-animated sections */
.panel { position: relative; padding: clamp(96px, 14vh, 168px) 0; }
.panel-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.panel-head h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: 0.1em; text-transform: uppercase; margin: 18px 0; }
.panel-head p { color: var(--muted); font-size: 18px; max-width: 640px; }

/* Pinned scroll scenes (lib.pinScene): host is tall; .stage sticks for the duration */
.pin-host { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: calc(100svh - var(--chrome-b, 0px)); overflow: hidden; background: var(--stage-bg); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--scanlines); }
/* Phones: the viewport grows when the browser's toolbars slide away (100lvh vs 100svh), and iOS Safari's toolbar
   floats over the page. Scenes compose in the stage's content box (the small viewport minus --chrome-b); a
   transparent bottom border of --stage-ext carries the stage to the bottom of the largest viewport, and each scene's
   svg (overflow: visible, clipped at the border box) draws on into it, so no band of bare page shows under the stage. */
@media (pointer: coarse) {
  .stage {
    --stage-ext: calc(100lvh - 100svh + var(--chrome-b, 0px));
    height: 100lvh; border-bottom: var(--stage-ext) solid transparent; background-origin: border-box;
    overflow-x: clip; overflow-y: visible; clip-path: inset(0); /* clip-path also clips the paint at the bottom */
  }
  .stage::after { bottom: calc(-1 * var(--stage-ext)); }
}

/* Reveal-on-scroll (lib.revealAll adds .is-in). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Buttons: underlined tracked caps (from the mockup); .btn.primary is the glowing pill */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--glass);
  font: 600 13px/1 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase;
  transition: border-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { text-decoration: none; border-color: var(--holo); box-shadow: 0 0 16px rgba(0, 180, 230, .28); }
.btn.primary { border-color: var(--holo); box-shadow: 0 0 14px rgba(0, 180, 230, .22); }
@media (pointer: coarse) { .btn { min-height: 44px; } }

/* Site nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 60px; display: flex; align-items: center;
  background: transparent; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(238, 247, 251, 0.86); backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; }
.nav .mark { font: 700 14px/1 var(--font-display); color: var(--text); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; padding: 20px 0; }
.nav ul { display: flex; gap: clamp(14px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav ul a { display: inline-block; min-width: 44px; text-align: center; padding: 20px 8px; margin: 0 -8px; font: 600 11px/1 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.nav ul a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav ul .hide-sm { display: none; } }
@media (max-width: 380px) { .nav .wrap { gap: 12px; } .nav .mark { font-size: 12px; letter-spacing: .14em; } .nav ul { gap: 10px; } .nav ul a { letter-spacing: 0.1em; } }

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font: 500 12px/1.6 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Shared glyph styles (js/glyphs.js). Sections may tint/scale, but keep these defaults so actors match across animations. */
.g-ron-head, .g-ron-bead, .g-ron-kinase { fill: color-mix(in srgb, var(--accent) 16%, #fff); stroke: var(--accent); stroke-width: 1.5; }
.g-ron-tm { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.g-ron-p circle { fill: var(--holo); stroke: #fff; stroke-width: 1; }
.g-hgfl path { fill: color-mix(in srgb, var(--ligand) 22%, #fff); stroke: var(--ligand); stroke-width: 1.5; }
.g-arrow path:first-child { stroke-width: 1.8; stroke-linecap: round; }
.g-arrow { color: var(--text); }
.g-dino { fill: var(--text); }
.g-dna-strand { fill: none; stroke: var(--dna); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-dna-rung { fill: none; stroke: var(--holo); stroke-width: 1.1; stroke-linecap: round; }
