/* ==========================================================
   Revival PDP concept book
   Two layers:
   1. Book chrome (.book-*, .sec-*, .iter-*) — the working document
   2. Revival mock (.rv-*) — stand-ins for the live PDP's look
   Live site fonts: QuadrantText (serif) + Grosa (sans).
   Stand-ins here: Newsreader + Hanken Grotesk.
   ========================================================== */

:root {
  --c-canvas: #ECE8E1;
  --c-paper: #FBFAF7;
  --c-ink: #1F1A17;
  --c-muted: #645C55;
  --c-line: #D3CCC2;
  --c-soft: #E3DED6;
  --c-pick: #3C1E21;
  --c-test: #24456B;

  --rv-plum: #3C1E21;
  --rv-ink: #231C1B;
  --rv-muted: #6B625D;
  --rv-line: #E3DED7;
  --rv-cream: #F6F3EB;
  --rv-sand: #EEE7DC;
  --rv-guava: #B9583A;
  --rv-white: #FFFFFF;

  --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Book chrome ---------- */
.book-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 32px;
  background: rgba(236, 232, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.book-bar__title { font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.book-bar__title span { color: var(--c-muted); font-weight: 400; }
.book-bar nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.book-bar nav a {
  font-family: var(--f-mono); font-size: 12px; text-decoration: none;
  padding: 6px 10px; border-radius: 999px; color: var(--c-muted);
}
.book-bar nav a:hover { background: var(--c-soft); color: var(--c-ink); }

.book { max-width: 1440px; margin: 0 auto; padding: 0 32px 160px; }

.sec { padding-top: 88px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 32px; }
.sec-kicker { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; }
.sec-title { font-family: var(--f-serif); font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.sec-lede { margin: 0; color: var(--c-muted); font-size: 16px; text-wrap: pretty; }
.sec-lede strong { color: var(--c-ink); font-weight: 600; }

.hero { padding-top: 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.hero h1 { font-family: var(--f-serif); font-weight: 400; font-size: 64px; line-height: 1.0; letter-spacing: -0.015em; margin: 0 0 24px; text-wrap: balance; }
.hero p { font-size: 17px; max-width: 62ch; margin: 0 0 16px; text-wrap: pretty; }
.hero .meta { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; font-size: 13px; color: var(--c-muted); align-items: center; }

.guard { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px; padding: 24px; }
.guard h2 { font-size: 13px; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: var(--c-muted); }
.guard ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.guard li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.45; }
.guard .delta { font-family: var(--f-mono); font-size: 12px; font-weight: 500; padding-top: 2px; }
.delta.up { color: #1D5B3A; }
.delta.down { color: #8A2B1E; }
.guard em { font-style: normal; color: var(--c-muted); }

/* tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 4px; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-muted);
  white-space: nowrap;
}
.tag--test { background: var(--c-test); border-color: var(--c-test); color: #fff; }
.tag--pick { background: var(--c-pick); border-color: var(--c-pick); color: #fff; }
.tag--s { color: #1D5B3A; border-color: #A9C9B4; background: #EEF5F0; }
.tag--m { color: #7A5300; border-color: #DCC59A; background: #FAF3E4; }
.tag--l { color: #8A2B1E; border-color: #E2B3AA; background: #FBEDEA; }

/* frames that hold mocks */
.frame { background: var(--rv-white); border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 40px rgba(0, 0, 0, 0.08); overflow: hidden; }
.frame-label { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); margin: 0 0 10px; }

/* ---------- Combined concept layout ---------- */
.concept-row { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; align-items: start; }
.desktop-shell { overflow-x: auto; }
.mock-viewport { height: 920px; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; overscroll-behavior: contain; }
.phone { width: 390px; border-radius: 36px; padding: 12px; background: #1E1917; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.phone .mock-viewport { height: 820px; border-radius: 26px; background: #fff; }

/* markers that tie mock regions to tests */
.mk { position: relative; }
.mk-pin {
  position: absolute; z-index: 6; top: 8px; right: 8px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--c-test); color: #fff; padding: 2px 6px; border-radius: 3px; pointer-events: none;
}
.mk-pin--left { right: auto; left: 8px; }
.pins-off .mk-pin { display: none; }

/* ---------- Element boards ---------- */
.board { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.board-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; margin-bottom: 24px; }
.board-head h3 { font-family: var(--f-serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 10px; }
.board-head .q { font-size: 15px; color: var(--c-muted); margin: 0; }
.board-head .rec { font-size: 15px; margin: 0; padding: 16px 18px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px; }
.board-head .rec b { font-weight: 600; }
.board-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.iter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.iter-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); }
.iter { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.iter.is-pick { border-color: var(--c-pick); box-shadow: inset 0 0 0 1px var(--c-pick); }
.iter-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.iter-head h4, .iter-head h3.h4 { margin: 0; font-size: 14px; font-weight: 600; flex: 1; }
.iter-head .letter { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); }
.iter-surface { background: #fff; padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
.iter-surface--flush { padding: 0; }
.iter-surface--cream { background: var(--rv-cream); }
.iter-notes { padding: 14px 16px 16px; border-top: 1px solid var(--c-line); display: grid; gap: 8px; font-size: 13px; line-height: 1.45; }
.iter-notes p { margin: 0; }
.iter-notes b { font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); margin-right: 6px; }
.iter-notes .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.placement { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; margin-top: 20px; }
.placement th, .placement td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.placement th { font-family: var(--f-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); background: var(--c-soft); }
.placement tr:last-child td { border-bottom: 0; }

/* ---------- Test plan ---------- */
.tests-wrap { overflow-x: auto; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 8px; }
.tests { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.tests th, .tests td { text-align: left; vertical-align: top; padding: 14px 14px; border-bottom: 1px solid var(--c-line); }
.tests thead th { font-family: var(--f-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); background: var(--c-soft); position: sticky; top: 0; }
.tests td:first-child { white-space: nowrap; }
.tests .name { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.tests tr:last-child td { border-bottom: 0; }
.wave-row td { background: #F3EFE8; font-family: var(--f-mono); font-size: 12px; color: var(--c-ink); font-weight: 500; }

.waves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 24px; }
.wave { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 8px; padding: 18px 20px; }
.wave h4, .wave h3.h4 { margin: 0 0 6px; font-size: 16px; }
.wave .when { font-family: var(--f-mono); font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wave p { margin: 8px 0 0; font-size: 14px; }

.model { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; margin-top: 24px; }
.model .box { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 8px; padding: 18px 20px; font-size: 14px; }
.model h4 { margin: 0 0 10px; font-size: 15px; }
.model code, .code { font-family: var(--f-mono); font-size: 12px; background: var(--c-soft); padding: 1px 5px; border-radius: 3px; }
.model ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- References ---------- */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.ref-group { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 8px; padding: 18px 20px; }
.ref-group h4 { margin: 0 0 12px; font-size: 15px; }
.ref-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ref-group li { font-size: 13px; line-height: 1.45; display: grid; gap: 2px; }
.ref-group li a { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--c-line); justify-self: start; }
.ref-group li a:hover { border-bottom-color: var(--c-ink); }
.ref-group .borrow { color: var(--c-muted); }
.ref-group .v { font-family: var(--f-mono); font-size: 10px; color: var(--c-muted); }

/* ==========================================================
   Revival mock components
   ========================================================== */
.rv { font-family: var(--f-sans); color: var(--rv-ink); font-size: 14px; line-height: 1.45; }
.rv button { cursor: pointer; }

.rv-promo { display: flex; justify-content: space-between; padding: 7px 40px; background: var(--rv-cream); font-size: 12px; color: var(--rv-ink); }
.rv-nav { display: flex; align-items: center; gap: 28px; padding: 16px 40px; border-bottom: 1px solid var(--rv-line); font-size: 13px; }
.rv-logo { font-family: var(--f-serif); font-size: 28px; font-weight: 500; color: var(--rv-plum); letter-spacing: -0.02em; line-height: 1; }
.rv-nav ul { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; color: var(--rv-ink); }
.rv-nav .icons { margin-left: auto; display: flex; gap: 16px; color: var(--rv-ink); }
.rv-crumb { padding: 14px 40px 10px 132px; font-size: 11px; color: var(--rv-muted); }

.rv-pdp { display: grid; grid-template-columns: 64px minmax(0, 1fr) 400px; gap: 0 28px; padding: 0 40px 64px; align-items: start; }

/* thumbnail rail grouped by chapter */
.rv-thumbs { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 6px; }
.rv-thumbs .grp { font-family: var(--f-sans); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rv-muted); margin: 8px 0 0; }
.rv-thumbs .grp:first-child { margin-top: 0; }
.rv-thumbs button { padding: 0; border: 1px solid transparent; background: none; width: 64px; height: 72px; overflow: hidden; border-radius: 2px; }
.rv-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumbs button.is-on { border-color: var(--rv-plum); }

/* stacked gallery */
.rv-gallery { display: flex; flex-direction: column; gap: 12px; }
.rv-chapter { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.rv-media { position: relative; background: var(--rv-sand); overflow: hidden; }
.rv-media img { width: 100%; height: 100%; object-fit: cover; }
.rv-media--45 { aspect-ratio: 4 / 5; }
.rv-media--sq { aspect-ratio: 1 / 1; }
.rv-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,0.92); font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.rv-chip-ch {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.94); color: var(--rv-ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px;
}
.rv-chip-ch span { font-weight: 400; color: var(--rv-muted); letter-spacing: 0.02em; }
.rv-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  background: rgba(255,255,255,0.95); padding: 14px 16px; max-width: 380px;
}
.rv-caption .k { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--rv-muted); margin: 0 0 4px; }
.rv-caption h5 { font-family: var(--f-serif); font-weight: 400; font-size: 21px; line-height: 1.15; margin: 0 0 6px; color: var(--rv-plum); }
.rv-caption p { margin: 0; font-size: 13px; }
.rv-caption .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rv-spec { font-size: 11.5px; padding: 3px 8px; border: 1px solid var(--rv-line); background: #fff; border-radius: 2px; white-space: nowrap; }

/* split tile (image + text) inside gallery */
.rv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--rv-cream); min-height: 420px; }
.rv-split .txt { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.rv-split .txt h5 { font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; color: var(--rv-plum); }
.rv-split .txt p { margin: 0; font-size: 14px; }
.rv-split .img { position: relative; min-height: 100%; }
.rv-split .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-k { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rv-muted); }
.rv-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--rv-ink); background: none; border: 0; padding: 0; text-align: left; }

