/* ==========================================================================
   Website template — design tokens follow _build/DESIGN.md
   (Geist + Geist Mono, accent #FFBF01, greys #E9E9E9/#DBDBDB, ink #070500).
   Header and footer layout follow the arcticfever.co structure, not its colours.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* brand */
  --ink: #070500;
  --accent: #FFBF01;
  --accent-soft: #FFF6DB;
  --accent-2: #61B3FC;
  --paper: #FFFFFF;
  --paper-warm: #FCF1EB;

  /* greys (DESIGN.md §2.2) */
  --g0: #F4F4F4;
  --g1: #E9E9E9;
  --g2: #DBDBDB;
  --g3: #C4C4C4;
  --g5: #8A8A8A;   /* graphics and text >= 24px only */
  --g7: #5E5E5E;   /* secondary text */
  --g9: #3A3A3A;
  --g11: #1F1F1F;
  --ok: #13773C;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 24px;
  --maxw: 1440px;
  --r-s: 4px;
  --r-m: 12px;
  --r-l: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --r-l: 16px; --header-h: 64px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* where a section "starts" for anchor jumps and the scroll magnet in site.js. Sections bring their own top padding. */
main > :first-child { scroll-margin-top: var(--header-h); }                  /* first block settles at the very top */
main > .tight { scroll-margin-top: 24px; }
main > .flush-top, :is(h2, h3)[id] { scroll-margin-top: calc(var(--header-h) + 16px); }  /* no padding of their own: clear the header */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-s); font-size: 14px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--g7); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small mono kicker, like the city labels in the reference footer */
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--g7);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* placeholder text tokens: "[—]" values the founders still fill in */
.tbd { font-family: var(--font-mono); color: var(--g7); }

/* --------------------------------------------------------------------------
   Header — logo left · pill nav centre · dark contact button right
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), translate .45s var(--ease);
}
.site-header.is-hidden { translate: 0 -100%; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(7, 5, 0, .06);
}
.brand {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 600; letter-spacing: -0.035em; line-height: 1;
}
.brand-mark { width: 26px; height: 26px; flex: none; }

.pill-nav {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: rgba(7, 5, 0, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pill-nav a {
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--g9); line-height: 1.35;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.pill-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.pill-nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(7, 5, 0, .08); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r-s); border: 0; cursor: pointer;
  font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: var(--ink); }
.btn-light { background: var(--g0); color: var(--ink); }
.btn-light:hover { background: var(--g1); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #fff; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.menu-btn {
  display: none; align-items: center; gap: 8px;
  padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(7, 5, 0, .07); font-size: 13px; font-weight: 500;
}
.menu-btn-lines { width: 14px; height: 8px; position: relative; }
.menu-btn-lines::before, .menu-btn-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-btn-lines::before { top: 0; }
.menu-btn-lines::after { top: 6.5px; }
.menu-btn[aria-expanded="true"] .menu-btn-lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines::after { top: 3.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-size: clamp(34px, 10vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
  padding: 6px 0; border-bottom: 1px solid var(--g1);
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-menu nav a span { font-family: var(--font-mono); font-size: 12px; color: var(--g7); letter-spacing: 0; }
.mobile-menu nav a[aria-current="page"] { color: var(--g7); }
.mobile-menu-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; font-size: 14px; }
body.menu-open { overflow: hidden; }
@media (max-height: 520px) { .mobile-menu nav a { font-size: 28px; padding: 4px 0; } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .pill-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 380px) {
  .header-actions .btn-dark { display: none; }
}

/* --------------------------------------------------------------------------
   Placeholder — grey rounded block with a question mark
   -------------------------------------------------------------------------- */
.ph {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: var(--r-l);
  background: var(--g1);
  display: grid; place-items: center;
  color: var(--g5);
}
.ph::before {
  content: "?";
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--g3);
  background: rgba(255, 255, 255, .45);
  font-size: 22px; font-weight: 500; line-height: 1;
}
.ph-cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  color: var(--g7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph.dark { background: var(--g11); color: var(--g7); }
.ph.dark::before { border-color: var(--g9); background: rgba(255, 255, 255, .04); color: var(--g5); }
.ph.dark .ph-cap { color: #A8A8A8; }

/* image frame: CAD renders on white melt into the grey card */
.frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-l);
  background: var(--g0);
}
.frame img.blend { mix-blend-mode: multiply; }
.frame.fit img { width: 100%; height: 100%; object-fit: contain; }
.frame.cover img { width: 100%; height: 100%; object-fit: cover; }
.frame.warm { background: #F1F0EC; }
.frame-cap {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--g9);
  padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  z-index: 2;
}
.frame, .ph { isolation: isolate; clip-path: inset(0 round var(--r-l)); }
.frame img[src*="sketch"] { object-position: 50% 6%; }

