:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --ink: #15151a;
  --ink-soft: #4d4d57;
  --ink-faint: #85858f;
  --on-ink: #ffffff;
  --line: rgba(22, 21, 29, 0.12);
  --line-soft: rgba(22, 21, 29, 0.07);
  --surface: rgba(255, 255, 255, 0.66);
  --fill: rgba(22, 21, 29, 0.04);
  --material: rgba(247, 247, 245, 0.78);
  /* glass: translucent card material, bright top edge = light catching the surface */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --violet: #6d4fe8;
  --pink: #e5484d;
  --blue: #0ea5e9;
  --accent: #5046e5;
  --accent-fill: rgba(80, 70, 229, 0.09);
  --grad: linear-gradient(160deg, #6366f1 0%, #7c5cf0 50%, #0ea5e9 100%);
  --grad-text: linear-gradient(100deg, #4f46e5 0%, #7c5cf0 50%, #0ea5e9 100%);
  --shadow: 0 24px 60px rgba(20, 20, 40, 0.08);
  --shadow-sm: 0 8px 24px rgba(20, 20, 40, 0.05);
  --shadow-lift: 0 28px 64px rgba(20, 20, 40, 0.12);
  /* page gutter and content width - every top-level block lines up on these */
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1180px;
  --content: min(var(--max), calc(100% - 2 * var(--gutter)));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Mada", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 100px;
  --footer-h: 88px;
}

/* Dark palette - same tokens, so every component adapts without its own overrides.
   Dark is the default; light is opt-in from the header toggle and remembered. */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0f0f15;
    --bg-card: #18181f;
    --ink: #f2f1f7;
    --ink-soft: #b8b7c4;
    --ink-faint: #8a8996;
    --on-ink: #0f0f15;
    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
    --surface: rgba(255, 255, 255, 0.04);
    --fill: rgba(255, 255, 255, 0.06);
    --material: rgba(15, 15, 21, 0.78);
    --glass: rgba(30, 30, 38, 0.5);
    --glass-strong: rgba(30, 30, 38, 0.62);
    --glass-edge: rgba(255, 255, 255, 0.1);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    --accent: #a5a0ff;
    --accent-fill: rgba(165, 160, 255, 0.14);
    --grad: linear-gradient(160deg, #a5a0ff 0%, #8b7cf6 50%, #38bdf8 100%);
    --grad-text: linear-gradient(100deg, #c7c2ff 0%, #a5a0ff 45%, #7dd3fc 100%);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 34px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 100%; /* respect the visitor's browser text size */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  --page-progress: 0;
  /* eases the light/dark switch instead of a hard brightness jump */
  transition: background-color 400ms ease, color 400ms ease;
}

a { color: inherit; text-decoration: none; }

.star { color: var(--accent); font-style: normal; }

/* ---------- Orbit + glow background (static - no full-viewport motion) ---------- */
.orbit-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orbits {
  position: absolute;
  top: 50%;
  left: 62%;
  width: 150vmax;
  height: 150vmax;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.orbits circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.6;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4; /* a hint of colour behind the glass, nothing more */
}

.glow-a { width: 42vw; height: 42vw; top: -8vw; right: -6vw; background: radial-gradient(circle, rgba(99, 102, 241, 0.34), transparent 68%); }
.glow-b { width: 38vw; height: 38vw; bottom: -10vw; left: -8vw; background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%); }
.glow-c { width: 34vw; height: 34vw; top: 40%; left: 44%; background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%); }