/* lighting scrubber */
.rv-scrub { position: relative; background: #111; }
.rv-scrub video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rv-scrub .bar { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,0.95); padding: 12px 14px 10px; }
.rv-scrub .bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.rv-scrub .bar-top b { font-family: var(--f-serif); font-weight: 400; font-size: 18px; color: var(--rv-plum); }
.rv-scrub .bar-top .now { font-size: 12px; color: var(--rv-muted); }
.rv-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
.rv-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #F2D8A7, #F7E9C9 30%, #E9A25F 65%, #2D2A3A); }
.rv-range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #F2D8A7, #F7E9C9 30%, #E9A25F 65%, #2D2A3A); }
.rv-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--rv-plum); margin-top: -9px; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.rv-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--rv-plum); }
.rv-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--rv-muted); }
.rv-ticks button { background: none; border: 0; padding: 4px 0; font-size: 11px; color: var(--rv-muted); }
.rv-ticks button:hover { color: var(--rv-ink); text-decoration: underline; }
.rv-scrub .note { position: absolute; top: 14px; right: 14px; font-size: 10.5px; color: #fff; background: rgba(0,0,0,0.45); padding: 3px 8px; border-radius: 2px; }
.rv-play { position: absolute; top: 14px; left: 14px; display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,0.94); border: 0; font-size: 12px; padding: 6px 10px; border-radius: 2px; }

