/* ==========================================================================
   NNP RAISINS — NEWS POST, SIAL PARIS 2024: INSIDE THE STAND (v1, 2026-10-07).
   Loaded by news/sial-paris-2024/ only, after site.css.

   The stand panorama as a space: a WebGL canvas (post-stand.js, raw WebGL,
   one quad, two textures — the photograph and its depth map) displaces the
   picture by depth under the cursor, lights it, hazes the far wall and
   softens it with the scroll's speed, while the scroll walks the camera
   through the stand. The title thickens from hairline to black on the
   variable Bricolage. Below: an editorial two-up and the next show.

   ⚠ THE BASE STATE IS THE READABLE DOCUMENT (GOTCHAS): the photograph is
     an <img>; title, sentences, facts, two-up, next show follow in a
     column. `.st-live` / `.st-flat` come from post-stand.js; `.st-gl-on`
     only once the canvas has drawn, and only then is the <img> hidden.
   ⚠ The title's weight is `--st-w`, tweened by the script through
     `font-variation-settings`; the font-face is the variable file the
     page preloads. Never replace it with the static 800 poster file.
   ⚠ Two colours: the violet-black ground and the chalk; gold for the
     numbers and the kickers only.
   ⚠ LIGHT: the canvas is the only moving picture; everything else is
     transform and opacity. No filter, no backdrop-filter.
   ⚠ NO CSS TRANSITION on anything the script tweens.
   ========================================================================== */

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

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

/* ------------------------------------------------------------- type ---- */
.st-kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--st-gold); margin: 0 0 18px; }
.st-h1 { font-family: var(--display); font-weight: 800; font-variation-settings: 'wght' var(--st-w), 'opsz' 96; color: #fff;
  font-size: clamp(64px, 11.5vw, 210px); line-height: .86; letter-spacing: -.05em; margin: 0; text-wrap: nowrap; }
.st-ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.st-ln > span { display: inline-block; }
.st-accent > span { color: var(--st-gold); }
.st-lead { margin: 22px 0 0; max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--chalk); text-shadow: 0 2px 18px rgba(11,10,20,.8); }
.st-h2 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(44px, 6.4vw, 112px); line-height: .92; letter-spacing: -.05em; margin: 0; text-wrap: balance; }
.st-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.st-h2 .w > span { display: inline-block; }
.st-p { position: relative; margin: 0; padding-left: 52px; max-width: 44ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--chalk); text-shadow: 0 2px 18px rgba(11,10,20,.85); }
.st-n { position: absolute; left: 0; top: .55em; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--st-gold); }
.st-n::after { content: ''; position: absolute; left: 0; top: 1.9em; width: 24px; height: 1px; background: var(--st-gold); opacity: .6; }
.st-facts { margin: 24px 0 0 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.st-facts > div { display: grid; gap: 3px; padding: 8px 0 0; border-top: 1px solid rgba(242,237,248,.18); }
.st-facts dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--st-gold); }
.st-facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.15; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 14px rgba(11,10,20,.85); }

/* ================================================= INSIDE THE STAND (base) */
.st-scene { position: relative; }
.st-stage { position: relative; display: flex; flex-direction: column; gap: 30px; padding: calc(var(--mast-h, 90px) + 24px) var(--spine) 60px; overflow: hidden; }
.st-col { display: contents; }
.st-head { order: 1; } .st-view { order: 2; } [data-st-slot="p1"] { order: 3; } [data-st-slot="p2"] { order: 4; } .st-end { order: 5; }
.st-view { position: relative; margin: 0 calc(-1 * var(--spine)); overflow: hidden; background: #0b0a14; }
.st-img { display: block; width: 100%; height: auto; }
.st-gl { display: none; }
.st-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,10,20,.35) 0%, rgba(11,10,20,0) 30%, rgba(11,10,20,0) 70%, rgba(11,10,20,.6) 100%); }
/* a trace of grain only: at .08 over a moving photograph it read as noise and made him dizzy (2026-10-07) */
.st-grain { position: absolute; inset: 0; pointer-events: none; opacity: .015; background: url("../img/grain-256.png") repeat; background-size: 160px 160px; }
.st-col > * { position: relative; z-index: 2; }
.st-where, .st-hint { display: none; }

/* ================================================= INSIDE THE STAND (live) */
.st-live .st-scene { height: 620vh; }
.st-live .st-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.st-live .st-stage { display: block; height: 100%; padding: 0; overflow: hidden; }
.st-live .st-view { position: absolute; inset: 0; z-index: 0; margin: 0; }
.st-live .st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.st-live .st-gl, .st-flat .st-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.st-gl-on .st-gl { opacity: 1; }
.st-gl-on .st-img { visibility: hidden; }
.st-live .st-veil { background:
  linear-gradient(180deg, rgba(11,10,20,.55) 0%, rgba(11,10,20,0) 24%, rgba(11,10,20,0) 64%, rgba(11,10,20,.78) 100%),
  linear-gradient(90deg, rgba(11,10,20,.35) 0%, rgba(11,10,20,0) 40%); }
