/*
 * ReFeel — sample site.
 *
 * Colours and marks are the brand kit's (refeel-brand-kit 1.0.0,
 * 07-developer/refeel-brand-tokens.json, 02-vector). The working colours,
 * faces and gestures come from the Android app's brand layer
 * (refeel-app-android, ui/brand/: BrandColors.kt, BrandType.kt, the stop popup
 * and the turntable widget), so the site looks like the app.
 *
 * Titles: the app draws them in Cormorant Garamond (since its round 7, Oct
 * 2026); the kit names DM Serif Display. Switch --title below to change.
 *
 * Brand rules kept (the kit's BRAND_GUIDELINES.md): the wordmark is artwork,
 * never typeset, never with a heavy shadow, never narrower than 88 px; the R
 * mark never sits beside the wordmark; marks are tinted Memory Copper, Ivory
 * or Warm Ink only; sage means "recording" and always has a text label.
 */

/* ---------- Faces (subset to Latin, OFL; licences in ../fonts/licenses) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Allura";
  src: url("../fonts/allura.woff2") format("woff2");
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* The brand kit. */
  --copper: #E2A071;        /* Memory Copper */
  --copper-light: #F2C6A5;
  --copper-deep: #B96E46;
  --espresso: #0A0605;
  --warm-ink: #241612;
  --ivory: #FFF7F0;
  --sage: #80B98B;          /* recording only, always with a label */

  /* The app's working palette. */
  --title-ink: #FFF8F1;
  --body-ink: rgba(244, 232, 222, 0.82);
  --quiet-ink: rgba(236, 207, 185, 0.62);
  --eyebrow: #E8B088;
  --hairline: rgba(235, 180, 138, 0.18);
  --panel-top: #17110E;
  --panel-bottom: #120F0D;
  --glow: #C57E53;
  --button: linear-gradient(180deg, #F0C19E, #D99463);
  --button-ink: #23150F;
  --button-shadow: #76391F;

  --title: "Cormorant Garamond", "Gelasio", Georgia, serif;   /* the app */
  --title-kit: "DM Serif Display", Georgia, serif;           /* the kit */
  --serif: "Lora", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--body-ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain over everything, as the app's "film look" does over the camera. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { color: var(--title-ink); font-weight: 600; }
button { font: inherit; color: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--copper);
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Brand marks (artwork, tinted through a mask) ---------- */

.wordmark, .rmark {
  display: inline-block;
  background-color: var(--copper);
  -webkit-mask: var(--mark) center / contain no-repeat;
          mask: var(--mark) center / contain no-repeat;
}
.wordmark { --mark: url("../img/wordmark.svg"); aspect-ratio: 1583 / 544; width: 132px; }
.rmark { --mark: url("../img/r-mark.svg"); aspect-ratio: 542 / 548; width: 40px; }

/* ---------- Type ---------- */

.eyebrow {
  font: 700 12px/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.accent {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
  font-size: .78em;
  letter-spacing: -.01em;
  margin-top: .12em;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.65;
  max-width: 34em;
}

/* ---------- Buttons and pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: 700 15.5px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn--copper {
  background: var(--button);
  color: var(--button-ink);
  box-shadow: inset 0 1px 0 rgba(255, 240, 225, .7), 0 10px 30px -10px var(--button-shadow), 0 0 0 1px #F4C29A;
}
.btn--copper:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 240, 225, .7), 0 16px 36px -10px var(--button-shadow), 0 0 0 1px #F4C29A; }
.btn--ghost {
  background: transparent;
  color: var(--title-ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn--ghost:hover { background: rgba(226, 160, 113, .08); }
.btn__icon { width: 18px; height: 18px; fill: currentColor; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font: 600 13px/1 var(--sans);
  color: var(--copper-light);
  background: rgba(214, 144, 94, .12);
  box-shadow: inset 0 0 0 1px rgba(235, 180, 138, .28);
  white-space: nowrap;
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
}

/* ---------- Glows ---------- */

.glow { position: absolute; pointer-events: none; z-index: 0; }
.glow--hero {
  inset: -10% -10% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(197, 126, 83, .28), rgba(197, 126, 83, .08) 55%, transparent);
}
.glow--release {
  left: -300px; top: 10%;
  width: 800px; height: 800px;
  background: radial-gradient(closest-side, rgba(197, 126, 83, .14), rgba(197, 126, 83, .05) 60%, transparent);
}
.glow--closing {
  left: 50%; top: 50%;
  width: 1100px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(197, 126, 83, .2), rgba(197, 126, 83, .07) 55%, rgba(197, 126, 83, .02) 80%, transparent);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 6, 5, .92), rgba(10, 6, 5, .72));
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(237, 201, 174, .08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; margin-right: auto; }
.nav__brand .wordmark { width: 112px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font: 600 14.5px/1 var(--sans);
  color: var(--quiet-ink);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: var(--title-ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero__copy { display: grid; gap: 26px; padding-top: clamp(8px, 7vw, 104px); }
.hero__title {
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(50px, 6.3vw, 92px);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--title-ink);
}
.hero__title .accent { font-size: .7em; margin-top: .2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__soon {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1.2 var(--sans);
  letter-spacing: .06em;
  color: var(--quiet-ink);
}
.hero__soon::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--hairline);
}

