:root {
  /* brand palette v1.2 (see PLATES/branding): Butter, Black, Ivory buff, Brick.
     Light is the inverse of dark; brick carries the buttons, the band and the details. */
  --bg: #FAEBB2; --ink: #141618; --muted: #5E5A48; --line: #E6D59A; --plate: #F3E2A6;
  --accent: #AF452F;            /* brick: lines and dots */
  --accent-text: #AF452F;       /* brick on butter is 4.7:1, fine for small text */
  --btn-bg: #AF452F; --btn-fg: #FAEBB2;   /* brick with butter text (4.7:1) */
  /* the closing waitlist band: brick with butter text in both modes */
  --band-bg: #AF452F; --band-ink: #FAEBB2; --band-muted: #FAEBB2; --band-btn-bg: #141618; --band-btn-fg: #FAEBB2;
  --font-display: 'Space Grotesk', 'Inter Tight', system-ui, sans-serif;
  --post-top: url("../media/post-top.png"); --post-bottom: url("../media/post-bottom.png");
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
/* dark: follows the system unless the visitor picked light; or picked dark explicitly */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141618; --ink: #EBD999; --muted: #A49C7E; --line: #2A2C2E; --plate: #1C1E20;
    --accent: #D16852; --accent-text: #D16852;   /* light brick: brick itself is only 3.2:1 on black */
    --btn-bg: #AF452F; --btn-fg: #FAEBB2;
    --band-bg: #AF452F; --band-ink: #FAEBB2; --band-muted: #FAEBB2; --band-btn-bg: #141618; --band-btn-fg: #EBD999;
    --post-top: url("../media/post-top-dark.png"); --post-bottom: url("../media/post-bottom-dark.png");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141618; --ink: #EBD999; --muted: #A49C7E; --line: #2A2C2E; --plate: #1C1E20;
  --accent: #D16852; --accent-text: #D16852;   /* light brick: brick itself is only 3.2:1 on black */
  --btn-bg: #AF452F; --btn-fg: #FAEBB2;
  --band-bg: #AF452F; --band-ink: #FAEBB2; --band-muted: #FAEBB2; --band-btn-bg: #141618; --band-btn-fg: #EBD999;
  --post-top: url("../media/post-top-dark.png"); --post-bottom: url("../media/post-bottom-dark.png");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter Tight', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* page + bike */
/* Everything bike-shaped is rendered from one Blender camera. --u is one render pixel:
   the hero video is 2520 x 1080 u, the backdrop 7560 x 3240 u centred on it. */
.page { position: relative; z-index: 0; overflow: clip; min-height: 100vh; container-type: inline-size;
  background: var(--bg); /* the header's difference blend needs a backdrop inside this stacking context */ }
/* cqw is the page width, so --u is the same for every element (a % here would resolve per element) */
.wrap { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  --vw: calc(min(1440px, 100cqw) - 2 * var(--gutter)); --u: calc(var(--vw) / 2520); }
.scene { position: absolute; z-index: -2; pointer-events: none; max-width: none;
  left: calc(var(--u) * -2520); top: calc(var(--u) * -1080); width: calc(var(--u) * 7560); height: calc(var(--u) * 3240); }
/* the seat post: from the saddle clamp (saddle row 1008) down to the backdrop, under it (z -3);
   below the backdrop the seat tube continues and fades into the page, covering the post above it */
.post { position: absolute; pointer-events: none; }
.post-up { z-index: -3; left: calc(var(--gutter) + var(--u) * 1950); width: calc(var(--u) * 294);
  top: calc(var(--u) * (1003 - 300)); bottom: 0; background: var(--post-top) repeat-y 0 0 / 100% 4px; }
.post-down { z-index: -2; left: calc(var(--u) * 1911); width: calc(var(--u) * 372);
  top: calc(100% + var(--u) * 1080 - 1px); height: 400vh;
  background: linear-gradient(180deg, transparent 0, var(--bg) 2.5%), var(--post-bottom) repeat-y 0 0 / 100% 4px; }
/* above the saddle clamp nothing of the post may show, whatever the backdrop reaches up to:
   a page-coloured cover over the post column, under the saddle (same z, earlier in the DOM) */
.post-cover { position: absolute; z-index: -1; pointer-events: none; background: var(--bg);
  left: calc(var(--gutter) + var(--u) * 1930); width: calc(var(--u) * 334);
  top: -100vh; height: calc(100vh + var(--u) * (1003 - 300)); }
/* saddle: same post column (render x 1472 -> 1960 in video coordinates), cut in half by the top of the page */
.saddle { position: absolute; z-index: -1; pointer-events: none; max-width: none;
  left: calc(var(--gutter) + var(--u) * 488); top: calc(var(--u) * -300); width: calc(var(--u) * 3360); height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }

/* header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 16px; padding: 26px 0 20px; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.02em; }
/* the menu gets its own row under the lockup, on the plain page left of the saddle */
.top nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 28px; }
/* masthead lockup, one colour, follows the theme */
.brand { display: block; color: var(--ink); line-height: 0; }
.brand:hover { opacity: .8; }
.lockup { display: block; height: clamp(30px, 3.2vw, 46px); width: auto; overflow: visible; }
/* while the hero loads, the rear plate blinks like a rear light (only if loading takes a moment;
   capped at a few blinks so it can never run forever) */
