/* ==========================================================================
   ALabs — "Learn AI, with AI" landing page
   Toy-bright palette taken from the logo: teal, navy, yellow, coral on cream.
   ========================================================================== */
:root {
  --cream: #FFF6E5;
  --paper: #FFFDF8;
  --ink: #17254A;
  --ink-soft: #4B587A;
  --teal: #1FA39B;
  --teal-deep: #127A73;
  --yellow: #FFC93C;
  --coral: #FF6F59;
  --sky: #CFEAF2;
  --line: rgba(23, 37, 74, 0.14);
  --display: 'Fredoka', 'Noto Sans SC', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 28px;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); position: relative; }
section { position: relative; }

/* ---------- small shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow.on-dark { color: var(--yellow); }
.eyebrow b { font-weight: 700; opacity: .6; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,111,89,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(255,111,89,0); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1;
  box-shadow: 0 5px 0 rgba(23,37,74,.28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(23,37,74,.24); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(23,37,74,.3); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); box-shadow: 0 5px 0 rgba(0,0,0,.22); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 #C99400; }
.btn-yellow:hover { box-shadow: 0 10px 0 #C99400; }
.btn-sm { padding: 12px 18px; font-size: 15px; box-shadow: 0 3px 0 rgba(23,37,74,.28); }
.btn-xl { padding: 24px 40px; font-size: clamp(19px, 2vw, 24px); }

.logo-mark {
  display: inline-block; width: 40px; height: 40px; border-radius: 50%;
  background: #fff url(logo.jpeg) 50% 23% / auto 165% no-repeat;
  box-shadow: inset 0 0 0 2px rgba(23,37,74,.08);
  flex: none;
}
.logo-mark.big { width: 96px; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--teal); letter-spacing: -.01em; }

/* ---------- preloader ---------- */
#loader { display: none; }
.js #loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--cream); overflow: hidden;
  animation: loaderFailsafe 0s 7s forwards;
}
@keyframes loaderFailsafe { to { visibility: hidden; pointer-events: none; } }
.loader-core { display: grid; justify-items: center; gap: 18px; position: relative; z-index: 5; }
.loader-core .logo-mark { animation: bob 1.1s var(--ease) infinite alternate; }
@keyframes bob { to { transform: translateY(-14px) rotate(6deg); } }
.loader-text { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ring { position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; transform: scale(0); }
.ring.r1 { background: var(--coral); z-index: 6; }
.ring.r2 { background: var(--yellow); z-index: 7; }
.ring.r3 { background: var(--teal); z-index: 8; }
.ring.r4 { background: var(--cream); z-index: 9; }

/* ---------- fixed 3D stage + speech bubble ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.no-webgl #stage, .no-webgl #bubble { display: none; }
.bubble {
  position: fixed; left: 0; top: 0; z-index: 41; pointer-events: none;
  max-width: 220px; padding: 10px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25;
  opacity: 0; transform-origin: 100% 100%;
  box-shadow: 0 10px 30px rgba(23,37,74,.22);
  will-change: transform, opacity;
}
[data-theme="dark"] .bubble { background: var(--cream); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(1240px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  background: rgba(255, 253, 248, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(23,37,74,.10), inset 0 0 0 1px rgba(23,37,74,.06);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translate(-50%, -140%); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--ink); color: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.lang:hover { background: var(--yellow); }

/* ---------- confetti squiggles ---------- */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti svg { position: absolute; width: 46px; height: 20px; overflow: visible; }
.confetti path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1 · hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; }
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 104px var(--pad) clamp(24px, 4vh, 44px);
}
.hero-title, .cta-title {
  margin-top: 14px;
  font-size: clamp(60px, min(15.2vw, 31vh), 260px);
  line-height: .86; text-transform: uppercase; letter-spacing: -.02em;
}
.hero-title .line, .cta-title .line { display: block; white-space: nowrap; }
.line.accent { color: var(--teal); }
.line .ch { display: inline-block; will-change: transform; }
.line .ch.dot { color: var(--coral); }
.line .sp { display: inline-block; width: .26em; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-copy { max-width: 470px; }
.lead { font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.scroll-hint { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.scroll-hint i { width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink); position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--coral); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 60%, 100% { transform: translateY(18px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--ink); color: var(--cream); padding: 18px 0; transform: rotate(-1.2deg) scale(1.03); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 26s linear infinite; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 54px); text-transform: uppercase; line-height: 1; }
.marquee-track b { color: var(--yellow); font-size: .6em; }
.marquee-track span:nth-of-type(5n+2) { color: var(--coral); }
.marquee-track span:nth-of-type(5n+4) { color: #6FDCD3; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ---------- 2 · why ---------- */
.why { padding: clamp(90px, 14vw, 190px) 0 clamp(80px, 10vw, 150px); }
.manifesto {
  margin-top: 26px; max-width: 1040px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 5vw, 70px); line-height: 1.08; letter-spacing: -.01em;
}
.manifesto .w { display: inline-block; opacity: .16; transition: opacity .25s linear; }
.manifesto .w.on { opacity: 1; }
html:not(.js) .manifesto .w { opacity: 1; }

.who { position: relative; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(60px, 9vw, 120px); perspective: 1200px; }
.who-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--r);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 8px 0 rgba(23,37,74,.16);
}
.who-card:hover { box-shadow: 0 22px 40px rgba(23,37,74,.2); }
.who-card.c-yellow { background: var(--yellow); }
.who-card.c-teal { background: var(--teal); color: #fff; }
.who-card.c-coral { background: var(--coral); color: #fff; }
.who-card.c-teal h3, .who-card.c-coral h3 { color: #fff; }
.who-tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.who-card h3 { font-size: clamp(28px, 2.6vw, 38px); margin-top: 6px; }
.who-card p { font-weight: 500; max-width: 26ch; position: relative; z-index: 1; }
.who-big { position: absolute; right: 14px; bottom: -34px; font-family: var(--display); font-weight: 700; font-size: 170px; line-height: 1; opacity: .2; transform: translateZ(30px); pointer-events: none; }

/* ---------- 3 · tracks ---------- */
.tracks { color: #fff; overflow: hidden; padding: 110px 0 90px; }
.tracks-bgword { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 34vh; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none; will-change: transform; }
.tracks-rail { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 26px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tracks-rail::-webkit-scrollbar { display: none; }
.tracks-rail > * { flex: none; scroll-snap-align: center; }
.tracks-intro { width: min(84vw, 520px); display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-right: 20px; }
.tracks-intro h2 { font-size: clamp(46px, 6vw, 92px); color: #fff; }
.tracks-intro p { max-width: 40ch; color: rgba(255,255,255,.86); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.t-ai { background: var(--yellow); } .t-code { background: #FFB3A7; } .t-infra { background: #B8E6F0; }
.tcard {
  width: min(78vw, 340px); min-height: 430px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 0 rgba(8, 50, 47, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tcard header { display: flex; justify-content: space-between; align-items: center; }
.tcard .num { font-family: var(--mono); font-weight: 700; font-size: 13px; opacity: .45; }
.tcard .ico { margin: auto 0 6px; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; font-size: 46px; background: var(--cream); transition: transform .5s var(--ease); }
.tcard[data-tag="ai"] .ico { background: #FFEDB5; }
.tcard[data-tag="code"] .ico { background: #FFD9D2; }
.tcard[data-tag="infra"] .ico { background: #D5F0F6; }
.tcard h3 { font-size: 28px; line-height: 1.05; }
.tcard p { color: var(--ink-soft); font-size: 16px; }
.tcard:nth-of-type(odd) { transform: rotate(-1.6deg) translateY(10px); }
.tcard:nth-of-type(even) { transform: rotate(1.4deg) translateY(-10px); }
.tcard:hover { transform: rotate(0) translateY(-14px); box-shadow: 0 24px 0 rgba(8, 50, 47, .35); }
.tcard:hover .ico { transform: rotate(-10deg) scale(1.12); }
.tracks-end { width: min(80vw, 400px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding-left: 24px; }
.tracks-end h3 { font-size: clamp(34px, 3.4vw, 50px); color: #fff; }
.tracks-end p { color: rgba(255,255,255,.86); font-weight: 500; }

/* desktop: JS pins the section and drives the rail sideways */
.tracks.is-pinned { height: 100vh; padding: 0; display: flex; align-items: center; }
.tracks.is-pinned .tracks-rail { overflow: visible; width: max-content; padding: 0 8vw; scroll-snap-type: none; will-change: transform; }

/* ---------- 4 · lab diorama ---------- */
.lab { height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
#lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lab-card {
  position: absolute; left: var(--pad); bottom: 108px; z-index: 2; width: min(430px, calc(100% - 2 * var(--pad)));
  padding: 26px 28px; border-radius: var(--r);
  background: rgba(255, 253, 248, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(23,37,74,.14), inset 0 0 0 1px rgba(23,37,74,.06);
}
.lab-card h2 { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.05; margin: 12px 0 10px; }
.lab-card p:not(.eyebrow) { color: var(--ink-soft); font-size: 16px; }
.lab-progress { height: 6px; border-radius: 6px; background: rgba(23,37,74,.1); margin-top: 18px; overflow: hidden; }
.lab-progress i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--coral); transform: scaleX(0); transform-origin: 0 50%; }
.lab-tabs { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; z-index: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lab-tabs::-webkit-scrollbar { display: none; }
.lab-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: rgba(255,253,248,.9); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(23,37,74,.08); transition: background .25s, color .25s, transform .25s var(--ease); }
.lab-tab b { font-family: var(--mono); font-size: 11px; opacity: .5; }
.lab-tab:hover { transform: translateY(-2px); }
.lab-tab.active { background: var(--ink); color: var(--cream); }

/* ---------- 5 · how ---------- */
.how { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 130px); }
.how-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.how-head { position: sticky; top: 120px; display: grid; gap: 20px; }
.how-head h2, .faq-head h2 { font-size: clamp(44px, 5.6vw, 86px); }
.how-head p:not(.eyebrow) { max-width: 38ch; font-weight: 500; }
.how .eyebrow { color: var(--ink); }
.how-steps { display: grid; gap: 26px; }
.step {
  position: sticky; top: 120px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 30px; border-radius: var(--r); background: var(--paper);
  box-shadow: 0 10px 0 rgba(23,37,74,.85), 0 30px 60px rgba(23,37,74,.12);
  transform-origin: 50% 0;
}
.step:nth-child(2) { top: 146px; background: #E4F6F4; }
.step:nth-child(3) { top: 172px; background: var(--ink); color: var(--cream); box-shadow: 0 10px 0 rgba(0,0,0,.5); }
.step:nth-child(3) h3 { color: var(--cream); }
.step-n { position: absolute; top: 18px; right: 26px; font-family: var(--display); font-weight: 700; font-size: 110px; line-height: 1; color: var(--coral); }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); max-width: 14ch; }
.step p { max-width: 44ch; opacity: .85; }
.stickers { position: relative; z-index: 45; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; margin: clamp(70px, 9vw, 120px) auto 0; padding: 0 var(--pad); max-width: 1100px; }
.sticker { display: grid; justify-items: center; gap: 2px; padding: 22px 30px; border-radius: 999px; box-shadow: 0 6px 0 rgba(23,37,74,.3); }
.sticker b { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1; }
.sticker i { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sticker:nth-child(odd) { rotate: -5deg; } .sticker:nth-child(even) { rotate: 4deg; }
.s-navy { background: var(--ink); color: var(--cream); } .s-cream { background: var(--paper); }
.s-coral { background: var(--coral); color: #fff; } .s-teal { background: var(--teal-deep); color: #fff; }

/* ---------- 6 · faq ---------- */
.faq { padding: clamp(90px, 12vw, 170px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-head { display: grid; gap: 20px; position: sticky; top: 120px; }
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item:first-child { border-top: 2px solid var(--ink); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.faq-q i { flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease), background .3s; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: var(--cream); }
.faq-q i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq-item.open .faq-q i { background: var(--coral); transform: rotate(180deg); }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 60px 26px 4px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- 7 · cta ---------- */
.cta { min-height: 118vh; color: var(--cream); overflow: hidden; display: flex; justify-content: center; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(110px, 16vh, 180px) var(--pad) 0; gap: 8px; }
.cta-title { font-size: clamp(54px, min(13.4vw, 26vh), 230px); margin-bottom: 30px; color: var(--cream); }
.cta-title .line.accent { color: var(--yellow); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 50; background: var(--ink); color: rgba(255,246,229,.78); padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer p { margin-top: 14px; max-width: 40ch; font-size: 15px; }
.footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; padding: 5px 0; font-weight: 600; font-size: 15px; transition: color .2s, transform .2s; }
.footer-grid a:not(.brand):hover { color: var(--yellow); transform: translateX(4px); }
.footer .brand-name { color: #6FDCD3; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 12px; }

/* ---------- Chinese tweaks ---------- */
html[lang="zh-Hans"] .hero-title, html[lang="zh-Hans"] .cta-title { font-weight: 900; letter-spacing: 0; line-height: 1; }
html[lang="zh-Hans"] .manifesto { line-height: 1.3; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { line-height: 1.15; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .how-grid, .faq-grid { grid-template-columns: 1fr; }
  .how-head, .faq-head { position: static; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero-inner { padding-top: 92px; }
  .hero-title { font-size: clamp(54px, min(17.5vw, 15vh), 150px); }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: none; }
  .scroll-hint { display: none; }
  .lead { font-size: 16px; }
  .btn { padding: 15px 22px; font-size: 16px; }
  .nav .btn-sm { padding: 11px 14px; font-size: 14px; }
  .brand-name { font-size: 21px; }
  .who { grid-template-columns: 1fr; }
  .who-card { min-height: 230px; }
  .step { min-height: 250px; top: 90px; }
  .step:nth-child(2) { top: 108px; } .step:nth-child(3) { top: 126px; }
  .step-n { font-size: 84px; }
  .lab-card { left: 14px; right: 14px; width: auto; bottom: 84px; padding: 18px 20px; }
  .lab-card h2 { font-size: 25px; margin: 8px 0 6px; }
  .lab-card p:not(.eyebrow) { font-size: 14.5px; line-height: 1.45; }
  #lab-canvas { height: 56%; }
  .lab-tabs { left: 14px; right: 14px; bottom: 22px; }
  .lab-tab { padding: 10px 13px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .faq-a p { padding-right: 10px; }
  .bubble { font-size: 13px; padding: 8px 12px; max-width: 170px; }
  .cta { min-height: 112vh; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .dot-live, .scroll-hint i::after, .loader-core .logo-mark { animation: none; }
  .manifesto .w { opacity: 1; transition: none; }
  .tcard, .who-card, .btn { transition: none; }
}
