/* Debbie Sibal / UGC & Video: "Recents"
   Blush page, espresso phone-screen surfaces, cherry as the only accent.
   Shape lock: tiles 0 radius / containers 28px (20 on phones) / bubbles 20px + 6px tail / controls full pill. */

/* ---------- Tokens ---------- */
:root {
  --blush: #F6E7E1;
  --blush-deep: #EED6CC;
  --espresso: #2B1D17;
  --espresso-2: #6B5148;
  --espresso-0: #1C1310;
  --on-dark: #F6E7E1;
  --on-dark-2: #CDB8AE;
  --cherry: #C8102E;
  --cherry-hover: #A90D26;
  --cherry-bright: #FF4D5E;
  --line: rgba(43, 29, 23, .14);
  --line-dark: rgba(246, 231, 225, .14);

  /* semantic */
  --page: var(--blush);
  --ink: var(--espresso);
  --ink-2: var(--espresso-2);
  --surface: var(--espresso);          /* roll, anatomy, footer, frames */
  --bubble: var(--espresso);
  --chip: var(--blush-deep);
  --accent: var(--cherry);             /* accent on the page background */
  --focus: var(--cherry);
  --header-bg: rgba(246, 231, 225, .92);
  --app-tile: var(--espresso);
  --app-ico: var(--blush);
  --textbar: #4A362E;

  /* type */
  --f-display: "Syne", "Satoshi", system-ui, sans-serif;
  --f-text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-body: 1.0625rem;/* 17 */
  --fs-lead: 1.1875rem;/* 19 */
  --fs-h1: clamp(2.25rem, 4.2vw, 3.75rem); /* Syne 700: 2 lines at 1440 (800 is extended and breaks it to 5) */
  --fs-h2: clamp(2rem, 4vw, 3.5rem);

  /* space (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 120px;
  --gutter: 24px;
  --section: 120px;

  /* shape */
  --r-box: 28px;
  --r-bubble: 20px;
  --r-pill: 999px;

  /* motion */
  --t-ui: 180ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1E1511;
    --ink: #F6E7E1;
    --ink-2: #CDB8AE;
    --surface: #120C0A;
    --bubble: #3A2A23;
    --chip: #2E211B;
    --blush-deep: #2E211B;
    --accent: var(--cherry-bright);
    --focus: var(--cherry-bright);
    --header-bg: rgba(30, 21, 17, .92);
    --line: rgba(246, 231, 225, .14);
    --app-tile: #F6E7E1;
    --app-ico: #2B1D17;
  }
  /* the espresso "phone screens" need an edge on the dark page */
  .roll, .anatomy-inner { box-shadow: 0 0 0 1px var(--line-dark); }
  .footer { border-top: 1px solid var(--line-dark); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--cherry); color: #FFFFFF; }
:root { accent-color: var(--cherry); caret-color: var(--accent); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
b { font-weight: 700; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-dark, .roll, .anatomy-inner, .footer, .viewer { --focus: var(--cherry-bright); }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 10px; }

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

.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ic-16 { width: 16px; height: 16px; }

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }

