/* Entry point. build.mjs inlines these imports into one file. */
/* LessFuzz design tokens. The only file that holds colour, type, space, radius,
   motion and layering values. Derived from the brandbook tokens of the old Next.js site (app/lib/tokens.ts in git history).
   Restyling the site means editing this file and no other. */

:root {
  /* ---------------------------------------------------------------- colour */
  --c-bg: #FFFFFF;
  --c-surface: #F5F5F5;
  --c-text: #0A0A0A;
  /* Secondary text. The lightest grey that clears 4.5:1 on #F5F5F5 as well as
     #FFFFFF (5.27:1 and 5.74:1). Never go lighter: see tasks/context.md. */
  --c-text-2: #666666;
  --c-line: #E8E8E8;
  --c-accent: #FF4500;
  --c-accent-dim: rgba(255, 69, 0, 0.08);
  /* Accepted brand exceptions (user, 2026-07-28): orange small text and white
     on orange buttons stay as they are. */
  --c-on-accent: #FFFFFF;
  /* Second accent. Use as fill, highlight or stroke with ink on it (about 10:1);
     never as small text on white (1.8:1). Orange stays the action colour. */
  --c-lime: #84CC16;
  --c-on-lime: var(--c-ink);
  --c-ink: #0A0A0A;
  --c-on-ink: #FFFFFF;
  --c-veil: rgba(255, 255, 255, 0.86);
  /* Floating glass header: translucent fill, bright edge, soft drop. */
  --c-glass: rgba(255, 255, 255, 0.58);
  --c-glass-edge: rgba(255, 255, 255, 0.7);
  --glass-blur: saturate(1.6) blur(18px);
  --c-shadow-2: rgba(10, 10, 10, 0.1);

  /* ---------------------------------------------------------------- type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fw-light: 200;
  --fw-regular: 400;
  --fw-bold: 700;
  --fw-black: 800;

  --fs-display: clamp(6rem, 2.5rem + 16vw, 16rem);
  --fs-statement: clamp(3.5rem, 2.15rem + 7.05vw, 8.5rem);
  --fs-sentence: clamp(1.5rem, 0.95rem + 2.2vw, 3rem);
  --fs-stamp: clamp(0.875rem, 0.7rem + 0.8vw, 1.5rem);
  --fs-hero: clamp(2.375rem, 1.55rem + 3.6vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --fs-h3: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 0.99rem + 0.35vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-label: clamp(0.6875rem, 0.665rem + 0.1vw, 0.75rem);

  --lh-tight: 0.98;
  --lh-snug: 1.15;
  --lh-body: 1.65;
  --tracking-tight: -0.04em;
  --tracking-display: -0.05em;
  --tracking-snug: -0.02em;
  --tracking-ui: -0.01em;
  --tracking-label: 0.12em;
  --measure: 38rem;
  --measure-wide: 46rem;

  /* ---------------------------------------------------------------- space */
  --space-3xs: clamp(0.25rem, 0.23rem + 0.1vw, 0.3125rem);
  --space-2xs: clamp(0.375rem, 0.35rem + 0.1vw, 0.5rem);
  --space-xs: clamp(0.625rem, 0.58rem + 0.2vw, 0.75rem);
  --space-s: clamp(0.875rem, 0.8rem + 0.3vw, 1.125rem);
  --space-m: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --space-l: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  --space-xl: clamp(2.5rem, 1.9rem + 2.6vw, 4.5rem);
  --space-2xl: clamp(3.5rem, 2.4rem + 4.6vw, 7rem);
  --space-section: clamp(4.5rem, 2.8rem + 7vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 4rem);

  --container: 80rem;
  --container-narrow: 47.5rem;
  --container-form: 54rem;
  --header-h: clamp(3.5rem, 3.15rem + 1.2vw, 4.5rem);
  /* Gap between the floating header and the top of the viewport. */
  --header-gap: clamp(0.5rem, 0.35rem + 0.6vw, 1rem);
  /* Space the floating header covers: pages without a full-bleed hero start below it. */
  --header-clear: calc(var(--header-h) + 2 * var(--header-gap));
  --logo-h: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  --tap: 44px; /* accessibility floor for touch targets, deliberately px */
  --control-h: max(var(--tap), clamp(3rem, 2.9rem + 0.4vw, 3.375rem));
  --control-h-lg: max(var(--tap), clamp(3.25rem, 3.1rem + 0.6vw, 3.75rem));
  --control-h-xl: max(var(--tap), clamp(3.5rem, 3.2rem + 1.2vw, 4.5rem));
  --icon: 1.125em;
  --stroke-hair: 1px;
  /* Highlighter band behind words, as a share of the inline box. Plus Jakarta
     Sans puts the x-height top at 39% and the baseline at 82%, so the band
     covers the x-height and stops just under the baseline. */
  --mark-from: 42%;
  --mark-to: 86%;
  --underline: 2px;
  --stroke-outline: clamp(1.25px, 0.9px + 0.12vw, 2.5px);
  --stroke-outline-xl: clamp(1.5px, 0.8px + 0.22vw, 3.75px);
  --focus-ring: 2px;
  --focus-offset: 3px;

  /* ---------------------------------------------------------------- radius */
  --r-xs: 2px;
  --r-s: 0.375rem;
  --r-full: 9999px;

  --shadow-float: 0 -1px 0 var(--c-line), 0 -0.75rem 2.5rem -1rem var(--c-shadow-2);
  --shadow-glass: inset 0 1px 0 var(--c-glass-edge), 0 0.5rem 2rem -0.75rem var(--c-shadow-2);

  /* ---------------------------------------------------------------- motion */
  /* CSS easing and its GSAP twin: keep the pair together. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-gsap: power4.out;
  --ease-gsap-scrub: power3.inOut;
  /* Overshoot for the RESERVED stamp landing. */
  --ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.45s;
  --dur-slow: 0.9s;
  --dur-spin: 0.8s;
  --stagger: 0.09s;
  --rise: 1.5rem;
  --consent-delay: 1s;

  /* ---------------------------------------------------------------- hero */
  /* Where the copy starts, as a fraction of the video height. The end frame
     centres the logo at 40% and leaves the bottom 40% empty. */
  --hero-copy-top: 0.5;
  --hero-copy-top-portrait: 0.46;
  /* Hero copy also scales with the screen's HEIGHT, so logo, headline, subline
     and buttons share the first screen on short laptop windows too. */
  --hero-title: clamp(2rem, 8.5svh, var(--fs-hero));
  --hero-lead: clamp(1rem, 2.5svh, var(--fs-lead));
  --hero-gap-s: min(var(--space-s), 1.4svh);
  --hero-gap-m: min(var(--space-m), 2svh);
  --hero-gap-l: min(var(--space-l), 3svh);

  /* ---------------------------------------------------------------- coming soon */
  /* Scroll length of the pinned statement, in viewport heights. */
  --statement-scroll: 1.6;
  --stamp-tilt: -9deg;

  /* ---------------------------------------------------------------- canal walk */
  /* The night scene behind "Coming soon". */
  --c-night: #07090A;
  --c-on-night-2: rgba(255, 255, 255, 0.82);
  --c-lime-glow: rgba(132, 204, 22, 0.55);
  --canal-scroll: 2;
  --canal-h: 100svh;
  /* Largest "Coming soon" that still fits a phone screen's width. */
  --proj-size-narrow: 12.5vw;
  --light-soft: 14%;
  /* Mask opacity, not a colour: opaque where the masked layer shows. */
  --mask-solid: #000;

  /* ---------------------------------------------------------------- component sizes */
  --btn-pad: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --icon-nudge: 0.25em;
  --spinner-size: 1.1em;
  --check-size: 1.5rem;
  --check-tick-w: 0.42rem;
  --check-tick-h: 0.75rem;
  --error-dot: 1.15rem;
  --form-status-measure: 30rem;
  --consent-measure: 40rem;
  --consent-button-min: 8.25rem;
  --consent-blur: saturate(1.4) blur(18px);
  --footer-col-min: 14rem;
  --legal-num-col: 2.5rem;

  --spinner-stroke: var(--underline);
  /* Optical offsets, in em so they follow the text they sit beside. */
  --underline-offset: 0.2em;
  --error-dot-nudge: 0.15em;
  --check-nudge: 0.1em;
  --outline-descender: 0.06em;
  --legal-num-nudge: 0.35em;
  --mask-descender: 0.2em;

  /* ---------------------------------------------------------------- scroll motion */
  /* Read by the GSAP scenes through token()/seconds(); the CSS starting states
     in motion.css use the same values, so both sides agree. */
  --reveal-start: top 85%;
  --scrub: 0.8;
  --scrub-quick: 0.6;
  --hero-stagger-factor: 1.5;
  --statement-hidden-y: 110%;
  --statement-tilt: 4deg;
  --statement-entry-start: top 70%;
  --statement-entry-end: top 15%;
  --statement-step: 0.85;
  --statement-hold: 0.35;
  --mark-draw-end: top 50%;
  --canal-light-anchor: 0.5;
  --canal-light-lead: 12%;
  --canal-light-end: 125%;
  --canal-projection-at: 0.8;
  --canal-projection-duration: 0.16;
  --canal-projection-scale: 1.05;
  --canal-projection-blur: 10px;
  --canal-hold: 0.12;

  /* ---------------------------------------------------------------- layers */
  --z-header: 30;
  --z-consent: 40;
  --z-skip: 50;
}