/* WebGL scene: sits above the glows, below everything else; the glass cards blur it */
.scene-3d {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.has-3d .orbits { display: none; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header: sticky translucent material ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--material);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
/* scroll edge effect: content fades under the header instead of a hard divider */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 18px;
  background: linear-gradient(var(--material), transparent);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand .star { transition: transform 500ms var(--ease); }

/* the header is already the material layer, so the pill is a plain fill - no glass on glass */
.nav-links {
  position: relative;
  display: flex;
  gap: 0.35rem;
  justify-self: center;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--fill);
}
.nav-links a {
  position: relative;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 240ms var(--ease), background 240ms var(--ease), transform 100ms ease-out;
}
.nav-links a:active { transform: scale(0.96); }
.nav-links a { z-index: 1; }
.nav-links a.is-active { color: var(--ink); }
/* one pill that springs between links, instead of each link fading its own background */
.nav-indicator {
  position: absolute;
  top: 6px; bottom: 6px; left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent-fill);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
html:not(.js) .nav-links a.is-active { background: var(--accent-fill); }

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink);
  cursor: pointer;
  transition: transform 100ms ease-out, border-color 200ms ease;
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.status-block {
  justify-self: end;
  display: grid;
  gap: 0.15rem;
  text-align: right;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.status-line { display: inline-flex; align-items: center; gap: 0.4rem; justify-content: flex-end; }
.status-mail { transition: color 200ms var(--ease); }
.status-avail {
  margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
  transition: color 200ms var(--ease), transform 100ms ease-out;
}
.status-avail:active { transform: scale(0.97); }
.status-dot {
  --pulse: 52 209 122;
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d17a;
  animation: pulse 2.4s var(--ease) infinite;
}
.clock-ico { opacity: 0.6; }
#local-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* ---------- Shared section shell ---------- */
.hero, .section {
  width: var(--content);
  margin: 0 auto;
}
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  scroll-margin-top: var(--header-h);
}

.section-index {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-index span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head { margin-bottom: 2.4rem; max-width: 760px; }
.section-display {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-sub { margin: 0; color: var(--ink-soft); font-size: 1.08rem; max-width: 620px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease);
}
.button.primary { background: var(--ink); color: var(--on-ink); }
.button.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
/* feedback lives on the press, and it's instant */
.button:active { transform: scale(0.97); transition-duration: 100ms; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 8vw, 104px); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }

.hero-display {
  margin: 0.2rem 0 1.6rem;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.95;
}
.hero-display .line-1,
.hero-display .line-2 { display: block; }
.hero-display .line-1 {
  font-size: clamp(3.4rem, 9.5vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  /* optical alignment: pull the P's side bearing back onto the gutter */
  margin-left: -0.045em;
}
.hero-display .line-2 {
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: -0.04em;
  padding-right: 0.08em; /* keeps the italic overhang inside the clip */
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 560px; line-height: 1.7; }
.ink-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.hero-portrait { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.portrait-gradient {
  position: relative;
  aspect-ratio: 4 / 4.2;
  border-radius: 22px;
  overflow: hidden;
  background: #eef1f8;
  box-shadow: var(--shadow);
  will-change: transform;
}
.portrait-gradient img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 16%;
  /* natural colour, kept intact as on the previous site */
  filter: saturate(0.96) contrast(1.03);
}
/* gradient ring frame - adds the editorial accent without touching the photo's colour */
.portrait-gradient::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  border-radius: 22px;
  padding: 1px;
  background: var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-portrait figcaption {
  margin-top: 0.7rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  background: var(--line-soft);
}
.hero-metrics div {
  padding: 1.35rem 1.2rem;
  background: transparent;
  /* hairlines drawn per cell so they stay right in 4, 2 or 1 columns */
  box-shadow: -1px 0 0 var(--line-soft), 0 -1px 0 var(--line-soft);
}
.hero-metrics strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.metric-word { font-style: italic; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-metrics span { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.4; }

/* ---------- Ticker ---------- */
.ticker {
  width: 100%;
  margin: 0 0 clamp(20px, 4vw, 40px);
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  background: var(--surface);
}
.ticker:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}
/* hover, keyboard focus or a tap pauses it */
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.ticker-track .tk-star { font-size: 0.9rem; color: var(--accent); }

/* ---------- Flagship: Interviehire ---------- */
.flagship-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.flagship-intro .flagship-lead { margin-top: 1.2rem; }
/* venture timeline: what happened, in order */
.venture-status {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
}
.venture-status li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}
.venture-status li:last-child { color: var(--ink-faint); }
#panel-ih-how .flagship-metrics {
  align-self: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
}
.flagship-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.flagship-display {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flagship-tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.flagship-tagline em { font-style: italic; color: var(--accent); }
.flagship-lead { margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.75; }
.flagship-lead strong { color: var(--ink); font-weight: 700; }

.flagship-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.flagship-metrics {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.flagship-metrics div {
  padding: 1.3rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
}
.flagship-metrics strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.flagship-metrics span { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.4; }

/* LINA interview console */
.lina-panel {
  position: relative;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.lina-panel::before {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  border-radius: 25px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55;
}

.lina-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line-soft);
}
.lina-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.lina-orb {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--grad); color: #fff;
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem;
}
.lina-live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-soft); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.lina-live-dot { --pulse: 229 72 77; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulse 1.8s var(--ease) infinite; }

