/* artvibe landing: a modern record sleeve. Two inks, black and orange, on clean white stock.
   Dark mode is the black-sleeve pressing: same layout, white ink on black card. */

@font-face { font-family: Jost; src: url(fonts/jost.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(fonts/archivo.woff2) format('woff2'); font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(fonts/plexmono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(fonts/plexmono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Kalam; src: url(fonts/kalam-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Kalam; src: url(fonts/kalam-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --table: #E8E7E3;
  --table-ink: #121212;
  --table-ink-2: #5C5A55;
  --paper: #FBFAF7;
  --stock: #F3F1EC;
  --inner: #FFFFFF;
  --ink: #121212;
  --ink-2: #5C5A55;
  --rule: rgba(18, 18, 18, .14);
  --dot: rgba(18, 18, 18, .12);
  --orange: #F2611A;
  --orange-ink: #C2410C;
  --cta-bg: #F2611A;
  --cta-ink: #121212;
  --chip: #EEEBE5;
  --app-bg: #FFFFFF;
  --fold: linear-gradient(90deg, transparent, rgba(0, 0, 0, .05) 46%, rgba(255, 255, 255, .5) 52%, transparent);
  --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 48px -24px rgba(0, 0, 0, .3);
  --cover-filter: none;
  --sans: Archivo, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --brand: Jost, Futura, 'Century Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hand: Kalam, 'Bradley Hand', 'Comic Sans MS', cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --table: #0C0C0C;
    --table-ink: #F2F0EB;
    --table-ink-2: #9C9993;
    --paper: #191919;
    --stock: #1E1E1E;
    --inner: #1C1C1C;
    --ink: #F2F0EB;
    --ink-2: #A3A09A;
    --rule: rgba(255, 255, 255, .14);
    --dot: rgba(255, 255, 255, .08);
    --orange-ink: #FF7A3D;
    --cta-ink: #0C0C0C;
    --chip: #2A2A2A;
    --app-bg: #121212;
    --fold: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45) 48%, rgba(255, 255, 255, .04) 52%, transparent);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 30px 60px -24px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --table: #0C0C0C; --table-ink: #F2F0EB; --table-ink-2: #9C9993; --paper: #191919; --stock: #1E1E1E; --inner: #1C1C1C;
  --ink: #F2F0EB; --ink-2: #A3A09A; --rule: rgba(255, 255, 255, .14); --dot: rgba(255, 255, 255, .08); --orange-ink: #FF7A3D;
  --cta-ink: #0C0C0C; --chip: #2A2A2A; --app-bg: #121212;
  --fold: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45) 48%, rgba(255, 255, 255, .04) 52%, transparent);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 30px 60px -24px rgba(0, 0, 0, .9); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--grain), var(--table);
  color: var(--table-ink);
  font: 400 18px/1.5 var(--sans);
  letter-spacing: -.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--table-ink); color: var(--table); padding: 8px 14px; font: 600 14px var(--sans); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.kicker { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 12px; }
.kicker span { color: var(--ink-2); margin-left: 6px; }

/* ── Top bar ─────────────────────────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 14px 16px 6px; z-index: 40;
}
.topbar__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 19px var(--brand); letter-spacing: -.01em; }
.topbar__brand svg { width: 22px; height: 22px; color: var(--orange); }
.topbar__cat { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--table-ink-2); }

/* ── Hero: the front cover, still in its shrink-wrap ─────────────────────────────────────────── */
.hero { position: relative; z-index: 30; }
.motion .hero::after { content: ''; display: block; height: 72svh; } /* runway: sticky can't travel into padding */
.hero__stage {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 22px;
  padding: 10px 16px 28px;
  --s: max(240px, min(calc(100vw - 32px), calc(100svh - 360px), 560px));
}
html:not(.motion) .hero__stage { position: relative; min-height: 0; padding-top: 24px; --s: max(200px, min(calc((100vw - 32px) / 1.62), 340px)); }
.hero__cell { display: grid; place-items: center; height: var(--s); }
html:not(.motion) .hero__cell { justify-items: start; padding-left: max(0px, calc((100% - var(--s) * 1.6) / 2)); }

