/* Archscale landing — visual system from archscale-business/landing/landing-concept.md
   Black ground, white text, warm grey secondary, red ochre ONLY for proof (ticks, passed checks). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ground: #141413;
  --surface: #1b1b1a;
  --surface-2: #222220;
  --line: #2e2e2b;
  --line-2: #45453f;
  --white: #ffffff;
  --grey: #a3a39e;
  --ochre: #c64e1e;
  --header: 64px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 1200px) and (min-height: 760px) {
  html.snap { scroll-snap-type: y mandatory; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
code, pre { font-family: var(--mono); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h1, h2 { font-weight: 800; }
h2 { font-size: clamp(28px, 3.1vw, 44px); max-width: 22ch; margin-bottom: 24px; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--white); font-weight: 600; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Desktop copy vs mobile copy */
@media (min-width: 768px) { .mb { display: none !important; } }
@media (max-width: 767px) { .dk { display: none !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--grey); margin-bottom: 14px; letter-spacing: 0; }
.closing { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin-top: 22px; }
.text-link { display: inline-block; margin-top: 10px; color: var(--grey); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link:hover { color: var(--white); border-color: var(--white); }

/* Buttons: CTAs are solid in the ground's inverse colour, never ochre */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--white); color: var(--ground); }
.btn-primary:hover { background: #e9e9e6; }
.btn-ghost { border-color: var(--line-2); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ground); color: var(--white); }
.btn-dark:hover { background: #2a2a28; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  display: flex; align-items: center; gap: 28px; padding: 0 40px;
  background: rgba(20, 20, 19, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-mark { width: 26px; height: 26px; color: var(--white); }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.035em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a, .nav-quiet { text-decoration: none; color: var(--grey); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav-quiet { font-size: 14px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.nav-quiet:hover { color: var(--white); }
.header-cta { min-height: 38px; padding: 0 16px; font-size: 15px; }
.menu-btn { display: none; }
.progress { display: none; }

@media (max-width: 1199px) {
  .site-header { gap: 18px; padding: 0 24px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 960px) {
  .nav, .nav-quiet { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header) 0 0 0; z-index: 49; background: var(--ground); padding: 24px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.quiet { font-size: 18px; font-weight: 500; color: var(--grey); border: 0; margin-top: 12px; }

/* Side dots (desktop) */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--grey); }
.dots a.is-active { background: var(--white); border-color: var(--white); }
.dots a::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 13px; color: var(--white); background: var(--surface-2); padding: 3px 8px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dots a:hover::after, .dots a:focus-visible::after { opacity: 1; }
@media (max-width: 1199px) { .dots { display: none; } }

/* ---------- Screens ---------- */
.screen {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header) + 40px) 0 64px;
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start;
  border-bottom: 1px solid var(--line);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12px; color: var(--grey); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.scroll-cue::after { content: ""; width: 1px; height: 18px; background: var(--grey); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* Source tooltips: hover/focus on desktop, tap on touch */
.src { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; }
.info {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--grey); background: none; color: var(--grey);
  font: 600 11px/1 var(--mono); padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.info::before { content: ""; position: absolute; inset: -13px; } /* 44px tap target */
.tip {
  position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 6px;
  background: var(--white); color: var(--ground); font-size: 13px; line-height: 1.4; font-weight: 500; text-align: left;
  display: none;
}
.tip a { color: var(--ground); font-weight: 700; }
.src:hover .tip, .src:focus-within .tip, .src.open .tip { display: block; }
.src:hover .info, .src.open .info { color: var(--white); border-color: var(--white); }

/* SVG graph primitives */
.node { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.node.strong { stroke: var(--white); }
/* Screen 1 hero SVG nodes: terracotta from the logo, as decided 2026-11-28 (scoped to the hero, other SVGs keep the dark nodes). */
.hero-svg .node { fill: var(--ochre); stroke: #a63e15; }
.hero-svg .nk { fill: rgba(255,255,255,.85); }
.nk { font: 500 11px var(--mono); fill: var(--grey); }
.nv { font: 600 12.5px var(--mono); fill: var(--white); }
.nv.b { font-weight: 700; }
.edge { stroke: var(--grey); stroke-width: 1.5; }
.edge-err { stroke: var(--grey); stroke-width: 2; stroke-dasharray: 5 5; }
.edge-ok { stroke: var(--white); stroke-width: 2; }
.err-dot { fill: var(--ground); stroke: var(--grey); stroke-width: 1.5; }
.err-x { stroke: var(--grey); stroke-width: 2; stroke-linecap: round; }
.ok-dot { fill: var(--ground); stroke: var(--ochre); stroke-width: 2; }
.ok-tick { fill: none; stroke: var(--ochre); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.errt { font: 600 10.5px var(--mono); fill: var(--grey); }
.okt { font: 700 12px var(--mono); fill: var(--ochre); }
.okt2 { font-weight: 500; fill: var(--grey); }
svg .t, .t { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Screen 1: Hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 48px; row-gap: 28px; align-items: center;
  grid-template-areas: "text visual" "facts facts" "close close";
}
.hero-text { grid-area: text; }
.hero-visual { grid-area: visual; margin: 0; }
.facts { grid-area: facts; }
.hero .closing { grid-area: close; margin: 0; }
.display { font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; margin-bottom: 22px; }
.lead { font-size: 19px; color: var(--white); max-width: 60ch; margin-bottom: 14px; }
.plain { font-size: 17.5px; color: var(--grey); max-width: 62ch; margin-bottom: 26px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-svg { display: block; width: 100%; height: auto; }

.doc { fill: #1d1d1c; stroke: #3c3c38; stroke-width: 1.2; }
.docl { fill: #4a4a45; }
.docl2 { fill: #34342f; }
.doct { font: 500 10px var(--mono); fill: #6b6b65; }
.sketch { fill: none; stroke: #5a5a55; stroke-width: 1.4; stroke-dasharray: 3 2; }

/* Static frame (mobile poster, reduced motion): typed graph with one highlighted type error */
.hero-svg .mess, .hero-svg .fixed { opacity: 0; }
.hero-svg .m, .hero-svg .n { transform-box: fill-box; transform-origin: center; }

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-svg .mess { animation: mess 8s infinite; }
  .hero-svg .m { animation: drift 8s infinite; }
  .hero-svg .n { animation: snap 8s infinite; }
  .hero-svg .edges { animation: edges 8s infinite; }
  .hero-svg .err { animation: err 8s infinite; }
  .hero-svg .fixed { animation: fixed 8s infinite; }
}
.hero-visual.play .mess { animation: mess 8s 1 forwards; }
.hero-visual.play .m { animation: drift 8s 1; }
.hero-visual.play .n { animation: snap 8s 1; }
.hero-visual.play .edges { animation: edges 8s 1; }
.hero-visual.play .err { animation: err 8s 1 forwards; }
.hero-visual.play .fixed { animation: fixed 8s 1 forwards; }

@keyframes mess { 0%, 22% { opacity: 1; } 34%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes drift { 0% { transform: none; } 30% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } 100% { transform: none; } }
@keyframes snap {
  0%, 26% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
  44%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes edges { 0%, 42% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes err { 0%, 50% { opacity: 0; } 56%, 74% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes fixed { 0%, 75% { opacity: 0; } 79%, 92% { opacity: 1; } 100% { opacity: 0; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Screen 1 fact cards: terracotta from the logo, as decided 2026-11-28 (overrides the concept's "never ochre on decoration"). */
.fact { border: 1px solid #a63e15; border-radius: 10px; padding: 16px 18px; background: var(--ochre); }
.num { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.fact p { color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.45; }
.fact .info { border-color: rgba(255,255,255,.8); color: rgba(255,255,255,.85); }

/* ---------- Screen 2: How it works ---------- */
.steps { position: relative; list-style: none; margin: 8px 0 0; padding: 0; width: 52%; min-height: 470px; }
.step { border-left: 2px solid var(--line); padding: 4px 0 12px 22px; }
.step.is-active { border-color: var(--white); }
.step-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 6px 0; text-align: left; min-height: 44px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--mono); color: var(--grey); }
.step.is-active .step-n { border-color: var(--ochre); color: var(--white); background: var(--ochre); }
.step-name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--ochre); }
.step-text { color: var(--grey); font-size: 16px; max-width: 58ch; padding-left: 40px; display: none; }
.step.is-active .step-text { display: block; }
.panel {
  display: none; position: absolute; top: 0; left: calc(100% + 40px); width: calc(100% / 0.52 - 100% - 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.step.is-active .panel { display: block; }
.how .closing { margin-top: 18px; }

.code { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--white); overflow-x: auto; white-space: pre; }
.code .k { color: var(--white); }
.code .v, .code .c { color: var(--grey); }
.code .ln { color: #5d5d58; user-select: none; }
.snippet { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; white-space: pre-wrap; }
.squiggle { text-decoration: underline wavy var(--grey); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.gallery { position: relative; outline-offset: 4px; }
.slides { position: relative; height: 250px; overflow: hidden; border-radius: 8px; background: #000; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 218px; object-fit: cover; object-position: top; display: block; }
.gallery.panning .slide.is-active img { animation: pan 5s linear forwards; }
@keyframes pan { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; padding: 7px 10px; font-size: 12.5px; color: var(--grey); background: var(--surface-2); }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.gallery-nav button { background: none; border: 0; color: var(--grey); width: 36px; height: 32px; }
.gallery-nav button:hover { color: var(--white); }
.g-dots { display: flex; gap: 6px; }
.g-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; position: relative; }
.g-dots button::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--line-2); }
.g-dots button[aria-current="true"]::before { background: var(--white); }
@media (prefers-reduced-motion: no-preference) { .gallery .g-prev, .gallery .g-next { display: none; } }

.ide { font-size: 13px; }
.ide-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; color: var(--grey); }
.ide-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ide-bar em { font: 500 12px var(--mono); color: var(--grey); margin-left: 8px; }
.ide-msg { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 6px; font: 500 12.5px/1.5 var(--mono); color: var(--grey); }
.ide-msg b { color: var(--white); }
.ide-msg code { color: var(--white); }
.x { color: var(--grey); font-weight: 700; }
.ide-ci { display: flex; justify-content: space-between; margin-top: 10px; font: 500 12px var(--mono); color: var(--grey); }

.timeline svg { width: 100%; height: auto; display: block; }
.tl { transition: opacity .4s ease; opacity: 0; }
.timeline[data-state="0"] .s0, .timeline[data-state="1"] .s1, .timeline[data-state="2"] .s2 { opacity: 1; }
.risk rect { fill: var(--ground); stroke: var(--grey); stroke-dasharray: 3 3; }
.risk text { font: 600 11px var(--mono); fill: var(--grey); }
.tl-slider { display: block; margin-top: 10px; }
.tl-slider input { width: 100%; accent-color: var(--white); min-height: 32px; }
.tl-labels { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--grey); }

.term { background: #0e0e0d; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.join { width: 100%; height: auto; }
.area { fill: none; stroke: var(--line-2); stroke-dasharray: 4 4; }
.join .left, .join .right, .join .links { transition: transform .9s ease, opacity .6s ease; }
.step:not(.joined) .join .left { transform: translateX(-30px); }
.step:not(.joined) .join .right { transform: translateX(30px); }
.step:not(.joined) .join .links { opacity: 0; }

.agent-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: af; }
.agent-flow li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; position: relative; }
.agent-flow li + li::before { content: "↓"; position: absolute; top: -17px; left: 22px; color: var(--grey); font-size: 13px; }
.af-k { font: 500 11.5px var(--mono); color: var(--grey); }
.af-v { font-size: 14.5px; }
.af-v code { font-size: 12.5px; color: var(--grey); }

/* ---------- Screen 3: Roles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--grey); min-height: 36px; }
.chip:hover { color: var(--white); border-color: var(--grey); }
.chip[aria-current="true"] { background: var(--ochre); color: var(--white); border-color: var(--ochre); }
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior-x: contain;
}
.card {
  flex: 0 0 380px; height: 470px; scroll-snap-align: start; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface);
}
.card .sub { font: 500 12px var(--mono); color: var(--grey); margin-bottom: 10px; }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.ico { width: 46px; height: 29px; flex: none; }
.pain { font-size: 15.5px; margin-bottom: 16px; }
.card h4 { font: 600 12px var(--mono); color: var(--grey); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.card ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--grey); }
.card li { padding-left: 16px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--grey); }
.talk { margin-top: 12px; color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; }
.talk::after { content: " →"; }
.talk:hover { text-decoration: underline; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ground);
}
.car-arrow:hover { border-color: var(--white); }
.car-arrow.prev { left: -22px; }
.car-arrow.next { right: -22px; }
.car-arrow[disabled] { opacity: .3; cursor: default; }
.car-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.car-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.car-dots span.on { background: var(--white); }
@media (max-width: 1199px) { .card { flex-basis: calc((100% - 18px) / 1.5); } }

/* ---------- Screen 4: Shift ---------- */
.shift { padding-top: calc(var(--header) + 28px); padding-bottom: 84px; }
.shift h2 { max-width: 34ch; margin-bottom: 16px; }
.shift-grid { display: grid; grid-template-columns: 6fr 4fr; gap: 36px; align-items: start; }
.switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.switch button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; color: var(--grey); font-size: 14px; font-weight: 600; }
.switch button[aria-pressed="true"] { background: var(--ochre); color: var(--white); }
.shift-row { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }
.shift-row h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.shift-row p { font-size: 15.5px; line-height: 1.45; transition: color .4s ease, opacity .4s ease; }
.shift-row .before { color: var(--ochre); }
.shift-row .with { color: #5d5d58; }
.shift-row.flipped .before { color: #5d5d58; text-decoration: line-through; text-decoration-color: #45453f; }
.shift-row.flipped .with { color: var(--ochre); }
.shift-row.flipped .with::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23C64E1E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.fleet-svg { width: 100%; height: auto; display: block; margin-bottom: 8px; }
@media (max-width: 1199px) { .fleet-svg { max-width: 520px; margin-left: auto; margin-right: auto; } }
.fl { stroke: var(--grey); stroke-width: 1.4; }
.lbl { font: 500 9px var(--mono); fill: var(--grey); text-anchor: middle; }
.lab { fill: var(--ground); stroke: var(--line-2); }
.fleet-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--grey); }
.fleet-lines b { color: var(--white); }

.savings { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Screen 5 hosts the savings block on its own, so it loses the sub-section divider it had inside screen 4. */
.savings-screen .savings { margin-top: 0; padding-top: 0; border-top: 0; }
/* Screen 5's heading is longer than the other screens', so it skips the global 22ch heading cap. */
.savings-screen h2 { max-width: none; }
.ref { color: var(--grey); font-size: 15px; margin: 4px 0 12px; }
.save-rows { display: grid; gap: 10px; }
.save-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.save-row:nth-child(2) { grid-template-columns: repeat(4, 1fr); }
/* Screen 5 stat cards: terracotta from the logo, as decided 2026-11-28 (matches the screen 1 fact cards). */
.stat { border: 1px solid #a63e15; border-radius: 8px; padding: 9px 12px; background: var(--ochre); }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.stat > span { font-size: 15px; color: rgba(255,255,255,.92); line-height: 1.45; display: block; }
.stat .info { border-color: rgba(255,255,255,.8); color: rgba(255,255,255,.85); }
.label { margin-top: 10px; font-size: 12.5px; color: var(--grey); max-width: 110ch; }
.ambition { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 4px; }
.ambition .closing { margin-top: 14px; }

/* ---------- Screen 5: Team ---------- */
.team-graph { width: 160px; flex: none; }
.team-graph .edge line { stroke: var(--line-2); stroke-width: 1.5; }
.tn { fill: var(--ground); stroke: var(--white); stroke-width: 2; }
.team-graph .tn.hot { stroke: var(--ochre); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 22px; }
.founder-photo { aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--grey); font: 500 12px var(--mono); margin-bottom: 14px; }
.founder h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.founder .role { font: 600 12px var(--mono); color: var(--grey); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.founder .bio { font-size: 15px; line-height: 1.5; color: var(--grey); }
.team { padding-top: calc(var(--header) + 28px); padding-bottom: 48px; }
.why-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.reasons { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reasons li { counter-increment: r; }
.reasons li::before { content: counter(r, decimal-leading-zero); font: 600 12px var(--mono); color: var(--grey); display: block; margin-bottom: 4px; }
.reason-btn { background: none; border: 0; padding: 0; text-align: left; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; cursor: default; margin-bottom: 6px; }
.reasons p { font-size: 14.5px; color: var(--grey); }
.team-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
.team-cta { background: var(--ochre); color: var(--white); }
.team-cta:hover { background: #a63e15; }
.team .wrap { display: flex; flex-direction: column; }

/* ---------- Screen 6: Meet ---------- */
.meet { justify-content: flex-start; padding-bottom: 0; overflow: hidden; }
.rest-graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }
.meet-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 4fr 6fr; gap: 56px; align-items: start; flex: 1; padding-top: 4vh; padding-bottom: 48px; }
.promise { color: var(--grey); font-size: 18px; margin-bottom: 22px; }
.next { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.next li { counter-increment: n; display: flex; gap: 12px; align-items: baseline; }
.next li::before { content: counter(n); font: 600 13px var(--mono); width: 24px; height: 24px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.form-box { background: var(--white); color: var(--ground); border-radius: 14px; padding: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 12px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; padding: 0; }
.opt { font-weight: 500; color: #6b6b65; font-size: 12.5px; }
.field input[type="text"], .field input[type="email"], .field input[type="datetime-local"], .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1.5px solid #cfcfca; border-radius: 8px; padding: 9px 12px;
  font: inherit; font-size: 16px; color: var(--ground); background: #fff;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ground); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--ground); border-style: dashed; }
.err-msg { font-size: 13px; color: var(--ground); margin-top: 4px; min-height: 0; }
.err-msg:not(:empty)::before { content: "✕ "; font-weight: 700; }
.counter { font-size: 12px; color: #6b6b65; text-align: right; margin-top: 2px; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chips label { margin: 0; font-weight: 600; font-size: 14px; }
.interest-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interest-chips span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1.5px solid #cfcfca; border-radius: 999px; cursor: pointer; user-select: none; }
.interest-chips input:checked + span { background: var(--ground); color: var(--white); border-color: var(--ground); }
.interest-chips input:focus-visible + span { outline: 2px solid var(--ground); outline-offset: 2px; }
.time-choice { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.radio, .check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.check { align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ground); flex: none; }
.radio input { accent-color: var(--ground); width: 18px; height: 18px; }
.time-pick { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.time-pick input { max-width: 260px; }
.tz { font-size: 13px; color: #6b6b65; }
.consent a { color: var(--ground); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; margin-top: 4px; min-height: 48px; }
.submit[disabled] { opacity: .6; cursor: progress; }
.form-error { margin-top: 10px; font-size: 14px; }
.success { text-align: center; padding: 40px 10px; font-size: 19px; font-weight: 700; }
.t.big { width: 48px; height: 48px; display: block; margin: 0 auto 12px; }
.details-toggle { display: none; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 20px 0; font-size: 13.5px; color: var(--grey); background: var(--ground); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.foot a { color: var(--grey); text-decoration: none; }
.foot a:hover { color: var(--white); }
.brand.small .brand-mark { width: 20px; height: 20px; }
.brand.small .wordmark { font-size: 16px; }

.sticky-cta { display: none; }

.lightbox { border: 0; padding: 0; background: #000; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lb-close { position: fixed; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: var(--ground); font-size: 18px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .wrap { padding: 0 32px; }
  .shift-row { grid-template-columns: 180px 1fr 1fr; }
  .save-row, .save-row:nth-child(2) { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .car-arrow.prev { left: -8px; }
  .car-arrow.next { right: -8px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "visual" "facts" "close"; }
  .hero-visual { max-width: 560px; }
  .steps { width: 100%; min-height: 0; }
  .panel { position: static; width: auto; margin: 12px 0 6px 40px; }
  .shift-grid { grid-template-columns: 1fr; }
  .meet-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --header: 56px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { padding: 0 16px; }
  .site-header { padding: 0 12px 0 16px; }
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .progress { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
  .progress span { display: block; height: 100%; width: 0; background: var(--white); transition: width .1s linear; }
  .screen { min-height: 0; padding: calc(var(--header) + 28px) 0 40px; justify-content: flex-start; }
  .scroll-cue { display: none; }
  .scroll-cue.first { display: flex; position: static; transform: none; margin: 18px auto 0; font-size: 13px; }
  h2 { font-size: 28px; max-width: 18ch; margin-bottom: 18px; }
  .closing { font-size: 17px; }
  .btn-primary:not(.header-cta) { width: 100%; min-height: 48px; }

  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "visual" "facts" "close"; row-gap: 20px; }
  .display { font-size: 34px; max-width: none; margin-bottom: 14px; }
  .lead { font-size: 17px; margin-bottom: 10px; }
  .plain { font-size: 16px; margin-bottom: 18px; }
  .hero-visual { position: relative; cursor: pointer; padding-bottom: 16px; }
  .hero-svg { width: 100%; height: auto; max-height: 40svh; }
  .tap-hint { position: absolute; right: 0; bottom: 0; font: 500 11px var(--mono); color: var(--grey); }
  .facts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; }
  .fact { flex: 0 0 72%; scroll-snap-align: start; padding: 12px 14px; }
  .num { font-size: 28px; }
  .stat strong { font-size: 28px; }

  .steps { width: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { min-width: 0; }
  .step { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
  .step.is-active { border-color: var(--line); }
  .step-btn { pointer-events: none; }
  .step .step-n, .step.is-active .step-n { border-color: var(--white); color: var(--ground); background: var(--white); }
  .step .step-name { color: var(--ochre); font-size: 19px; }
  .step-text, .step.is-active .step-text { display: block; padding-left: 40px; font-size: 15px; }
  .panel, .step.is-active .panel { display: block; position: static; width: auto; border: 0; padding: 12px 0 0; background: none; }
  .show-code { background: none; border: 1px solid var(--line-2); border-radius: 8px; min-height: 44px; padding: 0 14px; margin-bottom: 10px; font-size: 14px; }
  .snippet { display: none; overflow-x: auto; white-space: pre; }
  .snippet.open { display: block; }
  .slides { height: auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; background: none; }
  .slide { position: static; opacity: 1; flex: 0 0 88%; scroll-snap-align: start; border-radius: 8px; overflow: hidden; background: #000; }
  .slide img { height: 220px; cursor: zoom-in; } /* about the top 12 lines of each render */
  .slide figcaption { position: static; height: auto; }
  .gallery-nav button.g-prev, .gallery-nav button.g-next { display: none; }

  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chip { flex: none; min-height: 44px; }
  .car-arrow { display: none; }
  .carousel { margin: 0 -16px; padding: 4px 16px 10px; scroll-padding: 0 16px; gap: 12px; }
  .card { flex: 0 0 calc(100vw - 32px); height: auto; max-height: 70svh; padding: 18px; }
  .card .sub { margin-bottom: 6px; }
  .pain { font-size: 17px; font-weight: 600; }
  .talk { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: var(--white); color: var(--ground); font-weight: 700; }
  .talk:hover { text-decoration: none; }

  .shift-grid { grid-template-columns: 1fr; gap: 24px; }
  .shift-row { grid-template-columns: 1fr auto; gap: 4px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); }
  .shift-row h3 { grid-column: 1; color: var(--grey); font-size: 13px; font-family: var(--mono); font-weight: 500; }
  .shift-row .flip { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none; border: 1px solid var(--line-2); border-radius: 999px; min-height: 44px; padding: 0 14px; font-size: 13px; }
  .shift-row .before, .shift-row .with { grid-column: 1; font-size: 16px; font-weight: 700; }
  .shift-row .before { display: none; }
  .shift-row .with, .shift-row.flipped .with { color: var(--white); }
  .shift-row.flipped .with::before { display: none; }
  .shift-row.show-before .before { display: block; color: var(--grey); text-decoration: none; font-weight: 500; }
  .shift-row.show-before .with { display: none; }
  .fleet-lines { gap: 10px; font-size: 15px; }
  .fleet-lines li { border-left: 2px solid var(--line-2); padding-left: 12px; }
  .save-rows { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; }
  .save-row, .save-row:nth-child(2) { display: contents; }
  .stat { flex: 0 0 62%; scroll-snap-align: start; }
  .stat.more { display: none; }
  .savings.all .save-rows { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .savings.all .stat.more { display: block; }
  .see-all { margin-top: 10px; background: none; border: 0; text-decoration: underline; color: var(--grey); min-height: 44px; padding: 0; }
  .ambition { flex-direction: column; align-items: stretch; }

  .team-head { flex-direction: column; gap: 0; }
  .team-graph { display: none; }
  .team-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .reasons { grid-template-columns: 1fr; gap: 0; }
  .reasons li { border-top: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
  .reasons li::before { margin: 0; }
  .reason-btn { cursor: pointer; min-height: 44px; flex: 1; margin: 0; }
  .reason-btn::after { content: "+"; float: right; color: var(--grey); font-weight: 500; }
  .reason-btn[aria-expanded="true"]::after { content: "−"; }
  .reasons p { display: none; flex-basis: 100%; padding-bottom: 6px; }
  .reasons li.open p { display: block; }

  .meet-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 0; padding-bottom: 32px; }
  .meet-grid h2 { margin-bottom: 8px; }
  .promise { margin-bottom: 0; font-size: 16px; }
  .form-box { padding: 18px 16px; }
  .row2 { grid-template-columns: 1fr; }
  .interest-chips span { min-height: 44px; }
  .details-toggle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; background: none; border: 1.5px dashed #cfcfca; border-radius: 8px; color: var(--ground); font-weight: 600; margin-bottom: 12px; }
  .optional { display: none; }
  .optional.open { display: block; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot nav { margin-left: 0; }

  .tip { position: fixed; left: 16px; right: 16px; bottom: 92px; top: auto; transform: none; width: auto; max-width: none; font-size: 14px; z-index: 60; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(20, 20, 19, .92);
    border-top: 1px solid var(--line); transition: transform .25s ease;
  }
  .sticky-cta.hidden { transform: translateY(110%); }
}

/* ---------- Investor and privacy pages ---------- */
.page { padding-top: calc(var(--header) + 48px); padding-bottom: 64px; min-height: 100svh; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.inv-head h1 { font-size: clamp(32px, 4vw, 54px); max-width: 20ch; letter-spacing: -0.035em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tile summary { list-style: none; padding: 20px 22px 0; cursor: default; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary h2 { font-size: 22px; margin: 0; max-width: none; }
.tile .one { display: none; }
.tile-body { padding: 12px 22px 22px; }
.tile ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--grey); font-size: 15.5px; }
.tile ul b { color: var(--white); }
.tile .note { margin-top: 10px; font-size: 13px; color: var(--grey); }
.path { margin-top: 28px; }
.path h2 { font-size: 18px; margin-bottom: 12px; max-width: none; }
.path ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.path li { flex: 1; font-size: 13px; font-weight: 700; padding: 10px 8px 0; border-top: 2px solid var(--line-2); position: relative; }
.path li::before { content: ""; position: absolute; top: -6px; left: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--ground); border: 2px solid var(--white); }
.path li:last-child { color: var(--white); }
.path summary { display: none; }
.inv-cta-bottom { display: none; }
.inv-cta-wrap { display: flex; justify-content: flex-end; margin-top: 28px; }
.prose { max-width: 72ch; }
.prose h1 { font-size: 40px; margin-bottom: 18px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; max-width: none; }
.prose p, .prose li { color: var(--grey); }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--white); }
.draft { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--grey); margin-bottom: 20px; }

@media (max-width: 767px) {
  .page { padding-top: calc(var(--header) + 24px); }
  .inv-head { flex-direction: column; align-items: stretch; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile summary { padding: 14px 16px; cursor: pointer; min-height: 44px; }
  .tile summary h2 { font-size: 19px; display: flex; justify-content: space-between; }
  .tile summary h2::after { content: "+"; color: var(--grey); font-weight: 500; }
  .tile[open] summary h2::after { content: "−"; }
  .tile .one { display: block; color: var(--grey); font-size: 14.5px; margin-top: 2px; }
  .tile-body { padding: 0 16px 16px; }
  .path ol { flex-direction: column; display: none; }
  .path details[open] ol { display: flex; }
  .path li { border-top: 0; border-left: 2px solid var(--line-2); padding: 6px 0 6px 18px; }
  .path li::before { top: 11px; left: -6px; }
  .path summary { display: flex; min-height: 44px; align-items: center; cursor: pointer; color: var(--grey); text-decoration: underline; }
  .path h2.dk + ol { display: none; }
  .inv-cta-wrap { display: none; }
  .inv-cta-bottom { display: flex; margin-top: 20px; }
}
@media (min-width: 768px) {
  .path details > ol { display: flex; }
}
.nav-quiet.is-active { color: var(--white); }