/* split compare */
.rv-compare { position: relative; overflow: hidden; aspect-ratio: 1 / 1; --pos: 50%; background: var(--rv-sand); user-select: none; }
.rv-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-compare .top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rv-compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.rv-compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.rv-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.rv-compare .lab { position: absolute; bottom: 10px; font-size: 11px; background: rgba(255,255,255,0.92); padding: 3px 8px; pointer-events: none; }
.rv-compare .lab.l { left: 10px; } .rv-compare .lab.r { right: 10px; }

.rv-trip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rv-trip figure { margin: 0; }
.rv-trip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rv-trip figcaption { font-size: 11px; color: var(--rv-muted); margin-top: 6px; line-height: 1.3; }

/* loupe */
.rv-loupe { position: relative; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.rv-loupe img { width: 100%; height: 100%; object-fit: cover; }
.rv-loupe .lens { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.3); pointer-events: none; opacity: 0; transition: opacity .15s; background-repeat: no-repeat; }
.rv-loupe:hover .lens { opacity: 1; }
.rv-loupe .hint { position: absolute; left: 10px; top: 10px; font-size: 11px; background: rgba(255,255,255,0.92); padding: 3px 8px; }

/* ---------- buy box ---------- */
.rv-buy { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 0; }
.rv-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rv-title { font-family: var(--f-serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--rv-plum); margin: 0; letter-spacing: -0.005em; }
.rv-stars { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 6px; }
.rv-stars .s { display: inline-flex; gap: 1px; color: var(--rv-ink); }
.rv-stars a { text-underline-offset: 2px; }
.rv-price { font-size: 19px; margin: 10px 0 2px; }
.rv-sale { font-size: 12px; font-weight: 600; }
.rv-desc { font-size: 13px; margin: 14px 0 18px; }
.rv-lbl { font-size: 12px; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rv-lbl a { font-size: 11px; text-underline-offset: 2px; }
.rv-lbl .sep { color: var(--rv-line); margin: 0 4px; }
.rv-block { margin-bottom: 18px; }

.rv-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-sw { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--rv-line); }
.rv-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--rv-plum); }
.rv-sw--tex { width: 44px; height: 44px; border-radius: 3px; }
.rv-sw--tex.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--rv-plum); }
.rv-sw--lg { width: 40px; height: 40px; }
.rv-swname { display: grid; gap: 4px; justify-items: center; font-size: 11px; color: var(--rv-muted); background: none; border: 0; padding: 0; }
.rv-swname.is-on { color: var(--rv-ink); font-weight: 600; }
.rv-swname .rv-sw { pointer-events: none; }
.rv-cwtile { width: 72px; display: grid; gap: 4px; justify-items: center; font-size: 11px; color: var(--rv-muted); background: none; border: 0; padding: 0; }
.rv-cwtile img { width: 72px; height: 90px; object-fit: cover; border: 1px solid var(--rv-line); }
.rv-cwtile.is-on img { outline: 2px solid var(--rv-plum); outline-offset: 2px; }
.rv-cwtile.is-on { color: var(--rv-ink); font-weight: 600; }