/* ---------- Buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r-pill); border: 0;
  font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease;
}
.btn--cherry { background: var(--cherry); color: #FFFFFF; }
.btn--cherry:hover { background: var(--cherry-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-sm); }
.btn--icon { width: 44px; min-height: 44px; height: 44px; padding: 0; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink);
}
.textlink:hover { color: var(--accent); }
.textlink:hover .ic { transform: translateY(2px); }
.textlink .ic { transition: transform var(--t-ui) var(--ease-out); }

/* ---------- Lockup ---------- */
.lockup { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lockup-name { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.lockup-slash { font-family: var(--f-text); font-weight: 400; font-size: 16px; color: var(--accent); white-space: pre; }
.lockup-lane { font-family: var(--f-text); font-weight: 500; font-size: 13px; color: var(--ink-2); }
.lockup--dark { color: var(--on-dark); }
.lockup--dark .lockup-slash { color: var(--cherry-bright); }
.lockup--dark .lockup-lane { color: var(--on-dark-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(140%) blur(8px); } }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.hlink {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px;
  font-weight: 500; font-size: var(--fs-sm); text-decoration: none; color: var(--ink);
  text-underline-offset: 4px;
}
.hlink:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.show-sm { display: none; }

/* ---------- 1. Hero ---------- */
.hero { padding: 48px 0 var(--s-8); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.hero-copy { grid-column: 1 / 8; }
.hero-h {
  font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h1);
  line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
}
.hero-sub { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.hero-sub a { white-space: nowrap; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.hero-sub a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.hero-figure { grid-column: 8 / 13; justify-self: end; width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.hero-frame {
  position: relative;
  width: min(100%, calc(min(78svh, 720px) * .75));
  aspect-ratio: 3 / 4;
  border-radius: var(--r-box);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.hero-media, .hero-shot { position: absolute; display: block; overflow: hidden; background: var(--surface); }
.is-main { top: 0; left: 0; right: auto; width: 100%; height: 100%; border-radius: 0; border: 0 solid var(--surface); z-index: 1; }
.is-inset {
  top: 14px; right: 14px; left: auto; width: 27%; height: auto; aspect-ratio: 3 / 4;
  border-radius: 16px; border: 3px solid var(--surface); z-index: 2;
  box-shadow: 0 6px 18px rgba(28, 19, 16, .28);
}
.hero-media img, .hero-media video, .hero-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img, .hero-media video { object-position: 50% 40%; }
.hero-video { opacity: 0; transition: opacity 150ms ease; }
.hero-media.is-playing .hero-video { opacity: 1; }
.hero-media { cursor: pointer; }
.hero-shot-btn { all: unset; position: absolute; inset: 0; cursor: pointer; }
.hero-shot-btn:focus-visible { outline: 2px solid var(--cherry-bright); outline-offset: -4px; border-radius: 12px; }
.hero-media:focus-visible { outline: 2px solid var(--cherry-bright); outline-offset: -4px; }
.shutter { position: absolute; inset: 0; z-index: 3; background: var(--blush); opacity: 0; pointer-events: none; }

.live-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cherry); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
  opacity: 0; transition: opacity 150ms ease; pointer-events: none; z-index: 2;
}
.hero-dot { right: 16px; bottom: 16px; }
.is-inset .hero-dot { right: 8px; bottom: 8px; width: 8px; height: 8px; }
.is-playing > .live-dot { opacity: 1; }

.play-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: none; place-items: center;
  background: rgba(28, 19, 16, .78); color: var(--on-dark);
}
.no-js .play-badge { display: grid; }
@media (prefers-reduced-motion: reduce) { .play-badge { display: grid; } }
.is-inset .play-badge { display: none; }

/* name chip on the inset photo, so the woman in the reel isn't mistaken for Debbie */
.inset-tag {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--espresso); color: var(--on-dark);
  font-family: var(--f-text); font-weight: 600; font-size: 11px; line-height: 1.2;
  pointer-events: none;
}
.hero-shot.is-main .inset-tag { display: none; }
.intro .hero-copy, .intro .hero-cap { visibility: hidden; }

.hero-cap { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: right; width: min(100%, calc(min(78svh, 720px) * .75)); }

/* ---------- 2. The roll ---------- */
.roll-section { padding: 0 var(--gutter); }
.roll {
  max-width: 1240px; margin: 0 auto;
  background: var(--surface); color: var(--on-dark);
  border-radius: var(--r-box);
  padding: 24px 24px 3px;
  overflow: hidden;
}
.roll-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 8px 4px 20px; }
.roll-h { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -.01em; color: var(--on-dark); }
.roll-sub { font-size: var(--fs-sm); color: var(--on-dark-2); }
.roll-sub--ai { flex-basis: 100%; text-wrap: pretty; }

.roll-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 3px;
  margin: 0 -21px; /* tiles run to the surface edge, Photos-style (24px padding - 3px) */
}
/* wide screens: 5 columns, closes at 20 cells / 4 rows (two 2x2 + 12 singles) */
@media (min-width: 1200px) { .roll-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #3A2A23; color: #FFFFFF;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tile--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile-img, .tile-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--op, 50% 50%);
}
.tile-vid { opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.tile.is-playing .tile-vid { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(28, 19, 16, 0); transition: background-color var(--t-ui) ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .tile:hover::after { background: rgba(28, 19, 16, .08); } }
.tile:focus-visible { outline: 2px solid var(--cherry-bright); outline-offset: -2px; z-index: 1; }
.tile:active .tile-img { transform: scale(.985); }
.tile-img { transition: transform var(--t-ui) var(--ease-out); }

.tile-dur {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  font-weight: 600; font-size: 12px; line-height: 1; color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.tile--big .tile-dur { right: 12px; bottom: 10px; font-size: 13px; }
.tile-album { position: absolute; top: 8px; right: 8px; z-index: 2; color: #FFFFFF; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.tile-dot { top: 10px; left: 10px; width: 8px; height: 8px; }

/* ---------- Section heads ---------- */
.h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.h2--dark { color: var(--on-dark); }

/* ---------- 3. Ads proof: notifications ---------- */
.ads { padding: var(--section) 0; }
.ads-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.ads-copy { grid-column: 2 / 7; }
.ads-body { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }
.notes { grid-column: 7 / 12; display: grid; gap: 10px; }
.note {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: var(--r-box);
  background: var(--blush-deep); color: var(--ink); text-decoration: none;
  transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.note--link:hover { transform: translateY(-1px); }
.note--link:hover .note-go { color: var(--accent); }
.note-app {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--app-tile); color: var(--app-ico);
}
.note-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-name { font-weight: 600; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.note-line { font-weight: 500; font-size: 18px; line-height: 1.35; text-wrap: pretty; }
.note-line b { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.note-go { margin-left: auto; color: var(--ink-2); transition: color var(--t-ui) ease; }

/* ---------- 4. Anatomy ---------- */
.anatomy { padding: 0 var(--gutter); }
.anatomy-inner {
  --fh: 96px;
  max-width: 1240px; margin: 0 auto;
  background: var(--surface); color: var(--on-dark);
  border-radius: var(--r-box);
  padding: 40px 40px 44px;
}
.anat-sub { margin-top: 10px; font-size: var(--fs-body); color: var(--on-dark-2); text-wrap: pretty; }
.anat-body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 56px; margin: 32px 0 36px; }
.anat-preview {
  /* big enough to read the hook text; capped so the pinned panel fits under the 72px header offset */
  width: calc(clamp(240px, min(46svh, 100svh - 500px), 400px) * .75); aspect-ratio: 3 / 4;
  border-radius: 20px; overflow: hidden; background: #3A2A23;
}
.anat-preview img { width: 100%; height: 100%; object-fit: cover; }
.anat-video { display: none; }
/* the four beats stack top to bottom, in filmstrip order */
.segs { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 14px; max-width: 46ch; }
.seg { padding: 10px 0; color: var(--on-dark-2); transition: color 200ms ease; }
.seg-label { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.seg-time { margin-left: 8px; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.seg-line { margin-top: 4px; font-size: var(--fs-body); line-height: 1.4; }
.seg.is-active { color: var(--on-dark); }
.seg.is-active .seg-time { color: var(--cherry-bright); }

.tracks { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; }
.track-labels, .track-area { display: grid; grid-template-rows: 22px var(--fh) 28px; row-gap: 6px; }
.tl { display: flex; align-items: center; font-weight: 500; font-size: 12px; color: var(--on-dark-2); }
.track-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(246,231,225,.25) transparent; }
.track-scroll:focus-visible { outline-offset: 4px; border-radius: 6px; }
.track-area { position: relative; min-width: 100%; }
.ruler {
  position: relative;
  /* functional: one tick per second of the reel (14 ticks), not decoration */
  background-image: repeating-linear-gradient(90deg, rgba(246, 231, 225, .4) 0 1px, transparent 1px calc(100% / 14));
  background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 100%;
  border-right: 1px solid rgba(246, 231, 225, .4);
}
.ruler span {
  position: absolute; top: 0; left: calc(var(--t) / 14 * 100%); transform: translateX(-50%);
  font-size: 11px; font-weight: 500; line-height: 1; color: var(--on-dark-2); font-variant-numeric: tabular-nums;
}
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }
.strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: var(--fh); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip img:first-child { border-radius: 8px 0 0 8px; }
.strip img:last-child { border-radius: 0 8px 8px 0; }
.textlane { position: relative; }
.textbar {
  display: flex; align-items: center; height: 100%; width: calc(12 / 14 * 100% - 2px);
  padding: 0 12px; border-radius: 8px; background: var(--textbar);
  font-weight: 500; font-size: 12px; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playhead {
  position: absolute; top: 14px; bottom: -4px; left: -1px; width: 2px; z-index: 2;
  background: var(--cherry-bright); border-radius: 2px; pointer-events: none;
}
.playhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cherry-bright); }

/* ---------- 5. About: thread ---------- */
.about { padding: var(--section) 0; }
.about-col { max-width: calc(820px + 2 * var(--gutter)); }
.about-h { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.thread { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.msg-group { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 100%; }
.bubble {
  max-width: 46ch; padding: 12px 16px;
  border-radius: var(--r-bubble) var(--r-bubble) 6px var(--r-bubble);
  background: var(--bubble); color: var(--on-dark);
  font-weight: 500; font-size: var(--fs-body); line-height: 1.45;
}
.bubble--cherry { background: var(--cherry); color: #FFFFFF; }
.bubble--cherry a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; overflow-wrap: anywhere; }
.bubble--cherry a:focus-visible { outline-color: #FFFFFF; }
.bubble-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(100%, 400px); border-radius: var(--r-bubble) var(--r-bubble) 6px var(--r-bubble); overflow: hidden; }
.bubble-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bubble-photos .g5 { object-position: 50% 42%; }
.bubble-photos .g7 { object-position: 50% 62%; }
.typing {
  display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px;
  border-radius: var(--r-bubble) var(--r-bubble) 6px var(--r-bubble); background: var(--bubble);
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-2); display: block; }

.kit { margin-top: 64px; }
.kit-label { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: var(--r-pill); background: var(--chip); font-weight: 500; font-size: var(--fs-sm); }
.tools { margin-top: 32px; }
.tool-list { display: grid; gap: 6px; font-size: var(--fs-body); }

/* ---------- 6. Footer ---------- */
.footer { background: var(--surface); color: var(--on-dark); padding: 104px 0 32px; }
.foot-h { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1; letter-spacing: -.02em; }
.foot-sub { margin-top: 18px; font-size: var(--fs-lead); color: var(--on-dark-2); text-wrap: pretty; }
.foot-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.flink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 500; font-size: var(--fs-body); color: var(--on-dark); text-decoration: none;
  text-underline-offset: 4px;
}
.flink:hover { text-decoration: underline; text-decoration-color: var(--cherry-bright); }
.sites { margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--line-dark); }
.sites-h { font-family: var(--f-text); font-weight: 600; font-size: var(--fs-sm); color: var(--on-dark-2); }
.sites ul { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.sites a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-weight: 500; font-size: 18px; color: var(--on-dark); text-decoration: none; text-underline-offset: 4px;
}
.sites a:hover { text-decoration: underline; text-decoration-color: var(--cherry-bright); }
.sites a .ic { color: var(--on-dark-2); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.copy { font-size: 14px; color: var(--on-dark-2); }

/* ---------- Viewer (created by JS) ---------- */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-dark);
  overflow: hidden; font-family: var(--f-text);
}
.viewer::backdrop { background: transparent; }
.v-bg { position: absolute; inset: 0; background: rgba(28, 19, 16, .94); }.v-shell {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 52px auto minmax(220px, 340px) 52px;
  align-items: center; justify-content: center; column-gap: 40px;
  padding: 32px;
}
.v-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-pill);
  border: 0; background: rgba(246, 231, 225, .1); color: var(--on-dark); cursor: pointer;
  transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.v-btn:hover { background: rgba(246, 231, 225, .18); }
