/* Ramion pre-launch site: implements Ramion Brand Identity Guidelines v1.0 (proposed system).
   Colour ratio 60 / 30 / 10: carbon surfaces / off-white content / lime accent.
   Lime is reserved for actions, active states, highlights and signature moments. */

@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/silkscreen-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --carbon: #111111;
  --carbon-raised: #1b1b1b;
  --carbon-line: #2c2c2a;
  --lime: #c4ff4d;
  --paper: #f6f6f2;
  --paper-raised: #e7e7e1;
  --paper-line: #d3d3cc;
  --slate: #8a8a8a;

  /* Derived neutrals: slate is too low-contrast for essential small text, so body-level
     secondary text uses these instead (guide p.13 contrast note). */
  --on-dark-muted: #b9b9b4;
  --on-light-muted: #55554f;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --section-y: 72px;
  --header-h: 73px;   /* sticky header: 72px bar + 1px border */
  --radius: 8px; /* buttons; pixel graphics keep 90-degree corners */
}

@media (min-width: 640px) {
  :root { --gutter: 48px; --section-y: 112px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--carbon); }

.skip {
  position: absolute; top: -100px; left: 8px; z-index: 100;
  background: var(--lime); color: var(--carbon);
  padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Type ---------- */
.mono, .eyebrow, .caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0; color: var(--lime); font-weight: 500;
}
/* one pixel-unit: the square from the symbol */
.eyebrow::before, .section-label::before {
  content: ""; width: 8px; height: 8px; flex: none; background: var(--lime);
}
/* section labels: pixel face (Silkscreen), sized in multiples of 8 px so its pixel grid stays crisp */
.section-label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-family: var(--font-pixel); font-size: 1rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper);
}
.on-light .section-label { color: var(--carbon); }
.on-light .section-label::before { background: var(--carbon); }

