/* DIRECTION: wine-rose-deck — signature A3-B4-C2-D2-E1-F4-G1-H3-I2, palette recoloured to wine + rose + champagne at the owner's request
  * Palette wine/rose/champagne · B4 wide geometric display (Sora 800) · C2 humanist sans body
 * (Source Sans 3) · D2 soft 20px corners · E1 glow only · F4 collage deck hero ·
 * G1 hairline masonry discovery · H3 vertical timeline ranking · I2 parallax drift.
 * Every colour, radius, size and duration below resolves to a token in :root.
 */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Surfaces — a wine-black lightness ladder, never neutral grey */
  --ink:      #0C0509;
  --surface:  #150A10;
  --raised:   #22101A;
  --line:     #3A1F2C;
  --line-hi:  #5A3142;

  /* Text — two steps only */
  --text:     #FFF5F7;
  --muted:    #CBA9B6;

  /* One hot rose accent, its lift, and a champagne metal */
  --accent:      #E3165F;
  --accent-lift: #FF5C8D;
  --accent-deep: #B80D4B;
  --metal:       #F4C9A6;

  /* Translucent mixes derived from the tokens above */
  --accent-a0:  color-mix(in srgb, var(--accent) 0%, transparent);
  --accent-a12: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-a30: color-mix(in srgb, var(--accent) 32%, transparent);
  --accent-a55: color-mix(in srgb, var(--accent) 58%, transparent);
  --metal-a30:  color-mix(in srgb, var(--metal) 30%, transparent);
  --ink-a0:   color-mix(in srgb, var(--ink) 0%, transparent);
  --ink-a40:  color-mix(in srgb, var(--ink) 40%, transparent);
  --ink-a70:  color-mix(in srgb, var(--ink) 70%, transparent);
  --ink-a90:  color-mix(in srgb, var(--ink) 90%, transparent);
  --text-a08: color-mix(in srgb, var(--text) 8%, transparent);
  --text-a16: color-mix(in srgb, var(--text) 16%, transparent);

/* Type */
  --font-display: "Sora", "Poppins", "Avenir Next", system-ui, sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1.06rem, 1.00rem + 0.25vw, 1.19rem);
  --step-1:  clamp(1.22rem, 1.10rem + 0.55vw, 1.55rem);
  --step-2:  clamp(1.55rem, 1.25rem + 1.30vw, 2.30rem);
  --step-3:  clamp(1.95rem, 1.45rem + 2.40vw, 3.30rem);
  --display: clamp(2.15rem, 1.15rem + 4.40vw, 4.70rem);
  --numeral: clamp(3.4rem, 2.2rem + 5vw, 6.6rem);
  --lead-display: 1.02;
  --lead-body: 1.6;
  --track-display: -0.035em;
  --track-eyebrow: 0.2em;

  /* D2 — one soft radius language */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 20px;

  /* E1 — glow only, never a drop shadow */
  --glow:      0 0 60px -12px var(--accent-a55);
  --glow-soft: 0 0 120px -30px var(--accent-a30);
  --glow-ring: 0 0 0 1px var(--accent-a30), 0 0 40px -10px var(--accent-a55);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 900ms;
  --dur-fast: 240ms;
  --deck-hold: 5.5s;
  --cta-shine: 3.4s;
  --cta-pulse: 2.2s;

  /* Layout */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.75rem);
  --measure: 68ch;
  --wrap: 1240px;
  --header-h: 64px;
  --hairline: 1px;
  --focus: 3px;
  --tap: 44px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: var(--step-0); line-height: var(--lead-body); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-lift); text-underline-offset: 0.2em; text-decoration-thickness: var(--hairline); }
a:hover { color: var(--text); }
:focus-visible { outline: var(--focus) solid var(--accent-lift); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: var(--track-display); line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--accent); color: var(--text); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Media grading ---------------------------------------------------------
 * The pack is mixed: warm and cool renders, flash and daylight. Everything is
 * pulled toward a warm rose-and-champagne grade so it reads as one shoot.
 */
.media { position: relative; overflow: hidden; background: var(--raised); isolation: isolate; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.08) brightness(0.97) sepia(0.08) hue-rotate(-6deg); }
.media::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(165deg, var(--accent-a30), var(--ink-a0) 45%, var(--metal-a30)); mix-blend-mode: soft-light; }