.sleeve { position: relative; width: var(--s); height: var(--s); container-type: inline-size; transform-origin: 50% 50%; will-change: transform; }
.sleeve__face { position: absolute; inset: 0; border-radius: 2px; overflow: hidden; filter: var(--cover-filter);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15), 0 3px 6px rgba(0, 0, 0, .1), 0 34px 60px -24px rgba(40, 20, 0, .6); }
.sleeve__art { display: block; width: 100%; height: 100%; }
.disc-static { position: absolute; inset: 0; z-index: -1; transform: translateX(62%) rotate(-24deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
.disc-static svg { display: block; width: 100%; height: 100%; }
.motion .disc-static { display: none; }

.shrink {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, .26) 30%, rgba(255, 255, 255, .05) 37%, transparent 46%, transparent 64%, rgba(255, 255, 255, .14) 71%, transparent 77%),
    radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 48%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-width='.35' opacity='.45'%3E%3Cpath d='M0 3C20 5 40 2 62 4S92 3 100 6'/%3E%3Cpath d='M97 0C95 22 98 46 96 70S98 92 95 100'/%3E%3Cpath d='M70 0C74 6 80 8 86 14'/%3E%3Cpath d='M2 92C10 94 16 99 22 100'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100%;
  background-size: 170% 170%, 100% 100%, 100% 100%;
  background-position: calc(var(--sheen, 0) * 60%) 0, 0 0, 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), inset 0 0 26px rgba(255, 255, 255, .1);
}