.rv-select { position: relative; }
.rv-select select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 13px; color: var(--rv-ink);
  padding: 11px 36px 11px 12px; border: 1px solid #BDB5AC; border-radius: 0; background: #fff;
}
.rv-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--rv-ink); transform: translateY(-50%); pointer-events: none; }
.rv-help { font-size: 12px; color: var(--rv-muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }

.rv-pads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rv-pad { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--rv-line); font-size: 12px; cursor: pointer; background: #fff; }
.rv-pad input { margin: 0; accent-color: var(--rv-plum); }
.rv-pad .p { margin-left: auto; }
.rv-pad--vis { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: start; padding: 10px 12px; }
.rv-pad--vis svg { grid-row: span 2; }
.rv-pad--vis .nm { font-weight: 600; font-size: 12.5px; }
.rv-pad--vis .sub { font-size: 11.5px; color: var(--rv-muted); line-height: 1.35; }
.rv-pad--vis input { position: absolute; opacity: 0; }
.rv-pad--vis.is-on { border-color: var(--rv-plum); box-shadow: inset 0 0 0 1px var(--rv-plum); }
.rv-pad-wrap { position: relative; }
.rv-padhead { font-size: 12px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.rv-padhead b { font-weight: 700; }
.rv-padrec { font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: var(--rv-cream); padding: 2px 6px; margin-left: 6px; }

.rv-atc { width: 100%; padding: 15px; border: 0; background: var(--rv-plum); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; }
.rv-ship { text-align: center; font-size: 12px; color: var(--rv-ink); margin: 12px 0 2px; }
.rv-pd { text-align: center; font-size: 11.5px; color: var(--rv-muted); }
.rv-pd a { color: #6D3BD0; text-decoration: none; }
.rv-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--rv-line); font-size: 11.5px; }
.rv-trust div { display: flex; gap: 8px; align-items: center; }
.rv-trust svg { flex: none; }

/* story cards — A rows */
.rv-cards { padding: 18px 0 6px; }
.rv-cards-h { font-size: 12px; font-weight: 600; margin: 0 0 10px; display: flex; justify-content: space-between; }
.rv-cards-h span { font-weight: 400; color: var(--rv-muted); }
.rv-card { border: 1px solid var(--rv-line); background: #fff; margin-bottom: -1px; }
.rv-card-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; width: 100%; text-align: left; background: none; border: 0; }
.rv-card-row img { width: 56px; height: 56px; object-fit: cover; }
.rv-card-row .t { font-size: 13px; font-weight: 600; display: block; }
.rv-card-row .s { font-size: 12px; color: var(--rv-muted); display: block; line-height: 1.35; }
.rv-card-row .chev { transition: transform .2s; color: var(--rv-muted); }
.rv-card.is-open .chev { transform: rotate(90deg); }
.rv-card-body { display: none; padding: 0 12px 14px; }
.rv-card.is-open .rv-card-body { display: block; }
.rv-card-body .img { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 10px; background: var(--rv-sand); }
.rv-card-body .img img { width: 100%; height: 100%; object-fit: cover; }
.rv-card-body p { margin: 0 0 8px; font-size: 13px; }
.rv-card-body .specs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.rv-card--swatch .rv-card-row { background: var(--rv-cream); }

/* story cards — B rail */
.rv-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.rv-rail::-webkit-scrollbar { display: none; }
.rv-rail > * { scroll-snap-align: start; }
.rv-railcard { background: #fff; border: 1px solid var(--rv-line); text-align: left; padding: 0; display: flex; flex-direction: column; }
.rv-railcard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rv-railcard .tx { padding: 8px 10px 10px; }
.rv-railcard .t { font-size: 12.5px; font-weight: 600; display: block; }
.rv-railcard .s { font-size: 11.5px; color: var(--rv-muted); display: block; line-height: 1.35; }

/* progress scrollbar */
.rv-prog { position: relative; height: 2px; background: var(--rv-line); margin-top: 10px; }
.rv-prog span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--rv-plum); transition: left .08s linear, width .08s linear; }
.rv-prog--thick { height: 3px; }