/* ---- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink-a90); border-bottom: var(--hairline) solid var(--line); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent-lift); }
.nav { display: flex; gap: 0.25rem 1.1rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: 0.6rem 0.1rem; display: inline-block; min-height: var(--tap); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 0.75rem; padding-block: 0.35rem; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 0 1rem; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { padding-block: 0.55rem; white-space: nowrap; }
  .site-header .cta--compact { margin-left: auto; }
}

/* ---- CTA ------------------------------------------------------------------
 * One filled rose action dominates each viewport; the rest are ghosts or chips.
 */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: var(--tap); padding: 0.85rem 1.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.01em; line-height: 1.2;
  color: var(--text); background: var(--accent); border: var(--hairline) solid var(--accent-lift); border-radius: var(--radius-pill);
  box-shadow: var(--glow); cursor: pointer; user-select: none; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.cta:hover, .cta:focus-visible { background: var(--accent-lift); box-shadow: var(--glow-soft); translate: 0 -2px; scale: 1.03; color: var(--text); }
.cta:active { translate: 0 1px; }
.cta::after { content: "↗"; font-family: var(--font-body); font-weight: 700; }
.cta--ghost { color: var(--text); background: transparent; border-color: var(--line-hi); box-shadow: none; }
.cta--ghost:hover, .cta--ghost:focus-visible { color: var(--text); background: var(--text-a08); border-color: var(--accent); box-shadow: none; }
.cta--compact { padding: 0.55rem 1.05rem; min-height: 40px; box-shadow: none; }
.cta--big { font-size: var(--step-0); padding: 1.1rem 2.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--metal);
  border: var(--hairline) solid var(--metal-a30); border-radius: var(--radius-pill); padding: 0.35rem 0.8rem; background: var(--ink-a70); }
.chip--solid { background: var(--accent-deep); color: var(--text); border-color: var(--accent-lift); }
.readlink { font-weight: 600; color: var(--accent-lift); display: inline-flex; min-height: var(--tap); align-items: center; }
[data-v] { cursor: pointer; }

/* ---- Eyebrow, age line, section rhythm ------------------------------------ */
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--track-eyebrow); color: var(--metal); margin: 0 0 0.9rem; }
.age-line { font-size: var(--step--1); color: var(--muted); border-left: 2px solid var(--metal); padding-left: 0.75rem; margin: 1.2rem 0 0; max-width: 46ch; }
.section { padding-block: clamp(3rem, 1.8rem + 5vw, 6.5rem); }
.section--tight { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
.section--raised { background: var(--surface); border-block: var(--hairline) solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.section-head h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-3); margin: 0 0 0.9rem; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.6rem; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--accent-lift); }
.prose strong { color: var(--text); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: 60ch; }
.note { color: var(--muted); font-size: var(--step--1); }

/* ---- Primitive 1: F4 collage deck hero -------------------------------------
 * Four portraits stacked in real depth. The front card is the fixation: a face
 * at readable size, eyes to camera. Cards rotate to the back every few seconds;
 * the whole deck drifts against the cursor and the scroll (I2, place 1 of 3).
 */
