/* ==========================================================================
   Queenite showcase
   One page, four grounds. Every colour pair below is checked by tools/contrast.mjs.

   1  Tokens and themes        5  The light (hero sequence)    9  Where to buy
   2  Base                      6  Real footage                10  Footer
   3  Type, buttons, links      7  The stone in 3D             11  Motion and no-script
   4  Header and menu           8  Questions
   ========================================================================== */

/* 1. Tokens and themes ----------------------------------------------------- */

:root {
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(20px, 5.2vw, 80px);
  --wrap-max: 1320px;
  --edge: max(var(--gut), calc((100vw - var(--wrap-max)) / 2));
  --header-h: 72px;
  --hud-h: 92px;
  --section-y: clamp(88px, 13vh, 168px);
  --col-gap: 24px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-settle: cubic-bezier(.22, 1, .36, 1);
  --t-in: 150ms;
  --t-out: 120ms;
}

/* Grounds follow the light. "day" and "lamp" are the engine's white stage in daylight and in warm
   light; "candle" is its black mirror by candlelight; "wine" is the stone's own candlelight colour, deepened. */
[data-theme="day"] {
  --ground: #dadbd7;
  --ground-up: #e7e8e4;
  --ink: #15171a;
  --ink-2: #4b5055;
  --accent: #3b5d57;
  --line: rgba(21, 23, 26, .17);
}
[data-theme="lamp"] {
  --ground: #ded5ca;
  --ground-up: #eae2d8;
  --ink: #1c1614;
  --ink-2: #594d46;
  --accent: #923c57;
  --line: rgba(28, 22, 20, .17);
}
[data-theme="candle"] {
  --ground: #0c0b0c;
  --ground-up: #191617;
  --ink: #f2e8dc;
  --ink-2: #b9ac9f;
  --accent: #ee8098;
  --line: rgba(242, 232, 220, .2);
}
[data-theme="wine"] {
  --ground: #4c1024;
  --ground-up: #5c1b30;
  --ink: #f8ece4;
  --ink-2: #e6cbc8;
  --accent: #f4cba9;
  --line: rgba(248, 236, 228, .26);
}
[data-theme] {
  background-color: var(--ground);
  color: var(--ink);
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: #dadbd7;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #15171a;
  background: #dadbd7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
video,
canvas,
svg { display: block; max-width: 100%; }
img,
video { height: auto; }

p,
h1,
h2,
h3,
ul,
figure { margin: 0; }
ul { padding: 0; list-style: none; }

button,
input { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink, currentColor);
  outline-offset: 3px;
}

::selection { background: var(--ink, #15171a); color: var(--ground, #dadbd7); }

[hidden] { display: none !important; }

.wrap {
  width: min(100% - 2 * var(--gut), var(--wrap-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: var(--gut);
  z-index: 100;
  padding: 12px 18px;
  background: #15171a;
  color: #f4f4f1;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: #f4f4f1; outline-offset: -5px; }

/* 3. Type, buttons, links -------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5.1vw + .55rem, 6rem);
  line-height: .99;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  letter-spacing: -.012em;
  color: var(--accent);
}
.display--m {
  font-size: clamp(2.125rem, 2.9vw + 1rem, 3.875rem);
  line-height: 1.03;
  letter-spacing: -.018em;
}
.display--xl {
  font-size: clamp(2.625rem, 6.3vw + .5rem, 7.25rem);
  line-height: .96;
  letter-spacing: -.026em;
}

.lead {
  max-width: 33em;
  font-size: clamp(1.0625rem, .32vw + 1rem, 1.25rem);
  line-height: 1.55;
}

.note {
  max-width: 44em;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.note:empty { display: none; }

/* A light and its colour temperature, set like the plate on an instrument. */
.reading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.reading__name::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: currentColor;
  opacity: .55;
}
.reading__k { color: var(--ink-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 2px 26px 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .13em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-out) var(--ease), border-color var(--t-out) var(--ease), color var(--t-out) var(--ease), transform var(--t-out) var(--ease);
}
.btn--primary {
  background-color: var(--ink);
  color: var(--ground);
}
.btn--ghost {
  border-color: var(--ink-2);
  color: var(--ink);
}
.btn--block { display: flex; width: 100%; }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }

.link {
  padding-bottom: 2px;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 100% 1px, 100% 1px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--t-out) var(--ease);
}
.toggle::before {
  content: "";
  width: 9px;
  height: 11px;
  border-inline: 3px solid currentColor;
}
.toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-inline: 10px solid currentColor;
  border-inline-end-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background-color: color-mix(in srgb, var(--ink) 84%, var(--ground));
    transform: translateY(-1px);
    transition-duration: var(--t-in);
  }
  .btn--ghost:hover {
    border-color: var(--ink);
    background-color: color-mix(in srgb, var(--ink) 9%, transparent);
    transform: translateY(-1px);
    transition-duration: var(--t-in);
  }
  .btn:active { transform: translateY(1px) scale(.985); }
  .link {
    background-size: 0 1px, 100% 1px;
    transition: background-size 220ms var(--ease);
  }
  .link:hover { background-size: 100% 1px, 100% 1px; }
  .toggle:hover { color: var(--ink); }
}