.sticker {
  position: absolute; right: 5%; top: 8%;
  width: 30cqw; height: 30cqw; border-radius: 50%;
  display: grid; place-content: center; gap: .5cqw; padding: 3cqw; text-align: center;
  background: var(--sticker-bg, #F6EFE2); color: var(--sticker-ink, #1A1714);
  font: 500 2.35cqw/1.12 var(--sans); white-space: nowrap;
  transform: rotate(9deg);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .3), inset 0 0 0 .7cqw rgba(0, 0, 0, .05);
}
.sticker b { font: 800 3.6cqw/1 var(--sans); font-stretch: 112%; letter-spacing: .01em; text-transform: uppercase; color: var(--sticker-accent, #CB5A11); margin-bottom: .6cqw; }
[data-pressing="sleeve"] .sticker, [data-pressing="thread"] .sticker { --sticker-bg: #CB5A11; --sticker-ink: #FFF6EA; --sticker-accent: #1A1714; }
[data-pressing="sleeve"] .sticker { right: 22%; top: 4%; }
[data-pressing="thread"] .sticker { right: 4%; top: 20%; }

.hero__copy { position: relative; max-width: 36rem; }
h1 { font: 800 clamp(31px, 7.6vw, 58px)/1.02 var(--sans); font-stretch: 112%; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.hero__sub { margin: 0 0 24px; color: var(--table-ink-2); font-size: clamp(17px, 2.1vw, 19px); line-height: 1.45; text-wrap: pretty; }

@media (min-width: 900px) {
  .topbar { padding: 22px 40px 0; }
  .hero__stage {
    min-height: 100svh; display: grid; grid-template-columns: minmax(320px, 430px) 1fr; align-items: center; gap: 56px;
    max-width: 1240px; margin: 0 auto; padding: 0 40px;
    --s: min(560px, calc(100svh - 160px), calc((100vw - 580px) / 1.62));
  }
  html:not(.motion) .hero__stage { padding: 56px 40px; --s: min(460px, calc((100vw - 580px) / 1.62)); }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__cell { grid-column: 2; grid-row: 1; }
}

/* ── Call to action ──────────────────────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: .35em; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-ink); text-decoration: none;
  font: 700 15px var(--sans); font-stretch: 112%; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 12px 26px -12px rgba(242, 97, 26, .7);
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: translateY(1px); }
.cta-note { margin: 12px 0 0; font: 400 12px var(--mono); letter-spacing: .04em; color: var(--table-ink-2); }
.cta-note--ios { display: none; }
.ios .cta { display: none; }
.ios .cta-note--android { display: none; }
.ios .cta-note--ios { display: block; font: 600 16px var(--sans); letter-spacing: 0; color: inherit; }

/* ── Gatefold: the flap opens on scroll ──────────────────────────────────────────────────────── */
/* Phone: two panels stacked; the lower one is the flap, hinged on its top edge, folded up over the
   liner notes and showing the cover. Desktop: side by side, the right one folded over the left. */
.gatefold { position: relative; }
.motion .gatefold { height: 190svh; }
.gatefold__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; perspective: 1600px; }
html:not(.motion) .gatefold__stage { position: relative; height: auto; padding: 32px 16px 8px; }
.gatefold__spread {
  --g: min(calc(100vw - 32px), calc((100svh - 56px) / 2), 470px);
  position: relative; display: grid; grid-template-rows: 1fr 1fr; width: var(--g);
  transform-style: preserve-3d;
}
.gatefold__left, .gf-face--in {
  min-height: var(--g); padding: 26px 22px; color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow);
}
.gatefold__left { position: relative; transform: translateZ(-1px); background: linear-gradient(0deg, rgba(0, 0, 0, .08), transparent 7%), var(--grain), var(--stock); }
.gf-face--in { background: linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 7%), var(--grain), var(--stock); }
.gatefold__flap {
  position: relative; transform-style: preserve-3d; transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--open, 1)) * 180deg));
}
.gf-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gf-face--in { position: relative; height: 100%; }
.gf-face--out { position: absolute; inset: 0; transform: rotateX(180deg); filter: var(--cover-filter); box-shadow: var(--shadow); overflow: hidden; }
.gf-face--out svg { display: block; width: 100%; height: 100%; }
.gf-intro { margin: 0; font-size: clamp(16px, 4.3vw, 20px); line-height: 1.5; text-wrap: pretty; }
.gf-tracks { list-style: none; margin: 0 0 18px; padding: 0; }
.gf-tracks a { display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; gap: 6px; padding: 8px 0; border-bottom: 1px dotted var(--rule); text-decoration: none; font-weight: 600; font-size: clamp(16px, 4.4vw, 20px); letter-spacing: -.01em; }
.gf-tracks a:hover .tt { color: var(--orange-ink); }
.gf-tracks .no, .gf-tracks .tm { font: 400 12px var(--mono); color: var(--ink-2); }
.gf-tracks .no { color: var(--orange-ink); }
.kicker--b { margin-top: 4px; }
.gf-sideb { margin: 0; color: var(--ink-2); font-size: 16px; }

@media (min-width: 900px) {
  .gatefold__spread { --g: min(470px, calc((100vw - 120px) / 2), calc(100svh - 110px)); grid-template-columns: 1fr 1fr; grid-template-rows: auto; width: calc(var(--g) * 2); }
  .gatefold__left, .gf-face--in { padding: 40px 38px; }
  .gatefold__left { background: linear-gradient(270deg, rgba(0, 0, 0, .09), transparent 6%), var(--grain), var(--stock); }
  .gf-face--in { background: linear-gradient(90deg, rgba(0, 0, 0, .09), transparent 6%), var(--grain), var(--stock); }
  .gatefold__flap { transform-origin: 0 50%; transform: rotateY(calc((1 - var(--open, 1)) * -180deg)); }
  .gf-face--out { transform: rotateY(180deg); }
}
/* Too short a screen to pin a gatefold on (landscape phones): lay it open. */
@media (max-height: 620px) {
  .motion .gatefold { height: auto; }
  .gatefold__stage, .motion .gatefold__stage { position: relative; height: auto; padding: 32px 16px 8px; }
  .gatefold__flap { transform: none !important; }
}

