/* ==========================================================================
   NNP RAISINS - NEWS POST, SIAL PARIS 2026: J. THE REVEAL
   (preview, round six, 2026-10-28, night). Loaded by
   news/sial-paris-2026/preview-reveal.html only, after site.css. Dark.
   Prefix `rv`.

   His seven frames and the counter clip, full screen, one at a time: the
   scroll paints each over the one before with a ragged ink stroke rising
   from the bottom (a WebGL quad, post-reveal.js). The first frame carries
   the kicker, the headline and one line; after that the only words are
   the camera's day and time and the count. Then the close, with the facts.
   Ref: Cartier - Le Choeur des Pierres (SOTD 2026-10-20, the gouache
   reveal), Tengile MalaMala (big background images, cinematic pacing).

   BASE STATE = THE READABLE DOCUMENT (no script, reduced motion, phone,
   no WebGL): the headline, the line, the eight frames in a column with
   their captions, the close. `.rv-live` comes from post-reveal.js once the
   first two textures are in (wide only). NO CSS TRANSITION on anything
   the script tweens. Grain at a trace.
   ========================================================================== */

.rv-dark-page, .rv-dark-page body { background: #07060d; }
.rv-dark-page body { padding-top: 0; }
.rv { --rv-bg: #07060d; --rv-gold: #f3c46b; position: relative; background: var(--rv-bg); color: var(--chalk); overflow-x: clip; }

/* ------------------------------------------------------- masthead ---- */
.rv-dark-page .masthead:not(.is-stuck) { background: transparent; border-bottom-color: transparent; }
.rv-dark-page .masthead.is-stuck { background: rgba(7,6,13,.92); border-bottom-color: rgba(242,237,248,.12); }
.rv-dark-page .masthead .brand { color: #fff; }
.rv-dark-page .masthead .navtoggle { color: #fff; border-color: rgba(255,255,255,.35); }
@media (min-width: 1001px) {
  .rv-dark-page .masthead .mainnav a:not(.btn) { color: var(--chalk-dim); }
  .rv-dark-page .masthead:not(.is-stuck) .mainnav a:not(.btn) { color: #fff; text-shadow: 0 1px 10px rgba(7,6,13,.85); }
  .rv-dark-page .masthead:not(.is-stuck) .brand { filter: drop-shadow(0 1px 8px rgba(7,6,13,.8)); }
  .rv-dark-page .masthead .mainnav a:not(.btn):hover,
  .rv-dark-page .masthead .mainnav a:not(.btn)[aria-current="page"] { color: #fff; }
  .rv-dark-page .masthead .btn-primary { background: var(--chalk); color: var(--violet-dp); }
  .rv-dark-page .masthead .btn-primary::before { background: #fff; }
  .rv-dark-page .masthead :focus-visible { outline-color: #fff; }
}

/* ------------------------------------------------------------- type ---- */
.rv-kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--rv-gold); margin: 0 0 18px; }
.rv-h1 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(44px, 6.8vw, 112px); line-height: .9; letter-spacing: -.05em; margin: 0; text-wrap: balance; text-shadow: 0 2px 6px rgba(7,6,13,.55), 0 6px 40px rgba(7,6,13,.9); }
.rv-h1 .accent, .rv-h2 .accent { color: var(--rv-gold); }
.rv-h1-l { display: block; }
.rv-h1 .accent { color: var(--violet-lt); }
.rv-h2 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(36px, 4.8vw, 80px); line-height: .94; letter-spacing: -.05em; margin: 0; text-wrap: balance; }
.rv-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.rv-h2 .w > span { display: inline-block; }
.rv-lead { margin: 20px 0 0; max-width: 46ch; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; color: #fff; text-shadow: 0 1px 4px rgba(7,6,13,.7), 0 2px 18px rgba(7,6,13,.9); }
.rv-capt { margin: 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.4; color: #fff; text-shadow: 0 1px 4px rgba(7,6,13,.7), 0 2px 16px rgba(7,6,13,.9); }
.rv-count { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin: 0; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(7,6,13,.9); }
.rv-count { color: var(--rv-gold); }

/* ================================================================ BASE ==== */
.rv-scene { position: relative; }
.rv-pin { position: relative; padding: calc(var(--mast-h, 90px) + 40px) var(--spine) 40px; display: grid; gap: 30px; }
.rv-top { order: 1; }
.rv-stage { order: 2; }
.rv-canvas, .rv-grain, .rv-tag { display: none; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 760px; }
.rv-item { margin: 0; }
.rv-fig { margin: 0; }
.rv-fig-in { position: relative; border-radius: 4px; overflow: hidden; background: #15121c; }
.rv-fig-in img { display: block; width: 100%; height: auto; }
.rv-fig-in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.rv-item.is-playing .rv-fig-in video { opacity: 1; }
.rv-fig figcaption { padding: 10px 2px 0; }
.rv-fig figcaption .rv-capt { font-size: 15px; text-shadow: none; }
.rv-fig figcaption .rv-clip { color: var(--rv-gold); }

/* ================================================================ LIVE ==== */
.rv-live .rv-scene { height: var(--rv-scene-h, 800vh); }
.rv-live .rv-pin { position: sticky; top: 0; height: 100vh; padding: 0; overflow: hidden; display: block; }
.rv-live .rv-pin::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,6,13,.66) 0%, rgba(7,6,13,.22) 12%, rgba(7,6,13,0) 24%, rgba(7,6,13,0) 56%, rgba(7,6,13,.42) 78%, rgba(7,6,13,.8) 100%); }
.rv-live .rv-stage { position: absolute; inset: 0; }
.rv-live .rv-list { display: none; }
.rv-live .rv-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-live .rv-grain { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .02; background: url("../img/grain-256.png") repeat; background-size: 160px 160px; }
.rv-live .rv-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
/* the hero copy in the home hero's type (his call 2026-10-29: "just use home pages decent text design"): centred, the display headline on two lines with the second in violet, the lead in chalk-dim under it, no eyebrow, no hairline, on the page's shared veil */
.rv-live .rv-top { position: absolute; left: var(--spine); right: var(--spine); bottom: 7vh; z-index: 5; text-align: center; pointer-events: none; }
.rv-live .rv-top > * { margin-inline: auto; }
.rv-live .rv-h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: .94; letter-spacing: -.03em; color: var(--chalk); text-shadow: 0 1px 2px rgba(7,6,13,.45), 0 4px 30px rgba(7,6,13,.35); }
.rv-live .rv-lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; max-width: 52ch; margin: 18px auto 0; color: var(--chalk-dim); text-shadow: 0 1px 2px rgba(7,6,13,.45); }
/* the captions the same way: the count as the home's small label, the caption as a lead, centred */
.rv-live .rv-tag { position: absolute; left: var(--spine); right: var(--spine); bottom: 7vh; opacity: 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.rv-live .rv-tag .rv-count { font-size: 11.5px; letter-spacing: .14em; color: var(--chalk-dim); text-shadow: 0 1px 2px rgba(7,6,13,.45); }
.rv-live .rv-tag .rv-capt { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.08; letter-spacing: -.03em; max-width: 980px; text-wrap: balance; color: #fff; text-shadow: 0 1px 2px rgba(7,6,13,.45), 0 2px 20px rgba(7,6,13,.35); }
@media (max-height: 760px) {
  .rv-live .rv-top { bottom: 5vh; }
  .rv-live .rv-h1 { font-size: clamp(36px, 5vw, 60px); }
  .rv-live .rv-lead { font-size: 15px; margin-top: 12px; }
  .rv-live .rv-tag { bottom: 5vh; }
  .rv-live .rv-tag .rv-capt { font-size: 22px; }
}

/* ------------------------------------------------------ the close ---- */
/* the close: deep violet, lighter than the page (his two notes: the near-black band was too dark, the paper one he did not like) */
.rv-next { position: relative; overflow: clip; padding: clamp(80px, 12vh, 160px) 0 clamp(100px, 15vh, 180px); color: var(--chalk);
  background: radial-gradient(60% 70% at 72% 40%, rgba(120,60,190,.42) 0%, rgba(55,18,94,0) 70%), linear-gradient(180deg, #2a1150 0%, #37125e 100%); }
.rv-next .rv-kick { color: var(--rv-gold); }
.rv-next .rv-h2 { color: #fff; }
.rv-next-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 96px); }
.rv-next-p { margin: 22px 0 0; max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(242,237,248,.78); }
.rv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.rv-btn-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); }
.rv-btn-ghost:hover, .rv-btn-ghost:focus-visible { border-color: #fff; color: #fff; }
.rv-addr { margin: 0; display: grid; }
.rv-addr > div { display: grid; gap: 4px; padding: 12px 0 11px; border-top: 1px solid rgba(242,237,248,.18); }
.rv-addr > div:last-child { border-bottom: 1px solid rgba(242,237,248,.18); }
.rv-addr dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--rv-gold); }
.rv-addr dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.12; letter-spacing: -.03em; color: #fff; }

/* ------------------------------------------------------------ phone ---- */
@media (max-width: 900px) {
  .rv-pin { padding: calc(var(--mast-h, 74px) + 24px) var(--gut, 20px) 28px; gap: 24px; }
  .rv-lead { font-size: 16px; }
  .rv-list { gap: 22px; }
  .rv-next-grid { grid-template-columns: minmax(0, 1fr); }
}