.hero { position: relative; overflow: clip; background: radial-gradient(60% 70% at 72% 40%, var(--accent-a12), var(--ink-a0) 70%), var(--ink); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(1rem, 2.5vw, 2.5rem); align-items: center; min-height: min(94svh, 940px); padding-block: clamp(1.2rem, 3vw, 3rem); }
.hero h1 { font-size: var(--display); line-height: var(--lead-display); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent-lift), var(--metal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__copy { position: relative; z-index: 3; }
.hero__lede { font-size: var(--step-0); color: var(--text); max-width: 56ch; }
.deck { position: relative; aspect-ratio: 1 / 0.98; width: 100%; max-width: 860px; justify-self: end; perspective: 1400px; }
.deck__layer { position: absolute; inset: 0; transition: translate 1.2s var(--ease); }
.deck__card { position: absolute; width: 47%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: var(--hairline) solid var(--text-a16);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), filter var(--dur) var(--ease); will-change: transform; background: var(--raised); }
.deck__card .media { position: absolute; inset: 0; }
.deck__card[data-pos="0"] { transform: translate3d(58%, 9%, 0) rotate(-2deg); z-index: 7; box-shadow: var(--glow); }
.deck__card[data-pos="1"] { transform: translate3d(104%, 2%, -60px) rotate(7deg) scale(0.9); z-index: 6; filter: brightness(0.72); }
.deck__card[data-pos="2"] { transform: translate3d(14%, 5%, -80px) rotate(-8deg) scale(0.88); z-index: 5; filter: brightness(0.66); }
.deck__card[data-pos="3"] { transform: translate3d(118%, 22%, -140px) rotate(13deg) scale(0.74); z-index: 4; filter: brightness(0.55); }
.deck__card[data-pos="4"] { transform: translate3d(-6%, 22%, -140px) rotate(-15deg) scale(0.74); z-index: 3; filter: brightness(0.52); }
.deck__card[data-pos="5"] { transform: translate3d(84%, -9%, -180px) rotate(4deg) scale(0.72); z-index: 2; filter: brightness(0.45); }
.deck__card[data-pos="6"] { transform: translate3d(34%, -8%, -180px) rotate(-5deg) scale(0.7); z-index: 1; filter: brightness(0.42); }
.deck__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.4rem 1rem 0.9rem; background: linear-gradient(to top, var(--ink-a90), var(--ink-a0));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; font-weight: 600; font-size: var(--step--1); }
.deck__label .chip { background: var(--accent-deep); color: var(--text); border-color: var(--accent-lift); }
.deck__badge { position: absolute; z-index: 8; left: -2%; bottom: 2%; width: min(14rem, 40%); background: var(--ink-a90); border: var(--hairline) solid var(--accent-a55);
  border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: var(--glow-soft); }
.deck__badge ol { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.deck__badge li { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: baseline; font-size: var(--step--1); }
.deck__badge b { font-family: var(--font-display); color: var(--accent-lift); }
.deck__badge .score { font-family: var(--font-display); font-weight: 600; }
.deck__stamp { position: absolute; z-index: 8; right: 0; top: 2%; }
.deck__dots { position: absolute; z-index: 8; right: 4%; bottom: 1%; display: flex; gap: 0.3rem; }
.deck__dots button { width: var(--tap); height: var(--tap); border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.deck__dots button::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--line-hi); transition: background var(--dur-fast) var(--ease); }
.deck__dots button[aria-current="true"]::before { background: var(--accent); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 0.75rem; gap: 0.5rem; }
  .deck { order: -1; max-width: 520px; width: 100%; justify-self: center; aspect-ratio: 1 / 0.95; }
  .deck__card { width: 50%; }
  .deck__card[data-pos="0"] { transform: translate3d(50%, 6%, 0) rotate(-2deg); }
  .deck__card[data-pos="1"] { transform: translate3d(96%, 2%, -60px) rotate(7deg) scale(0.86); }
  .deck__card[data-pos="2"] { transform: translate3d(4%, 4%, -80px) rotate(-8deg) scale(0.86); }
  .deck__card[data-pos="3"] { transform: translate3d(104%, 18%, -140px) rotate(12deg) scale(0.72); }
  .deck__card[data-pos="4"] { transform: translate3d(-4%, 18%, -140px) rotate(-13deg) scale(0.72); }
  .deck__card[data-pos="5"] { transform: translate3d(76%, -6%, -180px) rotate(4deg) scale(0.7); }
  .deck__card[data-pos="6"] { transform: translate3d(26%, -6%, -180px) rotate(-5deg) scale(0.7); }
  .deck__badge { left: 0; bottom: 0; width: 46%; padding: 0.6rem 0.7rem; }
  .deck__badge li:nth-child(n+4) { display: none; }
  .hero h1 { margin-bottom: 0.8rem; }
}

/* ---- Brand strip: a ribbon, not a section ---------------------------------- */
.brands { border-block: var(--hairline) solid var(--line); background: var(--surface); }
.brands .wrap { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.4rem); overflow-x: auto; scrollbar-width: none; min-height: 64px; }
.brands__label { font-size: var(--step--1); color: var(--muted); white-space: nowrap; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-mark { font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); letter-spacing: -0.03em; color: var(--muted); white-space: nowrap;
  min-height: var(--tap); display: inline-flex; align-items: center; transition: color var(--dur-fast) var(--ease); }