/* Local brand fonts, subset to Latin from the brandbook TTFs. No CDN. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset, document defaults and layout primitives. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-clear) + var(--space-m));
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main { flex: 1 0 auto; outline: none; padding-top: var(--header-clear); }
/* The home hero is full-bleed: the floating header sits over the film. */
.page--home main { padding-top: 0; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: var(--fw-bold); }

a { color: inherit; text-decoration-thickness: var(--stroke-hair); text-underline-offset: var(--underline-offset); }

::selection { background: var(--c-lime); color: var(--c-on-lime); }

:focus-visible {
  outline: var(--focus-ring) solid var(--c-accent);
  outline-offset: var(--focus-offset);
}

[hidden] { display: none !important; }
.no-js .js-only { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: var(--z-skip);
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--r-full);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-m)));
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

.section { padding-block: var(--space-section); }

/* ---------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-weight: var(--fw-regular);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-2);
}
.eyebrow--accent { color: var(--c-accent); }

.h1, .h2 {
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: var(--measure);
  text-wrap: pretty;
}

.outline {
  color: transparent;
  -webkit-text-stroke: var(--stroke-outline) var(--c-accent);
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px) {
  .outline { color: var(--c-accent); }
}
@media (forced-colors: active) {
  .outline { color: CanvasText; -webkit-text-stroke: 0; }
}

/* Lime highlighter behind words. */
.mark {
  color: inherit;
  background: linear-gradient(transparent var(--mark-from), var(--c-lime) var(--mark-from) var(--mark-to), transparent var(--mark-to));
  /* Sized, not stretched, so a scroll scene can draw it from left to right. */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (forced-colors: active) {
  .mark { background: Mark; color: MarkText; }
}

.icon {
  width: var(--icon);
  height: var(--icon);
  flex: none;
}

/* Shared components: buttons, pulse dot, stamp, spinner, back link. */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--control-h);
  min-width: var(--tap);
  padding: 0 var(--btn-pad);
  border: var(--stroke-hair) solid var(--btn-border);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-ui);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn .icon { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(var(--icon-nudge)); }
