/* Fonts are served from this site (static/assets/fonts) so the first paint does not wait on other servers.
   Latin subsets of Manrope (variable, 400 to 700) and Barlow Condensed 600. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Phosphor icons (MIT), cut down to the icons the site uses. The two font files in static/assets/fonts
   only contain these glyphs, so a new icon needs the fonts and these rules rebuilt.
   See tools/subset-icons.py. */
@font-face { font-family: "Phosphor"; src: url("/assets/fonts/phosphor-subset.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
.ph { font-family: "Phosphor" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph.ph-address-book::before { content: "\e6f8"; }
.ph.ph-arrow-circle-up::before { content: "\e030"; }
.ph.ph-arrow-counter-clockwise::before { content: "\e038"; }
.ph.ph-arrow-right::before { content: "\e06c"; }
.ph.ph-arrows-clockwise::before { content: "\e094"; }
.ph.ph-book-open-text::before { content: "\e8f2"; }
.ph.ph-briefcase::before { content: "\e0ee"; }
.ph.ph-buildings::before { content: "\e102"; }
.ph.ph-calendar-check::before { content: "\e712"; }
.ph.ph-chart-line-up::before { content: "\e156"; }
.ph.ph-chat-circle-dots::before { content: "\e16c"; }
.ph.ph-chat-teardrop-text::before { content: "\e178"; }
.ph.ph-chats-circle::before { content: "\e17e"; }
.ph.ph-check::before { content: "\e182"; }
.ph.ph-database::before { content: "\e1de"; }
.ph.ph-envelope-simple::before { content: "\e218"; }
.ph.ph-file-text::before { content: "\e23a"; }
.ph.ph-headset::before { content: "\e584"; }
.ph.ph-heartbeat::before { content: "\e2ac"; }
.ph.ph-house-line::before { content: "\e2c4"; }
.ph.ph-key::before { content: "\e2d6"; }
.ph.ph-lock-simple::before { content: "\e308"; }
.ph.ph-magnifying-glass::before { content: "\e30c"; }
.ph.ph-map-trifold::before { content: "\e31a"; }
.ph.ph-megaphone::before { content: "\e324"; }
.ph.ph-notepad::before { content: "\e63e"; }
.ph.ph-pause::before { content: "\e39e"; }
.ph.ph-phone::before { content: "\e3b8"; }
.ph.ph-phone-call::before { content: "\e3ba"; }
.ph.ph-play::before { content: "\e3d0"; }
.ph.ph-plus::before { content: "\e3d4"; }
.ph.ph-puzzle-piece::before { content: "\e596"; }
.ph.ph-receipt::before { content: "\e3ec"; }
.ph.ph-rocket-launch::before { content: "\e3fe"; }
.ph.ph-scales::before { content: "\e750"; }
.ph.ph-sliders-horizontal::before { content: "\e434"; }
.ph.ph-star::before { content: "\e46a"; }
.ph.ph-storefront::before { content: "\e470"; }
.ph.ph-user-plus::before { content: "\e4d0"; }
.ph.ph-users-three::before { content: "\e68e"; }
.ph.ph-wrench::before { content: "\e5d4"; }
@font-face { font-family: "Phosphor-Fill"; src: url("/assets/fonts/phosphor-fill-subset.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
.ph-fill { font-family: "Phosphor-Fill" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph-fill.ph-asterisk::before { content: "\e0aa"; }
.ph-fill.ph-check-circle::before { content: "\e184"; }

/* Brand tokens follow the TMS Astra site: dark only, charcoal surfaces, badge cyan accent,
   Barlow Condensed display type and Manrope body type.
   Radius rule: containers 16px, small blocks and inputs 10px, interactive controls are pills. */
:root {
  --bg: #101112;
  --surface: #18191a;
  --surface-2: #232526;
  --band: #151617;
  --ink: #f5f5ef;
  --muted: #b3b4b4;
  --line: #2c2e30;
  --line-strong: #6c7072;
  --accent: #20b1da;
  --accent-text: #3cbde3;
  --on-accent: #101112;
  --accent-soft: #0f2a33;
  --mark: rgb(32 177 218 / .32);
  --feature-bg: #1d1e1f;
  --feature-ink: #f5f5ef;
  --feature-muted: #b3b4b4;
  --feature-line: #333537;
  --error: #ff8a7a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 24px 48px -24px rgb(0 0 0 / .75);
  --r-lg: 16px;
  --r-sm: 10px;
  --pill: 999px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1, h2, .track h3, .care-title, .emp h3, .since strong {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: .92;
}
p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
section { padding-block: clamp(72px, 10vw, 128px); }
h2 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); }
.lede { color: var(--muted); font-size: 1.1875rem; line-height: 1.55; max-width: 50ch; text-wrap: pretty; }
.head .lede { margin-top: 20px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { left: 8px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: var(--pill);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background-color .2s, translate .5s var(--ease);
  translate: var(--tx, 0px) var(--ty, 0px);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary i { transition: transform .25s var(--ease); }
.btn-primary:hover i { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9375rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--accent-text); white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Shared chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; border-radius: var(--pill);
  padding: 8px 14px; font-size: .875rem; line-height: 1.3; text-align: left;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease);
}
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip:active:not(:disabled) { transform: scale(.98); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 10px; white-space: nowrap; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; }
.footer .brand img { height: 46px; }
.brand-ai { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; line-height: 1; padding: 5px 8px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); }
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .9375rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
  min-height: calc(100dvh - var(--nav-h) - 128px);
}
.hero h1 { font-size: clamp(3.25rem, 5.8vw, 5.25rem); line-height: .9; }
.hero .lede { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
}

/* Hero explorer */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-title { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.panel-sub { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.ex-body { padding: 20px 22px 8px; }
.ex-label { font-size: .875rem; color: var(--muted); margin-top: 22px; }
.ex-label strong { color: var(--ink); font-weight: 600; }
.ex-list { list-style: none; margin: 6px 0 0; padding: 0; min-height: 252px; }
.ex-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: baseline; padding-block: 13px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; }
.ex-list li:first-child { border-top: 0; }
.ex-area { font-family: var(--mono); font-size: .75rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.panel-foot p { font-size: .875rem; color: var(--muted); max-width: 30ch; }
@media (max-width: 640px) {
  .panel-head .tag { display: none; }
  .ex-list { min-height: 0; }
  .ex-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Problem statement */
.statement { font-size: clamp(1.75rem, 3.5vw, 2.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.18; max-width: 30ch; text-wrap: pretty; }
.statement mark { color: inherit; padding: 0 .06em; background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 90% / 100% 42%; }
.statement-after { margin-top: 32px; }

/* Use cases */
.uc-grid {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.uc { background: var(--surface); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 8px; transition: background-color .25s; }
.uc:hover { background-color: var(--bg); }
.uc i { font-size: 1.6rem; color: var(--accent-text); margin-bottom: 12px; }
.uc h3 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.25; }
.uc p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 1100px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uc-grid { grid-template-columns: 1fr; } .uc { padding: 22px 20px 24px; } }

/* AI employees */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.emp { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.emp-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; letter-spacing: -0.04em; font-size: 1.25rem; background: var(--accent-soft); color: var(--accent-text); }
.emp h3 { font-size: 2rem; }
.emp-role { font-size: .875rem; color: var(--muted); margin-top: 2px; }
.emp-desc { color: var(--muted); margin-top: 12px; }
.emp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.skill-tags li { font-family: var(--mono); font-size: .75rem; padding: 4px 10px; border-radius: var(--pill); background: var(--surface-2); }
.emp-tools { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--muted); }
.emp-tools img { width: 18px; height: 18px; }
.team-more { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.team-more > i { font-size: 1.75rem; color: var(--accent-text); }
.team-more p { flex: 1 1 320px; color: var(--muted); }
.team-more strong { color: var(--ink); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .emp { grid-template-columns: 1fr; padding: 24px; } }

/* Split sections (business context, skills) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split .lede { margin-top: 22px; }
.sources { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.sources i { color: var(--accent-text); font-size: 1.1rem; }
.fine { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .95rem; margin-top: 24px; }
.fine i { color: var(--accent-text); font-size: 1.15rem; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks i { color: var(--accent-text); font-size: 1.25rem; margin-top: 2px; flex: none; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split .visual-first { order: 2; }
}

/* Ask your business chat */
.chat-log { height: 344px; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: var(--r-lg); font-size: .95rem; line-height: 1.5; }
.msg-ai { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; margin-top: 6px; }
.cites { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; }
.cite { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 10px; background: var(--bg); }
.cite i { color: var(--accent-text); font-size: .9rem; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 15px 16px; background: var(--surface-2); border-radius: var(--r-lg); border-bottom-left-radius: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .35; }
.chat-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.chat-label { font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.chat-foot .chips { min-height: 92px; align-content: flex-start; }
.chip-reset { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .chat-log { height: 320px; } .chat-foot .chips { min-height: 0; } }

/* Skills (SOP viewer) */
.skill-pick { margin-bottom: 14px; }
.sop-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sop-icon { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: 1.4rem; }
.sop-steps { list-style: none; counter-reset: step; margin: 0; padding: 8px 24px; min-height: 318px; }
.sop-steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: .98rem; line-height: 1.45; }
.sop-steps li:first-child { border-top: 0; }
.sop-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; background: var(--surface-2); }
.sop-foot { display: flex; gap: 10px; align-items: center; padding: 14px 24px; background: var(--bg); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.sop-foot i { color: var(--accent-text); font-size: 1rem; }
@media (max-width: 640px) { .sop-steps { min-height: 0; } }

/* Every step of the way */
.track { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.track li { position: relative; padding-top: 72px; }
.t-icon { position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 1.4rem; color: var(--accent-text); }
.track li::before { content: ""; position: absolute; top: 26px; left: 64px; right: -12px; height: 1px; background: var(--line-strong); }
.track li:last-child::before { display: none; }
.track h3 { font-size: 2.25rem; }
.track p { color: var(--muted); margin-top: 8px; font-size: 1rem; max-width: 34ch; }
.care {
  margin-top: 72px; background: var(--feature-bg); color: var(--feature-ink); border: 1px solid var(--feature-line);
  border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 64px); align-items: start;
}
.care-title { font-size: clamp(2.25rem, 4vw, 3.5rem); max-width: 16ch; }
.care-lede { color: var(--feature-muted); margin-top: 14px; max-width: 48ch; }
.care-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; margin-top: 38px; }
.care-item i { font-size: 1.6rem; color: var(--accent); }
.care-item h4 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.3; margin: 12px 0 6px; }
.care-item p { color: var(--feature-muted); font-size: .975rem; }
.timeline { border: 1px solid var(--feature-line); border-radius: var(--r-lg); padding: 24px; background: color-mix(in srgb, var(--feature-ink) 4%, transparent); }
.tl-label { font-family: var(--mono); font-size: .75rem; color: var(--feature-muted); text-transform: uppercase; letter-spacing: .06em; }
.tl { list-style: none; margin: 18px 0 0; padding: 0; }
.tl li { position: relative; padding: 0 0 20px 28px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl li::after { content: ""; position: absolute; left: 8.5px; top: 21px; bottom: 2px; width: 1px; background: var(--feature-line); }
.tl li:last-child::after { display: none; }
.tl-when { display: block; font-family: var(--mono); font-size: .75rem; color: var(--feature-muted); }
.tl-what { font-size: .95rem; line-height: 1.45; }
@media (max-width: 960px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .track li::before { display: none; }
  .care { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .track { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr; }
}

/* Questions owners bring us */
.questions { background: var(--band); }
.qcloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.q {
  display: inline-flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 20px 14px 16px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: clamp(1rem, 1.35vw, 1.125rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease);
}
.q i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); font-size: .95rem; transition: transform .3s var(--ease), background-color .2s; }
.q:hover { border-color: var(--ink); transform: translateY(-1px); }
.q:active { transform: scale(.98); }
.q[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.q[aria-pressed="true"] i { background: var(--accent); color: var(--on-accent); }
.qbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; min-height: 50px; }
.qbar p { color: var(--muted); }
.qbar strong { color: var(--ink); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.photo-slot {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  background: var(--surface);
}
.photo-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 12%; border-radius: calc(var(--r-lg) - 1px);
}
.about .lede { margin-top: 22px; }
.since { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.since strong { font-size: clamp(4rem, 8vw, 6rem); }
.since span { color: var(--muted); max-width: 20ch; line-height: 1.4; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.principle h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; display: flex; gap: 10px; align-items: center; }
.principle h3 i { color: var(--accent-text); font-size: 1.3rem; }
.principle p { color: var(--muted); margin-top: 8px; font-size: 1rem; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-slot { max-width: 360px; aspect-ratio: 1; }
}
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-list { margin-top: 44px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; font-size: 1.25rem; color: var(--muted); transition: transform .35s var(--ease); }
.qa summary:hover i { color: var(--ink); }
.qa[open] summary i { transform: rotate(45deg); }
.qa p { color: var(--muted); padding-bottom: 26px; max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); max-width: 14ch; }
.contact .lede { margin-top: 22px; }
.contact-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 12px; align-items: center; }
.contact-points i { color: var(--accent-text); font-size: 1.25rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .9375rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg);
  padding: 12px 14px; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); }
.field .err { color: var(--error); font-size: .875rem; display: none; }
.field.invalid input { border-color: var(--error); }
.field.invalid .err { display: block; }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form-error { color: var(--error); font-size: .9375rem; }
.form-error a { color: inherit; text-decoration: underline; cursor: pointer; }
.form-note { font-size: .8125rem; color: var(--muted); }
.form-done { display: grid; gap: 14px; justify-items: start; padding-block: 24px; }
.form-done i { font-size: 2.5rem; color: var(--accent-text); }
.form-done h3 { font-size: 1.5rem; }
.form-done p { color: var(--muted); max-width: 40ch; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-tag { color: var(--muted); font-size: .9375rem; max-width: 38ch; margin-top: 10px; }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; }
.footer ul a, .footer .mail { color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.footer ul a:hover, .footer .mail:hover { color: var(--ink); }
.legal { margin-top: 40px; font-size: .8125rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .brand { gap: 7px; }
  .brand img { height: 18px; }
  .brand-ai { font-size: .65rem; padding: 4px 6px; }
  .nav .btn-sm { height: 38px; padding: 0 14px; font-size: .8125rem; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .q { width: 100%; }
}

/* Motion. Everything below is skipped when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  .js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }

  /* Problem statement: words light up as it scrolls through, marks sweep in once their words are lit */
  .js .statement mark { background-size: 0% 42%; transition: background-size .9s var(--ease); }
  .js .statement mark.lit { background-size: 100% 42%; }
  .statement.scrub .sw { opacity: .16; transition: opacity .4s var(--ease); }
  .statement.scrub .sw.on { opacity: 1; }

  .swap > li { animation: pop .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
  .msg, .cites { animation: pop .45s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  .typing span { animation: blink 1.1s infinite; }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes blink { 0%, 100% { opacity: .25; } 40% { opacity: .9; } }

  .q[aria-pressed="true"] i { transform: rotate(-8deg) scale(1.05); }
  .qa[open] p { animation: pop .4s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  html, .chat-log { scroll-behavior: auto; }
}

/* ===== Atmosphere layer =====
   Static pieces (grain, glows, outlines) always render. Anything that moves on its own lives inside
   the no-preference block below and stops when the visitor pauses motion (html.paused). */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ring { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --ga { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Film grain, fixed and static */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress along the bottom of the nav */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgb(32 177 218 / 0), var(--accent) 40%, #a6ecff);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

.nav-links a { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 1px; padding-bottom: 3px; transition: color .2s, background-size .35s var(--ease); }
.nav-links a:hover { background-size: 100% 1px; }

/* Signal grid canvas and aurora glows behind the hero, questions band, and contact */
.hero, .questions, .contact { position: relative; isolation: isolate; }
.questions, .contact { overflow: hidden; }
.field-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .field-canvas {
  top: calc(-1 * var(--nav-h)); height: calc(100% + var(--nav-h));
  -webkit-mask-image: radial-gradient(130% 95% at 62% 28%, #000 25%, transparent 78%);
          mask-image: radial-gradient(130% 95% at 62% 28%, #000 25%, transparent 78%);
}
.contact .field-canvas {
  -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
          mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
}
.aurora {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
          mask-image: linear-gradient(#000 55%, transparent);
}
.hero .aurora { top: calc(-1 * var(--nav-h)); }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; }
.aurora::before {
  width: min(70vw, 900px); aspect-ratio: 1; top: -28%; right: -14%;
  background: radial-gradient(closest-side, rgb(32 177 218 / .24), rgb(32 177 218 / .07) 55%, transparent);
}
.aurora::after {
  width: min(60vw, 760px); aspect-ratio: 1; top: 18%; left: -22%;
  background: radial-gradient(closest-side, rgb(30 104 170 / .2), transparent);
}
.questions .aurora::before { top: auto; bottom: -55%; right: auto; left: 30%; }
.questions .aurora::after { top: -40%; left: auto; right: -20%; }
.questions .aurora { -webkit-mask-image: none; mask-image: none; }
.contact .aurora { -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.contact .aurora::before { top: 20%; right: auto; left: -18%; }
.contact .aurora::after { top: 35%; left: auto; right: -20%; }
.hero > .wrap, .contact > .wrap, .questions > .wrap { position: relative; }
.hero h1 .dot { text-shadow: 0 0 28px rgb(32 177 218 / .55); }

/* Word mask for headlines */
.words .w { display: inline-block; vertical-align: top; overflow: hidden; padding: .14em .03em .12em; margin: -.14em -.03em -.12em; }
.words .wi { display: inline-block; }

/* Cursor spotlight: soft fill plus a lit edge that follows the pointer */
.glow { position: relative; --ga: 0; transition: --ga .45s var(--ease); }
.glow:hover { --ga: 1; }
.glow::before {
  content: ""; position: absolute; inset: var(--edge, -1px); border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(120 220 248 / .95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--ga);
}
.glow-fill { background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgb(32 177 218 / calc(var(--ga) * .09)), transparent 45%); }
.panel.glow, .care.glow { --edge: 0px; }

/* Running light around the two main conversion panels */
.beam::after {
  content: ""; position: absolute; inset: var(--edge, -1px); border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--beam), transparent 0 64%, rgb(32 177 218 / .9) 82%, #d9f6ff 87%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .85;
}
.form.beam { position: relative; }

/* Use case grid: the 1px seams light up around the cursor */
.uc-grid { position: relative; isolation: isolate; transition: --ga .45s var(--ease); }
.uc-grid:hover { --ga: 1; }
.uc-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--ga);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgb(60 189 227 / .9), transparent 70%);
}
.uc { position: relative; background-image: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgb(32 177 218 / calc(var(--ga) * .1)), transparent 70%); }
.uc i { display: inline-block; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), color .2s; }
.uc:hover i { transform: translateY(-3px) rotate(-8deg) scale(1.1); color: #8fe3fb; }

/* Marquee band */
.marquee {
  overflow: hidden; padding-block: clamp(14px, 2vw, 24px); border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); flex: none; transform: skewX(var(--skew, 0deg)); }
.marquee-group span {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem); white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.marquee-group span:nth-child(4n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee-group i { color: var(--accent); font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* AI employees: drawn ring and status dot on the avatar */
.emp-avatar { position: relative; }
.emp-avatar::before {
  content: ""; position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: #3fd68a; border: 3px solid var(--surface);
}
.emp-avatar::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--accent) var(--ring), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  transition: --ring .8s var(--ease);
}
.emp:hover .emp-avatar::after { --ring: 100%; }

/* Process track: icons get a ring once lit */
.t-icon { transition: border-color .6s var(--ease), box-shadow .6s var(--ease); }
.t-icon::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; pointer-events: none; }
.track li.is-in .t-icon { border-color: var(--accent); box-shadow: 0 0 24px -6px rgb(32 177 218 / .6); transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.track li::before { background: linear-gradient(90deg, var(--accent), var(--line-strong)); }

/* "4 years": outline that fills from the bottom */
.js .since strong {
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 100% 100%;
  -webkit-background-clip: text; background-clip: text;
}

/* Primary buttons: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  transform: translateX(-130%);
}

/* Confetti spark for the form confirmation */
.spark { position: fixed; z-index: 95; width: 6px; height: 6px; border-radius: 2px; pointer-events: none; background: var(--accent); }

/* Pause control for ambient motion */
.motion-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; height: 40px; min-width: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--ink); }
.motion-toggle i { font-size: 1rem; }
@media (max-width: 640px) { .motion-toggle span { display: none; } .motion-toggle { padding: 0; } }

/* FAQ answers open smoothly where the browser supports animating to auto height */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
    .qa[open]::details-content { block-size: auto; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Ambient loops */
  .aurora::before { animation: drift-a 22s ease-in-out infinite alternate; }
  .aurora::after { animation: drift-b 28s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(-9%, 12%) scale(1.12); } }
  @keyframes drift-b { to { transform: translate(14%, -8%) scale(.92); } }
  .beam::after { animation: beam 7s linear infinite; }
  @keyframes beam { to { --beam: 360deg; } }
  .js .marquee-track { animation: marquee 48s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  html.paused .aurora::before, html.paused .aurora::after, html.paused .beam::after, html.paused .marquee-track { animation-play-state: paused; }

  /* Headline words rise out of a mask */
  .js .words .wi { transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--w) * 55ms + var(--d, 0ms)); }
  .js .words.is-in .wi { transform: none; }
  .js .reveal.words { opacity: 1; transform: none; filter: none; }
  .js .reveal.glow, .js .uc-grid.reveal {
    --rd: calc(var(--i, 0) * 80ms);
    transition: opacity .8s var(--ease) var(--rd), transform .8s var(--ease) var(--rd), filter .8s var(--ease) var(--rd), --ga .45s var(--ease);
  }
  .hero h1.words { --d: 140ms; }

  .btn-primary:hover::after { transform: translateX(130%); transition: transform .9s var(--ease); }

  /* Staggered children. Entrance uses the individual translate/scale/rotate properties so hover transforms stay instant. */
  .js .stagger.reveal { opacity: 1; transform: none; filter: none; }
  .js .stagger > * {
    opacity: 0; translate: 0 18px; filter: blur(4px);
    transition: opacity .7s var(--ease) var(--dl), translate .8s var(--ease) var(--dl), filter .7s var(--ease) var(--dl),
                background-color .25s, border-color .2s, color .2s, transform .25s var(--ease);
    --dl: calc(var(--k, 0) * 55ms);
  }
  .js .stagger.is-in > * { opacity: 1; translate: 0 0; filter: none; }
  .js .qcloud > .q { translate: 0 28px; rotate: var(--r, 0deg); scale: .94; transition-property: opacity, translate, filter, background-color, border-color, color, transform, rotate, scale; transition-duration: .7s, .9s, .7s, .2s, .2s, .2s, .25s, .9s, .9s; transition-timing-function: var(--ease), cubic-bezier(.34, 1.4, .64, 1), var(--ease), ease-out, ease-out, ease-out, var(--ease), cubic-bezier(.34, 1.4, .64, 1), cubic-bezier(.34, 1.4, .64, 1); transition-delay: var(--dl), var(--dl), var(--dl), 0s, 0s, 0s, 0s, var(--dl), var(--dl); }
  .js .qcloud.is-in > .q { rotate: 0deg; scale: 1; }

  /* Process track: connector draws across, icons ripple once */
  .js .track li::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease) calc(var(--i, 0) * 80ms + 450ms); }
  .js .track li.is-in::before { transform: none; }
  .js .track li.is-in .t-icon::after { animation: ripple 1.3s var(--ease) calc(var(--i, 0) * 80ms + 250ms) both; }
  @keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }

  /* Year-one timeline lights up month by month */
  .js .tl li::before { transform: scale(.3); opacity: .25; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s; transition-delay: calc(var(--k, 0) * 220ms + 500ms); }
  .js .tl li::after { transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease) calc(var(--k, 0) * 220ms + 650ms); }
  .js .tl li > span { opacity: .25; transition: opacity .6s var(--ease) calc(var(--k, 0) * 220ms + 500ms); }
  .js .care.is-in .tl li::before, .js .care.is-in .tl li > span { transform: none; opacity: 1; }
  .js .care.is-in .tl li::after { transform: none; }

  /* Skill steps light up in order, like the AI is working through them */
  .sop-steps.swap li::before { animation: step-on .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 220ms + 300ms); }
  @keyframes step-on {
    0%, 35% { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 0 rgb(32 177 218 / 0); }
    65% { box-shadow: 0 0 0 7px rgb(32 177 218 / .2); }
    100% { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 rgb(32 177 218 / 0); }
  }

  /* "4 years" fill */
  .js .since strong { background-size: 100% 0%; transition: background-size 1.4s var(--ease) .35s; }
  .js .since.is-in strong { background-size: 100% 100%; }

  .form-done i { animation: check-in .7s cubic-bezier(.34, 1.56, .64, 1) both; }
  @keyframes check-in { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
}