.brand-mark:hover, .brand-mark:focus-visible { color: var(--accent-lift); }

/* ---- Primitive 2: G1 hairline masonry -------------------------------------
 * No card frames: portraits meet on a 1px wine hairline. Column masonry
 * so ratios stay native and the fold always cuts a tile.
 */
.masonry { columns: 4 220px; column-gap: var(--hairline); background: var(--line); border: var(--hairline) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { position: relative; display: block; break-inside: avoid; margin-bottom: var(--hairline); color: var(--text); overflow: hidden; }
.tile .media { width: 100%; }
.tile .media img, .tile .media video { transition: scale var(--dur) var(--ease); }
.tile video.tile__motion { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.tile.is-playing video.tile__motion { opacity: 1; }
.tile:hover .media img, .tile:focus-visible .media img { scale: 1.05; }
.tile__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 2.5rem 0.9rem 0.85rem; background: linear-gradient(to top, var(--ink-a90), var(--ink-a0));
  display: grid; gap: 0.45rem; }
.tile__hook { font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); line-height: 1.25; }
.tile__act { justify-self: start; }
.tile__live { position: absolute; z-index: 2; top: 0.7rem; left: 0.7rem; }
@media (max-width: 560px) { .masonry { columns: 2; } .tile__cap { padding: 2rem 0.6rem 0.6rem; } }

/* ---- Primitive 3: H3 vertical timeline ranking -----------------------------
 * A rose spine runs down the page; each position is drawn as a large numeral
 * sitting on the spine so 01 visibly implies 02 and 03.
 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(var(--numeral) * 0.5); top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(var(--accent), var(--line) 85%); }
.rank { position: relative; display: grid; grid-template-columns: var(--numeral) minmax(0, 150px) minmax(0, 1fr); gap: clamp(0.9rem, 2.5vw, 2rem); align-items: start; padding-block: clamp(1.4rem, 3vw, 2.4rem); }
.rank + .rank { border-top: var(--hairline) solid var(--line); }
.rank__num { font-family: var(--font-display); font-weight: 800; font-size: calc(var(--numeral) * 0.7); line-height: 0.9; color: var(--ink); -webkit-text-stroke: 1.5px var(--accent);
  background: var(--ink); position: relative; z-index: 1; text-align: center; padding-block: 0.2rem; }
.rank:first-child .rank__num { color: var(--accent-lift); -webkit-text-stroke: 0; text-shadow: var(--glow); }
.rank__media { border-radius: var(--radius); aspect-ratio: 3 / 4; }
.rank__body h3 { font-size: var(--step-2); margin-bottom: 0.35rem; }
.rank__verdict { color: var(--metal); font-weight: 600; margin-bottom: 0.6rem; }
.rank__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: var(--step--1); color: var(--muted); margin: 0.2rem 0 0.8rem; }
.rank__meta b { color: var(--text); font-weight: 600; }
.scorebar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.7rem; margin: 0.2rem 0 0.8rem; max-width: 26rem; }
.scorebar__n { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--accent-lift); }
.scorebar__track { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.scorebar__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-lift)); border-radius: 3px; }
.w70 { width: 70%; } .w71 { width: 71%; } .w72 { width: 72%; } .w73 { width: 73%; } .w74 { width: 74%; } .w75 { width: 75%; } .w76 { width: 76%; } .w77 { width: 77%; } .w78 { width: 78%; } .w79 { width: 79%; }
.w80 { width: 80%; } .w81 { width: 81%; } .w82 { width: 82%; } .w83 { width: 83%; } .w84 { width: 84%; } .w85 { width: 85%; } .w86 { width: 86%; } .w87 { width: 87%; } .w88 { width: 88%; } .w89 { width: 89%; }
.w60 { width: 60%; } .w61 { width: 61%; } .w62 { width: 62%; } .w63 { width: 63%; } .w64 { width: 64%; } .w65 { width: 65%; } .w66 { width: 66%; } .w67 { width: 67%; } .w68 { width: 68%; } .w69 { width: 69%; }
.w90 { width: 90%; } .w91 { width: 91%; } .w92 { width: 92%; } .w93 { width: 93%; } .w94 { width: 94%; } .w95 { width: 95%; } .w96 { width: 96%; } .w97 { width: 97%; } .w98 { width: 98%; } .w99 { width: 99%; } .w100 { width: 100%; }
@media (max-width: 720px) {
  .rank { grid-template-columns: calc(var(--numeral) * 0.9) minmax(0, 1fr); }
  .rank__media { grid-column: 2; max-width: 190px; }
  .rank__body { grid-column: 2; }
}

/* ---- Primitive 4: asymmetric portrait/text split --------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.split--flip .split__media { order: 2; }
.split__media { position: sticky; top: calc(var(--header-h) + 1rem); }
.frame { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--glow-soft); color: var(--text); }
.frame .media { aspect-ratio: 3 / 4; }
.frame__over { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 3rem 1rem 1rem; background: linear-gradient(to top, var(--ink-a90), var(--ink-a0)); display: grid; gap: 0.6rem; }
.frame__over p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.figcap { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 820px) { .split, .split--flip { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } .split__media { position: relative; top: 0; max-width: 420px; } }

/* ---- Primitive 5: full-bleed motion scene (I2, place 2 of 3) ---------------- */
.scene { position: relative; min-height: clamp(420px, 70svh, 720px); display: grid; align-items: end; overflow: hidden; color: var(--text); }
.scene__bg { position: absolute; inset: -12% 0; }
.scene__bg .media { position: absolute; inset: 0; }
.scene__bg .media img, .scene__bg .media video { object-position: 50% 30%; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 2%, var(--ink-a70) 35%, var(--ink-a0) 70%), linear-gradient(to right, var(--ink-a70), var(--ink-a0) 60%); z-index: 1; }
.scene__copy { position: relative; z-index: 2; padding-block: clamp(2rem, 5vw, 4rem); max-width: 40rem; }
.scene__copy .quote { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 0.4rem; }