.btn:hover .icon--arrow-down { transform: translateY(var(--icon-nudge)); }
.btn:hover .icon--arrow-left { transform: translateX(calc(-1 * var(--icon-nudge))); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  --btn-bg: var(--c-accent);
  --btn-fg: var(--c-on-accent);
  --btn-border: var(--c-accent);
}
.btn--primary:hover { --btn-bg: var(--c-lime); --btn-border: var(--c-lime); --btn-fg: var(--c-on-lime); }

.btn--outline {
  --btn-border: var(--c-text);
}
.btn--outline:hover { --btn-bg: var(--c-text); --btn-fg: var(--c-bg); }

.btn--quiet { padding-inline: var(--space-s); }
.btn--quiet:hover { --btn-fg: var(--c-accent); }

.btn--lg { min-height: var(--control-h-lg); font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* A rubber stamp: double orange rule, mono capitals, set at an angle.
   Used for the founding-client mark and the reservation confirmation. */
.stamp {
  display: inline-block;
  padding: var(--space-2xs) var(--space-m);
  border: 3px solid var(--c-accent);
  border-radius: var(--r-s);
  box-shadow: inset 0 0 0 2px var(--c-bg), inset 0 0 0 4px var(--c-accent);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  rotate: var(--stamp-tilt);
  opacity: 0.9;
  mix-blend-mode: multiply;
}

/* The approval variant: ink on lime. */
.stamp--lime {
  border-color: var(--c-ink);
  background: var(--c-lime);
  box-shadow: inset 0 0 0 2px var(--c-lime), inset 0 0 0 4px var(--c-ink);
  color: var(--c-on-lime);
  opacity: 1;
  mix-blend-mode: normal;
}

.spinner {
  display: none;
  width: var(--spinner-size);
  height: var(--spinner-size);
  border-radius: var(--r-full);
  border: var(--spinner-stroke) solid currentColor;
  border-right-color: transparent;
}
.is-busy .spinner { display: inline-block; animation: spin var(--dur-spin) linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: var(--tap);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-text);
  transition: color var(--dur-fast) var(--ease-out);
}
.back-link:hover { color: var(--c-accent); }