/* 4. Header and menu ------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  transition: background-color 320ms linear, color 320ms linear, border-color 320ms linear;
}
.site-header[data-live] { transition: none; }
.site-header__in {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
}
.brand__mark {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linejoin: round;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 9px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 220ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
}
.btn--nav { min-height: 44px; }

.menu-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 2px 16px 0;
  border: 1px solid var(--ink-2);
  background: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
}
.menu::backdrop { background: #0c0b0c; }
.menu__in {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gut) calc(28px + env(safe-area-inset-bottom));
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.menu .menu-btn { display: inline-flex; margin-left: 0; }
.menu__list {
  margin: clamp(24px, 8vh, 72px) 0 40px;
  border-top: 1px solid var(--line);
}
.menu__list a {
  display: flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2.125rem;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-decoration: none;
}
.menu .btn--block { margin-top: auto; }

@media (max-width: 899px) {
  :root { --header-h: 56px; --hud-h: 72px; --col-gap: 12px; }
  .nav,
  .btn--nav { display: none; }
  .js .menu-btn { display: inline-flex; }
  .brand__name { font-size: 1.0625rem; }
}

/* 5. The light ------------------------------------------------------------- */

/* Stacked form (no script, reduced motion, short screens): three full screens, each on its own ground. */
.light__art,
.light__hud { display: none; }