/* ---- Primitive 6: comparison arena --------------------------------------- */
.arena-wrap { overflow-x: auto; border: var(--hairline) solid var(--line); border-radius: var(--radius); background: var(--surface); }
.arena { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--step--1); }
.arena th, .arena td { padding: 0.85rem 0.9rem; text-align: left; vertical-align: top; border-bottom: var(--hairline) solid var(--line); }
.arena thead th { font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); letter-spacing: -0.02em; border-bottom: 2px solid var(--accent); background: var(--raised); }
.arena thead th small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--accent-lift); font-size: var(--step--1); letter-spacing: 0; }
.arena tbody th { color: var(--muted); font-weight: 600; min-width: 11rem; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.arena td b { font-family: var(--font-display); color: var(--accent-lift); }
.arena tbody tr:hover td { background: var(--text-a08); }
.arena tfoot td { border-bottom: 0; }
.arena .cta { padding: 0.6rem 0.9rem; font-size: var(--step--1); box-shadow: none; }

/* ---- Primitive 7: cinematic rail ------------------------------------------ */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 30%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.8rem; scrollbar-color: var(--accent) var(--raised); }
.rail > * { scroll-snap-align: start; }
.rail__item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--text); }
.rail__item .media { aspect-ratio: 3 / 4; }
@media (max-width: 720px) { .rail { grid-auto-columns: 72%; } }

/* ---- Carousel (hub / deep pages) ------------------------------------------ */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 32%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__slide { scroll-snap-align: start; position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--text); }
.carousel__slide .media { aspect-ratio: 3 / 4; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.carousel__count { font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.carousel__btns { display: flex; gap: 0.5rem; }
.carousel__btn { width: var(--tap); height: var(--tap); border-radius: var(--radius-pill); border: var(--hairline) solid var(--line-hi); background: var(--surface); color: var(--text); font-size: var(--step-0); cursor: pointer; }
.carousel__btn:hover { border-color: var(--accent); color: var(--accent-lift); }
@media (max-width: 720px) { .carousel__track { grid-auto-columns: 74%; } }

/* ---- Per-subject blocks, glance panel, FAQ ----------------------------------- */
.subject { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(1.2rem, 3.5vw, 3rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: var(--hairline) solid var(--line); }
.subject h3 { font-size: var(--step-2); margin-bottom: 0.7rem; }
.subject .frame .media { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .subject { grid-template-columns: 1fr; } .subject .frame { max-width: 320px; } }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--hairline); background: var(--line); border: var(--hairline) solid var(--line); border-radius: var(--radius); overflow: hidden; }
.glance > div { background: var(--surface); padding: 1rem 1.1rem; }
.glance dt { font-size: var(--step--1); color: var(--metal); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 0.35rem; }
.glance dd { margin: 0; }
.glance ul { margin: 0; padding-left: 1.1rem; }
.faq { max-width: var(--measure); }
.faq dl { margin: 0; }
.faq dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.02em; margin: 1.6rem 0 0.5rem; color: var(--text); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0; color: var(--text); }