/* Small sticky header: logo and language switch. */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: var(--header-gap);
  z-index: var(--z-header);
  pointer-events: none;
}

/* The floating glass bar. */
.site-header__inner {
  pointer-events: auto;
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-inline: var(--space-s) var(--space-3xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  border-radius: var(--r-full);
  background: var(--c-veil);
  box-shadow: var(--shadow-glass);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header__inner {
    background: var(--c-glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
}
.site-header.is-scrolled .site-header__inner {
  box-shadow: var(--shadow-glass), 0 0 0 var(--stroke-hair) var(--c-line);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  border-radius: var(--r-s);
}
.site-header__logo { height: var(--logo-h); width: auto; }

.site-header__end {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.lang__list {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  padding: var(--space-3xs);
  border-radius: var(--r-full);
  background: var(--c-surface);
}
.lang__link {
  display: inline-grid;
  place-items: center;
  min-width: var(--tap);
  min-height: calc(var(--tap) - 2 * var(--space-3xs));
  padding-inline: var(--space-xs);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-decoration: none;
  color: var(--c-text-2);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.lang__link:hover { color: var(--c-accent); }
.lang__link[aria-current="page"] {
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: 0 var(--stroke-hair) var(--space-3xs) var(--c-shadow-2);
}

/* Hero: a full-bleed film, edge to edge with crisp edges. It plays once and
   holds its end frame (pure white, logo at 40%), so the end frame becomes the
   page. The copy reveals over the empty lower part of that frame and may run
   past the film's bottom edge, which is invisible because both are white. */

.hero {
  --hero-w: var(--hero-landscape-w);
  --hero-h: var(--hero-landscape-h);
  --logo-x: var(--logo-landscape-x);
  --logo-y: var(--logo-landscape-y);
  --logo-w: var(--logo-landscape-w);
  --hero-top: var(--hero-copy-top);
  /* Film height: full width at its own ratio, never taller than the screen
     (the floating header sits over it). Beyond that, object-fit: cover crops. */
  --media-h: min(100svh, 100vw * var(--hero-h) / var(--hero-w));
  position: relative;
  padding-bottom: var(--space-xl);
}

@media (max-width: 720px), (orientation: portrait) {
  .hero {
    --hero-w: var(--hero-portrait-w);
    --hero-h: var(--hero-portrait-h);
    --logo-x: var(--logo-portrait-x);
    --logo-y: var(--logo-portrait-y);
    --logo-w: var(--logo-portrait-w);
    --hero-top: var(--hero-copy-top-portrait);
    /* The phone cut is a full-screen 9:16 film: it fills the screen and cover
       crops the sides a little (the lockup sits well inside that). */
    --media-h: 100svh;
  }
}

.hero__stage { display: grid; }
.hero__stage > * { grid-area: 1 / 1; }

.hero__media {
  position: relative;
  align-self: start;
  height: var(--media-h);
  overflow: hidden;
  background: var(--c-bg);
}

.hero__poster,
.hero__poster img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* With motion allowed and JS running, the poster waits backstage: the video
   tells the story and the poster only appears if the video cannot play. */
.hero__poster { transition: opacity var(--dur-slow) var(--ease-out); }
.hero__video { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero:not(.is-static) .hero__poster { opacity: 0; }
}
.hero.is-static .hero__video { display: none; }

/* The crisp lockup, laid exactly over the logo the film draws in its end
   frame (the film's own copy is compressed and upscaled by the cover fit).
   Same cover maths as the video: the rendered film is the larger of the box
   width and the box height times the film's ratio, centred in the box. */
.hero__media { container-type: size; }
.hero__logo {
  --film-w: max(100cqw, 100cqh * var(--hero-w) / var(--hero-h));
  --film-h: max(100cqh, 100cqw * var(--hero-h) / var(--hero-w));
  position: absolute;
  z-index: 1;
  width: calc(var(--film-w) * var(--logo-w));
  max-width: none;
  left: calc((100cqw - var(--film-w)) / 2 + var(--film-w) * var(--logo-x));
  top: calc((100cqh - var(--film-h)) / 2 + var(--film-h) * var(--logo-y));
  translate: -50% -50%;
  transition: opacity var(--dur-slow) var(--ease-out);
}
/* While the film plays, the crisp logo waits; it crossfades in as the
   wordmark lands, and is there at once whenever the film is a still. */
.js .hero:not(.has-logo):not(.is-static) .hero__logo { opacity: 0; }

.hero__copy {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: calc(var(--media-h) * var(--hero-top));
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow { margin-bottom: var(--hero-gap-s); }

.hero__title {
  font-size: var(--hero-title);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: var(--stroke-outline) var(--c-accent);
  paint-order: stroke fill;
  padding-bottom: var(--outline-descender);
}
@supports not (-webkit-text-stroke: 1px) {
  .hero__line--outline { color: var(--c-accent); }
}
@media (forced-colors: active) {
  .hero__line--outline { color: CanvasText; -webkit-text-stroke: 0; }
}

.hero__sub {
  margin-top: var(--hero-gap-m);
  max-width: var(--measure-wide);
  font-size: var(--hero-lead);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero__sub .mark { font-weight: var(--fw-bold); }

.hero__actions {
  margin-top: var(--hero-gap-l);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
}
/* On phones the page simply scrolls on: the "See what's coming" shortcut would
   only push the main action below the first screen. */
@media (max-width: 30rem) {
  .hero__actions .btn--quiet { display: none; }
}

/* The three-line statement. Final state
   here; motion.css holds the starting states. */

/* ---------------------------------------------------------------- statement */

.statement {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-xl);
  background: var(--c-bg);
}
.statement__inner { display: grid; gap: var(--space-xl); }

.statement__text {
  font-size: var(--fs-statement);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-display);
  line-height: 0.92;
}
/* Each line rises out of its own mask. The padding keeps descenders inside. */
.statement__mask {
  display: block;
  overflow: hidden;
  padding-bottom: var(--mask-descender);
  margin-bottom: calc(-1 * var(--mask-descender));
}
.statement__line { display: block; transform-origin: left bottom; text-wrap: balance; }
.statement__line--outline {
  color: transparent;
  -webkit-text-stroke: var(--stroke-outline-xl) var(--c-accent);
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px) {
  .statement__line--outline { color: var(--c-accent); }
}
@media (forced-colors: active) {
  .statement__line--outline { color: CanvasText; -webkit-text-stroke: 0; }
}
/* The outlined middle line answers from the right edge, on every screen. */
.statement__mask:nth-child(2) { text-align: right; }

/* Phones: the three lines spread over the whole pinned screen (top, middle,
   bottom) instead of huddling in the centre. */
@media (max-width: 47.99rem) {
  .statement {
    align-items: stretch;
    padding-block: var(--header-clear) var(--space-xl);
  }
  .statement__text {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
}


/* The section that holds the pinned three-line statement (statement.css). */

.coming {
  position: relative;
  border-top: var(--stroke-hair) solid var(--c-line);
}

/* Coming soon, along the canal: a pinned horizontal walk past the houses at
   night. The lit photo sits over the dark one behind a soft mask whose edge
   (--light) sweeps along with the camera, so windows light up as you pass.
   Final state here: the end of the row, all windows lit, the title projected. */

.canal {
  position: relative;
  background: var(--c-night);
  color: var(--c-on-ink);
}

.canal__viewport {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.canal__track {
  position: relative;
  flex: none;
  height: var(--canal-h);
  width: calc(var(--canal-h) * var(--pano-w) / var(--pano-h));
  container-type: inline-size;
  transform: translateX(calc(100vw - 100%));
}

.canal__layer,
.canal__lit,
.canal__layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.canal__layer img { object-fit: cover; }

.canal__lit {
  --light: var(--canal-light-end);
  -webkit-mask-image: linear-gradient(90deg, var(--mask-solid) calc(var(--light) - var(--light-soft)), transparent var(--light));
  mask-image: linear-gradient(90deg, var(--mask-solid) calc(var(--light) - var(--light-soft)), transparent var(--light));
}

/* "Coming soon", projected onto the warehouse that ends the row. Positions
   are in the panorama's own coordinates (config.scenes.items.canal.projection). */
.canal__projection {
  position: absolute;
  left: var(--proj-x);
  top: var(--proj-y);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  text-align: center;
  white-space: nowrap;
  mix-blend-mode: screen;
}
.canal__title {
  font-size: var(--proj-size);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-display);
  line-height: 0.9;
  color: var(--c-lime);
  text-shadow: 0 0 0.25em var(--c-lime-glow), 0 0 1em var(--c-lime-glow);
}
.canal__sub {
  font-family: var(--font-mono);
  font-size: max(var(--fs-label), calc(var(--proj-size) * 0.22));
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-on-night-2);
}

@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-all) .canal__track { transform: none; }
  .js:not(.reveal-all) .canal__lit { --light: 0%; }
  .js:not(.reveal-all) [data-canal-projection] { opacity: 0; }
}

/* Phones: the panorama fills the full screen height too, so the walk is longer
   and "Coming soon" is centred in the last view, sized to fit its width. */
/* After the base rules on purpose: same specificity, so order decides. */
@media (max-width: 47.99rem) {
  .canal__projection { left: calc(100% - 50vw); }
  .canal__title { font-size: min(var(--proj-size), var(--proj-size-narrow)); }
}

/* The waitlist form every style shares: a sentence with the fields written
   into it, inline errors, consent, and the confirmation. Colours come through
   --form-* so a style on a dark scene can relight it without copying rules. */

.form,
.reserved {
  --form-ink: var(--c-text);
  --form-ink-2: var(--c-text-2);
  --form-paper: var(--c-bg);
  color: var(--form-ink);
}

/* ---------------------------------------------------------------- sentence */

.sentence {
  font-size: var(--fs-sentence);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1.5;
  text-wrap: balance;
}
/* Keeps the closing punctuation on the same line as the field before it. */
.sentence__join { white-space: nowrap; }

.sentence__field {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}

.sentence__input {
  min-width: 4ch;
  max-width: 100%;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  border-bottom: var(--underline) solid var(--form-ink);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-snug);
  text-align: center;
  color: var(--form-ink);
  field-sizing: content;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.sentence__input::placeholder { color: var(--form-ink-2); opacity: 1; }
.sentence__input:hover { border-bottom-color: var(--c-lime); }
.sentence__input:focus-visible {
  outline: none;
  border-bottom-color: var(--c-accent);
  box-shadow: 0 var(--underline) 0 var(--c-accent);
}
.sentence__input[aria-invalid="true"] {
  border-bottom-color: var(--c-accent);
  border-bottom-style: dashed;
  background: var(--c-accent-dim);
}

/* Narrow screens: the fields stay inline so punctuation keeps hold of its word;
   each one may still take the full line when what is typed needs it. */
@media (max-width: 47.99rem) {
  .sentence__input { min-width: 6ch; }
}

.is-busy { pointer-events: none; }
.is-busy [data-submit-label],
.is-busy .icon--arrow { display: none; }

/* ---------------------------------------------------------------- errors */

.form__errors { display: grid; justify-items: start; gap: var(--space-2xs); text-align: left; }
.form__errors:not(:has(.field__error:not([hidden]))) { display: none; }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--form-ink);
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: var(--error-dot);
  height: var(--error-dot);
  margin-top: var(--error-dot-nudge);
  border-radius: var(--r-full);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.consent-check {
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-s);
  row-gap: var(--space-2xs);
  align-items: start;
}
.consent-check__error { grid-column: 1 / -1; }

.check {
  appearance: none;
  margin: var(--check-nudge) 0 0;
  width: var(--check-size);
  height: var(--check-size);
  border: var(--underline) solid var(--form-ink);
  border-radius: var(--r-xs);
  background: var(--form-paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.check::before {
  content: "";
  width: var(--check-tick-w);
  height: var(--check-tick-h);
  border-right: var(--underline) solid var(--c-on-lime);
  border-bottom: var(--underline) solid var(--c-on-lime);
  transform: translateY(-12%) rotate(45deg) scale(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.check:hover { border-color: var(--c-lime); }
.check:checked { background: var(--c-lime); border-color: var(--c-ink); }
.check:checked::before { transform: translateY(-12%) rotate(45deg) scale(1); }
.check[aria-invalid="true"] { border-color: var(--c-accent); border-style: dashed; background: var(--c-accent-dim); }
.check__label { font-size: var(--fs-small); font-weight: var(--fw-regular); cursor: pointer; }
.check__label a { color: var(--form-ink); text-decoration-color: var(--c-accent); }
.check__label a:hover { color: var(--c-accent); }

.field--honeypot {
  position: absolute !important;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__turnstile:empty { display: none; }
.form__status:empty { display: none; }
.form__status {
  max-width: var(--form-status-measure);
  padding: var(--space-xs) var(--space-s);
  border-left: var(--underline) solid var(--c-accent);
  background: var(--c-accent-dim);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
}

/* ---------------------------------------------------------------- reserved */

.reserved {
  display: grid;
  justify-items: center;
  gap: var(--space-m);
  padding-block: var(--space-m);
}
.reserved__title {
  max-width: 20ch;
  font-size: var(--fs-sentence);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  outline: none;
  text-wrap: balance;
}
.reserved__body { font-size: var(--fs-lead); }

.reserved__stamp { font-size: var(--fs-stamp); }
@media (prefers-reduced-motion: no-preference) {
  .reserved.is-stamped .reserved__stamp { animation: stamp-land var(--dur-slow) var(--ease-stamp) both; }
}
@keyframes stamp-land {
  0% { scale: 2.4; opacity: 0; }
  55% { scale: 0.94; opacity: 0.95; }
  100% { scale: 1; opacity: 0.9; }
}

/* Waitlist: a headline, one line of offer, and a form written as a sentence
   in display type with the fields set into it. Nothing else. */

/* overflow-x: the stamp lands from 2.4x scale and must not widen the page while it does. */
.waitlist { border-top: var(--stroke-hair) solid var(--c-line); overflow-x: clip; }

/* One centred axis, the same as the hero's. */
.slip {
  display: grid;
  justify-items: center;
  gap: var(--space-xl);
  width: min(100%, var(--container-form));
  margin-inline: auto;
  text-align: center;
}

.slip__intro { display: grid; justify-items: center; gap: var(--space-s); }
.slip__headline { max-width: 14ch; text-wrap: balance; }

.form { display: grid; justify-items: center; gap: var(--space-l); width: 100%; }

/* ---------------------------------------------------------------- consent + submit */

/* Consent, then the one action, directly under the sentence it completes. */
.form__row {
  display: grid;
  justify-items: center;
  gap: var(--space-m);
}

.btn--xl {
  min-height: var(--control-h-xl);
  padding-inline: var(--space-l);
  font-size: var(--fs-lead);
}
@media (max-width: 47.99rem) {
  .form__row, .form__row .btn--xl { width: 100%; }
}

/* Footer: brand, contact and legal links. */

.site-footer {
  padding-top: var(--space-2xl);
  border-top: var(--stroke-hair) solid var(--c-line);
  background: var(--c-bg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--footer-col-min)), 1fr));
  gap: var(--space-xl) var(--space-l);
}
.site-footer__brand { display: grid; gap: var(--space-s); justify-items: start; grid-column: span 2; }
@media (max-width: 40rem) { .site-footer__brand { grid-column: auto; } }

.site-footer__logo-link { display: inline-flex; border-radius: var(--r-s); }
.site-footer__logo { height: calc(var(--logo-h) * 1.25); width: auto; }
.site-footer__tagline { max-width: 26ch; font-size: var(--fs-lead); line-height: 1.45; }

.site-footer__col { display: grid; gap: var(--space-xs); align-content: start; justify-items: start; }
.site-footer__list { display: grid; gap: var(--space-3xs); }

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  text-decoration: none;
  color: var(--c-text);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer__link:hover { color: var(--c-accent); }

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-block: var(--space-m);
  border-top: var(--stroke-hair) solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs) var(--space-m);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--c-text-2);
}