h1, h2, h3 { font-family: var(--font-sans); font-weight: 800; margin: 0; }

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.on-dark h2 { max-width: 18ch; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

.accent { color: var(--lime); }

.intro { font-size: 1.125rem; color: var(--on-light-muted); max-width: 56ch; margin: 24px 0 0; }
.on-dark .intro { color: var(--on-dark-muted); }

.fine-print { font-size: 0.8125rem; line-height: 1.6; color: var(--on-light-muted); margin: 24px 0 0; max-width: 62ch; }
.on-dark .fine-print { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 700 1.0625rem/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button--primary { background: var(--lime); color: var(--carbon); }
.button--primary:hover { background: #d6ff85; }
.button--ghost { background: transparent; color: var(--paper); border-color: #5d5d59; }
.button--ghost:hover { border-color: var(--lime); color: var(--lime); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--carbon-line);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 174px; height: auto; } /* keeps the logomark at its 160 px-lockup size (guide p.10); the Ramion wordmark is wider */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.button) {
  display: none;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted); text-decoration: none;
}
.nav-links a:not(.button):hover { color: var(--lime); }
.nav-links .button { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
@media (min-width: 820px) { .nav-links a:not(.button) { display: inline; } }

/* ---------- Hero ---------- */
/* The hero always fills the first screen (viewport height minus the sticky header), so the next section never shows above the fold. */
.hero {
  --hero-h: max(640px, calc(100vh - var(--header-h)));
  position: relative; overflow: hidden; padding-top: 64px;
  display: flex; flex-direction: column; min-height: var(--hero-h);
}
@supports (height: 100svh) { .hero { --hero-h: max(640px, calc(100svh - var(--header-h))); } }
.hero-copy { position: relative; z-index: 2; flex: none; padding-bottom: 32px; }
.hero .eyebrow { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.hero .eyebrow::before { content: none; }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(1.75rem, 0.6rem + 5.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero h1 span { display: block; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); color: var(--on-dark-muted); max-width: 40ch; margin: 28px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.actions .button { flex: 1 1 100%; }
@media (min-width: 560px) { .actions .button { flex: 0 0 auto; min-width: 260px; } }
.micro { font-size: 0.8125rem; color: var(--on-dark-muted); margin: 24px 0 0; max-width: 52ch; }

/* The photo sits on an extended canvas (assets/img/station-hero-wide.jpg, 2200 x 1300) whose top, bottom and sides fade to exactly the
   page colour (#111111). The original 1672 x 941 photo is in the centre, so the image can be scaled down (sharper) or cropped without a
   visible edge anywhere. */
.hero-media { position: relative; margin: auto 0 0; aspect-ratio: 16 / 9; overflow: hidden; }   /* stacked layout: pinned to the bottom of the hero */
.hero-media img { position: absolute; top: 50%; left: 50%; width: 197%; max-width: none; height: auto; transform: translate(-50%, -50%); }
/* soft top and bottom fade where the cropped photo meets the copy (stacked layout) */
.hero-media::before, .hero-media::after { content: ""; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
.hero-media::before { top: 0; height: 30%; background: linear-gradient(var(--carbon), rgba(17, 17, 17, 0)); }
.hero-media::after { bottom: 0; height: 12%; background: linear-gradient(rgba(17, 17, 17, 0), var(--carbon)); }

/* phones and small tablets: image first, then headline, paragraph and the two buttons, all inside the first screen.
   100svh is the visible height with the browser bars showing (iPhone 14 in Safari is about 390 x 664). The text block has a fixed size and the
   photo takes whatever height is left (never less than 170px), scaled so the whole enclosure stays in view. */
@media (max-width: 899px) {
  .hero { --hero-h: max(560px, calc(100vh - var(--header-h))); padding-top: 0; }
  @supports (height: 100svh) { .hero { --hero-h: max(560px, calc(100svh - var(--header-h))); } }
  /* Browser bars (iOS Safari's floating toolbar, Chrome's address bar) cover the bottom of the page and are not part of 100svh. The hero's dark
     background runs past the full-height viewport (100lvh) so no light section shows behind the bars, while padding-bottom keeps the photo,
     text and buttons inside the part that stays visible above them. */
  @supports (height: 100lvh) {
    /* the hero is 110% of the full-height viewport; the extra dark tail (toolbar height + 10%) sits below the buttons, never above them */
    .hero { --tail: calc(100lvh - 100svh + 10lvh); --hero-h: max(calc(560px + var(--tail)), calc(110lvh - var(--header-h))); padding-bottom: var(--tail); }
  }
  .hero .eyebrow { display: none; }
  .hero-media { order: -1; margin: 0; aspect-ratio: auto; flex: 1 1 0; min-height: 170px; }
  .hero-media img { top: 52%; width: auto; height: min(185%, 116.4vw); }
  .hero-media::before { content: none; }
  .hero-media::after { height: 40%; }
  .hero-copy { padding-bottom: 24px; }
  .hero h1 { margin: 0; }
  .lead { font-size: 1rem; line-height: 1.5; margin-top: 14px; max-width: none; }
  .actions { margin-top: 20px; gap: 10px; }
  .actions .button { min-height: 52px; }
}

/* desktop: headline on the left, photo behind and to the right. Its height follows the hero (1.2x the hero, between 1000px and 1300px = 1:1 with the source photo, so it is never upscaled; narrower screens are capped at 66.4vw, which keeps the enclosure
   left of the copy), and the right offset keeps the enclosure's right edge about 4% in from the page edge
   (0.4862 = share of the canvas to the right of the enclosure x its 2200:1300 proportions). */
@media (min-width: 900px) {
  .hero {
    --hero-h: max(720px, calc(100vh - var(--header-h)));
    --img-h: max(560px, min(66.4vw, clamp(1000px, calc(var(--hero-h) * 1.2), 1300px)));
    justify-content: center; padding-block: 64px;
  }
  @supports (height: 100svh) { .hero { --hero-h: max(720px, calc(100svh - var(--header-h))); } }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2rem, 3.9vw, 3.5rem); }
  .hero-media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; overflow: visible; }
  .hero-media::before, .hero-media::after { content: none; }
  .hero-media img {
    left: auto; right: calc(4vw - 0.4862 * var(--img-h));
    width: auto; height: var(--img-h); transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%);
    mask-image: linear-gradient(90deg, transparent 0, #000 35%);
  }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.on-light { background: var(--paper); color: var(--carbon); }
.on-dark { background: var(--carbon); color: var(--paper); }
.on-dark.raised { background: var(--carbon-raised); }

/* pixel icons: drawn on a square grid, full squares, no rounding or antialiasing */
.pxicon { display: block; fill: var(--carbon); shape-rendering: crispEdges; }
.pxicon .px-accent { fill: var(--slate); }

/* Solution */
.split { display: grid; gap: 40px; align-items: center; }
.split-copy { font-size: 1.1875rem; color: var(--on-dark-muted); max-width: 52ch; }
.split-copy--below-title { margin-top: 32px; }
.split-copy p { margin: 0 0 20px; }
.split-copy p:last-child { margin-bottom: 0; color: var(--paper); font-weight: 700; }
.motif { width: min(100%, 420px); height: auto; margin-top: 8px; }
/* animated pixel robotic arm (arm.js): paper arm, lime blocks, slate floor */
.arm { display: block; width: min(100%, 520px); }
.arm .arm-floor { fill: var(--slate); }
.arm .arm-blocks { fill: var(--lime); }
.arm .arm-body { fill: var(--paper); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 88px; }
  .split--solution { align-items: end; }
}

/* How it works */

/* Pilot */
.benefits { list-style: none; margin: 32px 0 36px; padding: 0; border-top: 1px solid var(--carbon-line); }
.benefits li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--carbon-line); color: var(--paper); font-size: 1.0625rem; }
.pxicon-slot { flex: none; width: 36px; display: flex; align-items: center; }
.pxicon--lime { fill: var(--lime); }

