:root {
  --ink: #0e2a2b;        /* page: deep petrol, dark without being black */
  --moss: #143638;       /* raised surfaces */
  --line: #24494b;       /* hairlines on the dark page */
  --bone: #efeae0;       /* the device, and the main text */
  --mist: #a3b9b6;       /* secondary text */
  --brass: #d8b26a;      /* the gold keys: links, finished steps */
  --signal: #ff6b4a;     /* sound: the plate animation and the current step, nothing else */
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1180px, 100% - 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }   /* the hero plate is wider than the screen; mobile browsers ignore body overflow */
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.9vw, 4.5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.75rem); font-weight: 650; line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
a { color: var(--brass); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--bone); color: var(--ink); padding: 0.6rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

/* spores that come along down the page, in the margins only; behind everything */
.drift { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ---------- top bar ---------- */
.top { width: var(--wrap); margin: 0 auto; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 3; }
.wordmark { font: 750 1.75rem/1 var(--display); letter-spacing: -0.04em; color: var(--bone); text-decoration: none; }
.top-link { font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: var(--wrap);
  margin: 0 auto;
  min-height: min(78vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 5rem;
}
.plate { position: absolute; left: 36%; top: -4.5rem; width: calc(64% + 16vw); height: calc(100% + 5.5rem); pointer-events: none; z-index: 0;  /* a canvas ignores inset, so it gets a real size */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 1.5rem; }
.lede { font-size: 1.1875rem; color: var(--mist); max-width: 46ch; }
.hero-device { position: relative; z-index: 1; width: 128%; max-width: none; margin: 0 -18% 0 -10%; filter: drop-shadow(0 30px 40px rgb(3 14 15 / 0.55)); }

/* ---------- sign-up ---------- */
.signup { display: grid; gap: 0.5rem; max-width: 30rem; }
.signup label { font-size: 0.9375rem; font-weight: 500; }
.signup-row { display: flex; gap: 0.5rem; }
.signup input {
  flex: 1 1 12rem; min-width: 0;
  font: inherit; color: var(--bone);
  background: var(--moss); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 1rem;
}
.signup input::placeholder { color: #6f8c89; }
.signup input:focus-visible { outline-offset: 0; border-color: var(--brass); }
.signup button {
  font: 600 1rem/1 var(--text); white-space: nowrap; cursor: pointer;
  color: var(--ink); background: var(--bone); border: 0; border-radius: 10px;
  padding: 0.8rem 1.25rem;
  transition: background-color 0.15s;
}
.signup button:hover { background: #fff; }
.signup button:disabled { cursor: default; opacity: 0.6; }
.signup-note { font-size: 0.9375rem; color: var(--mist); min-height: 1.5em; }
.signup.is-error .signup-note { color: var(--signal); }
.signup.is-done .signup-note { color: var(--brass); }
.signup-privacy { font-size: 0.8125rem; line-height: 1.5; color: var(--mist); margin-top: 0.25rem; max-width: 46ch; }
.signup-privacy a { color: var(--brass); }

/* ---------- inside ---------- */
.screens { width: var(--wrap); margin: 0 auto; padding: 1rem 0 4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.screens-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: end; margin-bottom: 1.25rem; }
.screens-head p { color: var(--mist); }
.shot { margin: 0; display: grid; gap: 0.6rem; }
.shot figcaption { font-size: 0.875rem; color: var(--mist); }
.zoom { padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.zoom img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s ease; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: none; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(3 14 15 / 0.85); }
.lightbox img { max-height: 94vh; width: auto; border-radius: 10px; cursor: zoom-out; }
.lightbox-close { position: absolute; top: -0.5rem; right: -0.5rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.inside { width: var(--wrap); margin: 0 auto; padding: 5rem 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; border-top: 1px solid var(--line); }
.inside-text { display: grid; gap: 1.25rem; }
.inside-text p { color: var(--mist); }
.facts { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; font-size: 0.9375rem; }
.facts li { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.facts span { display: block; font: 600 1.0625rem/1.3 var(--display); color: var(--brass); }
.film { width: 100%; border-radius: 18px; background: #0a1516; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- views ---------- */
.views { width: var(--wrap); margin: 0 auto; padding: 5rem 0; border-top: 1px solid var(--line); }
.views-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: end; margin-bottom: 2.5rem; }
.views-head p { color: var(--mist); }
/* albums: one picture at a time, sliding sideways */
.album-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 18px; }
.album-track::-webkit-scrollbar { display: none; }
.album-track:focus-visible { outline-offset: 4px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img, .slide video { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 18px; background: #0a1516; }
.slide figcaption { font-size: 0.9375rem; color: var(--mist); padding: 0.75rem 0.25rem 0; max-width: 60ch; min-height: 3.2em; }
.album-nav { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.album-nav > button { font: 600 1.125rem/1 var(--text); color: var(--bone); background: var(--moss); border: 1px solid var(--line); border-radius: 999px; width: 2.75rem; height: 2.75rem; cursor: pointer; }
.album-nav > button:hover { border-color: var(--brass); }
.album-dots { display: flex; gap: 0.5rem; flex: 1; justify-content: center; }
.album-dots button { width: 0.625rem; height: 0.625rem; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.album-dots button[aria-current="true"] { background: var(--brass); }

/* ---------- status ---------- */
.status { width: var(--wrap); margin: 0 auto; padding: 5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 2rem 3.5rem; color: var(--mist); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.15rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1rem/1 var(--display); color: var(--mist);
  border: 1px solid var(--line); background: var(--ink);
}
.steps li::after { content: ""; position: absolute; left: 1.125rem; top: 2.3rem; bottom: 0.1rem; width: 1px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { color: var(--bone); margin-bottom: 0.25rem; }
.steps .done::before { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.steps .done::after { background: var(--brass); }
.steps .now::before { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 5px rgb(255 107 74 / 0.16); }
.steps .now h3 { color: var(--signal); }

/* ---------- follow ---------- */
.follow { width: var(--wrap); margin: 0 auto; padding: 5rem 0 6rem; border-top: 1px solid var(--line); display: grid; gap: 1.25rem; justify-items: start; }
.follow > p { color: var(--mist); }

.foot { width: var(--wrap); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--mist); font-size: 0.9375rem; }
.foot .wordmark { font-size: 1.25rem; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 3rem; }
  .hero-device { order: -1; width: 100%; margin: 0; }
  .plate { left: -30vw; top: -3rem; width: 160vw; height: 100vw; }   /* ends above the headline */
  .inside, .views-head, .screens-head, .status { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .inside, .views, .status, .follow { padding: 3.5rem 0; }
  .signup-row { flex-wrap: wrap; }
  .signup button { flex: 1 1 100%; }
  .foot { flex-direction: column; }
}

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