/* story cards — C chips panel */
.rv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-chip { font-size: 12px; padding: 7px 12px; border: 1px solid var(--rv-line); background: #fff; border-radius: 999px; }
.rv-chip.is-on { background: var(--rv-plum); color: #fff; border-color: var(--rv-plum); }
.rv-panel { display: none; }
.rv-panel.is-on { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: start; }
.rv-panel img { width: 132px; height: 132px; object-fit: cover; }
.rv-panel h6 { font-family: var(--f-serif); font-weight: 400; font-size: 18px; margin: 0 0 4px; color: var(--rv-plum); line-height: 1.15; }
.rv-panel p { margin: 0; font-size: 12.5px; }

/* accordions */
.rv-acc { border-top: 1px solid var(--rv-line); }
.rv-acc details { border-bottom: 1px solid var(--rv-line); }
.rv-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 13px; cursor: pointer; }
.rv-acc summary::-webkit-details-marker { display: none; }
.rv-acc summary::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--rv-ink); }
.rv-acc details[open] summary::after { transform: rotate(180deg); }
.rv-acc .body { padding: 0 0 16px; font-size: 12.5px; }
.rv-acc .body ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.rv-acc--img summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
.rv-acc--img summary img { width: 40px; height: 40px; object-fit: cover; }
.rv-acc--img .bigimg { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 10px; }
.rv-acc--img .bigimg img { width: 100%; height: 100%; object-fit: cover; }

/* UGC */
.rv-ugc { padding: 18px 0; border-top: 1px solid var(--rv-line); }
.rv-ugc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rv-ugc-h b { font-size: 13px; font-weight: 600; }
.rv-arrows { display: flex; gap: 6px; }
.rv-arrows button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rv-line); background: #fff; display: grid; place-items: center; padding: 0; }
.rv-ugc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rv-ugc-rail::-webkit-scrollbar { display: none; }
.rv-ugc-tile { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; overflow: hidden; background: var(--rv-sand); }
.rv-ugc-tile img { width: 100%; height: 100%; object-fit: cover; }
.rv-ugc-tile .play { position: absolute; left: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; }
.rv-ugc-tile .who { position: absolute; right: 8px; bottom: 10px; font-size: 10.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.rv-ugc-small { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rv-ugc-small div { aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.rv-ugc-small img { width: 100%; height: 100%; object-fit: cover; }
.rv-bubbles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rv-bubble { flex: none; display: grid; gap: 6px; justify-items: center; font-size: 11px; color: var(--rv-ink); background: none; border: 0; padding: 0; width: 72px; }
.rv-bubble .ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--rv-guava), #E4B07A, var(--rv-plum), var(--rv-guava)); }
.rv-bubble .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.rv-bubble.seen .ring { background: var(--rv-line); }
.rv-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.rv-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rv-line); }
.rv-dots i.on { background: var(--rv-plum); width: 18px; border-radius: 3px; }

