/* dettyworld.com's one style sheet, for the landing, the legal pages and the 404. Gold and black, the game's own colours
   (its loading screen and Home Screen icon: warm ink, gold, burnt orange, cream). One web font, a subset of Anton (OFL),
   self-hosted, for the wordmark and the headings only (`.mark`); everything else is the system's. The pages' policy allows
   only this file (style-src 'self'), so there are no inline styles; the script reaches the page through classes, the
   `hidden` attribute and one custom property. 44 px touch targets, a 16 px gutter on phones, nothing wider than the
   screen from 320 px up, and every movement under prefers-reduced-motion: no-preference (at the end). */

@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton.ba87338a.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0f0b08;
  --ink-2: #17110c;
  --bg: #1a1410;
  --glow: #3a2618;
  --gold: #f2c14e;
  --gold-hi: #ffd979;
  --burnt: #7a3b12;
  --cream: #f5efe6;
  /* WORLD in the wordmark, as tools/icons/make_icons.py draws it. */
  --wm-cream: #e9d8c2;
  --muted: #cdbba5;
  --line: rgba(245, 239, 230, 0.12);
  --rule: #3a2a1d;
  --glass: rgba(22, 18, 14, 0.78);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif-condensed, sans-serif;
  --gutter: 16px;
  --max: 1240px;
  /* The sticky bar's height: the hero runs up under it. */
  --bar: 65px;
  /* The page's width less its gutters, centred: where the hero's copy, dots and slider line up with the sections. */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
* { box-sizing: border-box; }
/* A rule that sets `display` on an element would otherwise beat the `hidden` attribute the script relies on. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) radial-gradient(circle at 50% 0, var(--glow) 0, var(--bg) 60%) no-repeat;
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ----- The legal pages and the 404 ----------------------------------------------------------------------------- */
main.legal, main.centre { width: 100%; max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 2rem; flex: 1 0 auto; }
body:not(.home) > footer { display: flex; flex-wrap: wrap; gap: 0 1.25rem; width: 100%; max-width: 40rem; margin: 0 auto; padding: 0.5rem 1rem 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }
body:not(.home) > footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 800; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.legal h1, .centre h1 { margin: 0.5rem 0 0.75rem; color: var(--gold); font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; text-wrap: balance; }
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { margin: 2rem 0 0.5rem; font-size: 1.25rem; line-height: 1.3; }
.legal h3 { margin: 1.5rem 0 0.375rem; color: var(--gold); font-size: 1.0625rem; line-height: 1.3; }
.legal code { overflow-wrap: anywhere; }
.legal p, .legal li { overflow-wrap: break-word; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.375rem; }
.date { color: var(--muted); }
.centre { padding-top: 2rem; }
.centre .go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--gold);
  border-radius: 0.625rem;
  box-shadow: 0 3px 0 var(--burnt);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

/* ----- The landing ---------------------------------------------------------------------------------------------- */
.home { display: block; background: var(--ink); }
.home main { display: block; }
.mark { font-family: var(--display); font-weight: 400; line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; }
.gold { color: var(--gold); }

.skip { position: absolute; z-index: 50; left: 12px; top: -120px; padding: 12px 18px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; color: var(--ink); }

/* The game's wordmark (its Home Screen icon): DETTY in gold with its burnt-orange shadow straight down, WORLD beneath in
   cream at 62% of DETTY's width, centred. Anton's capitals fill 0.86 em, hence the line height. */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; font-size: 26px; line-height: 0.86; text-decoration: none; }
.wordmark .wm-d { color: var(--gold); text-shadow: 0 0.06em 0 var(--burnt); }
.wordmark .wm-w { margin-top: 0.207em; color: var(--wm-cream); font-size: 0.5187em; }
.wordmark:hover .wm-d { color: var(--gold-hi); }