.v-btn:active { transform: scale(.96); }
.v-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; z-index: 3; }
.v-stagewrap { display: flex; flex-direction: column; gap: 14px; }
.v-media { position: relative; overflow: hidden; border-radius: var(--r-box); background: #120C0A; will-change: transform; }
.v-shell { touch-action: pan-y; }
.v-content { position: absolute; inset: 0; cursor: pointer; }
.v-content > img, .v-content > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-content > video { opacity: 0; transition: opacity 150ms ease; }
.v-media.is-playing .v-content > video { opacity: 1; }
.v-media.is-photo .v-content { cursor: default; }
.v-media.is-photo .v-content > img { object-fit: contain; }
.v-album { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; cursor: grab; }
.v-album::-webkit-scrollbar { display: none; }
.v-album img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.v-dots { display: flex; justify-content: center; gap: 8px; min-height: 18px; align-items: center; }
.v-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(246, 231, 225, .3); cursor: pointer; position: relative; }
.v-dots button::before { content: ""; position: absolute; inset: -10px; }
.v-dots button[aria-current="true"] { background: var(--on-dark); }
.v-mute {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: rgba(28, 19, 16, .72); color: var(--on-dark); cursor: pointer;
  font-weight: 600; font-size: 14px;
}
.v-mute-label:empty { display: none; }
.v-scrub { display: flex; align-items: center; gap: 14px; }
.v-time { font-size: 14px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-range { --p: 0%; flex: 1; -webkit-appearance: none; appearance: none; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.v-range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cherry-bright) var(--p), rgba(246, 231, 225, .25) var(--p)); }
.v-range::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(246, 231, 225, .25); }
.v-range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--cherry-bright); }
.v-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--cherry-bright); border: 0; }
.v-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--cherry-bright); border: 0; }
.v-range:focus-visible { outline: 2px solid var(--cherry-bright); outline-offset: 4px; border-radius: 4px; }
.v-meta { align-self: center; }
.v-title { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.v-format { margin-top: 6px; font-size: var(--fs-sm); color: var(--on-dark-2); }
.v-line { margin-top: 18px; font-size: var(--fs-body); line-height: 1.5; max-width: 34ch; }
.v-count { margin-top: 28px; font-size: 14px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.v-hidden { display: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  :root { --section: 96px; }
  .hero-copy { grid-column: 1 / 8; }
  .hero-figure { grid-column: 8 / 13; }
  .hero-h { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
  .ads-copy { grid-column: 1 / 7; }
  .notes { grid-column: 7 / 13; }
  .anat-body { gap: 36px; }
  .segs { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .v-shell { grid-template-columns: 44px auto minmax(200px, 280px) 44px; column-gap: 24px; padding: 24px; }
  .v-btn { width: 44px; height: 44px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; --section: 72px; --r-box: 20px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex; }
  .lockup-name { font-size: 18px; }

  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .hero-copy, .hero-figure { grid-column: 1 / -1; }
  .hero-h { max-width: none; }
  .hero-sub { margin-top: 18px; font-size: 17px; }
  .hero-ctas { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 4px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .textlink { justify-content: center; }
  .hero-figure { align-items: stretch; }
  .hero-frame { width: 100%; max-height: 72svh; margin: 0 auto; }
  @supports (aspect-ratio: 3 / 4) { .hero-frame { width: min(100%, calc(72svh * .75)); } }
  .hero-cap { width: auto; text-align: center; }

  .roll-section { padding: 0; }
  .roll { border-radius: 0; padding: 24px 0 0; }
  .roll-head { padding: 0 16px 16px; }
  .roll-h { font-size: 34px; }
  .roll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0; }
  .tile--wide { grid-column: span 2; aspect-ratio: auto; }
  .tile--big .tile-dur { right: 8px; bottom: 6px; font-size: 12px; }

  .ads-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .ads-copy, .notes { grid-column: 1 / -1; }
  .ads-body { font-size: 17px; margin-top: 14px; }
  .note { padding: 14px 16px; gap: 12px; }
  .note-line { font-size: 16px; }
  .note-line b { font-size: 20px; }

  .anatomy { padding: 0 var(--gutter); }
  .anatomy-inner { --fh: 85px; padding: 28px 16px 24px; }
  .anat-body { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 24px 0 28px; }
  .segs { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .anat-preview { display: none; }
  .anat-video { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-box); overflow: hidden; background: #3A2A23; }
  .anat-video video { width: 100%; height: 100%; object-fit: cover; }
  .tracks { grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
  .track-area { width: calc(14 * 64px + 13 * 2px); min-width: 0; }
  .playhead { display: none; }

  .about-h { font-size: 26px; }
  .bubble { max-width: 85%; font-size: 16px; }
  .bubble-photos { width: 85%; }
  .kit { margin-top: 48px; }

  .footer { padding: 72px 0 28px; }
  .foot-actions { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-actions .btn { width: 100%; margin-bottom: 8px; }
  .sites { margin-top: 56px; }
  .sites ul { grid-template-columns: minmax(0, 1fr); }
  .sites a { font-size: 17px; }
  .foot-base { flex-direction: column; align-items: flex-start; }

  .v-bg { background: #1C1310; } /* fullscreen sheet on phones: opaque, so roll tiles never ghost through under the meta text */
  .v-shell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 0 20px; }
  .v-nav { display: none; }
  .v-stagewrap { align-items: center; width: 100%; padding: 0 12px; gap: 10px; }
  .v-scrub { width: 100%; padding: 0 4px; }
  .v-meta { width: 100%; padding: 0 16px; align-self: stretch; }
  .v-title { font-size: 20px; display: inline; }
  .v-format { display: inline; margin: 0 0 0 6px; }
  .v-line { margin-top: 8px; font-size: 15px; max-width: none; }
  .v-count { margin-top: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