/* ---------- Deck: phone + record + tracklist ---------- */

.deck { display: grid; gap: 28px; justify-items: center; }
.deck__stage {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 440 / 540;
  display: grid;
  place-items: center start;
}

.deck__ambient {
  position: absolute;
  inset: -12% -18%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
          mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.deck__ambient img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.25);
  opacity: 0;
  transition: opacity 1.2s;
}
.deck__ambient img.is-on { opacity: .34; }

.vinyl {
  position: absolute;
  right: 0;
  top: 50%;
  width: 72%;
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 31%, rgba(255, 255, 255, .025) 31.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle at 50% 50%, #120d0b 0 1.2px, #1b1411 1.6px 2.6px),
    #120d0b;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 0 0 2px #1d1512, inset 0 0 0 10px #0d0907;
  display: grid;
  place-items: center;
  animation: spin 2.4s linear infinite;
  animation-play-state: paused;
}
/* The sheen that makes it read as a record, fixed while the grooves turn. */
.vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 236, 220, .09) 12%, transparent 17% 52%, rgba(255, 236, 220, .07) 58%, transparent 64%);
  animation: spin 2.4s linear infinite reverse;
  animation-play-state: paused;
}
.vinyl__label {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F2C6A5, #E2A071 45%, #B96E46);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 225, .35);
}
.vinyl__label::after {
  content: "";
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0d0907;
  box-shadow: 0 0 0 7px rgba(36, 22, 18, .18), 0 0 0 14px rgba(255, 240, 225, .12);
}
.deck.is-playing .vinyl,
.deck.is-playing .vinyl::after { animation-play-state: running; }