/* The bar: dark glass, sticky. Over the hero's top the script clears it (`clear`), so the picture runs up behind it. */
.bar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.9), var(--glass));
  border-bottom: 1px solid rgba(242, 193, 78, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.bar.clear { background: linear-gradient(180deg, rgba(15, 11, 8, 0.55), rgba(15, 11, 8, 0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar-in { display: flex; align-items: center; gap: 24px; max-width: var(--max); height: 64px; margin: 0 auto; padding: 0 var(--gutter); }
.nav { display: none; }
.nav a, .quiet { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: var(--cream); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.nav a:hover, .quiet:hover { color: var(--gold); }
.nav a[aria-current='true'] { border-bottom-color: var(--gold); }
.bar-go { display: flex; align-items: center; gap: 20px; margin-left: auto; }
@media (max-width: 420px) { .bar .quiet { display: none; } }

/* The pills: gold for every way into the game, ghost for the reel. Their ▶ and ◉ are drawn here, not read out. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.pill.play { background: linear-gradient(180deg, #ffd66d 0%, var(--gold) 55%, #e5ab34 100%); box-shadow: 0 3px 0 var(--burnt), 0 12px 32px -10px rgba(242, 193, 78, 0.6); color: var(--ink); }
.pill.play::before { content: '\25B6'; content: '\25B6' / ''; font-size: 0.78em; }
.pill.play:hover { background: linear-gradient(180deg, #ffe08a 0%, var(--gold-hi) 55%, #eeb640 100%); color: var(--ink); }
.pill.play:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--burnt), 0 8px 24px -10px rgba(242, 193, 78, 0.6); }
.pill.big { min-height: 56px; padding: 8px 30px; font-size: 15px; line-height: 1.2; text-align: center; white-space: normal; }
/* The narrowest phones: the page's largest control still fits its row, on two lines at worst. */
@media (max-width: 380px) { .pill.big { padding-inline: 18px; font-size: 13.5px; letter-spacing: 0.05em; } }
.pill.ghost { border: 1px solid rgba(245, 239, 230, 0.4); background: rgba(15, 11, 8, 0.55); color: var(--cream); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.pill.ghost::before { content: '\25C9'; content: '\25C9' / ''; color: var(--gold); }
.pill.ghost:hover { border-color: var(--gold); }

/* The hero: the loop (or its still) under two gradients, the copy over its foot on a phone and at its left on a wide
   screen. The picture, the shade and the copy are layered in the hero's own stacking context. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  margin-top: calc(-1 * var(--bar));
  padding: calc(var(--bar) + 72px) var(--gutter) 28px;
  overflow: hidden;
  background: var(--ink) radial-gradient(120% 80% at 70% 20%, #3a2618 0%, var(--ink) 70%) no-repeat;
}
.hero-media { position: absolute; inset: 0; }
.hero-media > img, .hero-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media > video, .hero-media > .still { opacity: 0; }
.hero-media > video.on, .hero-media > .still.on { opacity: 1; }
.hero-shade {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.6) 0%, rgba(15, 11, 8, 0.05) 18%, rgba(15, 11, 8, 0.2) 34%, rgba(15, 11, 8, 0.86) 56%, var(--ink) 100%);
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
/* The copy's own dark backing, past its edges and feathered by its shadow, so the words keep 4.5:1 over any frame of
   the loop, the brightest noon sky included; the picture still shows round it. */
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -20px -16px; border-radius: 28px; background: rgba(15, 11, 8, 0.8); box-shadow: 0 0 80px 36px rgba(15, 11, 8, 0.8); pointer-events: none; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 13px; border: 1px solid rgba(242, 193, 78, 0.6); border-radius: 999px; background: rgba(15, 11, 8, 0.4); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.headline { margin: 0 0 16px; font-size: clamp(3rem, 15vw, 6.25rem); }
.headline .hl { display: block; color: var(--cream); text-shadow: 0 0.05em 0 var(--burnt); }
.headline .hl.gold { color: var(--gold); }
.lede { max-width: 520px; margin: 0 0 22px; color: var(--cream); font-size: 16px; line-height: 1.6; text-shadow: 0 1px 12px rgba(15, 11, 8, 0.8); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .pill { flex: 1 1 100%; }
/* The counter's line is always there, so nothing moves when it fills (spec section 5). */
.counter { min-height: 1.5em; margin: 14px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.counter .live { display: inline-block; width: 8px; height: 8px; margin: 0 7px 1px 2px; border-radius: 50%; background: #45d483; box-shadow: 0 0 8px rgba(69, 212, 131, 0.8); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.checks li::before { content: '\2713'; content: '\2713' / ''; margin-right: 6px; color: var(--gold); font-weight: 800; }

/* The day and night slider: a horizontal rail under the checks on a phone, a vertical one at the hero's right edge on a
   wide screen. A native range (Noon, Golden hour, Night), so the keyboard and screen readers know it. */
.clock { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; max-width: 420px; margin-top: 16px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.18em; }
/* DAY and NIGHT, and the loop's dots, sit over the moving picture: each on its own dark chip, so they read on any frame. */
.clock-end { padding: 3px 7px; border-radius: 999px; background: rgba(15, 11, 8, 0.8); color: var(--muted); }
.clock-rail { position: relative; flex: 1; }
.clock-input { display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.clock-input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #8fd3ff, #f2c14e 38%, #ff9126 58%, #8b2cff 80%, #3a2a4a); box-shadow: 0 0 0 1px rgba(245, 239, 230, 0.12); }
.clock-input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #8fd3ff, #f2c14e 38%, #ff9126 58%, #8b2cff 80%, #3a2a4a); }
.clock-input::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffeab0, var(--gold) 60%); box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.7), 0 0 18px 3px rgba(242, 193, 78, 0.65); -webkit-appearance: none; appearance: none; }
.clock-input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px 3px rgba(242, 193, 78, 0.65); }
.clock-input:focus-visible { outline-offset: 0; }
/* "Now in Osu" rides beside the knob; the script sets --at (0 at Noon, 1 at Night). */
.now { position: absolute; bottom: 100%; left: calc(var(--at, 0.5) * (100% - 20px) + 10px); padding: 3px 8px; border-radius: 999px; background: rgba(15, 11, 8, 0.8); color: var(--gold); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); }

/* The loop's dots: one per segment, the playing one gold, with its name. And the one pause for every video. */
.dots { position: absolute; z-index: 1; left: var(--gutter); top: calc(var(--bar) + 14px); display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(15, 11, 8, 0.8); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.dots i { display: block; width: 22px; height: 3px; border-radius: 2px; background: rgba(245, 239, 230, 0.3); }
.dots i.on { width: 34px; background: var(--gold); }
.dot-label { margin-left: 8px; }
.pause { position: absolute; z-index: 1; right: var(--gutter); top: calc(var(--bar) + 6px); width: 44px; height: 44px; padding: 0; border: 1px solid rgba(245, 239, 230, 0.35); border-radius: 50%; background: rgba(15, 11, 8, 0.55); color: var(--cream); cursor: pointer; }
.pause::before { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 14px; border-inline: 4px solid currentColor; transform: translate(-50%, -50%); }
.pause[aria-pressed='true']::before { width: 0; height: 0; border-block: 8px solid transparent; border-inline: 13px solid currentColor; border-inline-end: 0; transform: translate(-35%, -50%); }
.pause:hover { border-color: var(--gold); color: var(--gold); }

/* The game: the cards over the hero's foot, the caption, the four feature lines. */
.game { position: relative; z-index: 2; }
.cards { display: flex; gap: 12px; margin: 0; padding: 4px var(--gutter) 14px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 70%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(245, 239, 230, 0.16); border-radius: 12px; background: var(--ink-2); box-shadow: 0 18px 40px -22px #000; scroll-snap-align: start; }
.card.on { border: 2px solid var(--gold); box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.25), 0 18px 44px -18px rgba(242, 193, 78, 0.45); }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; }
.card video.on { opacity: 1; }
.lab { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px 12px 10px; background: linear-gradient(180deg, rgba(15, 11, 8, 0), rgba(15, 11, 8, 0.92)); font-size: 13px; font-weight: 800; }
.card.can-play:not(.no-clip) .lab::before { content: '\25B6'; content: '\25B6' / ''; margin-right: 7px; color: var(--gold); font-size: 10px; }
.caption { max-width: var(--max); margin: 2px auto 0; padding: 0 var(--gutter); color: var(--muted); font-size: 12px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; max-width: var(--max); margin: 26px auto 0; padding: 24px var(--gutter) 12px; border-top: 1px solid var(--line); list-style: none; }
.features h3 { margin: 0 0 6px; color: var(--cream); font-size: 15px; line-height: 1.3; }
.features h3::before { content: ''; display: block; width: 22px; height: 2px; margin-bottom: 12px; background: var(--gold); }
.features p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* The sections below. */
.sec { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter); }
.sec + .sec { border-top: 1px solid rgba(245, 239, 230, 0.08); }
.title { margin: 0 0 10px; color: var(--cream); font-size: clamp(2.25rem, 9.5vw, 3.6rem); text-shadow: 0 0.05em 0 var(--burnt); }
.sec-lede { max-width: 46ch; margin: 0 0 24px; color: var(--muted); font-size: 15px; }

/* Explore the World: Osu, the one playable neighbourhood, in a gold frame. */
.hoods { margin: 0; padding: 0; list-style: none; }
.hood { position: relative; isolation: isolate; display: flex; align-items: flex-end; max-width: 640px; min-height: 300px; overflow: hidden; border: 2px solid var(--gold); border-radius: 16px; background: var(--ink-2) radial-gradient(130% 120% at 92% 0%, #5a3a1c 0%, #22170e 42%, var(--ink) 78%) no-repeat; box-shadow: 0 30px 60px -34px rgba(242, 193, 78, 0.45); }
.hood > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hood::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15, 11, 8, 0.92) 0%, rgba(15, 11, 8, 0.55) 55%, rgba(15, 11, 8, 0.15) 100%), linear-gradient(0deg, rgba(15, 11, 8, 0.75), rgba(15, 11, 8, 0) 60%); }
.hood-in { padding: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #17703b; }
.hood-name { margin: 0 0 10px; color: var(--cream); font-size: 40px; text-shadow: 0 0.05em 0 var(--burnt); }
.hood-text { max-width: 400px; margin: 0 0 18px; font-size: 15px; line-height: 1.55; }

/* For Ghana, Nigeria, Africa and the diaspora: the picture first on a phone, beside the words on a wide screen. */
.diaspora { display: grid; gap: 28px; align-items: center; }
.diaspora .title { line-height: 0.96; }
.diaspora .title span { display: block; }
.diaspora-text p { max-width: 52ch; margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.pic { order: -1; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -36px #000; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

/* The gallery: real stills only. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
/* Two to a row on a phone: an odd count leads with one picture across the row. */
.shots li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

/* The FAQ: native details. */
.faq { display: grid; gap: 8px 56px; }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: '+'; content: '+' / ''; color: var(--gold); font-size: 24px; font-weight: 400; line-height: 1; }
.qs details[open] summary::after { content: '\2212'; content: '\2212' / ''; }
.qs summary:hover { color: var(--gold); }
.qs p { max-width: 62ch; margin: 0 0 18px; color: var(--muted); line-height: 1.65; }

/* The footer. */
.foot { margin-top: 24px; border-top: 1px solid rgba(242, 193, 78, 0.22); background: linear-gradient(180deg, #140e0a, var(--ink)); }
.foot-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 36px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .wordmark { font-size: 42px; }
.foot-brand p { margin: 14px 0 0; color: var(--muted); }
.foot-links { margin: 0; padding: 0; list-style: none; }
.foot-links a, .contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-size: 14px; text-decoration: none; }
.foot-links a:hover, .contact a:hover { color: var(--gold); }
.contact { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.contact a { margin-right: 6px; color: var(--gold); }
.small { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }

/* The reel, in a dialog. */
.reel { width: min(960px, 100% - 32px); max-width: none; max-height: calc(100% - 32px); padding: 0; overflow: auto; border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 14px; background: var(--ink); color: var(--cream); }
.reel::backdrop { background: rgba(8, 6, 4, 0.88); }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.reel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; }
.reel-title { margin: 0; flex: 1 1 100%; font-size: 16px; }
.reel-desc { flex: 1 1 260px; margin: 0; color: var(--muted); font-size: 13px; }
.reel-close { border: 1px solid rgba(245, 239, 230, 0.4); background: transparent; color: var(--cream); }
.reel-close:hover { border-color: var(--gold); }

/* ----- Wide: a desktop, or a phone on its side ------------------------------------------------------------------- */
@media (min-width: 760px) {
  .nav { display: flex; gap: 28px; margin: 0 auto; }
  .bar-go { margin-left: 0; }
}
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  .hero { justify-content: center; min-height: clamp(560px, 86svh, 860px); padding: calc(var(--bar) + 48px) var(--edge) 104px; }
  .hero-shade { background: linear-gradient(90deg, rgba(15, 11, 8, 0.92) 0%, rgba(15, 11, 8, 0.62) 40%, rgba(15, 11, 8, 0.05) 72%), linear-gradient(180deg, rgba(15, 11, 8, 0.55) 0%, rgba(15, 11, 8, 0) 20%, rgba(15, 11, 8, 0) 72%, var(--ink) 100%); }
  .lede { font-size: 17px; }
  .actions .pill { flex: 0 0 auto; }
  .clock { position: absolute; top: calc(var(--bar) + 44px); right: var(--edge); bottom: 100px; flex-direction: column; justify-content: space-between; width: 56px; max-width: none; margin: 0; }
  /* The rail takes the column's height, and the vertical range fills the rail (a percentage height alone overflows it). */
  .clock-rail { flex: 1; width: 44px; min-height: 0; }
  .clock-input { position: absolute; inset: 0; width: 44px; height: 100%; writing-mode: vertical-lr; }
  .clock-input::-webkit-slider-runnable-track { width: 4px; height: 100%; background: linear-gradient(180deg, #8fd3ff, #f2c14e 38%, #ff9126 58%, #8b2cff 80%, #3a2a4a); }
  .clock-input::-moz-range-track { width: 4px; height: 100%; background: linear-gradient(180deg, #8fd3ff, #f2c14e 38%, #ff9126 58%, #8b2cff 80%, #3a2a4a); }
  .clock-input::-webkit-slider-thumb { margin-top: 0; margin-left: -8px; }
  .now { right: 100%; bottom: auto; left: auto; top: calc(var(--at, 0.5) * (100% - 20px) + 10px); margin-right: 6px; transform: translateY(-50%); }
  .dots { top: auto; bottom: 24px; left: var(--edge); }
  .pause { top: auto; right: var(--edge); bottom: 22px; }
  .cards { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; max-width: var(--max); margin: -10px auto 0; padding: 0 var(--gutter) 14px; overflow: visible; }
  .card { min-width: 0; }
  .features { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-template-columns: none; }
  .features li + li { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .sec { padding: 80px var(--gutter); }
  .hood { min-height: 340px; }
  .hood-in { padding: 30px; }
  .diaspora { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .pic { order: 0; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .shots li:first-child:nth-last-child(odd) { grid-column: auto; }
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .foot-in { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}
/* A phone on its side: the hero is the screen's height, so the copy is set smaller. */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: 100svh; padding-top: calc(var(--bar) + 14px); padding-bottom: 22px; }
  .eyebrow { margin-bottom: 8px; padding: 4px 11px; }
  .headline { margin-bottom: 8px; font-size: clamp(2.2rem, 12vh, 3.6rem); }
  .lede { max-width: 440px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
  .pill.big { min-height: 48px; }
  .counter { margin-top: 6px; }
  .clock { top: calc(var(--bar) + 12px); bottom: 60px; }
  /* The copy fills the height, so the dots move up beside the slider's DAY. */
  .dots { top: calc(var(--bar) + 12px); right: calc(var(--edge) + 128px); bottom: auto; left: auto; }
  /* The pause joins the dots at the top, inside the first screen. */
  .pause { top: calc(var(--bar) + 8px); right: calc(var(--edge) + 70px); bottom: auto; }
}

/* ----- Motion, only for those who have not asked for less ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .bar { transition: background-color 0.3s ease, border-color 0.3s ease; }
  .hero-media > video, .hero-media > .still, .card video { transition: opacity 0.6s ease; }
  .counter { transition: opacity 0.6s ease; }
  .counter:empty { opacity: 0; }
  .pill, .card, .qs summary::after, .nav a { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
  .dots i { transition: width 0.3s ease, background-color 0.3s ease; }
  .now { transition: left 0.3s ease, top 0.3s ease; }
}