/* Early access: takes up about 90% of the screen, content centred, headline scaled up to use the space */
#early-access { min-height: 90vh; display: flex; align-items: center; }
@supports (height: 100svh) { #early-access { min-height: 90svh; } }
#early-access h2 { font-size: clamp(2rem, 1.1rem + 3.6vw, 4.25rem); max-width: 14ch; }
#early-access .split-copy > p:first-child { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); }

/* Introducing Ramion: fills the whole screen, content centred, headline and arm scaled up to use the space */
#solution { min-height: 100vh; display: flex; align-items: center; }
@supports (height: 100svh) { #solution { min-height: 100svh; } }
#solution h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem); max-width: 14ch; }
#solution .split-copy { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); }
@media (min-width: 900px) { #solution .split--solution { grid-template-columns: 1fr 1fr; align-items: center; } #solution .arm { width: 100%; max-width: 640px; margin-inline: auto 0; } }

/* Partnerships: about 80% of the screen, with generous white space around a compact block of content */
#partners { position: relative; overflow: hidden; isolation: isolate; min-height: 80vh; display: flex; align-items: center; padding-block: max(var(--section-y), 12vh); padding-top: calc(max(var(--section-y), 12vh) + 64px); }
@supports (height: 100svh) { #partners { min-height: 80svh; } }
#partners h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem); max-width: 14ch; }
#partners .split-copy { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); }
#partners .split-copy .button { margin-top: 12px; }
/* faint light-on-dark dithered pixel texture, drifting slowly with the scroll (same family as the registration section) */
#partners::before {
  content: ""; position: absolute; inset: -140px 0; z-index: -1; pointer-events: none;
  background: url("assets/img/pixel-texture-dark.png") center / cover no-repeat; image-rendering: pixelated;
  transform: translate3d(0, calc(var(--scroll, 0) * -140px), 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
/* scrolling band: who this section is for */
.ticker { position: absolute; top: 0; left: 0; right: 0; z-index: 1; overflow: hidden; border-bottom: 1px solid var(--carbon-line); background: rgba(17, 17, 17, 0.7); }
.ticker-track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex; align-items: center; gap: 22px; padding: 20px 11px; white-space: nowrap;
  font-family: var(--font-pixel); font-size: 1rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper);
}
.ticker-group b { font-weight: 400; color: var(--lime); }
.ticker-group i { flex: none; width: 8px; height: 8px; background: var(--lime); }
@media (min-width: 900px) { .ticker-group { gap: 32px; padding: 22px 16px; font-size: 1.5rem; } .ticker-group i { width: 12px; height: 12px; } }
@keyframes ticker { to { transform: translateX(-50%); } }
/* the partner network: four organisation nodes linked to the Ramion hub (network.js animates the pulses) */
.network { display: block; width: 100%; max-width: 540px; height: auto; margin-top: 48px; }
.network .net-fill { fill: #1d1d1d; }
.network .net-dash { fill: var(--lime); fill-opacity: 0.5; }
.network .net-border { fill: var(--slate); }
.network .net-lime { fill: var(--lime); }
.network .net-dark { fill: var(--carbon); }

/* The challenge / How it works: the registration section's pixel texture on the other light sections, 30% lighter (opacity .7).
   A taller image keeps the squares the same size however long the section is. overflow: clip (not hidden) so the pinned heading still sticks. */
.story-section { position: relative; overflow: clip; isolation: isolate; }
.story-section::before {
  content: ""; position: absolute; inset: -120px 0; z-index: -1; pointer-events: none; opacity: 0.7;
  background: url("assets/img/pixel-texture-tall.png") center top / max(100%, 1152px) auto repeat-y; image-rendering: pixelated;
  transform: translate3d(0, calc(var(--scroll, 0) * -120px), 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
#how::before { transform: translate3d(0, calc(var(--scroll, 0) * -120px), 0) scaleX(-1); }   /* mirrored so the two sections do not repeat each other */
@supports not (overflow: clip) { .story-section { overflow: visible; } .story-section::before { display: none; } }

/* Application form */
.apply-section { position: relative; overflow: hidden; isolation: isolate; }
/* greyscale pixel texture: one image pixel = one square cell (image-rendering: pixelated); drifts slowly as the page scrolls and fades out at the edges */
.apply-section::before {
  content: ""; position: absolute; inset: -160px 0; z-index: -1; pointer-events: none;
  background: url("assets/img/pixel-texture.png") center / cover no-repeat; image-rendering: pixelated;
  transform: translate3d(0, calc(var(--scroll, 0) * -160px), 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.form-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 0.85fr 1.15fr; gap: 88px; align-items: start; } }
.apply-mark { display: none; }
@media (min-width: 900px) { .apply-mark { display: block; width: min(100%, 260px); height: auto; margin-top: 88px; color: rgba(17, 17, 17, 0.07); shape-rendering: crispEdges; } }

/* the form is a dark card on the light textured surface: lime corner brackets and a hard pixel-offset shadow */
.form {
  position: relative; display: grid; gap: 20px; padding: 28px 24px 24px;
  background: var(--carbon); color: var(--paper); border: 1px solid #2c2c2a;
  box-shadow: 10px 10px 0 #d3d3cc, 0 40px 80px -40px rgba(17, 17, 17, 0.55);
}
@media (min-width: 640px) { .form { padding: 40px 40px 36px; gap: 22px; } }
.form::before, .form::after { content: ""; position: absolute; width: 24px; height: 24px; pointer-events: none; }
.form::before { top: -1px; left: -1px; border-top: 3px solid var(--lime); border-left: 3px solid var(--lime); }
.form::after { right: -1px; bottom: -1px; border-right: 3px solid var(--lime); border-bottom: 3px solid var(--lime); }

.form-top {
  display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 2px; border-bottom: 1px solid #2c2c2a;
  font-family: var(--font-pixel); font-size: 1rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted);
}
.form-top .cursor { width: 8px; height: 8px; background: var(--lime); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.row { display: grid; gap: 22px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { display: flex; align-items: center; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: var(--paper); }
/* a small pixel marker slides in beside the label of the field you are in */
.field > label::before { content: ""; width: 0; height: 6px; margin-right: 0; background: var(--lime); flex: none; transition: width 0.15s steps(3, end), margin 0.15s steps(3, end); }
.field:focus-within > label::before { width: 6px; margin-right: 8px; }
.req { margin-left: 4px; color: var(--lime); font-weight: 700; }
.opt { margin-left: 6px; font-weight: 400; color: var(--on-dark-muted); }

.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: #1a1a1a; color: var(--paper);
  border: 1px solid #3a3a37; border-radius: var(--radius);
  font: inherit; font-size: 1rem; /* 16px prevents iOS zoom-on-focus */
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #8f8f8a; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #5d5d59; }
.form input:not([type="checkbox"]):focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--lime); background: #202020; box-shadow: 0 0 0 3px rgba(196, 255, 77, 0.22);
}
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4' shape-rendering='crispEdges'%3E%3Cpath fill='%23c4ff4d' d='M0 0h1v1H0zM6 0h1v1H6zM1 1h1v1H1zM5 1h1v1H5zM2 2h1v1H2zM4 2h1v1H4zM3 3h1v1H3z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 8px;
}
.phone { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 10px; }
.phone select { padding-right: 36px; background-position: right 12px center; }
.form select:required:invalid { color: #8f8f8a; }
.form option { background: #1a1a1a; color: var(--paper); }
.form [aria-invalid="true"] { border-color: #ff8f84; box-shadow: inset 3px 0 0 #ff8f84; }
.field-error { margin: 0; font-size: 0.8125rem; font-weight: 600; color: #ff8f84; }
.field-error[hidden] { display: none; }

/* pixel checkbox */
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.consent input {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; cursor: pointer;
  background: #1a1a1a; border: 1px solid #5d5d59; border-radius: 0; transition: border-color 0.2s, background-color 0.2s;
}
.consent input:hover { border-color: var(--lime); }
.consent input:checked { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23111111' d='M6 0h1v1H6zM5 1h1v1H5zM0 2h1v1H0zM4 2h1v1H4zM1 3h1v1H1zM3 3h1v1H3zM2 4h1v1H2z'/%3E%3C/svg%3E") center / 14px 10px no-repeat; border-color: var(--lime); }
.consent input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.consent label { font-size: 0.8125rem; font-weight: 400; line-height: 1.6; color: var(--on-dark-muted); }
.consent a { color: var(--lime); font-weight: 600; }

.form .button { width: 100%; min-height: 58px; font-size: 1.0625rem; transition: background-color 0.15s, box-shadow 0.2s; }
.form .button:hover { box-shadow: 0 0 0 4px rgba(196, 255, 77, 0.22); }
.form-status { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--on-dark-muted); display: flex; align-items: flex-start; gap: 10px; }
.form-status .pxicon { flex: none; margin-top: 4px; fill: currentColor; }
.form-status[data-state="error"] { color: #ff8f84; }
.form-status[data-state="success"] { color: var(--lime); }

/* Honeypot: off-screen rather than display:none so naive bots still fill it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Partnerships */

/* ---------- Footer ---------- */
.site-footer { background: var(--carbon); border-top: 1px solid var(--carbon-line); padding: 48px 0 56px; }
.footer-inner { display: grid; gap: 32px; }
.footer-inner p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--on-dark-muted); }
.footer-inner a { color: var(--paper); }
.footer-brand { display: grid; gap: 16px; justify-items: start; }
.footer-legal a { text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--lime); }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; row-gap: 40px; }
  .footer-legal { text-align: right; }
}

/* ---------- Privacy page ---------- */
.doc { max-width: 760px; padding-block: 72px 112px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); letter-spacing: -0.02em; margin: 24px 0; }
.doc p { color: var(--on-dark-muted); }
.doc .back { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--paper); }
.doc .back:hover { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}


/* ================= Scroll experience ================= */
/* Lenis (assets/vendor/lenis.min.js, MIT) adds these classes to <html> while smooth scrolling is active */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

/* thin lime progress line under the browser top edge */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none;
  background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0));
}
.site-header { transition: box-shadow 0.3s, background-color 0.3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

/* fade-and-rise reveals (the .js class is set in <head>, so nothing is hidden when JavaScript is off) */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="scale"] { transform: scale(0.96); transform-origin: 50% 70%; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* hero: staggered entrance on load, gentle parallax and fade as the page scrolls away (--hero-p goes 0 to 1) */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.js .hero-copy > * { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.18s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.34s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.5s; }
.js .hero-media { animation: fadein 1.6s ease 0.15s both; }
.hero-copy { transform: translate3d(0, calc(var(--hero-p, 0) * -36px), 0); opacity: calc(1 - var(--hero-p, 0) * 0.75); }
.hero-media { transform: translate3d(0, calc(var(--hero-p, 0) * 70px), 0); }

/* buttons: the arrow nudges toward its direction */
.button [aria-hidden="true"] { display: inline-block; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.button:hover [aria-hidden="true"] { transform: translate(3px, -3px); }

/* The challenge / How it works: a pinned heading on the left, each point on its own screen of white space on the right */
.story { display: grid; gap: 40px; }
.beats { list-style: none; margin: 0; padding: 0; }
.beat { --px: 8px; display: grid; gap: 22px; align-content: center; padding-block: 56px; }
.beat h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; }
.beat p { margin: 0; font-size: 1.125rem; max-width: 34ch; color: var(--on-light-muted); }
.beat-icon-wrap { min-height: calc(var(--px) * 7); display: flex; align-items: flex-end; }
.beat-icon { display: block; fill: var(--carbon); shape-rendering: crispEdges; width: calc(var(--c) * var(--px)); height: calc(var(--r) * var(--px)); }
.beat-icon .px-accent { fill: var(--slate); }
/* pixel icons draw in one column at a time (a stepped wipe keeps every edge square) */
@keyframes pxwipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .beat-icon-wrap:not(.is-in) .beat-icon { clip-path: inset(0 100% 0 0); }
.js .beat-icon-wrap.is-in .beat-icon { animation: pxwipe 0.8s steps(var(--c), end) 0.2s both; }

@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 8vw, 128px); align-items: start; }
  .story-head { position: sticky; top: calc(var(--header-h) + 14vh); }
  .beat { --px: 10px; min-height: 64vh; padding-block: 9vh; }
  /* the point nearest the middle of the screen is in focus, the others recede */
  .js .beat { opacity: 0.32; transition: opacity 0.6s ease; }
  .js .beat.is-active { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="scale"] { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .hero-media { animation: none; }
  .hero-copy, .hero-media { transform: none; opacity: 1; }
  .js .beat-icon-wrap:not(.is-in) .beat-icon, .js .beat-icon-wrap.is-in .beat-icon { clip-path: none; animation: none; }
  .js .beat { opacity: 1; transition: none; }
  .progress { display: none; }
  .ticker-track { animation: none; }
  #partners::before { transform: none; }
  .story-section::before { transform: none; }
  #how::before { transform: scaleX(-1); }
  .form-top .cursor { animation: none; }
  .apply-section::before { transform: none; }
  .button [aria-hidden="true"], .site-header { transition: none; }
}