.phone {
  position: relative;
  z-index: 1;
  width: 58%;
  aspect-ratio: 9 / 16;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2c201b, #120d0b 40%, #1d1512);
  box-shadow:
    0 0 0 1px rgba(236, 191, 158, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 40px 80px -24px rgba(0, 0, 0, .9),
    0 0 90px -30px rgba(226, 160, 113, .35);
  margin-left: 2%;
}
.vinyl { z-index: 0; }

.film {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #090706;
  isolation: isolate;
}
.film__frames { position: absolute; inset: 0; }
.film__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}
.film__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 0 0;
  will-change: transform;
  /* The app's preview look: a warm tint and a soft vignette. */
  filter: saturate(1.04) sepia(.08);
}
.film__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 5, .55), transparent 22%, transparent 52%, rgba(10, 6, 5, .85)),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(10, 6, 5, .45));
  pointer-events: none;
}
.film__status {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px 0 22px;
  font: 600 11.5px/1 var(--sans);
  color: #fff;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.film__icons { display: flex; gap: 5px; align-items: center; }
.film__icons svg { height: 9px; width: auto; fill: currentColor; }
.film__camera {
  position: absolute;
  z-index: 2;
  left: 50%; top: 10px;
  width: 10px; height: 10px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a2f3a, #050505 60%);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .7);
}
/* The film carries the wordmark at its top, as the app's films do. */
.film__brand {
  position: absolute;
  z-index: 1;
  left: 50%; top: 8.5%;
  width: max(88px, 34%);
  translate: -50% 0;
  transition: opacity .6s;
}
.film.is-outro .film__brand { opacity: 0; }

.film__lyrics {
  position: absolute;
  left: 18px; right: 18px; bottom: 26px;
  min-height: 3.2em;
  font: italic 500 clamp(15px, 1.5vw, 17px)/1.35 var(--serif);
  color: rgba(255, 247, 240, .42);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  transition: opacity .35s;
}
.film__lyrics .w { transition: color .18s; }
.film__lyrics .w.is-sung { color: var(--ivory); }

.film__outro {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: radial-gradient(ellipse at 50% 50%, rgba(36, 22, 18, .78), rgba(10, 6, 5, .94));
  opacity: 0;
  transition: opacity .8s;
  pointer-events: none;
}
.film__outro .wordmark { width: 62%; }
.film__outro-line { font: italic 400 15px/1.3 var(--serif); color: var(--copper-light); }
.film.is-outro .film__outro { opacity: 1; }
.film.is-outro .film__lyrics { opacity: 0; }

.film__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 74px; height: 74px;
  translate: -50% -50%;
  border: 0;
  border-radius: 50%;
  background: var(--button);
  color: var(--button-ink);
  box-shadow: 0 0 0 8px rgba(226, 160, 113, .18), 0 16px 40px -10px #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .3s, transform .3s var(--ease), scale .3s var(--ease);
}
.film__play:hover { scale: 1.06; }
.film__play svg { width: 30px; height: 30px; fill: currentColor; }
.film__play .icon-pause { display: none; }
.deck.is-playing .film__play { opacity: 0; }
.deck.is-playing .film:hover .film__play,
.deck.is-playing .film__play:focus-visible { opacity: 1; }
.deck.is-playing .film__play .icon-play { display: none; }
.deck.is-playing .film__play .icon-pause { display: block; }

/* Transport: play, the time, and a seek bar you can drag, click or move with the arrow keys. */
.transport {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: 40px auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: -6px;
}
.transport__play {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--button-ink);
  background: var(--button);
  box-shadow: inset 0 1px 0 rgba(255, 240, 225, .7), 0 8px 20px -8px var(--button-shadow);
  cursor: pointer;
  transition: scale .25s var(--ease);
}
.transport__play:hover { scale: 1.06; }
.transport__play svg { width: 18px; height: 18px; fill: currentColor; }
.transport__play .icon-pause { display: none; }
.deck.is-playing .transport__play .icon-play { display: none; }
.deck.is-playing .transport__play .icon-pause { display: block; }
.transport__time {
  min-width: 2.6em;
  font: 600 12.5px/1 var(--sans);
  color: var(--quiet-ink);
  font-variant-numeric: tabular-nums;
}
.transport__time--total { text-align: right; }