/* ── Sheets: one spread per Side A track ─────────────────────────────────────────────────────── */
.sheets { display: grid; gap: 64px; max-width: 1080px; margin: 0 auto; padding: 48px 16px 72px; }
.sheet { position: relative; display: grid; background: var(--grain), var(--paper); color: var(--ink); box-shadow: var(--shadow); border-radius: 2px; scroll-margin-top: 24px; }
/* crop marks, just outside each corner */
.sheet::before {
  content: ''; position: absolute; inset: -14px; pointer-events: none; opacity: .55;
  background:
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) left 0 top 14px / 8px 1px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) left 14px top 0 / 1px 8px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) right 0 top 14px / 8px 1px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) right 14px top 0 / 1px 8px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) left 0 bottom 14px / 8px 1px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) left 14px bottom 0 / 1px 8px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) right 0 bottom 14px / 8px 1px no-repeat,
    linear-gradient(var(--table-ink-2), var(--table-ink-2)) right 14px bottom 0 / 1px 8px no-repeat;
}
.sheet__page { padding: 30px 22px; min-width: 0; }
.sheet__notes { display: flex; flex-direction: column; justify-content: center; }
.track { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.track__no { color: var(--orange-ink); }
.track__dot { flex: 1; border-bottom: 1px dotted var(--ink-2); opacity: .5; }
h2 { font: 800 clamp(28px, 7.4vw, 50px)/.98 var(--sans); font-stretch: 118%; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 18px; text-wrap: balance; }
.note { margin: 0; font-size: clamp(18px, 1.9vw, 20px); line-height: 1.5; text-wrap: pretty; max-width: 32em; }
.route { margin: 22px 0 0; font: 400 12px/1.9 var(--mono); letter-spacing: .02em; color: var(--ink-2); }
.route span { color: var(--orange-ink); }

.plate {
  margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border-top: 1px dashed var(--rule);
  background: radial-gradient(circle at 1px 1px, var(--dot) .7px, transparent 1.1px) 0 0 / 5px 5px;
}
.plate__art { position: relative; width: 100%; display: flex; justify-content: center; }
.plate figcaption { font: 400 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-align: center; max-width: 30em; }
.plate figcaption span { color: var(--orange-ink); text-transform: uppercase; margin-right: 6px; }

@media (min-width: 900px) {
  .sheets { gap: 96px; padding: 72px 40px 96px; }
  .sheet { grid-template-columns: 1fr 1fr; min-height: 540px; }
  .sheet::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 46px; transform: translateX(-50%); pointer-events: none;
    background: var(--fold); }
  .sheet__page { padding: 48px 46px; }
  .plate { border-top: 0; }
  .sheet:nth-child(even) .sheet__notes { order: 2; }
}

/* the lay-down: each sheet arrives like a print set on the table */
.anim .sheet { opacity: 0; transform: translateY(56px) rotate(var(--tilt, -1.4deg)); transition: transform 1s cubic-bezier(.2, .75, .2, 1), opacity .45s ease; }
.anim .sheet:nth-child(even) { --tilt: 1.4deg; --rest: .35deg; }
.anim .sheet.in { opacity: 1; transform: translateY(0) rotate(var(--rest, -.3deg)); }
.anim .sheet--tree-full, .anim .sheet--tree-full.in { transform: none; }