.step__in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 40px) 56px;
}
.step__text { grid-column: 1 / span 6; }
.step__figure { grid-column: 7 / span 6; }
.step__figure img,
.light__canvas {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
}
.step .display { margin-top: 26px; }
.step .lead { margin-top: 26px; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

@media (max-width: 899px) {
  .step__in { align-content: center; row-gap: 8px; padding-block: calc(var(--header-h) + 16px) 40px; }
  .step__figure { grid-column: 1 / -1; grid-row: 1; width: min(100%, 52vh, 460px); margin-inline: auto; }
  .step__text { grid-column: 1 / -1; grid-row: 2; }
  .step .display { margin-top: 18px; }
  .step .lead { margin-top: 18px; }
  .actions { margin-top: 26px; }
}
@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

/* Pinned form: one screen held while the light follows the scroll. The script drives --s (0 day,
   1 warm light, 2 candlelight), the stage's colours and each step's --o and --y. */
.pin .light {
  height: 340vh;
  height: 340svh;
}
.pin .light__stage {
  --stone: min(54vw, calc(100svh - var(--header-h) - var(--hud-h) + 40px), 820px);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.pin .light__art {
  display: block;
  position: absolute;
  z-index: 1;
  top: calc(var(--header-h) + (100% - var(--header-h) - var(--hud-h) - var(--stone)) / 2);
  right: calc(var(--edge) - var(--stone) * .17);
  width: var(--stone);
  height: var(--stone);
  pointer-events: none;
}
.pin .light__canvas {
  width: 100%;
  height: 100%;
  /* shown in the same frame the still under it is hidden, so the stone never dips */
  opacity: 0;
}
.pin .light__stage[data-live] .light__canvas { opacity: 1; }
/* The turning film is only a source for the canvas; it is never looked at directly. */
.light__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

.pin .step {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: none;
  color: inherit;
  /* take the stage's travelling colours, not the step's own */
  --ground: inherit;
  --ground-up: inherit;
  --ink: inherit;
  --ink-2: inherit;
  --accent: inherit;
  --line: inherit;
  opacity: var(--o, 0);
  pointer-events: none;
}
.pin .step[data-step="0"] { opacity: var(--o, 1); }
.pin .step.is-current { pointer-events: auto; }
.pin .step__in {
  align-content: center;
  height: 100%;
  min-height: 0;
  padding-block: var(--header-h) var(--hud-h);
}
.pin .step__text {
  transform: translate3d(0, var(--y, 0px), 0);
  will-change: transform, opacity;
}
.pin .step__figure { display: none; }
/* Until the canvas has drawn, the first still stands exactly where the canvas will. */
.pin .step[data-step="0"] .step__figure {
  display: block;
  position: absolute;
  z-index: -1;
  top: calc(var(--header-h) + (100% - var(--header-h) - var(--hud-h) - var(--stone)) / 2);
  right: calc(var(--edge) - var(--stone) * .17);
  width: var(--stone);
  height: var(--stone);
  margin: 0;
}
.pin .light__stage[data-live] .step[data-step="0"] .step__figure { visibility: hidden; }

.pin .light__hud {
  display: block;
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  height: var(--hud-h);
}
.light__hud-in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 560px);
  padding-top: 13px;
}
.rail__track {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
}
.rail__dot {
  position: absolute;
  top: -4px;
  left: calc(var(--s, 0) * 33.3333%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.rail__stop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px 0 0;
  border: 0;
  background: none;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  transition: color 200ms linear;
}
.rail__stop[aria-pressed="true"] { color: var(--ink); }
.rail__k { letter-spacing: .1em; }

.cue,
.light__hud .toggle {
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.light__side {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  margin-top: 4px;
}
.cue {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: var(--cue, 1);
}
.cue::after {
  content: "";
  width: 1px;
  height: 26px;
  background: currentColor;
  transform-origin: 50% 0;
}

@media (max-width: 1179px) {
  .cue { display: none; }
}

@media (max-width: 899px) {
  .pin .light__stage { --stone: min(92vw, 40svh, 460px); }
  @media (min-width: 600px) { .pin .light__stage { --stone: min(88vw, 46svh, 640px); } }
  .pin .light__art,
  .pin .step[data-step="0"] .step__figure {
    top: calc(var(--header-h) + 4px);
    right: calc(50% - var(--stone) / 2);
  }
  .pin .step__in { align-content: end; padding-bottom: calc(var(--hud-h) + 12px); }
  /* On a phone the held screen keeps to what fits under the stone: one sentence and the main action. */
  .pin .lead__more,
  .pin .actions .btn--ghost { display: none; }
  .cue { display: none; }
  .rail { width: 100%; }
  .rail__name { letter-spacing: .06em; white-space: nowrap; }
  /* The pause control moves to the top corner of the held screen, so the three lights keep the full width. */
  .light__side {
    position: absolute;
    right: calc(var(--gut) - 10px);
    bottom: calc(100svh - var(--header-h) - 52px);
    min-height: 44px;
    margin: 0;
  }
  .light__hud .toggle { font-size: 0; gap: 0; min-width: 44px; justify-content: flex-end; }
}

/* 6. Real footage ---------------------------------------------------------- */

.proof,
.turn,
.faq,
.buy { padding-block: var(--section-y); }
/* A section reached from the menu starts at the very top, under the header, which then wears its colours.
   (scroll-padding still keeps a focused control clear of the header.) */
main > section { scroll-margin-top: calc(var(--header-h) * -1); }

.proof__grid,
.turn__grid,
.faq__grid,
.buy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}

.proof__text { grid-column: 1 / span 4; }
.proof__text p { margin-top: 22px; color: var(--ink-2); }
.proof__text .display + p { margin-top: 30px; color: var(--ink); }
.toggle--inline { margin-top: 26px; }

.proof__sheet { grid-column: 6 / span 7; }
.sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sheet--pairs { margin-top: 44px; }
.frame__media {
  width: 100%;
  background: var(--ground-up);
  object-fit: cover;
}
.sheet--films .frame__media { aspect-ratio: 4 / 5; }
.frame figcaption,
.pair__label {
  margin-top: 12px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pair { grid-column: span 2; }
.pair__frames {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.pair .frame__media { aspect-ratio: 1; }

@media (max-width: 1099px) {
  .proof__text { grid-column: 1 / -1; max-width: 40em; }
  .proof__sheet { grid-column: 1 / -1; margin-top: 56px; max-width: 760px; }
}
@media (max-width: 599px) {
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sheet--films { row-gap: 24px; }
  .sheet--pairs { margin-top: 32px; row-gap: 28px; }
  .proof__sheet { margin-top: 44px; }
}

/* 7. The stone in 3D ------------------------------------------------------- */

.turn { transition: background-color 500ms linear; }
.turn[data-live] { transition: none; }
.turn__grid { align-items: center; }
.turn__stage {
  position: relative;
  grid-column: 1 / span 6;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
  margin-inline: auto;
  outline-offset: 6px;
}
.turn__still,
.turn__host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 76%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 76%, transparent 100%);
}
.turn__still { transition: opacity 500ms linear; }
.turn__host {
  opacity: 0;
  pointer-events: none;
  transition: opacity 640ms linear;
}
.turn__stage[data-state="live"] .turn__host { opacity: 1; pointer-events: auto; }
.turn__stage[data-state="live"] .turn__still { opacity: 0; }
/* The engine sets a square, touch-trapping host; the page gives the box its size and lets vertical swipes scroll. */
.turn__host queenite-gem {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  touch-action: pan-y;
}
.turn__start {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
}
.turn__start:active { transform: translateX(-50%) translateY(1px) scale(.985); }
.turn__hint {
  position: absolute;
  inset: auto 0 4% 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
}

.turn__panel { grid-column: 8 / span 5; }
.turn__panel > p:not(.note) { margin-top: 26px; max-width: 33em; }
.controls { margin-top: 36px; }
.field + .field { margin-top: 30px; }
.field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.field__label,
.field__value {
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.field__value { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

/* The track is the stone's own colour from candle flame (left) to daylight (right). */
.slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 2px 0 0;
  background: none;
  cursor: pointer;
  --track: linear-gradient(90deg, #db767d 0%, #d49fad 17.4%, #8f7275 28.7%, #4f4541 45.7%, #564a45 58.7%, #7a726c 68.5%, #adb1a8 78.3%, #a1aaaa 100%);
}
.slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 0;
  background: var(--track);
}
.slider::-moz-range-track {
  height: 8px;
  border-radius: 0;
  background: var(--track);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ground-up);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ground-up);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
.slider:focus-visible { outline-offset: 0; }

.stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.stop {
  min-height: 44px;
  padding: 1px 16px 0;
  border: 1px solid var(--line);
  background: none;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color var(--t-out) var(--ease), border-color var(--t-out) var(--ease), color var(--t-out) var(--ease);
}
.stop[aria-pressed="true"] {
  border-color: var(--ink);
  background-color: var(--ink);
  color: var(--ground);
}
@media (hover: hover) and (pointer: fine) {
  .stop:not([aria-pressed="true"]):hover { border-color: var(--ink); }
}
.turn__panel .note { margin-top: 28px; }
.turn__panel .note + .note { margin-top: 12px; color: var(--ink); }

@media (max-width: 999px) {
  .turn__stage { grid-column: 1 / -1; max-width: 520px; }
  .turn__panel { grid-column: 1 / -1; margin-top: 28px; max-width: 40em; }
}

/* 8. Questions ------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__grid > .display { grid-column: 1 / span 4; }
.faq__list {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px var(--col-gap);
}
.qa h3 {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.qa p { margin-top: 14px; }

@media (max-width: 1099px) {
  .faq__grid > .display { grid-column: 1 / -1; }
  .faq__list { grid-column: 1 / -1; margin-top: 48px; }
}
@media (max-width: 699px) {
  .faq__list { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

/* 9. Where to buy ---------------------------------------------------------- */

.buy__grid { align-items: end; row-gap: 56px; }
.buy__grid > .display { grid-column: 1 / span 8; }
.buy__side { grid-column: 9 / span 4; }
.shops {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.shop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.shop__name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -.015em;
}
.shop__state,
.shop__link {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.shop__state { color: var(--ink-2); }
.shop__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.buy__mail { margin-top: 28px; color: var(--ink-2); }
.buy__mail .link { color: var(--ink); white-space: nowrap; }

@media (max-width: 1099px) {
  .buy__grid > .display { grid-column: 1 / -1; }
  .buy__side { grid-column: 1 / -1; max-width: 34em; }
}

/* 10. Footer --------------------------------------------------------------- */

.site-footer { padding-block: clamp(56px, 9vh, 104px) calc(32px + env(safe-area-inset-bottom)); }
.site-footer__word {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 16.9vw, 15.8rem);
  line-height: .86;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: -.045em;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(32px, 6vh, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.site-footer__tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.2;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-bottom: 0;
  background-position: 0 calc(100% - 11px), 0 calc(100% - 11px);
  font-size: .9375rem;
  font-weight: 500;
}
.site-footer__legal {
  margin-top: 22px;
  font-size: .875rem;
  color: var(--ink-2);
}

/* 11. Motion and no-script ------------------------------------------------- */

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

  /* The first screen enters once: the words rise, the stone settles. Nothing else on the page reveals itself. */
  .js .step[data-step="0"] .step__text > * {
    animation: rise 760ms var(--ease-settle) both;
  }
  .js .step[data-step="0"] .step__text > :nth-child(1) { animation-delay: 60ms; }
  .js .step[data-step="0"] .step__text > :nth-child(2) { animation-delay: 140ms; }
  .js .step[data-step="0"] .step__text > :nth-child(3) { animation-delay: 260ms; }
  .js .step[data-step="0"] .step__text > :nth-child(4) { animation-delay: 340ms; }
  .js .step[data-step="0"] .step__figure img,
  .js .light__canvas { animation: settle 1100ms var(--ease-settle) both; }

  .cue::after { animation: cue 2.4s var(--ease) infinite; }
}
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.035); }
  to { transform: none; }
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45%, 70% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Without scripts the page is the stacked sequence, the films keep their own controls and the 3D
   controls, which would do nothing, are left out. */
.no-js .controls,
.no-js .turn__start,
.no-js .toggle { display: none; }
.no-js .menu-btn,
.no-dialog .menu-btn { display: none; }
@media (max-width: 899px) {
  .no-js .site-header,
  .no-dialog .site-header { position: static; height: auto; }
  .no-js .site-header__in,
  .no-dialog .site-header__in { flex-wrap: wrap; padding-block: 8px; gap: 4px 20px; }
  .no-js .nav,
  .no-dialog .nav { display: block; margin-left: 0; width: 100%; }
  .no-js .nav__list,
  .no-dialog .nav__list { flex-wrap: wrap; gap: 0 22px; }
  .no-js .step__in,
  .no-dialog .step__in { padding-top: 24px; }
}