.seek {
  position: relative;
  height: 28px;
  cursor: pointer;
  touch-action: none;
  border-radius: 8px;
}
.seek:focus-visible { outline-offset: 2px; }
.seek__track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  translate: 0 -50%;
  border-radius: 4px;
  background: rgba(255, 247, 240, .14);
  overflow: hidden;
}
.seek__fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--copper-deep), var(--copper));
}
/* Where each photo comes in: the places worth jumping to. */
.seek__marks { position: absolute; inset: 0; z-index: 1; }
.seek__marks span {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  translate: -1px 0;
  background: rgba(10, 6, 5, .75);
}
.seek__thumb {
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 14px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 0 4px rgba(226, 160, 113, .22), 0 2px 8px rgba(0, 0, 0, .6);
  transition: scale .2s var(--ease);
  pointer-events: none;
}
.seek:hover .seek__thumb, .seek.is-dragging .seek__thumb, .seek:focus-visible .seek__thumb { scale: 1.25; }

.tracklist { width: min(100%, 440px); }
.tracklist__side {
  font: 700 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--quiet-ink);
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--hairline);
}
.track button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid rgba(235, 180, 138, .09);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.track button:hover { background: rgba(226, 160, 113, .05); }
.track__num { font: 600 12px/1 var(--sans); color: var(--quiet-ink); font-variant-numeric: tabular-nums; }
.track__title { font: 500 21px/1.15 var(--title); color: var(--title-ink); }
.track__kind { display: block; margin-top: 3px; font: 500 12.5px/1.2 var(--sans); color: var(--quiet-ink); }
.track__time { font: 600 12.5px/1 var(--sans); color: var(--quiet-ink); font-variant-numeric: tabular-nums; }
.track button[aria-current="true"] .track__title { color: var(--copper); }
.track button[aria-current="true"] .track__num { color: var(--copper); }

/* ---------- Manifesto ---------- */

.manifesto {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
  border-top: 1px solid rgba(237, 201, 174, .07);
  border-bottom: 1px solid rgba(237, 201, 174, .07);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(197, 126, 83, .14), transparent 60%),
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}
.manifesto__line {
  font: 400 clamp(34px, 5.2vw, 72px)/1.08 var(--title);
  color: var(--quiet-ink);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.manifesto__line span { display: block; color: var(--title-ink); }
.manifesto__script {
  margin-top: 26px;
  font: 400 clamp(38px, 4.6vw, 58px)/1 var(--script);
  color: var(--copper);
}

/* The reel: the moments of the three examples on a strip of film, drifting by. */
.manifesto { padding-bottom: clamp(56px, 7vw, 96px); }
.reel {
  margin-top: clamp(48px, 6vw, 84px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.reel__track {
  display: flex;
  width: max-content;
  padding: 26px 0;
  /* The sprocket holes along both edges, light coming through the film base. */
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 236, 220, .13) 9px 19px, transparent 19px 28px) left 0 top 8px / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 236, 220, .13) 9px 19px, transparent 19px 28px) left 0 bottom 8px / 100% 9px no-repeat,
    #0b0807;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
}
.reel__track.is-looping { animation: reel 90s linear infinite; }
.reel__frame {
  position: relative;
  flex: none;
  width: clamp(150px, 15vw, 214px);
  margin: 0 7px;
}
.reel__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 3px;
  filter: sepia(.1) saturate(1.06) contrast(1.02);
}
/* Edge numbers, as printed on a contact sheet. */
.reel__frame figcaption {
  position: absolute;
  left: 2px; bottom: -21px;
  font: 700 9px/1 var(--sans);
  letter-spacing: .24em;
  color: rgba(226, 160, 113, .55);
}

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(72px, 9vw, 124px) 0; overflow: hidden; }
.section__head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.section__head--left { justify-items: start; text-align: left; margin-left: 0; }
.section__title {
  font: 500 clamp(42px, 5.4vw, 72px)/1 var(--title);
  letter-spacing: -.012em;
  color: var(--title-ink);
}
.section__intro { font-size: clamp(16.5px, 1.4vw, 18.5px); max-width: 36em; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 18px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(36, 20, 15, .9), rgba(17, 14, 12, .9));
  box-shadow: inset 0 0 0 1px rgba(236, 191, 158, .1);
}
.step__art {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(227, 158, 109, .2), transparent 62%),
    #110c0a;
}
.step__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.08;
}
.step__num { font: 600 13px/1 var(--sans); letter-spacing: .18em; color: var(--copper); padding: 0 6px; }
.step__title { font: 500 32px/1.1 var(--title); color: var(--title-ink); padding: 0 6px; }
.step__text { font-size: 16px; padding: 0 6px; }