/* --------------------------------------------------------------------------
   Stage (home hero) — giant wordmark, robot cut-out in front, copy at the bottom
   -------------------------------------------------------------------------- */
.stage {
  position: relative; overflow: hidden;
  height: clamp(640px, 100vh, 1040px);
  height: clamp(640px, 100svh, 1040px);
  margin-top: calc(var(--header-h) * -1);
}
.stage-visual { position: absolute; inset: 0; }
.stage-word {
  position: absolute; left: 0; right: 0; top: 30%;
  margin: 0; text-align: center; white-space: nowrap; user-select: none;
  font-size: min(31vw, calc((100vw - 2 * var(--gutter)) / (var(--chars, 4) * .66)));
  font-weight: 600; letter-spacing: -0.065em; line-height: .8;
  color: var(--g1);
  will-change: transform;
}
.stage-word span { display: inline-block; }
.stage-robot {
  position: absolute; left: 50%; bottom: 0;
  height: 86%; width: auto; max-width: none;
  translate: -50% 0;
  will-change: transform;
}
.stage-copy, .stage-side { position: absolute; bottom: clamp(24px, 4vh, 48px); z-index: 2; }
.stage-copy { left: var(--gutter); width: min(34vw, 520px); }
.stage-copy h1 { font-size: clamp(30px, 3vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
.stage-copy p { margin-top: 12px; color: var(--g7); font-size: 15px; }
.stage-side { right: var(--gutter); display: flex; flex-direction: column; align-items: end; gap: 16px; }
.stage-tags { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--g9); }
.stage-tags .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; translate: 0 -1px; box-shadow: 0 0 0 3px rgba(19, 119, 60, .14); animation: pulse 2.4s ease-in-out infinite; }
.stage-actions { display: flex; gap: 8px; }

/* entrance */
.stage-word span { animation: rise 1.1s var(--ease) both; animation-delay: calc(.05s + var(--i, 0) * .08s); }
.stage-robot { animation: rise-robot 1.4s var(--ease) .3s both; }
.stage-copy { animation: fade-up 1s var(--ease) .75s both; }
.stage-side { animation: fade-up 1s var(--ease) .9s both; }
@keyframes rise { from { opacity: 0; translate: 0 35%; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-robot { from { opacity: 0; translate: -50% 7%; } to { opacity: 1; translate: -50% 0; } }
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(19, 119, 60, .06); } }

@media (max-width: 1100px) {
  .stage-copy { width: min(34vw, 360px); }
  .stage-robot { height: 80%; }
}
/* phones and small tablets: wordmark + robot on top, copy below */
@media (max-width: 900px) {
  .stage { height: auto; display: flex; flex-direction: column; padding-bottom: 8px; }
  .stage-visual { position: relative; height: clamp(440px, 72vh, 640px); height: clamp(440px, 72svh, 640px); }
  .stage-word { top: auto; bottom: 10%; font-size: calc((100vw - 2 * var(--gutter)) / (var(--chars, 4) * .72)); }
  .stage-robot { height: calc(100% - var(--header-h) - 8px); }
  .stage-copy, .stage-side { position: static; width: auto; padding: 0 var(--gutter); }
  .stage-copy { margin-top: 28px; }
  .stage-copy h1 { font-size: clamp(30px, 8vw, 40px); }
  .stage-side { align-items: start; margin-top: 20px; }
  .stage-tags { flex-wrap: wrap; gap: 6px 16px; }
  .stage-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-word span, .stage-robot, .stage-copy, .stage-side { animation: none; }
  .stage-tags .dot { animation: none; }
}