/* ---------- Loading screen (intro.js): shown only while the <head> script has put .intro-on on <html> ---------- */
.intro-screen { display: none; }
html.intro-on { scrollbar-gutter: stable; }                      /* locking the scroll must not change the page width */
html.intro-on .intro-screen {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: #000;
  animation: intro-failsafe 0.01s 9s forwards;                   /* if intro.js never runs, get out of the way */
}
html.intro-on .intro-screen.is-live { animation: none; }
html.intro-lock, html.intro-lock body { overflow: hidden; }
.intro-art { position: relative; width: min(92vw, 876px); height: auto; overflow: visible; transition: opacity 0.4s ease; }
.intro-wipe { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.intro-screen.is-leaving .intro-art { opacity: 0; }
.intro-screen.is-skipped .intro-art { transition-duration: 0.15s; }
.intro-mosaic { fill: #c7fb46; }                                 /* the logomark's own lime */
.intro-word { fill: #fff; }
/* the hero waits for the reveal, then plays its usual entrance underneath the dissolving screen */
html.intro-on:not(.intro-reveal) .hero-copy > *, html.intro-on:not(.intro-reveal) .hero-media { animation-play-state: paused; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro-screen { display: none !important; } }

/* ---------- platform: 3D station viewer ---------- */
.station-head { margin-bottom: 32px; }
.station-viewer {
  position: relative; width: 100%; height: clamp(360px, 62vw, 640px); background: var(--carbon);
  overflow: hidden;
}
.station-viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.station-viewer.is-drag canvas { cursor: grabbing; }
.station-viewer canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: var(--radius); }
.sv-labels { position: absolute; inset: 0; pointer-events: none; }
.sv-label {
  position: absolute; left: 0; top: 0; display: none; white-space: nowrap; opacity: 0.85;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; color: var(--lime);
}
.sv-label::after { content: ""; display: block; width: 1px; height: 14px; margin: 4px auto 0; background: linear-gradient(var(--lime), transparent); }
.sv-hint {
  position: absolute; left: 16px; bottom: 14px; margin: 0; pointer-events: none; transition: opacity 0.4s;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted);
}
.station-viewer.is-touched .sv-hint { opacity: 0; }
.station-viewer.is-static .sv-hint { display: none; }
.station-viewer.is-static { background: var(--carbon) url("assets/img/station-hero-wide-900.jpg") center / cover; }
.station-features {
  list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.station-features li { padding-top: 16px; border-top: 1px solid var(--carbon-line); }
.station-features li::before { content: ""; display: block; width: 8px; height: 8px; background: var(--lime); margin: -20px 0 12px; }
.station-features h3 { font-size: 1.125rem; margin-bottom: 8px; }
.station-features p { margin: 0; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 640px) { .station-viewer { height: clamp(340px, 95vw, 460px); } }
@media (max-width: 520px) { .sv-label { display: none !important; } }

/* /register: minimal opt-in page (conference QR target): logo, headline, the shared signup form */
.reg { padding: 8px var(--gutter) 56px; }
.reg-inner { width: min(640px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.reg-hero { position: relative; height: clamp(260px, 44vw, 460px); overflow: hidden; background: var(--carbon); }
.reg-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.reg-hero::before, .reg-hero::after { content: ""; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
.reg-hero::before { top: 0; height: 55%; background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0)); }
.reg-hero::after { bottom: 0; height: 45%; background: linear-gradient(rgba(17, 17, 17, 0), var(--carbon)); }
.reg-hero-logo { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 2; }
.reg-hero-logo img { width: 180px; height: auto; display: block; }
@media (max-width: 639px) { .reg-hero { height: 300px; } .reg-hero-img { width: 175%; max-width: none; left: -37.5%; object-position: 50% 40%; } }
@media (min-width: 640px) { .reg-hero-logo { top: 32px; } .reg-hero-logo img { width: 210px; } }
/* home-page pixel robot arm (arm.js), inverted for the light section */
.reg-arm { margin: 0 auto 24px; width: min(100%, 360px); }
.reg-arm .arm-body { fill: var(--carbon); }
.reg-arm .arm-blocks { fill: var(--lime); stroke: var(--carbon); stroke-width: 0.2; paint-order: stroke; }
.reg-arm .arm-floor { fill: var(--slate); }
.reg-learn-inner { display: grid; justify-items: center; text-align: center; gap: 0; }
.reg-learn h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; }
.reg-learn .intro { margin: 16px auto 32px; max-width: 40ch; }
.reg-learn .button { background: var(--carbon); color: var(--paper); }
.reg-learn .button:hover, .reg-learn .button:focus-visible { background: #262626; color: var(--lime); }
.reg-title .nb { white-space: nowrap; }
.reg-title { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 12px; }
.reg-lead { margin: 0 0 28px; color: var(--on-dark-muted); font-size: 1.0625rem; line-height: 1.5; }
.register-page .form { box-shadow: 8px 8px 0 var(--carbon-line); }
.reg-step .form-top { max-width: none; width: 100%; box-sizing: border-box; }
.step-top { gap: 16px; padding-bottom: 20px; color: var(--paper); }
.step-num { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--carbon); font: 800 1.75rem/1 var(--font-sans); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.modal .nophone-actions { flex-direction: column; align-items: center; }
.modal .nophone-actions li { width: min(100%, 280px); }
.modal .nophone-actions .button { width: 100%; }
.btn-px { flex: none; width: 24px; height: 24px; fill: currentColor; shape-rendering: crispEdges; }
.nophone-art img { display: block; width: min(100%, 230px); height: auto; margin: 0 auto 4px; }
/* connector between the two step cards: a lime pixel-dotted line (square dots) with an "optional" pixel label on it */
.reg-step-link { position: relative; height: 180px; width: 4px; margin-inline: auto;
  background: repeating-linear-gradient(to bottom, var(--lime) 0 4px, transparent 4px 12px); }
.reg-step-link::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 16px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4' shape-rendering='crispEdges'%3E%3Cpath fill='%23c4ff4d' d='M0 0h7v1H0zM1 1h5v1H1zM2 2h3v1H2zM3 3h1v1H3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; image-rendering: pixelated; }
.reg-step-link span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 14px; background: var(--carbon);
  font-family: var(--font-pixel); font-size: 1rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); white-space: nowrap; }