/* swatch (physical sample) callouts */
.rv-swatchcall { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: var(--rv-cream); border: 1px solid var(--rv-line); text-decoration: none; }
.rv-swatchcall img { width: 72px; height: 72px; object-fit: cover; }
.rv-swatchcall .t { font-size: 13px; font-weight: 600; display: block; }
.rv-swatchcall .s { font-size: 12px; color: var(--rv-muted); display: block; line-height: 1.35; }
.rv-addon { display: grid; grid-template-columns: 20px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--rv-line); background: #fff; font-size: 12.5px; }
.rv-addon img { width: 52px; height: 52px; object-fit: cover; }
.rv-addon input { accent-color: var(--rv-plum); margin: 0; width: 16px; height: 16px; }
.rv-addon .nm { font-weight: 600; display: block; }
.rv-addon .sub { font-size: 11.5px; color: var(--rv-muted); display: block; line-height: 1.35; }
.rv-swchip { width: 44px; height: 44px; border-radius: 3px; border: 1px dashed #A99F95; background: #fff; display: grid; place-items: center; font-size: 10px; line-height: 1.1; text-align: center; color: var(--rv-ink); padding: 0; }

/* size to scale */
.rv-scale { margin-top: 10px; border: 1px solid var(--rv-line); background: #FCFBF8; padding: 12px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
.rv-scale svg { width: 150px; height: auto; }
.rv-scale p { margin: 0; font-size: 12px; color: var(--rv-muted); }
.rv-scale p b { color: var(--rv-ink); font-weight: 600; display: block; font-size: 13px; margin-bottom: 2px; }
.rv-listbox { border: 1px solid #BDB5AC; background: #fff; }
.rv-listbox .opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 12px; border-bottom: 1px solid var(--rv-line); font-size: 13px; }
.rv-listbox .opt:last-child { border-bottom: 0; }
.rv-listbox .opt .hint { grid-column: 1 / -1; font-size: 11.5px; color: var(--rv-muted); }
.rv-listbox .opt.is-on { background: var(--rv-cream); }
.rv-listbox .pop { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--rv-guava); }
.rv-drawer { border: 1px solid var(--rv-line); background: #fff; box-shadow: -12px 0 30px rgba(0,0,0,0.08); padding: 16px; }
.rv-drawer h6 { font-size: 14px; margin: 0 0 10px; font-weight: 600; }
.rv-drawer .grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; color: var(--rv-muted); margin: 12px 0 6px; }
.rv-drawer .rowo { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rv-line); font-size: 12.5px; }
.rv-drawer .rowo:last-child { border-bottom: 0; }