/* ---- Criteria matrix (how we review) --------------------------------------- */
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.criterion { border: var(--hairline) solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--surface); }
.criterion h3 { font-size: var(--step-0); margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.criterion .w { font-family: var(--font-display); color: var(--accent-lift); font-weight: 800; }

/* ---- Steps (guides) ---------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1rem; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 800; color: var(--accent-lift); font-size: var(--step-1); line-height: 1.2; }
.prompt { font-family: var(--font-body); background: var(--surface); border: var(--hairline) solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 0.9rem 1rem; margin: 0 0 1.1rem; color: var(--text); }

/* ---- Final action zone (I2, place 3 of 3) ----------------------------------- */
.finale { position: relative; overflow: hidden; min-height: clamp(520px, 86svh, 860px); display: grid; align-items: center; }
.finale__bg { position: absolute; inset: -10% 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--hairline); }
.finale__bg .media { height: 100%; }
.finale::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 70% at 50% 50%, var(--ink-a70), var(--ink) 100%); }
.finale__copy { position: relative; z-index: 2; text-align: center; max-width: 44rem; margin-inline: auto; }
.finale__copy h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.finale__copy .cta-row { justify-content: center; }
@media (max-width: 720px) { .finale__bg { grid-template-columns: 1fr 1fr; } .finale__bg > :nth-child(3) { display: none; } }

/* ---- Breadcrumbs, page heads for children ---------------------------------- */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.3rem; color: var(--line-hi); }
.crumbs a { color: var(--muted); }
.phero { position: relative; overflow: clip; background: radial-gradient(60% 80% at 80% 30%, var(--accent-a12), var(--ink-a0) 70%), var(--ink); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.2rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(1.2rem, 3vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
.phero h1 { font-size: var(--step-3); line-height: 1.05; margin-bottom: 1rem; }
.phero__stack { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.phero__stack > * { position: absolute; width: 64%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--glow-soft); }
.phero__stack > :nth-child(1) { right: 0; top: 0; z-index: 2; }
.phero__stack > :nth-child(2) { left: 0; bottom: 0; width: 52%; z-index: 1; filter: brightness(0.7); }
.phero__stack .media { aspect-ratio: 3 / 4; }
.phero__stack .chip { position: absolute; z-index: 3; left: 0.8rem; top: 0.8rem; width: auto; }
.verdict-card { border: var(--hairline) solid var(--accent-a55); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--surface); box-shadow: var(--glow-soft); margin-top: 1.2rem; }
.verdict-card .scorebar { margin-bottom: 0.2rem; }
@media (max-width: 820px) { .phero__grid { grid-template-columns: 1fr; } .phero__stack { justify-self: center; max-width: 360px; order: -1; } }

/* ---- Duo media beat --------------------------------------------------------- */
.duo { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.duo .media { height: 100%; min-height: 280px; }
.duo > :nth-child(2) .media { aspect-ratio: 3 / 4; }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer { border-top: var(--hairline) solid var(--line); background: var(--surface); padding-block: 2.5rem 3rem; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.site-footer a { color: var(--muted); display: inline-flex; min-height: var(--tap); align-items: center; }
.site-footer a:hover { color: var(--text); }
.site-footer .age-line { color: var(--text); max-width: none; }

/* ---- Sticky conversion rail (mobile only) ----------------------------------- */
.sticky-rail { display: none; }
@media (max-width: 720px) {
  .sticky-rail { display: flex; position: fixed; z-index: 25; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .sticky-rail .cta { width: 100%; }
  body.has-rail { padding-bottom: 5rem; }
}

/* ---- Reduced motion: stop everything, keep every image and control ----------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .deck__layer, .scene__bg, .finale__bg { translate: none !important; }
}

/* Back cards keep their image but not their caption: one readable label per deck. */
.deck__card:not([data-pos="0"]) .deck__label { opacity: 0; }
.tile__act { white-space: nowrap; }
@media (max-width: 560px) {
  .tile__act { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
  .tile__hook { font-size: 0.85rem; }
}

/* Looping clips sit over their own lazy still; the still is what shows without JS. */
.media video.loop__v { position: absolute; inset: 0; z-index: 0; }

/* ---- Living buttons -------------------------------------------------------
 * Filled actions carry a travelling highlight and a soft breathing ring so the
 * eye finds them first. Ghost actions get a slower border shimmer. All motion
 * stops under prefers-reduced-motion.
 */
@keyframes cta-shine { from { background-position: 180% 0; } to { background-position: -80% 0; } }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-a55), var(--glow); }
  60%      { box-shadow: 0 0 0 12px var(--accent-a0), var(--glow-soft); }
}
@keyframes chip-breathe { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-a55); } 60% { box-shadow: 0 0 0 7px var(--accent-a0); } }
.cta:not(.cta--ghost) {
  background-image: linear-gradient(110deg, var(--accent) 0%, var(--accent) 38%, var(--accent-lift) 50%, var(--accent) 62%, var(--accent) 100%);
  background-size: 260% 100%;
  animation: cta-shine var(--cta-shine) linear infinite, cta-pulse var(--cta-pulse) ease-in-out infinite;
}
.cta--compact:not(.cta--ghost) { animation: cta-shine var(--cta-shine) linear infinite; }
.cta--ghost { border-color: var(--accent-a55); }
.cta--ghost:hover, .cta--ghost:focus-visible { border-color: var(--accent-lift); background: var(--accent-a12); }
.cta--big { font-size: var(--step-1); padding: 1.15rem 2.3rem; letter-spacing: 0; }
.chip--solid { animation: chip-breathe var(--cta-pulse) ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cta, .chip--solid { animation: none !important; } }