.lina-cand { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.9rem 0.2rem 0.6rem; }
.lina-cand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.lina-cand-role { color: var(--ink-soft); font-size: 0.82rem; }

.lina-bubble {
  position: relative;
  margin: 0.3rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 4px 16px 16px 16px;
  background: var(--accent-fill);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}
.lina-bubble-who {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

.lina-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.lina-checks li { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 0.7rem; }
.lc-label { color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; }
.lc-bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
/* scaleX instead of width: compositor-only, no layout every frame */
.lc-bar i {
  display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1100ms var(--ease) 260ms;
}
.reveal-item.is-visible .lc-bar i,
html:not(.js) .lc-bar i { transform: scaleX(var(--w)); }
.lc-ok { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.76rem; font-weight: 700; color: #2fa565; }
.lc-ok::before { content: "\2713"; font-weight: 800; }

.lina-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: 0.82rem;
}
.lina-foot-tag {
  padding: 0.28rem 0.6rem; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Pipeline */
.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.pipe-step {
  position: relative;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 240ms var(--ease);
}
.pipe-step::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--grad); transform: scaleY(0.2); transform-origin: top;
}
.pipe-step.is-final { background: linear-gradient(160deg, rgba(123,108,255,0.1), rgba(90,169,255,0.08)); }
.pipe-step.is-final::before { transform: none; }
.pipe-num {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pipe-step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.pipe-step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Independent builds (the only cards that are links, so the only ones that lift) ---------- */
.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.build-card {
  position: relative;
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
/* while a pointer drives the tilt, the transform must not be smoothed by a CSS transition */
.tilt-card.is-tracking { transition: border-color 240ms var(--ease), box-shadow 320ms var(--ease); }
.tilt-card { position: relative; }
/* specular glare that follows the pointer across the glass */
.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: var(--glare, 0);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.build-card:has(.build-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.build-card h3 { margin: 1.1rem 0 0.6rem; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: -0.012em; line-height: 1.1; }
.build-card > p { margin: 0; color: var(--ink-soft); line-height: 1.62; }

.build-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.build-stats div {
  padding: 0.9rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}
.build-stats strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.build-stats span { color: var(--ink-soft); font-size: 0.76rem; line-height: 1.35; }

.build-foot { margin-top: auto; padding-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.build-card .chip-row { margin-top: 0; padding-top: 0; }
.build-link {
  align-self: flex-start;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  outline: none;
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
/* stretched link: the whole card is the hit target */
.build-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* Featured build: spans the row, story on the left, numbers and stack on the right */
.build-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.build-feature h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.build-feature-side { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; }
.build-feature .build-stats { margin-top: 0; grid-template-columns: 1fr; }
.build-feature .chip-row { margin-top: 0; padding-top: 0; }
.build-points { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.build-points li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}
.build-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.build-points strong { color: var(--ink); font-weight: 700; }
/* no public link on this card, so it should not promise a click */
.build-card:not(:has(.build-link)) { cursor: default; }

/* ---------- Case cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.case-card, .lab-item, .leadership-grid article {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 240ms var(--ease);
}
.case-card { min-height: 288px; display: flex; flex-direction: column; }
.case-tag {
  align-self: flex-start;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--accent-fill); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.case-card h3 { margin: 1.1rem 0 0.6rem; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.012em; line-height: 1.1; }
.case-card p, .lab-item p, .leadership-grid p { margin: 0; color: var(--ink-soft); line-height: 1.62; }

/* chips are labels, not buttons - no hover */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; padding-top: 1.3rem; }
.chip-row span, .capability-cloud span {
  padding: 0.4rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--ink-soft); font-size: 0.8rem; font-weight: 600;
}

/* ---------- Lab + leadership ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.lab-item h3, .leadership-grid h3 { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; }
.leadership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
/* full-width research card, with a small input-to-output flow */
.lab-feature { grid-column: 1 / -1; display: flex; flex-direction: column; }
.lab-feature h3 { margin-top: 1rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.lab-feature h3:first-child { margin-top: 0; }
.lab-feature > p { max-width: 760px; }
.lab-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 1.3rem; }
.lab-flow span:not(.lab-flow-arrow) {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}
.lab-flow span:last-child { border-color: var(--accent); background: var(--accent-fill); color: var(--accent); }
.lab-flow-arrow { color: var(--ink-faint); font-weight: 700; }

/* ---------- Experience ---------- */
.exp-row {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.8rem; border: 1px solid var(--line-soft); border-radius: 20px; background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.exp-row + .exp-row { margin-top: 0.9rem; }
.exp-points { margin-top: 0.8rem; gap: 0.4rem; }
.exp-points li { font-size: 0.92rem; }
.exp-body .chip-row { padding-top: 1rem; }
.exp-now { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; color: #2fa565; }
.exp-meta .exp-now { display: flex; }
.exp-meta { color: var(--ink-faint); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.exp-body h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -0.01em; }
.exp-body p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Toolkit ---------- */
.capability-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.capability-cloud span { font-size: 0.92rem; }

/* ---------- Contact ---------- */
/* the closing screen: contact fills the view above the footer, so landing on it (from the
   nav or by scrolling to the end) shows only the call to action, never a half-cut card */
.contact {
  text-align: left;
  min-height: calc(100svh - var(--header-h) - var(--footer-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-display {
  margin: 0 0 0.7rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 900px; text-wrap: balance;
}
.contact-sub { margin: 0 0 1.8rem; color: var(--ink-soft); font-size: 1.12rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Footer ---------- */
footer {
  display: flex; justify-content: space-between; gap: 1rem;
  width: var(--content); margin: 0 auto;
  min-height: var(--footer-h);
  align-items: center;
  padding: 0; color: var(--ink-faint); font-size: 0.88rem;
  border-top: 1px solid var(--line-soft);
}
.foot-brand { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Glass materials ---------- */
/* Small surfaces: thinner material, light shadow */
.case-card, .lab-item, .leadership-grid article, .exp-row, .pipe-step,
.flagship-metrics div, .hero-metrics {
  background: var(--glass);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--glass-hi), var(--shadow-sm);
}
.hero-metrics { gap: 0; }
.pipe-step.is-final {
  background: linear-gradient(160deg, var(--accent-fill), transparent), var(--glass);
}
/* Big surfaces read as thicker: stronger blur, deeper shadow */
.build-card, .lina-panel {
  background: var(--glass-strong);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-hi), var(--shadow);
}
/* Never glass on glass: anything inside a glass card is a plain fill */
.build-stats div, .chip-row span { background: var(--fill); border-color: var(--line-soft); }

/* ---------- Swipe carousel (pipeline) ---------- */
.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden;
  /* room for card shadows inside the clip */
  padding: 10px 2px 18px;
  margin: -10px -2px -18px;
  touch-action: pan-y;
  cursor: grab;
  border-radius: 20px;
}
.carousel-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carousel-viewport.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
html:not(.js) .carousel-viewport { overflow-x: auto; }
.carousel-track {
  position: relative;
  display: flex;
  gap: 1rem;
  will-change: transform;
}
/* 3.15 per view: the next card peeks in, hinting there is more in the drag direction */
.carousel-track > * { flex: 0 0 clamp(250px, calc((100% - 2rem) / 3.15), 380px); }
.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}
.carousel-hint { color: var(--ink-faint); font-size: 0.82rem; font-weight: 600; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 300ms var(--ease), background 300ms var(--ease);
}
.carousel-dots button[aria-current="true"] { width: 24px; background: var(--accent); }
.carousel-nav { display: flex; gap: 0.5rem; }
.carousel-nav button {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 200ms ease, transform 100ms ease-out, border-color 200ms ease;
}
.carousel-nav button:active { transform: scale(0.92); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; }

/* ---------- Contact sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 100; }
.sheet-root[hidden] { display: none; }
body.sheet-lock { overflow: hidden; }
main { transition: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(10, 10, 22, 0.4); opacity: 0; }
.sheet {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(560px, 100%);
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid var(--glass-edge);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  backdrop-filter: blur(36px) saturate(180%);
  box-shadow: var(--glass-hi), 0 -24px 70px rgba(10, 10, 30, 0.22);
  transform: translate(-50%, 100%);
  touch-action: none;
  will-change: transform;
}
@media (min-width: 640px) {
  .sheet { bottom: 20px; border-bottom: 1px solid var(--glass-edge); border-radius: 28px; }
}
.sheet-grabber { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--line); cursor: grab; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.sheet-head .eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.4rem; }
.sheet-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.05; letter-spacing: -0.02em; }
.sheet-close {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--fill); color: var(--ink-soft);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: transform 100ms ease-out;
}
.sheet-close:active { transform: scale(0.9); }
.sheet-rows { display: grid; gap: 0.5rem; }
.sheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--fill);
  color: var(--ink);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: transform 100ms ease-out, border-color 200ms ease;
}
.sheet-row:active { transform: scale(0.98); }
.sheet-row strong { display: block; font-weight: 700; }
.sheet-row small { color: var(--ink-soft); font-size: 0.84rem; }
.sheet-row-action { color: var(--accent); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.sheet-row.is-done .sheet-row-action { color: #2fa565; }

/* ---------- Scroll-scrubbed headline words ---------- */
.scrub-word {
  display: inline-block;
  opacity: calc(0.14 + 0.86 * var(--wp, 1));
  transform: translateY(calc((1 - var(--wp, 1)) * 0.22em));
  filter: blur(calc((1 - var(--wp, 1)) * 3px));
}

/* ---------- Play hint ---------- */
.play-hint {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--glass-hi), var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.play-hint.is-shown { opacity: 1; transform: translate(-50%, 0) scale(1); }
.play-hint-dot {
  --pulse: 80 70 229;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

/* narrow phones: the availability pill shrinks to its green dot so the name stays on one line */
@media (max-width: 480px) {
  .status-block .status-line.status-avail { font-size: 0; gap: 0; padding: 6px; }
}

/* ---------- Segmented tabs ----------
   Long sections show one part at a time instead of stacking everything vertically, so
   each section reads in one screen. A single indicator springs between tabs. */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1rem, 2.4vh, 1.6rem);
}
.section-bar .section-index { margin-bottom: 0; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: none;
}
.seg {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--fill);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-tab {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease, transform 100ms ease-out;
}
.seg-tab[aria-selected="true"] { color: var(--ink); }
.seg-tab:active { transform: scale(0.96); }
.seg-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-indicator {
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.1), 0 0 0 1px var(--line-soft);
  pointer-events: none;
}
html:not(.js) .seg-tab[aria-selected="true"] { background: var(--bg-card); }

/* all panels share one grid cell, so the section keeps the height of its tallest
   panel and nothing below jumps when you switch */
.tab-stack { display: grid; }
.tab-panel {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(var(--from, 18px), 0, 0);
  transition: opacity 260ms ease, transform 420ms var(--ease), visibility 0s linear 420ms;
}
.tab-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 380ms ease 80ms, transform 520ms var(--ease) 80ms, visibility 0s;
}
.tab-panel { align-self: start; }
.build-feature-side .build-link { align-self: flex-start; }

/* ---------- Fit each section in one screen (laptop and desktop) ---------- */
@media (min-width: 961px) and (min-height: 640px) {
  .section { padding-block: clamp(48px, 8vh, 104px); }
  .section-index { margin-bottom: clamp(0.6rem, 1.6vh, 1.2rem); }
  .section-head { margin-bottom: clamp(1rem, 2.6vh, 1.8rem); }
  .section-display { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
  .flagship-display { font-size: clamp(3rem, 6vw, 5.4rem); }
  .case-card { min-height: 0; }

  .hero-display .line-1 { font-size: clamp(3.4rem, min(9.5vw, 13vh), 8.5rem); }
  .hero-display .line-2 { font-size: clamp(2.6rem, min(7vw, 9.5vh), 6.2rem); }
  .hero-display { margin-bottom: clamp(0.8rem, 2vh, 1.6rem); }
  .hero-portrait { max-width: min(400px, 46vh); }
  .hero-actions { margin-top: clamp(1rem, 2vh, 1.6rem); }
  .hero-metrics { margin-top: clamp(1.2rem, 3vh, 2.6rem); }
  .hero-metrics div { padding: clamp(0.8rem, 1.8vh, 1.35rem) 1.2rem; }

  .build-feature { padding: clamp(1.3rem, 2.6vh, 1.8rem) 1.7rem; }
  .build-feature h3 { margin: 0.7rem 0 0.5rem; font-size: clamp(1.6rem, 2.4vw, 2rem); }
  .build-feature-main > p { font-size: 0.95rem; line-height: 1.55; }
  .build-feature .build-points { margin-top: 0.8rem; gap: 0.4rem; }
  .build-feature .build-points li { font-size: 0.9rem; line-height: 1.5; }
  .build-feature .build-stats div { padding: 0.7rem 0.8rem; }

  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .lab-feature { grid-column: auto; }
  .lab-feature { padding: 1.3rem 1.4rem; }
  .lab-feature h3 { margin: 0.7rem 0 0.5rem; font-size: clamp(1.3rem, 1.9vw, 1.55rem); }
  .lab-feature > p { font-size: 0.93rem; line-height: 1.55; }
  .lab-flow { margin-top: 0.9rem; gap: 0.4rem; }
  .lab-flow span:not(.lab-flow-arrow) { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .lab-feature .chip-row { padding-top: 0.9rem; gap: 0.35rem; }
  .lab-feature .chip-row span { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
}
/* shorter laptop screens: a slimmer header leaves more room */
@media (min-width: 961px) and (max-height: 820px) {
  :root { --header-h: 84px; }
  .site-header { padding-block: 8px; }
  .status-block { gap: 0; font-size: 0.8rem; }
}

/* ---------- Hover (real pointers only, so taps never leave a stuck state) ---------- */
@media (hover: hover) {
  .nav-links a:hover { color: var(--ink); }
  .status-mail:hover, .status-avail:hover { color: var(--accent); }
  .sheet-row:hover, .carousel-nav button:not(:disabled):hover { border-color: var(--accent); }
  .build-link:hover, .build-card:hover .build-link { gap: 0.5rem; color: var(--ink); }
  .case-card:hover, .lab-item:hover, .leadership-grid article:hover, .pipe-step:hover { border-color: var(--line); }
}
/* movement on hover only where it also signals "clickable" */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .star { transform: rotate(90deg); }
  .button.primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22, 21, 29, 0.24); }
  .button.ghost:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
  .button:hover:active { transform: translateY(-1px) scale(0.97); }
  .build-card:has(.build-link):hover { transform: translateY(-7px); border-color: var(--line); box-shadow: var(--shadow-lift); }
}

/* ---------- Reveal + entrance ---------- */
.hero-rise { opacity: 0; transform: translateY(26px); animation: rise 900ms var(--ease) forwards; }
.hero-rise:nth-child(2) { animation-delay: 90ms; }
.hero-rise:nth-child(3) { animation-delay: 180ms; }
.hero-rise:nth-child(4) { animation-delay: 260ms; }

/* hidden only when JS is running, so the page never ships invisible content */
/* items stand up out of the page in 3D as they scroll in */
.js .reveal-item {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 28px, -30px) rotateX(7deg);
  transform-origin: 50% 100%;
  filter: blur(4px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease), filter 720ms var(--ease);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
/* filter must end at none, not blur(0): any filter on a parent stops child glass from blurring the page */
.js .reveal-item.is-visible { opacity: 1; transform: none; filter: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--pulse) / 0.5); }
  70% { box-shadow: 0 0 0 8px rgb(var(--pulse) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--pulse) / 0); }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Reduced motion: gentle cross-fades instead of movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rise { transform: none; animation: fade 400ms ease forwards; }
  .js .reveal-item { transform: none; filter: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .lc-bar i { transition: none; }
  .ticker-track, .status-dot, .lina-live-dot { animation: none; }
  .tab-panel, .tab-panel.is-active { transform: none; transition: opacity 200ms ease, visibility 0s; }
  .button:active, .nav-links a:active { transform: none; }
  .carousel-dots button { transition: none; }
}

