/* Hydrastack website. Plain CSS, no build step.
   1 Tokens   2 Base   3 Shared pieces   4 Nav   5 Home   6 Team   7 News   8 Footer   9 Motion */

/* ---------- 1 Tokens ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2"); }

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;

  --color-accent-100: #e3f3fb;
  --color-accent-200: #bfe3f5;
  --color-accent-300: #8ccdee;
  --color-accent-400: #3fa9e0;
  --color-accent-800: #1b2b58;
  --color-accent-900: #141f3d;
  --color-accent: var(--color-accent-400);

  --brand-yellow: #f1b81b;
  --brand-orange: #f27521;

  --text-strong: color-mix(in srgb, var(--color-text) 82%, transparent);
  --text-muted: color-mix(in srgb, var(--color-text) 78%, transparent);
  --text-soft: color-mix(in srgb, var(--color-text) 75%, transparent);

  --font: "Montserrat", system-ui, sans-serif;

  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, .55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, .65);

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(64px, 7vw, 104px); /* space above and below every section */

  /* Hairlines: one fades out to the right, one fades at both ends. */
  --rule-fade: linear-gradient(to right, var(--color-neutral-700), transparent);
  /* Section bands: just off the page color, fading to nothing at both sides, with hairlines that fade the same way. */
  --band: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-surface) 22%, transparent) min(18%, 260px), color-mix(in srgb, var(--color-surface) 22%, transparent) calc(100% - min(18%, 260px)), transparent);
  --band-rule: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-text) 5%, transparent) min(18%, 260px), color-mix(in srgb, var(--color-text) 5%, transparent) calc(100% - min(18%, 260px)), transparent);
  --rule-ends: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent);
}

/* ---------- 2 Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--color-text); font: 400 16px/1.55 var(--font); text-wrap: pretty;
  background:
    radial-gradient(1200px 760px at 80% -160px, color-mix(in srgb, var(--color-accent-900) 80%, transparent), transparent 62%),
    radial-gradient(1100px 800px at -10% 100%, color-mix(in srgb, black 30%, transparent), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
p, figure { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent-300); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-200); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
section[id] { scroll-margin-top: 47px; }
#how, #news { scroll-margin-top: 64px; }
.tool[id] { scroll-margin-top: clamp(80px, 22vh, 220px); }
[hidden] { display: none !important; }

/* ---------- 3 Shared pieces ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.line { display: block; }
.nb { white-space: nowrap; }
.tnum { font-feature-settings: "tnum" 1; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 18px; border-radius: var(--radius-md); background: var(--color-accent-300); color: var(--color-accent-900); font-weight: 600; transform: translateY(-200%); }
.skip:hover { color: var(--color-accent-900); }
.skip:focus { transform: none; }
main:focus-visible { outline: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-300); }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--color-accent); }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; }
.lede { font-size: 16px; line-height: 1.6; max-width: 56ch; color: var(--text-muted); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.sec-head .stack { flex: 1 1 0; min-width: min(100%, 420px); } /* heading wraps before the link drops */
.more { font-size: 16px; font-weight: 600; letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font: 500 14px/1.2 var(--font); color: var(--color-text); background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-md); padding: 5.6px 10px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: 2.8px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-solid { padding: 14px 24px; font-size: 16px; font-weight: 600; color: var(--color-accent-900); background: var(--color-accent); }
.btn-solid:hover { color: var(--color-accent-900); background: var(--color-accent-300); border-color: var(--color-accent-300); }

.card { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
a.card, a.card:hover { color: var(--color-text); }

.tag { display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .02em; padding: 3px 10px; border-radius: 6px; }
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag-past { border: 1px solid var(--color-accent); color: var(--color-accent); font-size: 14px; font-weight: 500; letter-spacing: .01em; padding: 8px 16px; border-radius: var(--radius-md); }

.pause { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--color-text); background: transparent; }
.pause:hover { background: color-mix(in srgb, var(--color-accent) 16%, transparent); }
.pause .i-play, .pause.paused .i-pause { display: none; }
.pause.paused .i-play { display: inline; }