@keyframes rear-blink { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }
.loading .lockup-rear { animation: rear-blink 1s ease-in-out .25s 8; }
@media (prefers-reduced-motion: reduce) { .loading .lockup-rear { animation: none; } }
.top-right { display: flex; align-items: center; gap: 32px;
  /* sits over the saddle: difference keeps it dark on the page and light on the saddle */
  color: #fff; mix-blend-mode: difference; }
.top-right .langs a { color: #B4B4B0; }
.top-right .langs a[aria-current="true"] { color: #fff; }
.top-right .muted { color: #B4B4B0; }
.langs { display: flex; gap: 8px; }
.langs a { color: var(--muted); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.theme-toggle svg { transition: transform .3s ease; }
:root[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle svg { transform: rotate(180deg); } }
.logo { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; color: var(--ink); }
.logo img { display: block; height: 26px; width: auto; }

/* hero */
.hero { padding: clamp(28px, 4.5vw, 72px) 0 clamp(8px, 1.5vw, 24px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 96px); line-height: 0.95; letter-spacing: -0.04em; max-width: 14ch; }
/* button sits under the intro, on the left, clear of the post and the animation */
.hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(20px, 2.2vw, 36px); }
.lead { max-width: 46ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; }
.btn:hover { text-decoration: none; opacity: 0.88; }

.fig1 { position: relative; margin: 0 0 clamp(80px, 10vw, 160px); }
.hero-media { position: relative; aspect-ratio: 2520 / 1080; }
.hero-video { position: relative; display: block; width: 100%; height: 100%; object-fit: contain;
  /* the backdrop under the video holds identical pixels, so fading the edges hides the frame entirely */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 12px; }

/* sections */
.section { margin-bottom: clamp(80px, 10vw, 160px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3vw, 40px); }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.part { padding: 28px 0 32px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
/* caption under the image: title flush with its left edge, explanation flush with its right edge */
.part-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.part h3 { flex: 0 1 auto; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.02em; line-height: 1.15; }
.part-caption p { flex: 0 1 24ch; text-align: right; font-size: 14px; line-height: 1.45; color: var(--muted); }
.slot { position: relative; background: var(--plate); aspect-ratio: 4 / 3; overflow: hidden; }
.slot.square { aspect-ratio: 1; }
.slot.dark { background: #0A0A09; }
.slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.figures figure { margin: 0; }

.specs { display: flex; flex-wrap: wrap; gap: 40px; }
.specs h2 { flex: 1 1 280px; }
.specs dl { margin: 0; flex: 999 1 560px; min-width: 0; }
.specs dl > div { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.specs dl > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { flex: 0 0 200px; }
.specs dd { margin: 0; }

/* waitlist */
.waitlist { padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: end; }
.waitlist-text { flex: 1 1 420px; }
.kicker { margin-bottom: 20px; }
.waitlist h2 { font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.04em; }
.waitlist-form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.waitlist-form .row { display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist-form input { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; }
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form button { min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--band-btn-bg, var(--ink)); color: var(--band-btn-fg, var(--bg)); font: inherit; font-weight: 500; cursor: pointer; }
.waitlist-form .small a { text-decoration: underline; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 12px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 24px; }

/* phones: keep the bike inside the hero band so it never runs over text */
@media (max-width: 720px) {
  .post, .saddle, .post-cover { display: none; }
  .scene { -webkit-mask-image: linear-gradient(180deg, transparent 27%, #000 34%, #000 66%, transparent 73%);
           mask-image: linear-gradient(180deg, transparent 27%, #000 34%, #000 66%, transparent 73%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* parts: plate 1/3, light + charger 2/3 (both images share one height: 8:9 next to 16:9) */
.parts-split { grid-template-columns: 1fr 2fr; }
.slot-loop { aspect-ratio: 16 / 9; }
.slot-mount { aspect-ratio: 8 / 9; }
@media (max-width: 900px) {
  .parts-split { grid-template-columns: 1fr; }
}

/* plate panel: line drawing in ink + step captions */
.slot-mount { color: var(--ink); }
.mount-art { position: absolute; inset: 0; background: var(--ink); -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }

/* charger loop: rendered video + drawn overlay in ink */

/* benefits as a tree: PLATES ──┬── … (drawn with 1px lines so it joins up at any size) */
.perks { display: flex; align-items: flex-start; padding: clamp(40px, 6vw, 88px) 0; border-bottom: 1px solid var(--line);
  font-size: clamp(14px, 1.55vw, 22px); line-height: 1.9; }
.perks-root { position: relative; font-weight: 500; white-space: nowrap; padding-right: 3.5ch; }
/* same height as the branch lines: .95em = half of the 1.9 line-height */
.perks-root::after { content: ""; position: absolute; right: 0; top: .95em; width: 2.5ch; border-top: 1px solid var(--muted); }
.perks-tree { list-style: none; margin: 0; padding: 0; }
.perks-tree li { position: relative; padding-left: 4ch; }
.perks-tree li::before { content: ""; position: absolute; left: 0; top: .95em; width: 3ch; border-top: 1px solid var(--muted); }
.perks-tree li:not(:last-child)::after { content: ""; position: absolute; left: 0; top: .95em; bottom: -.95em; border-left: 1px solid var(--muted); }
@media (max-width: 720px) {
  .perks { flex-direction: column; }
  .perks-root::after { display: none; }
  .perks-tree { margin-left: .5ch; }
  .perks-tree li:first-child::after { top: -.3em; }
  .perks-tree li:first-child:last-child::after { content: ""; position: absolute; left: 0; top: -.3em; height: 1.25em; border-left: 1px solid var(--muted); }
}
/* hover: the line under the pointer gets an underline that fades in and out */
.perks-tree .w { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: transparent; transition: text-decoration-color .9s ease; }
.perks-tree .w:hover { text-decoration-color: currentColor; transition-duration: .45s; }

.slot-mount, .slot-loop { background: var(--bg); }   /* hides the bike's seat post running behind the panels */
.perks, .specs { position: relative; }

/* still / live switch under the section title */
.section-title { display: flex; flex-direction: column; gap: 14px; }
/* charger panel: still = exploded drawing with callouts, live = line-art loop + overlay */
.chg-still, .chg-still-art, .chg-callouts { position: absolute; inset: 0; width: 100%; height: 100%; }
.chg-still-art { background: var(--ink); -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }
.chg-callouts { fill: none; stroke: var(--ink); stroke-width: 1.6; overflow: visible; }
.chg-callouts circle { fill: var(--ink); stroke: none; }
.chg-callouts text { fill: var(--ink); stroke: none; font-family: 'JetBrains Mono', monospace; font-size: 21px; letter-spacing: .02em; }
.chg-callouts .co-l text { text-anchor: end; }
@media (max-width: 720px) { .chg-callouts text { font-size: 30px; } }

/* text pages (privacy policy) */
.prose { max-width: 68ch; padding: clamp(48px, 7vw, 112px) 0 clamp(64px, 8vw, 128px); }
.prose h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.04em; margin: 16px 0 32px; }
.prose h2 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.02em; margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose p, .prose li { font-size: 17px; line-height: 1.6; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose p.mono { font-size: 13px; margin: 0; }
.prose em { display: block; margin-top: 6px; font-style: normal; color: var(--muted); font-size: 15px; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* waitlist form: honeypot off-screen, inline message, busy button */
.waitlist-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-form .form-msg { margin: 0; color: var(--ink); }
.waitlist-form.has-error .form-msg { font-weight: 600; }
.waitlist-form.has-error input { border-width: 2px; }
.waitlist-form button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 720px) { .top nav { gap: 22px; } }

/* the closing waitlist section: a full-bleed brick band in both modes.
   It sets its own ink, so the form, messages and links follow. */
.waitlist { --ink: var(--band-ink); --muted: var(--band-muted); --line: var(--band-muted);
  color: var(--ink); background: var(--band-bg); border-top: 0;
  box-shadow: 0 0 0 100vmax var(--band-bg); clip-path: inset(0 -100vmax); }
.waitlist + .foot { border-top: 0; }

/* small brand details in brick */
.top nav .muted, .section-head > .mono, .part > .mono.muted, .kicker, .perks-root, .foot a[href^="mailto"] { color: var(--accent-text); }
.waitlist .kicker { color: var(--muted); }
.perks-tree li::before, .perks-tree li::after, .perks-root::after { border-color: var(--accent); }
.chg-callouts circle { fill: var(--accent); }