/* ---------- Reduced transparency / more contrast: solid surfaces ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header::after { display: none; }
  .glow { display: none; }
  .case-card, .lab-item, .leadership-grid article, .exp-row, .pipe-step,
  .flagship-metrics div, .hero-metrics, .build-card, .lina-panel, .sheet {
    background: var(--bg-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--line);
  }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(22, 21, 29, 0.45); --line-soft: rgba(22, 21, 29, 0.3); --ink-soft: #33313b; --surface: var(--bg-card); }
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
  .site-header::after { display: none; }
  .nav-links { border-color: var(--line); }
  .case-card, .lab-item, .leadership-grid article, .exp-row, .pipe-step,
  .flagship-metrics div, .hero-metrics, .build-card, .lina-panel, .sheet {
    background: var(--bg-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--line);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 120px; }
  .site-header { grid-template-columns: 1fr auto; row-gap: 0.6rem; }
  .header-right { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; justify-self: start; }
  .hero-body { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 360px; }
  .flagship-head, .flagship-grid, .flagship-intro { grid-template-columns: 1fr; }
  #panel-ih-how .flagship-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-feature .build-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-metrics, .flagship-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid, .lab-grid, .leadership-grid, .pipeline, .build-grid { grid-template-columns: 1fr; }
  .exp-row { grid-template-columns: 1fr; }
  .build-feature { grid-template-columns: 1fr; }
  .build-feature .build-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --header-h: 112px; }
  /* status collapses to the availability dot; the pill scrolls sideways in one row */
  .status-mail, .status-time { display: none; }
  .status-line { font-size: 0.8rem; }
  .nav-links {
    justify-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, #000 85%, transparent);
    mask: linear-gradient(90deg, #000 85%, transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .hero-metrics { grid-template-columns: 1fr; }
  .flagship-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-stats { grid-template-columns: 1fr; }
  .build-feature .build-stats { grid-template-columns: 1fr; }
  .carousel-track > * { flex-basis: 82%; }
  .carousel-hint { display: none; }
  .brand-name { white-space: nowrap; }
  footer { flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.3rem; padding: 18px 0 28px; }
}