/* Finger-sized targets on phones and touch screens */
@media (max-width: 760px), (pointer: coarse) {
  .btn, .more, .foot a, .demo-copy > a, .seg button { min-height: 44px; }
  .more, .foot a, .demo-copy > a { display: inline-flex; align-items: center; }
  .foot-grid > div { gap: 0; }
  .btn-ghost { padding-inline: 10px; }
  .faq summary { min-height: 44px; }
  .nav-brand { min-height: 44px; }
}

/* ---------- 4 Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  padding: 8.4px max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); /* lines up with .wrap */
  backdrop-filter: blur(12px); background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .25s, background-color .25s;
}
.nav.stuck { background: color-mix(in srgb, var(--color-bg) 88%, transparent); box-shadow: 0 1px 0 var(--color-divider); }
.nav a { color: inherit; font-size: 14px; }
.nav a { transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--color-accent); }
.nav-brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.nav-brand img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 4.2vw - 18px, 36px); }
.nav-links a, .nav .btn { white-space: nowrap; }
.nav .btn { margin-left: clamp(8px, 1.5vw, 20px); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-text); cursor: pointer;
}
.nav-toggle:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.nav-toggle .x, .nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: inline; }
.nav-menu {
  position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; padding: 8px var(--gutter) 20px;
  background: color-mix(in srgb, var(--color-bg) 96%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider); box-shadow: var(--shadow-md);
}
.nav .nav-menu a { padding: 14px 0; font-size: 17px; color: var(--color-text); }
.nav .nav-menu a + a { border-top: 1px solid var(--color-divider); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle, .nav-menu { display: flex; }
}
@media (max-width: 420px) { .nav-brand img { height: 22px; } }
@media (max-width: 359px) { .nav { gap: 6px; } .nav-brand img { height: 18px; } .nav .btn { margin-left: 0; } }

/* ---------- 5 Home ---------- */
/* Bands: every other topic sits on a slightly lighter ground */
.band, .stats { background: var(--band-rule) no-repeat top / 100% 1px, var(--band-rule) no-repeat bottom / 100% 1px, var(--band); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 72px clamp(24px, 4vw, 64px); padding: clamp(56px, 9vw, 120px) 0 clamp(16px, 2vw, 28px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; flex: 3 1 380px; min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.8vw, 64px); line-height: 1.06; letter-spacing: -.025em; margin-left: -.05em; }
.hero h1 .line { white-space: nowrap; }
.hero-lede { font-size: 18px; line-height: 1.6; max-width: 48ch; color: var(--text-strong); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12.8px; }
.hero-art { position: relative; flex: 2 1 300px; min-width: 0; aspect-ratio: 1; max-height: 560px; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 50%; filter: blur(24px); background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 30%, transparent), transparent); }
.hero-cab { position: absolute; left: 4%; bottom: 0; height: 100%; width: auto; max-width: 84%; object-fit: contain; object-position: left bottom; transform: scale(1.12); transform-origin: left bottom; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.hero-phone { position: absolute; right: 2%; bottom: 2%; height: 58%; width: auto; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px color-mix(in srgb, var(--color-accent) 35%, transparent)); }

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 32px; margin: 0; padding: 0 0 var(--section); list-style: none; }
.channels li { display: flex; flex-direction: column; gap: 16px; }
.channels svg { display: block; width: 36px; height: 36px; color: var(--color-accent); }
.channels div { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; background: var(--rule-fade) no-repeat top / 100% 1px; }
.channels strong { font-size: 16px; font-weight: 500; }
.channels span { font-size: 14px; color: var(--text-muted); }

@media (max-width: 359px) { .hero h1 { font-size: 28px; } }

/* Latest news */
.home-news { display: flex; flex-direction: column; gap: 32px; padding-bottom: var(--section); }
.news-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; min-height: 134px; }
.news-cards .card { padding: 16px; gap: 8px; }
.news-cards .meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.news-cards h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.news-cards p { font-size: 14px; line-height: 1.5; color: var(--text-soft); }