/* Release */

.release__grid {
  position: relative;
  z-index: 1;
  display: grid;
  row-gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.release .section__head { margin-bottom: 44px; }
.features { display: grid; gap: 14px; }
.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 22px 22px 18px;
  border-radius: 18px;
  background: rgba(23, 17, 14, .7);
  box-shadow: inset 0 0 0 1px rgba(236, 191, 158, .09);
}
.feature__icon, .promise__icon {
  width: 48px; height: 48px;
  padding: 12px;
  border-radius: 14px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: rgba(226, 160, 113, .1);
  box-shadow: inset 0 0 0 1px rgba(226, 160, 113, .22);
}
.feature__title { font: 500 26px/1.1 var(--title); color: var(--title-ink); margin-bottom: 6px; }
.feature__text { font-size: 16px; }

.release__art {
  margin: 0;
  display: grid;
  place-items: center;
}
.release__art img { width: min(100%, 580px); height: auto; }

/* Inside the app */

.inside { padding-bottom: clamp(64px, 8vw, 112px); }
.inside__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.inside .section__head { margin: 0; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-nav__btn {
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--title-ink);
  background: rgba(23, 17, 14, .85);
  box-shadow: inset 0 0 0 1px rgba(236, 191, 158, .24);
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.rail-nav__btn:hover { background: rgba(226, 160, 113, .14); }
.rail-nav__btn:disabled { opacity: .35; cursor: default; background: rgba(23, 17, 14, .85); }
.rail-nav__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rail {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  display: flex;
  gap: clamp(10px, 1.6vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 14px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.shot {
  flex: 0 0 clamp(200px, 20vw, 250px);
  display: grid;
  justify-items: center;
  gap: 10px;
  scroll-snap-align: start;
}
.shot img { width: 100%; height: auto; }
.shot__caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--title-ink);
}
.shot__caption span { color: var(--copper); letter-spacing: .1em; }

/* Privacy */

.privacy {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(98, 180, 123, .06), transparent 50%),
    linear-gradient(180deg, var(--espresso), #0d0a08);
  border-top: 1px solid rgba(237, 201, 174, .07);
}
.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.promise {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 22px 28px;
  border-radius: var(--radius);
  background: rgba(23, 17, 14, .75);
  box-shadow: inset 0 0 0 1px rgba(236, 191, 158, .09);
}
.promise__icon { margin-bottom: 6px; }
.promise__title { font: 500 25px/1.1 var(--title); color: var(--title-ink); }
.promise__text { font-size: 15.5px; }

/* Closing */

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(96px, 12vw, 160px);
  text-align: center;
  border-top: 1px solid rgba(237, 201, 174, .07);
}
.closing__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.closing__phones {
  width: min(100%, 780px);
  height: auto;
  margin: 0 auto clamp(0px, 1vw, 12px);
}
.closing__title {
  font: 500 clamp(44px, 6.4vw, 92px)/.98 var(--title);
  letter-spacing: -.015em;
  color: var(--title-ink);
  text-wrap: balance;
}
.closing__sub {
  font: 700 13px/1.2 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.closing__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.store {
  display: grid;
  gap: 4px;
  min-width: 200px;
  padding: 14px 24px;
  border-radius: 16px;
  text-align: left;
  font: 600 20px/1 var(--sans);
  color: var(--title-ink);
  background: rgba(23, 17, 14, .85);
  box-shadow: inset 0 0 0 1px rgba(236, 191, 158, .24);
}
.store__small { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet-ink); }