/* the words */
.st-live .st-col { display: grid; position: absolute; z-index: 5; left: max(var(--gut), calc(50vw - 760px)); right: max(var(--gut), calc(50vw - 760px)); bottom: 8vh; pointer-events: none; }
.st-live .st-col > * { grid-area: 1 / 1; align-self: end; margin: 0; }
.st-live .st-head { max-width: 100%; }
.st-live .st-head .st-lead { max-width: 40ch; }
.st-live .st-end { display: grid; grid-template-columns: minmax(0, 44ch) auto; column-gap: 5vw; align-items: end; }
.st-live .st-end .st-facts { margin: 0 0 .3em; grid-template-columns: repeat(2, auto); gap: 10px 36px; }
.st-live .st-end .st-facts dd { white-space: nowrap; }
/* where the camera is: a small locator top right */
.st-live .st-where { display: block; position: absolute; z-index: 5; right: max(var(--gut), calc(50vw - 760px)); top: calc(var(--mast-h, 90px) + 3vh); margin: 0; opacity: 0;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85);
  padding: 8px 12px 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 2px; background: rgba(11,10,20,.55); }
.st-live .st-where b { color: var(--st-gold); margin-right: 10px; }
.st-live .st-hint { display: block; position: fixed; left: 50%; bottom: 14px; z-index: 6; margin: 0; transform: translateX(-50%); white-space: nowrap; opacity: 0;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,237,248,.7); }
.st-live .st-hint i { display: inline-block; width: 1px; height: 18px; margin-right: 12px; vertical-align: middle; background: rgba(242,237,248,.5); }

/* the phone: the scene as a hero band, the words under it */
.st-flat .st-view { aspect-ratio: 4 / 3; }
.st-flat .st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ at the stand: the two-up */
.st-after { position: relative; padding: clamp(70px, 10vh, 140px) 0 0; }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
.st-shot { margin: 0; }
.st-shot-in { overflow: hidden; clip-path: inset(0 round 4px); border-radius: 4px; box-shadow: 0 60px 120px -40px rgba(0,0,0,.95); }
.st-shot-in img { display: block; width: 100%; height: auto; }
.st-shot figcaption, .st-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 14px 2px 0;
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,237,248,.55); }
.st-shot figcaption span:first-child, .st-card figcaption span:first-child { color: #fff; }
.st-two-copy .st-h2 { font-size: clamp(40px, 4.6vw, 76px); }
.st-two-p { margin: clamp(20px, 2.4vw, 32px) 0 0; max-width: 42ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--chalk-dim); }
.st-card { margin: clamp(28px, 3.4vw, 48px) 0 0; width: min(60%, 300px); }
.st-card-in { overflow: hidden; border-radius: 4px; box-shadow: 0 40px 80px -28px rgba(0,0,0,.95); }
.st-card-in img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------ the next show ---- */
.st-next { position: relative; padding: clamp(80px, 12vh, 160px) 0 clamp(100px, 15vh, 180px); }
.st-next-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 96px); }
.st-addr { margin: clamp(26px, 3.4vw, 44px) 0 0; max-width: 460px; display: grid; }
.st-addr > div { display: grid; gap: 4px; padding: 12px 0 11px; border-top: 1px solid rgba(242,237,248,.14); }
.st-addr > div:last-child { border-bottom: 1px solid rgba(242,237,248,.14); }
.st-addr dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--st-gold); }
.st-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; }
.st-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.st-btn-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); }
.st-btn-ghost:hover, .st-btn-ghost:focus-visible { border-color: #fff; color: #fff; }
.st-tilt-room { perspective: 1400px; }
.st-poster { position: relative; margin: 0; border-radius: 8px; overflow: hidden; clip-path: inset(0 round 8px); transform-style: preserve-3d;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1) inset; }
.st-poster img { display: block; width: 100%; height: auto; }
.st-poster-sheen { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 48%, rgba(255,255,255,0) 58%); }

/* ------------------------------------------------------------ phone ---- */
@media (max-width: 900px) {
  .st-stage { padding-top: calc(var(--mast-h, 74px) + 16px); gap: 26px; }
  .st-h1 { font-size: clamp(56px, 17vw, 84px); }
  .st-lead { font-size: 16px; }
  .st-p { padding-left: 40px; font-size: 16px; max-width: none; }
  .st-facts { margin-left: 40px; }
  .st-view { margin: 0 calc(-1 * var(--gut, 20px)); }
  .st-two { grid-template-columns: minmax(0, 1fr); }
  .st-card { width: 64%; }
  .st-next-grid { grid-template-columns: minmax(0, 1fr); }
  .st-tilt-room { order: -1; }
}