/* Supported by */
.backers { background: var(--rule-ends) no-repeat top / 100% 1px; }
.backers .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 4vw, 56px); padding-block: 28px; }
.backers h2 { flex: none; font-size: 18px; font-weight: 500; line-height: 1.55; letter-spacing: .06em; text-transform: uppercase; }
.marquee-row { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.marquee-row .pause { flex: none; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent); }
.track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 32s linear infinite; }
.marquee:hover .track, .track.paused { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.logo { flex: none; width: 180px; height: 64px; padding: 10px 16px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-100); }
.logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.logo-fill { padding: 0; background: none; }
.logo-fill img { object-fit: cover; mix-blend-mode: normal; }
.logo-dark { padding: 12px 16px; background: var(--color-neutral-800); border: 1px solid var(--color-neutral-700); }
.logo-dark img { mix-blend-mode: normal; }
.logo-plain { padding: 0; background: #fff; } /* artwork as supplied: its own border and clear space */
.logo-plain img { mix-blend-mode: normal; }

/* What we do */
.what { display: flex; flex-direction: column; gap: 40px; padding: var(--section) 0; }
.what .lede { max-width: 54ch; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.offers .card { justify-content: space-between; gap: 12px; min-height: 200px; padding: 28px 24px; }
.offers .card div { display: flex; flex-direction: column; gap: 10px; }
.offers h3 { font-size: 22px; }
.offers p { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.offers .cta { font-size: 14px; color: var(--color-accent-300); }

/* Porting */
.porting { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(32px, 5vw, 72px); padding: var(--section) 0; }
.porting-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.porting h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin-left: -.04em; }
.porting h2 .line { text-wrap: wrap; }
.porting p { font-size: 18px; line-height: 1.6; max-width: 56ch; color: var(--text-muted); }
.porting .ai-note { font-size: 16px; padding-left: 18px; border-left: 2px solid var(--color-accent); }
.porting figure { flex: 1 1 340px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.porting video { width: 100%; aspect-ratio: 1280 / 812; object-fit: cover; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-divider), 0 0 48px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.player { position: relative; }
.player .pause { position: absolute; right: 12px; bottom: 12px; background: color-mix(in srgb, var(--color-bg) 78%, transparent); }
.player .pause:hover { background: var(--color-bg); }
.porting figcaption { font-size: 14px; color: var(--text-muted); }

/* How it works: flow diagram driven by a four-step timeline */
.how-main { display: flex; flex-direction: column; gap: 24px; padding: 12px 0 24px; }
.how.pinned .how-inner { position: sticky; top: calc(56px - var(--lift, 0px)); transition: top .9s cubic-bezier(.2, .7, .2, 1); }
.how.scrubbing :is(.rail i, .core-bar i) { transition-duration: .12s; }
.how-board { position: relative; }
.how-board .pause { position: absolute; right: 10px; bottom: 10px; }
.how-board { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(20px, 2.4vw, 30px); background: radial-gradient(circle, color-mix(in srgb, var(--color-neutral-800) 70%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--color-surface); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, .5fr) minmax(0, 1.15fr) minmax(60px, .7fr) minmax(0, 1.1fr); align-items: center; }
.node { border: 1px solid var(--color-neutral-700); border-radius: var(--radius-md); background: var(--color-bg); color: var(--text-muted); font-size: 14px; transition: border-color .4s, box-shadow .4s, color .4s; }
.node strong { display: block; font-size: 16px; font-weight: 600; color: var(--color-text); }
.node.on { border-color: var(--color-accent); }
.source { padding: 20px; }
.core { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.core.on { box-shadow: 0 0 36px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.core-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--color-text); }
.core-name img { width: 22px; height: 22px; }
.core-status { font-size: 14px; font-weight: 600; color: var(--color-accent-300); }
.core-bar { height: 4px; border-radius: 2px; overflow: hidden; background: var(--color-neutral-800); }
.core-bar i { display: block; height: 100%; width: calc((var(--step, 3) + 1) * 25%); background: var(--color-accent); transition: width .6s ease; }
.core-note { font-size: 14px; }
.chans { display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; }
.chan { display: flex; align-items: center; gap: 14px; margin: 4px 0; padding: 9px 16px; line-height: 1.35; }
.chan svg { flex: none; width: 28px; height: 28px; color: var(--color-neutral-600); transition: color .4s; }
.chan.on svg { color: var(--color-accent); }
.chan.on { transition-delay: var(--d, 0s); }
.chan:nth-child(2) { --d: .15s; } .chan:nth-child(3) { --d: .3s; } .chan:nth-child(4) { --d: .45s; }
.link { width: 100%; height: 100%; align-self: stretch; overflow: visible; }
.link path { fill: none; stroke: var(--color-neutral-700); stroke-width: 2; vector-effect: non-scaling-stroke; }
.link .run { stroke: var(--color-accent); stroke-dasharray: 4 8; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
.how-board:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .link-in .run, .how-board[data-step="3"] .link-out .run { opacity: 1; }

.steps-wrap { position: relative; margin-top: clamp(24px, 2.6vw, 34px); }
.rail { position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 4px; border-radius: 2px; background: var(--color-neutral-800); }
.rail i { display: block; height: 100%; width: calc(var(--step, 3) / 3 * 100%); border-radius: 2px; background: linear-gradient(to right, var(--color-accent-300), var(--color-accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 70%, transparent); transition: width .6s ease; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
.step { color: var(--text-muted); }
.step button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; justify-items: center; grid-template-columns: 1fr; gap: 6px; padding-bottom: 6px; border-radius: var(--radius-md); }
.step button:focus-visible { outline: 2px solid var(--color-accent-200); outline-offset: 2px; }
.step .dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--color-neutral-600); background: var(--color-surface); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.step .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--color-neutral-600); transition: background-color .3s, transform .3s; }
.step.on .dot { border-color: var(--color-accent); }
.step.on .dot::after { background: var(--color-accent); }
.step.cur .dot { background: var(--color-accent-900); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-accent) 22%, transparent), 0 0 24px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.step.cur .dot::after { background: var(--color-accent-200); transform: scale(1.25); }
@media (hover: hover) { .step button:hover .dot { border-color: var(--color-accent-200); } .step button:hover strong { color: var(--color-accent-200); } }
.step .n { font-size: 14px; color: var(--color-accent); }
.step strong { font-size: 18px; font-weight: 600; transition: color .3s; }
.step.cur strong { color: var(--color-text); }
.step p { max-width: 24ch; margin: 0 auto; font-size: 14px; line-height: 1.5; }
.step.cur p { color: var(--color-text); }
@media (prefers-reduced-motion: no-preference) {
  .link .run { animation: dash 1s linear infinite; }
  .how-board.still .run { animation-play-state: paused; }
  @keyframes dash { to { stroke-dashoffset: -24; } }
}
@media (max-width: 820px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .link { width: 2px; height: 32px; justify-self: center; align-self: auto; background: var(--color-neutral-700); }
  .link path { display: none; }
  .how-board .link-in, .how-board[data-step="3"] .link-out { background: var(--color-accent); }
  .chans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chan { margin: 0; padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .rail { left: 17px; right: auto; top: 20px; bottom: 60px; width: 4px; height: auto; }
  .rail i { width: 100%; height: calc(var(--step, 3) / 3 * 100%); transition: height .6s ease; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: left; }
  .step button { grid-template-columns: 38px auto 1fr; justify-items: start; align-items: center; gap: 12px; min-height: 44px; padding: 0; }
  .step p { max-width: none; margin-left: 50px; }
  .step:last-child p { padding-right: 40px; } /* room for the pause button */
}

/* Porting time (as in the redesign export, plus the slide-up) */
.timeline { padding: clamp(32px, 4vw, 56px) 0 var(--section); }
.tl { display: flex; flex-direction: column; gap: 36px; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.timeline.await .tl { opacity: 0; transform: translateY(120px); }
.tl-row { display: flex; flex-direction: column; gap: 12px; }
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.tl-head b { font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.tl-hs .tl-head { color: var(--color-accent); }
.tl-hs .tl-head b { color: var(--color-text); }
.tl-bar { height: 10px; border-radius: 5px; background: linear-gradient(to right, var(--color-neutral-600), var(--color-neutral-700) 66%, color-mix(in srgb, var(--color-neutral-700) 30%, transparent)); }
.tl-hs .tl-bar { background: color-mix(in srgb, var(--color-neutral-800) 60%, transparent); }
.tl-hs .tl-bar::before { content: ""; display: block; height: 100%; width: max(13%, 64px); border-radius: 5px; background: linear-gradient(to right, var(--color-accent-300), var(--color-accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 80%, transparent), 0 0 32px color-mix(in srgb, var(--color-accent) 50%, transparent), 0 0 64px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.tl-scale { display: flex; justify-content: space-between; margin-top: -16px; font-size: 15px; font-weight: 500; color: color-mix(in srgb, var(--color-text) 72%, transparent); }

/* Sections that slide up after How it works */
.rise { transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.rise.await { opacity: 0; transform: translateY(90px); }

/* Stats */
.stats { padding: clamp(40px, 5vw, 64px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 48px; overflow: hidden; }
.stat { position: relative; display: flex; flex-direction: column; gap: 12px; color: var(--text-muted); }
.stat::before { content: ""; position: absolute; left: -24px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--color-neutral-600) 20%, var(--color-neutral-600) 80%, transparent); }
.stat .num { font-size: clamp(40px, 4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--color-text); }
.stat .label { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.stat .body { font-size: 16px; line-height: 1.55; max-width: 32ch; }
.stat.hot, .stat.hot .num { color: var(--brand-yellow); }

.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(48px, 5vw, 64px) 0; }

/* Platform */
.platform { display: flex; flex-direction: column; gap: 40px; padding: var(--section) 0; }
.tools { display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-radius: var(--radius-lg); overflow: clip; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.tool { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; box-shadow: inset -1px -1px 0 var(--color-divider); transition: background-color .15s, box-shadow .15s; }
@media (hover: hover) { .tool:hover { border-radius: var(--radius-lg); background: color-mix(in srgb, black 22%, var(--color-surface)); box-shadow: inset 0 0 0 1px var(--color-accent); } }
.mark { display: block; overflow: visible; color: #fff; margin-bottom: 16px; } /* 16px + 8px gap keeps the marks' clear space */
.tool h3 { font-size: 14px; font-weight: 400; line-height: 1.55; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.tool button { all: unset; cursor: pointer; }
.tool button::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); } /* whole cell is clickable */
.tool button:focus-visible::after { outline: 2px solid var(--color-accent-200); outline-offset: -3px; }
.tool::after { content: "+"; position: absolute; top: 22px; right: 24px; font-size: 22px; line-height: 1; color: var(--color-accent); pointer-events: none; }
.tool.open::after { content: "\2212"; }
.tool.open { background: color-mix(in srgb, black 22%, var(--color-surface)); box-shadow: inset 0 2px 0 var(--color-accent), inset -1px 0 0 var(--color-divider); }
.tool-more { grid-column: 1 / -1; padding: 28px 24px; background: color-mix(in srgb, black 22%, var(--color-surface)); box-shadow: inset 0 -1px 0 var(--color-divider), inset 0 1px 0 var(--color-divider); }
.js .tool-more:not(.open) { display: none; }
.tool-more > p { font-size: 18px; font-weight: 500; line-height: 1.5; margin-bottom: 16px; }
.tool-more ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.tool-more li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: var(--text-strong); }
.tool-more li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) { .js .tool-more.open { animation: more-in .28s ease-out; } }
@keyframes more-in { from { opacity: 0; transform: translateY(-8px); } }
.tool p { font-size: 16px; line-height: 1.6; color: var(--text-strong); }

/* Compliance */
.compliance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px clamp(24px, 5vw, 80px); align-items: start; padding: var(--section) 0; }
.compliance .lede { max-width: 40ch; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; background: var(--rule-fade) no-repeat top / 100% 1px; }
.checks h3 { font-size: 18px; }
.checks p { font-size: 16px; line-height: 1.55; color: var(--text-soft); }

/* Team strip */
.home-team { display: flex; flex-direction: column; gap: 32px; padding: var(--section) 0; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 40px; }
.person, .person:hover { display: flex; align-items: center; gap: 16px; padding-top: 20px; color: var(--color-text); background: var(--rule-fade) no-repeat top / 100% 1px; }
.person img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; mix-blend-mode: lighten; }
.person span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--color-accent-300); }
.person strong { font-size: 18px; font-weight: 500; color: var(--color-text); }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(24px, 5vw, 80px); padding: var(--section) 0; }
.faq > .stack { flex: 1 1 340px; }
.faq-list { flex: 2 1 460px; min-width: 0; }
.faq details { background: var(--rule-fade) no-repeat top / 100% 1px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-accent-200); }
.faq summary::after { content: "+"; flex: none; font-size: 20px; color: var(--color-accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; max-width: 60ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

/* Demo form */
.demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px clamp(24px, 5vw, 80px); align-items: start; padding: var(--section) 0; }
.demo-copy { display: flex; flex-direction: column; gap: 24px; }
.demo h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin-left: -.04em; }
.demo .lede { max-width: 44ch; }
.demo form { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.demo .input { background: var(--color-bg); }
.demo form > .btn { align-self: flex-start; margin-top: 6px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.input { display: block; width: 100%; min-height: 36px; padding: 6px 10px; font: 400 16px/1.55 var(--font); color: var(--color-text); caret-color: var(--color-accent); background: var(--color-surface); border: 1px solid #7f8396; border-radius: var(--radius-md); } /* 3:1 or better against the page and the field */
.input:hover { border-color: var(--color-text); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.input::placeholder { color: color-mix(in srgb, var(--color-text) 55%, transparent); opacity: 1; }
@media (max-width: 760px), (pointer: coarse) { .input { min-height: 44px; } } /* text stays 16px so iOS doesn't zoom in on focus */
textarea.input { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--color-accent-200); }
.form-status.err { color: var(--brand-yellow); }

/* ---------- 6 Team ---------- */
.page-head { display: flex; flex-direction: column; gap: 24px; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.06; letter-spacing: -.025em; margin-left: -.05em; }
.page-head p { font-size: 18px; line-height: 1.6; max-width: 52ch; color: var(--text-strong); }
.bios { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.bio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px clamp(24px, 5vw, 80px); align-items: start; padding-top: 40px; background: var(--rule-fade) no-repeat top / 100% 1px; }
.bio-id { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.bio-id img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius-md); mix-blend-mode: lighten; }
.bio-id h2 { font-size: 28px; letter-spacing: -.01em; margin-bottom: 4px; }
.bio-id p { font-size: 20px; font-weight: 500; color: var(--color-accent-300); }
.bio-text { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.bio-text p { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.bio-text p.lead { font-size: 20px; line-height: 1.5; color: var(--color-text); }
.past { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 8px 0 0; list-style: none; }
.talk { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: clamp(72px, 9vw, 120px); }

/* ---------- 7 News ---------- */
.page-head.news-head { padding-bottom: clamp(40px, 5vw, 64px); }
.seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; max-width: 100%; margin-top: 8px; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.seg button { padding: 7px 12px; border: 0; background: transparent; color: var(--color-text); font: 400 14px/1.55 var(--font); cursor: pointer; }
.seg button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg button[aria-pressed="true"] { color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 14%, transparent); }
.seg button:focus-visible { outline-offset: -2px; }
.news-list { display: flex; flex-direction: column; padding-bottom: clamp(72px, 9vw, 120px); min-height: 60vh; }
.post { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px clamp(24px, 5vw, 80px); padding: 32px 0; background: var(--rule-fade) no-repeat top / 100% 1px; }
.post-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-body { grid-column: span 2; max-width: 64ch; display: flex; flex-direction: column; gap: 10px; }
.post-body h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; }
.post-body p { font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.tile { display: flex; align-items: center; justify-content: center; width: 148px; height: 84px; margin-bottom: 6px; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile-light, .tile-dark { padding: 14px 18px; }
.tile-light { background: var(--color-neutral-100); }
.tile-light img { mix-blend-mode: multiply; }
.tile-cover img { object-fit: cover; }
.tile-icon { width: 104px; height: 64px; background: var(--color-accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tile svg { color: var(--color-accent); }
@media (max-width: 640px) { .post-body { grid-column: auto; } }

/* ---------- 8 Footer ---------- */
.foot { background: var(--rule-ends) no-repeat top / 100% 1px; color: var(--text-muted); }
.foot img { height: 26px; width: auto; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; padding-block: 48px; font-size: 14px; }
.foot-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-grid > div:first-child { gap: 12px; }
.foot-grid h2 { font-size: 14px; font-weight: 400; line-height: 1.55; letter-spacing: .08em; text-transform: uppercase; }
.foot-legal { padding-bottom: 40px; font-size: 14px; }
.foot-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 32px 48px; font-size: 14px; }

/* ---------- 9 Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; flex-wrap: wrap; width: auto; }
  .track .dup { display: none; }
}