/* Footer */

.footer { border-top: 1px solid rgba(237, 201, 174, .08); padding: 34px 0 40px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__wordmark { width: 96px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { font: 600 13.5px/1.2 var(--sans); color: var(--quiet-ink); text-decoration: none; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--copper); }
.footer__legal { font-size: 13.5px; color: var(--quiet-ink); }

/* ---------- Page not found (404.html) ---------- */

.notfound {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px - 112px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vw, 112px) 0;
}
.glow--notfound {
  left: 30%; top: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(197, 126, 83, .2), rgba(197, 126, 83, .06) 55%, transparent);
}
.notfound__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}
.notfound__record {
  position: relative;
  width: clamp(240px, 30vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255, 255, 255, .03) 31.5% 32%, transparent 32.5% 47%, rgba(255, 255, 255, .03) 47.5% 48%, transparent 48.5%),
    repeating-radial-gradient(circle, #120d0b 0 1.2px, #1b1411 1.6px 2.6px),
    #120d0b;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .85), inset 0 0 0 2px #1d1512, inset 0 0 0 12px #0d0907;
}
/* The light on the record drifts round, slowly; the record itself stays still so the label reads. */
.notfound__record::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 236, 220, .09) 12%, transparent 17% 52%, rgba(255, 236, 220, .07) 58%, transparent 64%);
  animation: spin 14s linear infinite;
}
.notfound__label {
  position: relative;
  z-index: 1;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  background: radial-gradient(circle at 35% 30%, #F2C6A5, #E2A071 45%, #B96E46);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 225, .35);
  color: var(--warm-ink);
  text-align: center;
}
.notfound__code { font: 600 clamp(34px, 4.4vw, 56px)/1 var(--title); letter-spacing: .02em; }
.notfound__side { font: 800 clamp(7.5px, .8vw, 10px)/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .78; }

.notfound__copy { display: grid; gap: 22px; justify-items: start; }
.notfound__title {
  font: 500 clamp(46px, 6vw, 86px)/.98 var(--title);
  letter-spacing: -.015em;
  color: var(--title-ink);
}
.notfound__title .accent { font-size: .72em; margin-top: .18em; }
.notfound__lead { max-width: 30em; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* ---------- Motion ---------- */

@keyframes spin { to { rotate: 360deg; } }
@keyframes reel { to { transform: translateX(-50%); } }

/* The hero rises on load, with CSS only, so it never waits for the script. */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
.rise { animation: rise 1s var(--ease) both; }
.rise--2 { animation-delay: .08s; }
.rise--3 { animation-delay: .16s; }
.rise--4 { animation-delay: .24s; }
.rise--5 { animation-delay: .32s; }
.rise--6 { animation-delay: .2s; animation-duration: 1.3s; }

/* Revealed on scroll, only when the script runs: without it everything shows. */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .rise { animation: none; }
  .vinyl, .vinyl::after, .notfound__record::after { animation: none !important; }
  .reel__track { animation: none !important; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1020px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__grid, .release__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { justify-items: start; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .release__copy { display: contents; }
  .release .section__head { order: 1; }
  .release__art { order: 2; margin-bottom: 28px; }
  .notfound__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .notfound__copy { justify-items: center; }
  .notfound__actions { justify-content: center; }
  .features { order: 3; }
  .release .section__head { margin-bottom: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { height: 62px; }
  .nav__brand .wordmark { width: 96px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .deck__stage { width: 100%; }
  .phone { width: 64%; border-radius: 32px; padding: 7px; }
  .film { border-radius: 26px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .store { min-width: 0; flex: 1 1 140px; padding: 14px 18px; font-size: 18px; white-space: nowrap; }
  .transport { gap: 10px; }
  .rail-nav { display: none; }
  .shot { flex-basis: 64vw; scroll-snap-align: center; }
  .rail { scroll-padding-inline: 18vw; }
}