/* brand mark blinks now and then */
.brand-mark .eye { transform-box: fill-box; transform-origin: center; animation: blink 7s infinite; }
.brand-mark .eye + .eye { animation-delay: .02s; }
@keyframes blink { 0%, 93%, 100% { scale: 1 1; } 95% { scale: 1 .12; } }
@media (prefers-reduced-motion: reduce) { .brand-mark .eye { animation: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.tight { padding: clamp(48px, 6vw, 88px) 0; }
.section.flush-top { padding-top: 0; }
main > .section:last-child { padding-bottom: clamp(24px, 4vw, 56px); }
#intro .title { font-size: clamp(24px, 2.2vw, 32px); }

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 44px); max-width: 18ch; }
.section-head p { max-width: 42ch; color: var(--g7); }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: start; } }

/* split intro, like "About Us" in the reference: title left, copy + buttons right */
.split-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
}
.split-intro h1, .split-intro h2.title {
  font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.03em;
}
.split-intro .lede {
  font-size: clamp(24px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -0.025em; color: var(--g5); font-weight: 500;
  max-width: 22ch; margin-top: 4px;
}
.split-intro .body { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; max-width: 52ch; padding-top: 8px; }
.split-intro .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 820px) { .split-intro { grid-template-columns: 1fr; } }

/* grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; row-gap: 24px; } .grid-4 .card h3 { font-size: 17px; } .grid-4 .card p { font-size: 14px; } }
@media (max-width: 340px) { .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3.team { grid-template-columns: 1fr 1fr; row-gap: 20px; } .team .person-name { font-size: 14px; } .team .person-role { font-size: 13px; } }

/* cards */
.card { display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; }
.card p { color: var(--g7); font-size: 15px; max-width: 40ch; }
.card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--g7); text-transform: uppercase; letter-spacing: .02em; }
a.card .frame img { transition: transform .7s var(--ease); }
@media (hover: hover) { a.card:hover .frame img { transform: scale(1.04); } }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* team cards — portrait, name, role (reference team grid) */
.person { display: flex; flex-direction: column; gap: 10px; }
.person .ph { --ar: 4 / 5; }
.person-name { font-size: 15px; font-weight: 500; }
.person-role { font-size: 14px; color: var(--g7); margin-top: -8px; }
.person.open .ph { background: var(--g0); outline: 1.5px dashed var(--g3); outline-offset: -1.5px; }
.person.open .person-name::after { content: " ↗"; color: var(--g7); }

/* showcase: big framed render + text column */
.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: stretch; }
.showcase .frame { min-height: 560px; }
.showcase .frame img { position: absolute; inset: 5% 0 5%; width: 100%; height: 90%; object-fit: contain; }
.showcase-body {
  border-radius: var(--r-l); background: var(--g0);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.showcase-body h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.035em; }
.showcase-body .body { color: var(--g9); max-width: 44ch; margin-top: 16px; }
.showcase > .ph { --ar: auto; min-height: 520px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .showcase .frame { min-height: 0; aspect-ratio: 4 / 5; } .showcase > .ph { --ar: 4 / 3; min-height: 0; } }

/* spec rows (mono values) */
.specs { border-top: 1px solid var(--g2); }
.specs > div {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--g2); font-size: 14px;
}
.specs dt { color: var(--g7); }
.specs dd { margin: 0; font-family: var(--font-mono); font-weight: 500; text-align: right; }
.specs.wide > div { grid-template-columns: 1fr 1fr 1.4fr; }
.specs.wide dd { text-align: left; }
.specs.wide .note { color: var(--g7); font-size: 13px; }
@media (max-width: 720px) {
  .specs.wide > div { grid-template-columns: 1fr auto; }
  .specs.wide .note { grid-column: 1 / -1; margin-top: -6px; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--g2); }
.stat { padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--g2); }
.stat-value { font-size: clamp(40px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stat-value .unit { font-size: .38em; letter-spacing: -0.01em; color: var(--g7); margin-left: 4px; }
.stat-label { margin-top: 12px; font-size: 14px; color: var(--g7); }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--g2); margin-top: 20px; }
}

/* process steps (horizontal, scrolls on small screens) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-no { font-family: var(--font-mono); font-size: 12px; color: var(--g7); display: flex; align-items: center; gap: 10px; }
.step-no::after { content: ""; flex: 1; height: 1px; background: var(--g2); }
.step h3 { font-size: 19px; }
.step p { font-size: 15px; color: var(--g7); }
.step .frame, .step .ph { aspect-ratio: 3 / 4; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 480px) { .steps.text { grid-template-columns: 1fr; } .step p { font-size: 14px; } }

/* numbered principles — reference "Our Core" list */
.principles { max-width: 980px; margin: 0 auto; }
.principles h2 { text-align: center; font-size: clamp(26px, 2.6vw, 36px); margin-bottom: clamp(32px, 5vw, 64px); }
.principles li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25;
  padding: 4px 0;
}
.principles li .no { font-weight: 400; color: var(--ink); min-width: 2.2ch; }
.principles li .txt { text-align: right; }
.principles li.is-accent .txt { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); }