/* Multi-page additions. Everything here builds on the tokens and blocks in site.css. */

/* Header: mark the current page, and give phones a link row since the bar has no room for links */
.nav-links a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.subnav { display: none; position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; display: flex; gap: 22px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 500; white-space: nowrap; transition: color .2s; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 960px) { .subnav { display: block; } }

/* Page hero: the homepage hero without the explorer panel */
.page-hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(3rem, 5.6vw, 5rem); line-height: .92; max-width: 20ch; }
.page-hero .lede { max-width: 58ch; }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* Section rhythm */
.band { background: var(--band); }
.wrap.narrow { max-width: 920px; }
.head > h2 { max-width: 20ch; }
.split-link { margin-top: 28px; }
.emp-link { margin-top: 14px; }

/* Card grids with a set number of columns (the homepage grid is five across) */
.uc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uc-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uc .text-link { margin-top: auto; padding-top: 14px; }
.uc .text-link i { font-size: 1em; margin: 0; color: inherit; }
@media (max-width: 1100px) { .uc-grid.cols-3, .uc-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uc-grid.cols-2, .uc-grid.cols-3, .uc-grid.cols-4 { grid-template-columns: 1fr; } }

/* Longer explanatory copy */
.prose { max-width: 68ch; margin-top: 36px; display: grid; gap: 18px; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose h3 { color: var(--ink); font-size: 1.25rem; letter-spacing: -0.015em; margin-top: 14px; }

/* Example panels shown in full rather than played step by step */
.sop-steps.static { min-height: 0; }
.chat-log.static { height: auto; overflow: visible; }

/* Links onward at the bottom of a page */
.next { padding-block: clamp(56px, 7vw, 88px); }
.next h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.next-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; height: 100%;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  text-decoration: none; cursor: pointer; transition: border-color .2s, transform .25s var(--ease);
}
.next-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.next-title { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; }
.next-text { grid-column: 1; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.next-link i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent-text); font-size: 1.4rem; transition: transform .25s var(--ease); }
.next-link:hover i { transform: translateX(4px); }
@media (max-width: 900px) { .next-grid { grid-template-columns: 1fr; } }

/* Footer link columns */
.footer-tag a { color: inherit; text-underline-offset: 3px; transition: color .2s; }
.footer-tag a:hover { color: var(--ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 72px); }
.footer-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer .footer-col ul { display: grid; gap: 10px; }