/* Cookie consent: a bottom bar, never a full-screen overlay, so it cannot hide
   the page from visitors or crawlers. Accept and Decline share one size,
   weight and shape: refusing must be as easy as agreeing. */

.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-consent);
  background: var(--c-veil);
  -webkit-backdrop-filter: var(--consent-blur);
  backdrop-filter: var(--consent-blur);
  box-shadow: var(--shadow-float);
  outline: none;
  transform: translateY(105%);
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease-out) var(--consent-delay),
    opacity var(--dur-slow) var(--ease-out) var(--consent-delay);
}
.consent.is-open { transform: none; opacity: 1; }
.consent.is-closing { transition-delay: 0s; }

/* A hairline of brand colour along the top edge. */
.consent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--stroke-hair);
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0.6;
}

.consent__inner {
  padding-block: var(--space-m);
  padding-bottom: max(var(--space-m), env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
}
.consent__copy { flex: 1 1 26rem; display: grid; gap: var(--space-2xs); }
.consent__body {
  max-width: var(--consent-measure);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--c-text-2);
  line-height: 1.6;
}
.consent__body a { color: var(--c-text); text-decoration-color: var(--c-accent); }
.consent__body a:hover { color: var(--c-accent); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.consent__button { min-width: var(--consent-button-min); }

@media (prefers-reduced-motion: reduce) {
  .consent {
    transform: none;
    transition: opacity var(--dur-fast) linear;
  }
}

/* Privacy, Terms and 404. */

.legal { padding-block: var(--space-xl) var(--space-section); }
.legal__head {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding-bottom: var(--space-xl);
  border-bottom: var(--stroke-hair) solid var(--c-line);
}
.legal__head .lead { margin-top: var(--space-xs); }

.legal__section {
  display: grid;
  grid-template-columns: minmax(var(--legal-num-col), auto) 1fr;
  gap: var(--space-m);
  padding-block: var(--space-l);
  border-bottom: var(--stroke-hair) solid var(--c-line);
}
.legal__section:last-child { border-bottom: 0; }
.legal__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  color: var(--c-accent);
  padding-top: var(--legal-num-nudge);
}
.legal__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-s);
}

.prose { display: grid; gap: var(--space-s); max-width: var(--measure-wide); font-weight: var(--fw-regular); }
.prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2xs); }
.prose li::marker { color: var(--c-accent); }
.prose a { text-decoration-color: var(--c-accent); }
.prose a:hover { color: var(--c-accent); }
.prose strong { font-weight: var(--fw-bold); }

.not-found { padding-block: var(--space-xl) var(--space-section); }
.not-found__inner { display: grid; gap: var(--space-m); justify-items: start; }
.not-found__code {
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  line-height: 0.85;
}
.not-found__code .outline { -webkit-text-stroke-width: calc(var(--stroke-outline) * 2); }

/* Initial states for GSAP reveals. Only while motion is allowed, only with JS,
   and never once the failsafe (.reveal-all) has fired. Text stays in the DOM:
   only opacity and transform change. */

@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-all) [data-hero-reveal],
  .js:not(.reveal-all) [data-reveal] { opacity: 0; }
  .js:not(.reveal-all) [data-statement-line] { transform: translateY(var(--statement-hidden-y)) rotate(var(--statement-tilt)); }
  .js:not(.reveal-all) .slip__headline .mark { background-size: 0% 100%; }
}