/* lists with hairline rows — reference "Based in …" client list */
.row-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; font-size: 14px; }
.row-list > div { display: contents; }
.row-list span { padding: 10px 0; border-bottom: 1px solid var(--g2); }
.row-list span:nth-child(2) { color: var(--g7); }
.row-list .head { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--g7); }

.split-list { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.split-list h2 { font-size: clamp(24px, 2.4vw, 34px); max-width: 16ch; }
@media (max-width: 820px) { .split-list { grid-template-columns: 1fr; } }

/* roles table (careers) */
.roles { border-top: 1px solid var(--g2); }
.role {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--g2);
  transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.role:hover { background: var(--g0); padding-left: 12px; padding-right: 12px; }
.role .role-title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.role span { font-size: 14px; color: var(--g7); }
.role .go { font-family: var(--font-mono); font-size: 12px; color: var(--ink); text-transform: uppercase; }
.role-meta { display: contents; }
@media (max-width: 820px) {
  .role { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .role-title { grid-column: 1; }
  .role .go { grid-row: 1; grid-column: 2; }
  .role-meta { display: flex; flex-wrap: wrap; gap: 0 8px; grid-column: 1 / -1; }
  .role-meta span + span::before { content: "·"; margin-right: 8px; color: var(--g5); }
}

/* quote / manifesto */
.manifesto { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; align-items: stretch; }
.manifesto .frame { aspect-ratio: 4 / 5; }
.manifesto-body {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: clamp(8px, 2vw, 32px) 0 clamp(8px, 2vw, 32px) clamp(8px, 3vw, 48px);
}
.manifesto-body > .kicker { margin-bottom: auto; }
.manifesto blockquote {
  margin: 0; text-wrap: balance; font-size: clamp(28px, 3.3vw, 50px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08;
}
.manifesto blockquote .soft { color: var(--g5); }
@media (max-width: 900px) { .manifesto { grid-template-columns: 1fr; } .manifesto-body { padding: 16px 0 0; } }

/* dark band (careers teaser): copy left, founding roles right */
.band {
  border-radius: var(--r-l); background: var(--ink); color: #fff; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
}
.band-body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; align-items: start; gap: 40px; }
.band h2 { font-size: clamp(40px, 5.4vw, 84px); letter-spacing: -0.045em; line-height: .98; }
.band p { color: #A8A8A8; max-width: 44ch; margin-top: 20px; }
.band .kicker { color: #A8A8A8; }
.band-media { position: relative; min-height: 420px; }
.band-list { padding: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px) 0; display: flex; flex-direction: column; justify-content: center; }
.band-list a {
  display: grid; grid-template-columns: 36px 1fr auto 20px; gap: 14px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid #2A2A28;
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -0.015em;
}
.band-list li:last-child a { border-bottom: 1px solid #2A2A28; }
.band-list .no, .band-list .m { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: #A8A8A8; }
.band-list .arr { color: #A8A8A8; transition: color .2s var(--ease), translate .25s var(--ease); }
.band-list a:hover .arr { color: var(--accent); translate: 4px 0; }
.band-list a:hover .t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .band-media { min-height: 0; aspect-ratio: 4 / 3; }
  .band-list { padding: 0 clamp(20px, 5vw, 28px) clamp(24px, 5vw, 28px); }
  .band-body { padding-bottom: 28px; }
}
@media (max-width: 480px) {
  .band-list a { grid-template-columns: 28px 1fr 18px; gap: 4px 10px; }
  .band-list .m { grid-column: 2; grid-row: 2; }
  .band-list .arr { grid-column: 3; grid-row: 1; }
}

/* anatomy: labelled render + legend */
.anatomy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.anatomy .frame { aspect-ratio: 1 / 1.05; }
.anatomy .frame img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.legend { counter-reset: part; border-top: 1px solid var(--g2); }
.legend li {
  counter-increment: part;
  display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px;
  padding: 16px 0; border-bottom: 1px solid var(--g2);
}
.legend li::before { content: counter(part, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--g7); padding-top: 4px; grid-row: span 2; }
.legend strong { font-weight: 500; font-size: 17px; }
.legend span { color: var(--g7); font-size: 14px; }
@media (max-width: 900px) { .anatomy { grid-template-columns: 1fr; } }

/* page title block for inner pages */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }

/* --------------------------------------------------------------------------
   Contact — one row per address, the whole row is the mail link
   -------------------------------------------------------------------------- */
.contact-where { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.contact-where p { color: var(--g9); }
.contact-where .ft-label { color: var(--g7); margin-bottom: 2px; }
.contact-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--g2);
  transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.contact-row:hover { background: var(--g0); padding-left: 12px; padding-right: 12px; }
.contact-topic { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.contact-mail { grid-column: 1; font-size: 14px; color: var(--g7); overflow-wrap: anywhere; }
.contact-row .go { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; transition: translate .2s var(--ease); }
.contact-row:hover .go { translate: 4px 0; }
.contact-row.is-pending { cursor: default; }

/* --------------------------------------------------------------------------
   Legal page
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 28px; margin: 56px 0 16px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--g9); font-size: 16px; }
.legal p + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.legal dt { color: var(--g7); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.notice {
  display: flex; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: var(--r-m); background: var(--accent-soft); font-size: 14px; color: var(--g11);
}
.notice::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 12px; }

/* --------------------------------------------------------------------------
   Footer — contact columns with live clock · address · links · ©
   -------------------------------------------------------------------------- */
.site-footer { padding: clamp(48px, 6vw, 96px) var(--gutter) 24px; font-size: 13px; overflow: hidden; }
.ft-top { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; align-items: start; }
.ft-col { display: flex; flex-direction: column; }
.ft-place { display: flex; align-items: baseline; gap: 12px; font-size: 12px; font-weight: 500; margin-bottom: 22px; }
.ft-place .mono { font-size: 12px; font-weight: 400; color: var(--g9); letter-spacing: .01em; }
.ft-place .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; translate: 0 -1px; box-shadow: 0 0 0 3px rgba(19, 119, 60, .14); }
.ft-label { color: var(--g7); font-weight: 500; }
.ft-col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.ft-col a:hover { background-size: 100% 1px; }

.ft-word {
  margin: clamp(56px, 8vw, 120px) 0 clamp(24px, 3vw, 40px);
  /* the wordmark spans the page width whatever the name's length (--chars set by build.py) */
  font-size: calc((100vw - 2 * var(--gutter)) / (var(--chars, 4) * .72));
  font-weight: 600; letter-spacing: -0.065em; line-height: .78;
  color: var(--g1); user-select: none; white-space: nowrap;
  margin-left: -0.04em;
}

.ft-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; }
.ft-address p { color: var(--g9); }
.ft-address .ft-label { margin-bottom: 2px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; }
.ft-links a { color: var(--g7); }
.ft-links a:hover { color: var(--ink); }
.ft-links a.is-pending { cursor: default; }
.ft-copy { justify-self: end; font-size: 12px; color: var(--g9); display: inline-flex; align-items: center; gap: 8px; }
.ft-copy::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

@media (max-width: 1000px) {
  .ft-top { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .ft-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .ft-col a { overflow-wrap: anywhere; }
  .ft-bottom { grid-template-columns: 1fr; justify-items: start; gap: 20px; }
  .ft-links { justify-content: start; }
  .ft-copy { justify-self: start; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS runs)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), translate .9s var(--ease) calc(var(--i, 0) * 90ms), transform .35s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js .reveal .frame img, .js .frame.reveal img { scale: 1.06; transition: scale 1.6s var(--ease) calc(var(--i, 0) * 90ms), transform .5s var(--ease); }
.js .reveal.is-in .frame img, .js .frame.reveal.is-in img { scale: 1; }
.js .principles ol.reveal li { opacity: 0; translate: 0 14px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .principles ol.reveal.is-in li { opacity: 1; translate: 0 0; }
.js .ft-word.reveal { translate: none; }
.js .ft-word.reveal span { display: inline-block; opacity: 0; translate: 0 30%; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .ft-word.reveal.is-in span { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal .frame img, .js .frame.reveal img, .js .principles ol.reveal li, .js .ft-word.reveal span { opacity: 1; translate: none; scale: none; transition: none; }
}

/* utilities */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }
.cta-row { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* placeholder digits in big numbers, CTA headline */
.ph-num { color: var(--g3); }
.cta-title { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; margin-top: 14px; }
a.showcase { color: inherit; }
a.showcase:hover h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.specs dd a { text-decoration: underline; text-decoration-color: var(--g3); text-underline-offset: 3px; }
.specs dd a:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   Why a humanoid — text, terrain drawing (wheel stops, legs climb), comparison
   -------------------------------------------------------------------------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.why h2 { font-size: clamp(32px, 3.8vw, 56px); letter-spacing: -0.035em; max-width: 14ch; }
.why-text .body { color: var(--g9); max-width: 50ch; }
.why-text .body + .body { margin-top: 14px; }
.why-text .actions { margin-top: 24px; }
.why-home { align-items: end; }
.why-home h2 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -0.045em; line-height: .98; max-width: 11ch; }
.why-home .why-text .body { font-size: clamp(16px, 1.3vw, 19px); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

.compare { border-top: 1px solid var(--g2); font-size: 15px; }
.compare-row { display: grid; grid-template-columns: 1fr 96px 96px; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--g2); }
.compare-row.head { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--g7); }
.compare-row > :not(:first-child) { justify-self: start; }
.rate { display: inline-flex; gap: 5px; }
.rate i { width: 9px; height: 9px; border-radius: 50%; background: var(--g2); }
.rate.r1 i:nth-child(-n+1), .rate.r2 i:nth-child(-n+2), .rate.r3 i:nth-child(-n+3) { background: var(--ink); }
.rate.legs.r1 i:nth-child(-n+1), .rate.legs.r2 i:nth-child(-n+2), .rate.legs.r3 i:nth-child(-n+3) { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(7, 5, 0, .25); }
.compare-note { margin-top: 14px; font-size: 14px; color: var(--g7); }
@media (max-width: 480px) { .compare-row { grid-template-columns: 1fr 52px 52px; gap: 10px; font-size: 14px; } }

/* touch: 44 px tap targets */
@media (pointer: coarse) {
  .btn, .menu-btn { min-height: 44px; }
  .ft-col a, .ft-links a { display: inline-flex; align-items: center; min-height: 40px; }
  .ft-links { gap: 0 16px; }
}

/* --------------------------------------------------------------------------
   Motion layer: scroll progress, word-by-word headings, rows, ticker, idle robot
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* headings rise word by word out of a mask */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .split .wi { display: inline-block; translate: 0 110%; transition: translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--w, 0) * 45ms + .05s); }
.js .is-in .split .wi, .js .split.is-in .wi { translate: 0 0; }

/* list rows slide in one after another */
.js .reveal :is(.specs > div, .legend > li, .band-list > li, .compare > .compare-row, .stats > .stat),
.js :is(.roles, .legend).reveal > * {
  opacity: 0; translate: 0 12px;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
  transition-delay: calc(.2s + var(--r, 0) * 70ms);
}
.js .reveal.is-in :is(.specs > div, .legend > li, .band-list > li, .compare > .compare-row, .stats > .stat),
.js :is(.roles, .legend).reveal.is-in > * { opacity: 1; translate: 0 0; }

/* cards lift a little under the pointer */

/* ticker band */
.ticker { overflow: hidden; border-block: 1px solid var(--g2); padding: clamp(14px, 2vw, 22px) 0; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(30px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
}
.ticker-track span::after { content: ""; width: .22em; height: .22em; border-radius: .05em; background: var(--accent); }
@keyframes tick { to { translate: -50% 0; } }

/* the robot in the stage breathes */
.stage-robot { animation: rise-robot 1.4s var(--ease) .3s both, idle 7s ease-in-out 1.8s infinite; }
@keyframes idle { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -10px; } }

@media (prefers-reduced-motion: reduce) {
  .js .split .wi, .js .reveal :is(.specs > div, .legend > li, .band-list > li, .compare > .compare-row, .stats > .stat),
  .js :is(.roles, .legend).reveal > * { translate: none; opacity: 1; transition: none; }
  .ticker-track, .stage-robot { animation: none; }
  .site-header.is-hidden { translate: none; }
}

/* model version next to the robot's name (SOMO X1) */
.ver { color: var(--g5); font-weight: 400; }