/* ── The app, redrawn as plates ──────────────────────────────────────────────────────────────── */
.phone {
  position: relative; width: 248px; color: var(--ink); max-height: 476px; overflow: hidden;
  border: 2px solid var(--ink); border-radius: 30px; padding: 26px 13px 18px;
  background: var(--app-bg); box-shadow: 4px 5px 0 var(--dot);
  -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent);
}
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink); }
.app { display: grid; gap: 4px; font: 400 12.5px/1.35 var(--sans); letter-spacing: 0; color: var(--ink); text-align: left; }
.app h6 { margin: 9px 0 1px; font: 600 13px var(--sans); }
.app .ln { color: var(--orange-ink); }
.app .mut { color: var(--ink-2); }
.app .lab { font-size: 11.5px; }
.app .xs { font-size: 11px; }
.app .t { font-size: 15px; font-weight: 500; }
.app .h { font: 600 19px/1.2 var(--sans); }
.app .app-back { font-size: 12px; margin-bottom: 4px; }
.app .story { margin: 0; font: 400 12px/1.45 var(--sans); color: var(--ink); }
.app .review { font-style: italic; }
.ah { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
.ah--album { grid-template-columns: 96px 1fr; margin-top: 2px; }
.ah__m { display: grid; gap: 1px; min-width: 0; }
.cvr { display: block; width: 72px; height: 72px; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.cvr--lg { width: 96px; height: 96px; }
.cvr--disco { width: 64px; height: 64px; }
.thumbs { display: flex; gap: 6px; margin: 3px 0; }
.thumbs--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.thumb { display: grid; gap: 2px; font-size: 10px; color: var(--ink); }
.thumb svg { display: block; width: 50px; height: 50px; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.thumbs--grid .thumb svg { width: 100%; height: auto; aspect-ratio: 1; }
.chips { display: flex; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.chip { flex: none; background: var(--chip); border-radius: 14px; padding: 4px 10px; white-space: nowrap; }
.chip.tap { box-shadow: 0 0 0 2px var(--orange), 0 0 0 7px rgba(203, 90, 17, .18); }
.srow { position: relative; display: grid; width: fit-content; max-width: 100%; padding: 2px 0; }
.ring::after { content: ''; position: absolute; inset: -5px -8px; border: 2px solid var(--orange); border-radius: 50%; transform: rotate(-2.5deg); pointer-events: none; }
.disco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.disco__i { position: relative; display: grid; gap: 1px; }
.disco__i.ring::after { inset: -6px -5px; border-radius: 40%; }

.hand { position: absolute; font: 400 17px/1.15 var(--hand); color: var(--orange-ink); transform: rotate(-5deg); white-space: nowrap; pointer-events: none; }
.hand--samples { left: calc(50% + 134px); top: 222px; }
.hand--obi { left: calc(50% - 210px); top: 150px; text-align: right; }
.hand--us { right: calc(50% - 214px); top: 286px; transform: rotate(4deg); }

.pair { position: relative; width: 100%; max-width: 420px; height: 470px; }
.pair .phone { position: absolute; width: 222px; }
.phone--back { left: 0; top: 34px; transform: rotate(-4deg); opacity: .92; }
.phone--front { right: 0; top: 0; transform: rotate(2.5deg); }

@media (max-width: 520px) {
  .hand { position: static; transform: rotate(-3deg); margin-top: 6px; white-space: normal; text-align: center !important; }
  .plate__art:has(.hand) { flex-direction: column; align-items: center; }
  .pair { height: 440px; }
  .pair .phone { width: 200px; }
}

/* ── The family tree ─────────────────────────────────────────────────────────────────────────── */
.tree { display: block; width: 100%; height: auto; overflow: visible; }
.plate--tree .tree { max-width: 420px; }
.tr-box { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.tr-l { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.tr-dash { stroke-dasharray: 5 4; }
.tr-dot { stroke-dasharray: 1.5 4.5; stroke-linecap: round; stroke-width: 1.6; }
.tr-h { font: 700 15px var(--hand); fill: var(--ink); letter-spacing: .04em; }
.tr-h--sm { font-size: 13px; }
.tr-d { font: 400 11.5px var(--hand); fill: var(--ink-2); }
.tr-m { font: 400 12.5px var(--hand); fill: var(--ink); }
.tr-i { font: 400 12px var(--hand); fill: var(--ink-2); }
.tr-strong { font-weight: 700; font-size: 13.5px; }
.tr-n { font: 400 12px var(--hand); fill: var(--ink-2); }
.tr-t { font: 700 17px var(--hand); fill: var(--ink); letter-spacing: .06em; }
.tr-faint { opacity: .8; }
.tr-disc { fill: #0A0A0A; stroke: var(--ink-2); stroke-width: .6; }
.tr-disc-l { fill: var(--orange); }
.tr-disc-h { fill: var(--paper); }
.tr-route { fill: none; stroke: var(--orange); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; opacity: .62; stroke-dasharray: 1 1.1; stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1); }
.tr-node { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 1 1.1; stroke-dashoffset: 0; transition: stroke-dashoffset .55s ease .55s; }
.tree-armed .tr-route:not(.on), .tree-armed .tr-node:not(.on) { stroke-dashoffset: 1.05; }
.tree-armed .tr-route:not(.on) { transition-delay: 0s; }

.sheet--tree-full { display: block; }
.tree-full { display: grid; }
.tree-full__notes { padding: 30px 22px 6px; }
.steps { display: none; }
.tree-full__fig { position: relative; margin: 0; padding: 8px 14px 26px; }
.tree-cap { display: none; }
.anim .tree-cap {
  position: sticky; bottom: 14px; display: flex; gap: 12px; align-items: baseline; margin: 14px 0 0; padding: 12px 16px;
  background: var(--ink); color: var(--paper); border-radius: 12px; font: 500 15px/1.35 var(--sans);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
}
.step__no { font: 500 12px var(--mono); color: var(--orange); flex: none; }

@media (min-width: 900px) {
  .tree-full { grid-template-columns: 1fr 1fr; }
  .tree-full__notes { padding: 48px 46px 30vh; }
  .anim .steps { display: block; list-style: none; padding: 0; margin: 36px 0 0; }
  .step { display: flex; gap: 14px; min-height: 34svh; font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; color: var(--ink-2); transition: color .35s ease; }
  .step.now { color: var(--ink); }
  .step.now .step__no { color: var(--orange-ink); }
  .step:last-child { min-height: 0; }
  .tree-full__fig { align-self: start; position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px 36px; }
  .tree-full__fig .tree { height: 100%; width: auto; max-width: 100%; }
  .anim .tree-cap { display: none; }
}

/* ── Back cover ──────────────────────────────────────────────────────────────────────────────── */
.back { padding: 8px 16px 40px; }
.back__cover {
  max-width: 860px; margin: 0 auto; padding: 26px 22px 18px; display: flex; flex-direction: column; gap: 26px;
  background: var(--grain), var(--stock); color: var(--ink); box-shadow: var(--shadow); border-radius: 2px;
}
.back__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.back__mark { width: 30px; height: 30px; color: var(--orange); }
.back__name { font: 500 28px var(--brand); letter-spacing: -.01em; }
.back__cat { margin-left: auto; font: 400 11px var(--mono); letter-spacing: .1em; color: var(--ink-2); }
.back__sides { display: grid; gap: 26px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl li { display: grid; grid-template-columns: 2.3em auto 1fr auto; align-items: baseline; column-gap: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tl .no { font: 500 12px var(--mono); color: var(--orange-ink); }
.tl .lead { border-bottom: 1px dotted var(--ink-2); opacity: .45; min-width: 12px; }
.tl .tm { font: 400 12px var(--mono); color: var(--ink-2); }
.tl .ln { grid-column: 2 / -1; font: 400 14.5px/1.4 var(--sans); letter-spacing: 0; color: var(--ink-2); margin-top: 2px; }
.tl a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.back__print { margin: 0; max-width: 46em; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.back__buy { display: grid; gap: 20px; align-items: center; margin-top: 6px; }
.barcode { display: block; width: 156px; padding: 8px 10px 5px; background: #FFFDF8; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.ean { display: block; width: 100%; height: auto; }
.ean__bars rect { fill: #111; }
.ean__digits text { font: 400 8.5px var(--mono); fill: #111; }
.back .cta-note { color: var(--ink-2); }
.back__qr { display: none; margin: 0; text-align: center; }
.qr { display: block; width: 116px; height: 116px; }
.qr__bg { fill: #FFFDF8; }
.qr path { fill: #111; }
.back__qr figcaption { margin-top: 6px; font: 400 10px var(--mono); color: var(--ink-2); }
.back__small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--rule); font: 400 11px var(--mono); color: var(--ink-2); }
@media (min-width: 720px) {
  .back__cover { padding: 40px 44px 22px; aspect-ratio: 1; }
  .back__sides { grid-template-columns: 1fr 1fr; gap: 44px; }
  .back__buy { grid-template-columns: auto 1fr auto; margin-top: auto; }
}
@media (min-width: 900px) and (hover: hover) { .back__qr { display: block; } }

/* ── Dead wax ────────────────────────────────────────────────────────────────────────────────── */
.wax { display: flex; justify-content: center; overflow: hidden; margin-top: 8px; }
.wax__disc { flex: none; display: block; width: clamp(560px, 150vw, 920px); margin-bottom: -1px; }
.wax__vinyl { fill: #141110; }
.wax__groove { fill: none; stroke: rgba(255, 255, 255, .06); }
.wax__label { fill: var(--orange); }
.wax__etch { font: 400 11.5px var(--mono); letter-spacing: .1em; fill: rgba(255, 255, 255, .42); }

/* ── The record that comes out of the sleeve and stays with you ──────────────────────────────── */
.record {
  position: fixed; left: 0; top: 0; z-index: 60; width: 600px; height: 600px; border-radius: 50%;
  transform-origin: 0 0; will-change: transform; opacity: 0; pointer-events: none;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .55);
}
.record.placed { opacity: 1; }
.record.behind { z-index: 20; }
.record.docked { pointer-events: auto; cursor: pointer; }
.record.hidden { opacity: 0; pointer-events: none; }
.record__spin, .record__sheen { position: absolute; inset: 0; border-radius: 50%; }
.record__spin svg { display: block; width: 100%; height: 100%; }
.record__sheen {
  pointer-events: none;
  background: conic-gradient(from 25deg, rgba(255, 255, 255, 0) 0deg 25deg, rgba(255, 255, 255, .12) 40deg, rgba(255, 255, 255, 0) 60deg 180deg, rgba(255, 255, 255, .08) 205deg, rgba(255, 255, 255, 0) 225deg);
  -webkit-mask: radial-gradient(closest-side, transparent 39%, #000 40%, #000 99%, transparent 100%); mask: radial-gradient(closest-side, transparent 39%, #000 40%, #000 99%, transparent 100%);
}
.arm { position: fixed; left: 0; top: 0; z-index: 61; width: 40px; height: 70px; opacity: 0; pointer-events: none; transform-origin: 75% 11.43%; transition: opacity .35s ease; }
.arm.on { opacity: 1; }
.arm__base { fill: var(--table-ink); }
.arm__pin { fill: var(--table); }
.arm__rod { fill: none; stroke: var(--table-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arm__head { fill: var(--table-ink); }
html:not(.js) .record, html:not(.js) .arm { display: none; }

/* ── OG card (rendered to PNG by og.mjs, never served as a page) ─────────────────────────────── */
body.og { width: 1200px; height: 630px; overflow: hidden; }
.og__card { position: relative; display: grid; grid-template-columns: 540px 1fr; gap: 72px; align-items: center; height: 630px; padding: 0 70px 0 60px; }
.og__sleeve { position: relative; width: 470px; height: 470px; }
.og__art { position: relative; display: block; width: 100%; height: 100%; box-shadow: 0 30px 60px -20px rgba(40, 20, 0, .6); }
.og__disc { position: absolute; inset: 0; transform: translateX(26%) rotate(-20deg); }
.og__disc svg { display: block; width: 100%; height: 100%; }
.og__text h1 { font-size: 56px; margin: 0 0 18px; }
.og__text p:last-child { font-size: 25px; line-height: 1.4; color: var(--table-ink-2); margin: 0; }
.og__text .kicker { font-size: 15px; }