.reg-step .step-lead { margin: 0; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.5; }
.reg-step .perks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; }
.reg-step .perks li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--carbon-line); }
.reg-step .perks li:last-child { padding-bottom: 0; }
.perk-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--lime); }
.perk-icon .px { display: block; fill: currentColor; shape-rendering: crispEdges; width: calc(var(--c) * var(--cell, 4px)); height: calc(var(--r) * var(--cell, 4px)); }
.reg-step .perks h3 { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.reg-step .perks p { margin: 0; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.45; }
.reg-station { width: min(1160px, 100vw - 2 * var(--gutter)); justify-self: center; margin-top: 40px; }
@media (min-width: 640px) { .reg-title { margin-top: 8px; } }

/* Early access: the partners section's dark pixel texture (its cells peak at ~11% white, so it reads as a 10% texture) */
#early-access { position: relative; overflow: hidden; isolation: isolate; }
#early-access::before {
  content: ""; position: absolute; inset: -140px 0; z-index: -1; pointer-events: none;
  background: url("assets/img/pixel-texture-dark.png") center / cover no-repeat; image-rendering: pixelated;
  transform: translate3d(0, calc(var(--scroll, 0) * -140px), 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

/* Footer contact column: LinkedIn + click-to-reveal email buttons (see contact.js) */
.footer-label { font-family: var(--font-mono); font-size: 0.75rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper) !important; margin-bottom: 12px !important; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--paper); text-decoration: none; background: transparent; border: 1px solid var(--carbon-line); border-radius: 0; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.footer-btn:hover, .footer-btn:focus-visible { color: var(--lime); border-color: var(--lime); background: rgba(196, 255, 77, .06); }
.footer-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.footer-icon { flex: none; }
@media (max-width: 819px) { .footer-links { display: grid; } .footer-links .footer-btn { width: 100%; justify-content: flex-start; } }

/* Footer "Backed by" partner logo */
.footer-bottom { grid-column: 1 / -1; display: grid; gap: 20px; padding-top: 32px; border-top: 1px solid var(--carbon-line); }
@media (min-width: 820px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer-backed { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-backed .footer-label { margin: 0 !important; }
.footer-backed img { display: block; height: 29px; width: auto; opacity: 0.85; }
.footer-backed a { display: block; }
.footer-backed a img { transition: opacity .2s; }
.footer-backed a:hover img, .footer-backed a:focus-visible img { opacity: 1; }
.footer-backed a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* Partnership popup */
.footer-btn--lg { min-height: 52px; padding: 0 20px; font-size: 0.9375rem; }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 40px 32px 32px; background: var(--carbon); color: var(--paper); border: 1px solid var(--carbon-line); border-radius: 0; box-shadow: 0 0 0 1px rgba(196, 255, 77, .12), 0 24px 80px rgba(0, 0, 0, .6); }
.modal::backdrop { background: rgba(8, 8, 8, .78); backdrop-filter: blur(3px); }
.modal h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin: 8px 0 16px; letter-spacing: -0.01em; }
.modal p { color: var(--on-dark-muted); line-height: 1.65; margin: 0 0 24px; }
.modal .section-label { margin: 0; color: var(--lime); }
.modal--form { width: min(640px, calc(100vw - 32px)); padding: 0; border: 0; overflow: auto; }
.modal--form .form { box-shadow: none; border: 0; }
.modal--form .modal-close { z-index: 2; }
.modal--form .form-top { padding-right: 48px; }
.modal-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--paper); background: none; border: 0; cursor: pointer; }
.modal-close:hover, .modal-close:focus-visible { color: var(--lime); }
.modal-close:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .modal[open] { animation: modal-in .2s ease-out; } @keyframes modal-in { from { opacity: 0; transform: translateY(8px); } } }