/* brand + studio blocks */
.rv-band { background: var(--rv-cream); padding: 56px 40px; }
.rv-band h3 { font-family: var(--f-serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--rv-plum); margin: 0 0 8px; }
.rv-band .lede { font-size: 14px; max-width: 58ch; margin: 0 0 28px; }
.rv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rv-step .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--rv-sand); position: relative; margin-bottom: 12px; }
.rv-step .ph img { width: 100%; height: 100%; object-fit: cover; }
.rv-step .n { font-size: 11px; color: var(--rv-muted); font-weight: 600; letter-spacing: 0.06em; }
.rv-step h6 { font-family: var(--f-serif); font-weight: 400; font-size: 19px; margin: 2px 0 6px; color: var(--rv-plum); }
.rv-step p { margin: 0; font-size: 13px; }
.rv-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 12px; color: var(--rv-muted); background: repeating-linear-gradient(135deg, #EDE6DA 0 10px, #E7DFD1 10px 20px); }
.rv-ph span { background: rgba(255,255,255,0.85); padding: 6px 10px; }
.rv-lab { margin-top: 28px; padding-top: 20px; border-top: 1px solid #DDD3C4; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; font-size: 13.5px; max-width: 760px; }
.rv-lab b { font-family: var(--f-serif); font-weight: 400; font-size: 20px; color: var(--rv-plum); }

.rv-heritage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 0; min-height: 420px; }
.rv-heritage .img { position: relative; }
.rv-heritage .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-heritage .txt { background: var(--rv-plum); color: #F6EEE6; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.rv-heritage .txt h3 { font-family: var(--f-serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0; color: #fff; }
.rv-heritage .txt p { margin: 0; font-size: 14px; }
.rv-heritage .txt .rv-k { color: #D9C6BE; }
.rv-heritage .txt a { color: #fff; }

.rv-texband { height: 18px; background-size: cover; background-position: center; }

.rv-more { margin: 0 40px 40px; padding: 18px; border: 1px dashed #CFC6BA; text-align: center; font-size: 12px; color: var(--rv-muted); }

/* ---------- Mobile mock ---------- */
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rv-line); }
.m-head .rv-logo { font-size: 24px; }
.m-head .icons { display: flex; gap: 14px; }
.m-promo { padding: 6px 16px; background: var(--rv-cream); font-size: 11px; text-align: center; }
.m-gal { position: relative; }
.m-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; background: #fff; position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--rv-line); }
.m-chips::-webkit-scrollbar { display: none; }
.m-chips button { flex: none; font-size: 11.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--rv-line); background: #fff; white-space: nowrap; }
.m-chips button.is-on { background: var(--rv-plum); color: #fff; border-color: var(--rv-plum); }
.m-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-track::-webkit-scrollbar { display: none; }
.m-slide { scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rv-sand); }
.m-slide > img { width: 100%; height: 100%; object-fit: cover; }
.m-slide .rv-caption { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
.m-slide .rv-caption h5 { font-size: 18px; }
.m-slide .rv-scrub { height: 100%; }
.m-slide .rv-scrub video { height: 100%; aspect-ratio: auto; }
.m-slide .rv-scrub .bar { left: 12px; right: 12px; bottom: 12px; }
.m-prog { margin: 0 16px; }
.m-count { font-size: 11px; color: var(--rv-muted); text-align: right; padding: 6px 16px 0; }
.m-buy { padding: 16px; }
.m-buy .rv-title { font-size: 26px; }
.m-buy .rv-rail { grid-auto-columns: 62%; }

/* ---------- small screens: book chrome ---------- */
@media (max-width: 1100px) {
  .concept-row { grid-template-columns: minmax(0, 1fr); }
  .sec-head, .board-head, .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 700px) {
  .book { padding: 0 16px 120px; }
  .book-bar { padding: 10px 16px; }
  .hero h1 { font-size: 42px; }
  .sec-title { font-size: 34px; }
  .phone { width: 100%; max-width: 390px; }
}

/* ---------- additions ---------- */
.asset-note {
  position: absolute; z-index: 5; right: 12px; bottom: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.01em;
  background: #fff; color: var(--c-test); border: 1px dashed var(--c-test);
  padding: 3px 7px; border-radius: 3px;
}
.pins-off .asset-note { display: none; }

.concept-mobile { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 48px; }
.mobile-notes { padding-top: 40px; max-width: 620px; }
.mobile-notes h3 { font-family: var(--f-serif); font-weight: 400; font-size: 30px; margin: 0 0 20px; }
.mobile-notes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mobile-notes li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; }
.mobile-notes li p { margin: 0; font-size: 15px; }
.mobile-notes li b { font-weight: 600; }
.mobile-notes .tag { justify-content: center; }

@media (max-width: 1100px) {
  .concept-mobile { grid-template-columns: minmax(0, 1fr); }
  .mobile-notes { padding-top: 0; }
}
.rv-scale[hidden] { display: none; }
.board-head { align-items: start; }
.rv-buy .mk-pin { top: -17px !important; right: 0; }
.rv-buy .rv-cards > .mk-pin { top: 16px !important; }
.rv-buy .rv-ugc > .mk-pin { top: 18px !important; right: 76px; }
.rv-buy .rv-card--swatch > .mk-pin { top: 22px !important; right: 36px; }
.frame-tools { display: flex; gap: 16px; align-items: center; }
.frame-tools button { font-family: var(--f-mono); font-size: 12px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--c-ink); }
.mock-viewport.is-expanded { height: auto; overflow: visible; }
.rv-scrub .note { top: 48px; left: 14px; right: auto; }
.placement { min-width: 640px; }