/* ---- Brand logos in the strip and on review cards ------------------------- */
.brand-mark img { height: auto; max-height: 30px; max-width: 132px; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.85; transition: filter var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.brand-mark:hover img, .brand-mark:focus-visible img { filter: none; opacity: 1; }
.brand-logo { height: 30px; width: auto; margin-bottom: 0.6rem; }

/* ---- Guide index (guides hub) --------------------------------------------- */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; counter-reset: guide; }
.guide-card { position: relative; display: grid; grid-template-rows: auto 1fr; border: var(--hairline) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--accent-lift); translate: 0 -3px; box-shadow: var(--glow-soft); color: var(--text); }
.guide-card .media { aspect-ratio: 16 / 10; }
.guide-card__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.45rem; align-content: start; }
.guide-card__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1; color: var(--accent-lift); }
.guide-card__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.15; }
.guide-card__desc { color: var(--muted); font-size: var(--step--1); }
.guide-card__go { color: var(--metal); font-weight: 700; font-size: var(--step--1); }

.deck__label { justify-content: flex-end; }
.deck__label .chip { white-space: nowrap; }
.cta { white-space: nowrap; }
@media (max-width: 560px) {
  .cta--big { font-size: var(--step-0); padding: 1rem 1.4rem; }
  .deck__label { padding: 1.6rem 0.5rem 0.5rem; }
  .deck__label .chip { font-size: 0.72rem; padding: 0.3rem 0.55rem; }
  .deck__badge { width: 44%; }
}
@media (max-width: 860px) {
  .deck__card[data-pos="0"] { transform: translate3d(64%, 5%, 0) rotate(-2deg); }
  .deck__badge { left: 0; bottom: 0; width: 36%; padding: 0.5rem 0.55rem; }
  .deck__badge .eyebrow { font-size: 0.62rem; letter-spacing: 0.12em; margin-bottom: 0.2rem; }
  .deck__badge li { font-size: 0.72rem; grid-template-columns: 1.2rem 1fr auto; }
}
@media (max-width: 560px) {
  .deck__label .chip { white-space: normal; text-align: center; line-height: 1.2; }
  .deck__dots { bottom: -2.4rem; right: 0; }
  .deck { margin-bottom: 2.2rem; }
}

/* JOI ships a square mark, not a wordmark: give it a little more height. */
.brand-mark img[src$="joi-ai.svg"] { max-height: 38px; }
