/* ==========================================================================
   NNP RAISINS — NEWS POST, FI EUROPE PARIS 2025: THE TOWER (option G, v1,
   2026-10-05). Loaded by news/fi-europe-paris-2025/ only, after site.css.

   Paris at night in December. A winter sky, the Eiffel Tower lit gold at
   full height, the rooftops at the foot, snow. The tower and the roofs
   are renders on solid black laid over the sky with mix-blend-mode:
   screen; the sparkle is a dot layer masked by the tower's luminance.

   ⚠ THE BASE STATE IS THE READABLE DOCUMENT (GOTCHAS): the tower lit
     behind the title, then the sentences, the prints and the facts in a
     column. `.tw-live` (desktop, one pinned scene) and `.tw-flat`
     (phone) come from post-tower.js.
   ⚠ LIGHT: two images, blend modes, transforms and opacity; snow and
     twinkle are keyframes on their own layers. No filter, no
     backdrop-filter. `isolation: isolate` on the stage keeps the blend
     inside it (otherwise the masthead blends too).
   ⚠ NO CSS TRANSITION on anything the script tweens. Nothing needs :hover.
   ========================================================================== */

.tw-dark-page, .tw-dark-page body { background: #05070f; }
.tw-dark-page body { padding-top: 0; }
.tw { --tw-sky: #05070f; --tw-sky-2: #0c1230; --tw-horizon: #2a1e52; --tw-gold: #f0c66a; --tw-gold-dp: #b8862e;
      --tw-cx: 66vw; --tw-h: 100vh;
      position: relative; background: var(--tw-sky); color: var(--chalk); overflow-x: clip; }

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

/* ------------------------------------------------------------- type ---- */
.tw-kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--tw-gold); margin: 0 0 18px; }
.tw-h1 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(56px, 7.4vw, 128px); line-height: .88; letter-spacing: -.055em; margin: 0; text-wrap: nowrap; }
.tw-ln { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.tw-ln > span { display: inline-block; }
.tw-accent > span { color: var(--tw-gold); }
.tw-lead { margin: 22px 0 0; max-width: 38ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--chalk-dim); }
.tw-h2 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(48px, 7.4vw, 132px); line-height: .9; letter-spacing: -.055em; margin: 0; text-wrap: balance; }
.tw-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.tw-h2 .w > span { display: inline-block; }
.tw-p { position: relative; margin: 0; padding-left: 52px; max-width: 42ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--chalk); }
.tw-n { position: absolute; left: 0; top: .55em; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--tw-gold); }
.tw-n::after { content: ''; position: absolute; left: 0; top: 1.9em; width: 24px; height: 1px; background: var(--tw-gold); opacity: .6; }
.tw-facts { margin: 26px 0 0 52px; display: grid; gap: 10px; }
.tw-facts > div { display: flex; gap: 14px; align-items: baseline; padding: 9px 0 8px; border-top: 1px solid rgba(242,237,248,.14); }
.tw-facts dt { flex: 0 0 64px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tw-gold); }
.tw-facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.15; letter-spacing: -.03em; color: #fff; }

/* ======================================================= THE NIGHT (base) */
.tw-scene { position: relative; }
.tw-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 30px; padding: calc(var(--mast-h, 90px) + 24px) var(--spine) 60px; overflow: hidden; }
.tw-col { display: contents; }
.tw-head { order: 1; } .tw-tower { order: 2; } [data-tw-slot="p1"] { order: 3; } .tw-prints { order: 4; } [data-tw-slot="p2"] { order: 5; } .tw-end { order: 6; }
.tw-sky { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--tw-sky) 0%, var(--tw-sky-2) 42%, var(--tw-horizon) 80%, #1a1430 100%); }
.tw-stars { position: absolute; inset: -200px 0 0 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) .8px, rgba(255,255,255,0) 1.6px), radial-gradient(circle, rgba(255,255,255,.5) .7px, rgba(255,255,255,0) 1.4px), radial-gradient(circle, rgba(226,183,255,.6) 1px, rgba(255,255,255,0) 2px);
  background-size: 230px 230px, 170px 170px, 410px 410px; background-position: 0 0, 70px 40px, 120px 200px;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,0) 90%); mask: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,0) 90%); }
.tw-glow { position: absolute; left: calc(var(--tw-cx) - 50vmax); top: 10%; width: 100vmax; height: 100vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240,198,106,.22) 0%, rgba(120,70,170,.16) 30%, rgba(5,7,15,0) 62%); }
/* ⚠ The blend sits on the BOX, not the image: the box is a stacking context (z-index, clip-path, transforms),
   and an image blending inside it would only see the box's own transparent backdrop — a black rectangle. */
.tw-tower { position: relative; width: min(100%, 520px); margin: 0 auto; mix-blend-mode: screen; }
.tw-tower-img { display: block; width: 100%; height: auto; }
/* the sparkle: two dot layers masked by the tower's own light */
.tw-sparkle { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background-image: radial-gradient(circle, #fff 1px, rgba(255,255,255,0) 2.4px), radial-gradient(circle, #fffbe8 .8px, rgba(255,255,255,0) 2px);
  background-size: 23px 29px, 37px 31px; background-position: 0 0, 11px 7px;
  -webkit-mask: url("../img/news-fi25-tower-640.webp") center / 100% 100% no-repeat; mask: url("../img/news-fi25-tower-640.webp") center / 100% 100% no-repeat;
  -webkit-mask-mode: luminance; mask-mode: luminance; }
.tw-sparkle--b { background-size: 31px 23px, 41px 43px; background-position: 5px 13px, 19px 2px; }
.tw-live .tw-sparkle--a, .tw-flat .tw-sparkle--a { animation: tw-twinkle-a 1.1s steps(2) infinite; }
.tw-live .tw-sparkle--b, .tw-flat .tw-sparkle--b { animation: tw-twinkle-b 1.7s steps(3) infinite; }
@keyframes tw-twinkle-a { 0% { background-position: 0 0, 11px 7px; } 50% { background-position: 9px 14px, 24px 19px; } 100% { background-position: 17px 5px, 3px 26px; } }
@keyframes tw-twinkle-b { 0% { background-position: 5px 13px, 19px 2px; } 33% { background-position: 21px 3px, 7px 29px; } 66% { background-position: 12px 20px, 33px 15px; } 100% { background-position: 2px 9px, 15px 37px; } }
.tw-roofs { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none; overflow: hidden; mix-blend-mode: screen; opacity: .85; }
/* the box is taller than the roofs so the image's own black sky, not the box's edge, ends them (a shorter box cut the buildings with a hard line) */
.tw-roofs img { position: absolute; left: 50%; bottom: 0; width: max(100%, 1400px); height: auto; transform: translateX(-50%); }
.tw-snow { position: absolute; left: 0; right: 0; top: -300px; bottom: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 1.1px, rgba(255,255,255,0) 2.4px), radial-gradient(circle, rgba(255,255,255,.6) .9px, rgba(255,255,255,0) 2px);
  background-size: 210px 210px, 290px 290px; background-position: 0 0, 90px 120px; }
.tw-snow--b { opacity: .28; background-size: 150px 150px, 340px 340px; background-position: 40px 60px, 160px 20px; }
.tw-live .tw-snow--a, .tw-flat .tw-snow--a { animation: tw-snow 18s linear infinite; }
.tw-live .tw-snow--b, .tw-flat .tw-snow--b { animation: tw-snow 29s linear infinite; }
@keyframes tw-snow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50px, 300px, 0); } }
.tw-grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; background: url("../img/grain-256.png") repeat; background-size: 160px 160px; }
.tw-col > *, .tw-prints, .tw-tower { position: relative; z-index: 2; }
.tw-hint { display: none; }

/* the prints (base: side by side) */
.tw-prints { display: flex; gap: 24px; align-items: flex-end; justify-content: center; }
.tw-print { position: relative; margin: 0; }
.tw-print--a { width: min(44%, 300px); transform: rotate(-3deg); }
.tw-print--b { width: min(40%, 260px); transform: rotate(2.5deg); margin-bottom: 26px; }
.tw-print-in { padding: 9px 9px 0; background: linear-gradient(165deg, #fffdf7, #efeadd); box-shadow: 0 40px 80px -28px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.08); }
.tw-print-in img { display: block; width: 100%; height: auto; }
.tw-print figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 11px 9px 11px; background: linear-gradient(165deg, #fffdf7, #efeadd);
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6a6383; }
.tw-print figcaption span:first-child { color: #16141c; }
.tw-print figcaption span:last-child { margin-left: auto; text-align: right; }

/* ====================================================== THE NIGHT (live) */
.tw-live .tw-scene { height: 520vh; }
.tw-live .tw-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.tw-live .tw-stage { display: block; height: 100%; padding: 0; overflow: hidden; }
.tw-live .tw-col { display: grid; position: absolute; z-index: 5; left: max(var(--gut), calc(50vw - 760px)); top: 47%; transform: translateY(-50%); width: min(34vw, 500px); }
.tw-live .tw-col > * { grid-area: 1 / 1; align-self: center; margin: 0; }
/* the tower fills the height: 2:3 image, so its width is 2/3 of the stage height */
.tw-live .tw-tower { position: absolute; z-index: 1; left: calc(var(--tw-cx) - var(--tw-h) * .333); top: 0; width: calc(var(--tw-h) * .6667); height: var(--tw-h); margin: 0; }
.tw-live .tw-tower-img { width: 100%; height: 100%; object-fit: cover; }
.tw-live .tw-roofs { z-index: 2; height: 80vh; -webkit-mask: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 14%, #000 56%); mask: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 14%, #000 56%); }
.tw-live .tw-prints { position: absolute; z-index: 4; left: calc(var(--tw-cx) - 18vw); top: auto; bottom: 6vh; width: 36vw; margin: 0; justify-content: center; align-items: flex-end; gap: 2vw; }
.tw-live .tw-print--a { width: min(17vw, 27vh); } .tw-live .tw-print--b { width: min(15vw, 24vh); }
.tw-live .tw-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); }
.tw-live .tw-hint i { display: inline-block; width: 1px; height: 18px; margin-right: 12px; vertical-align: middle; background: rgba(242,237,248,.5); }

/* ---------------------------------------------- the specification he keeps ---- */
.tw-after { position: relative; padding: clamp(50px, 8vh, 90px) 0 0; }
.tw-spec { margin: 0 auto; max-width: 980px; padding: 22px 26px 24px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(242,237,248,.16); color: var(--chalk); }
.tw-spec-k { margin: 0 0 14px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tw-gold); }
.tw-specs { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tw-specs dt { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--chalk-dim); margin: 0 0 6px; }
.tw-specs dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 1.8vw, 28px); line-height: 1; letter-spacing: -.03em; color: #fff; white-space: nowrap; }

/* ------------------------------------------------------ the next show ---- */
.tw-next { position: relative; padding: clamp(60px, 9vh, 120px) 0 clamp(100px, 15vh, 180px); }
.tw-next-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 96px); }
.tw-addr { margin: clamp(26px, 3.4vw, 44px) 0 0; max-width: 460px; display: grid; }
.tw-addr > div { display: grid; gap: 4px; padding: 12px 0 11px; border-top: 1px solid rgba(242,237,248,.14); }
.tw-addr > div:last-child { border-bottom: 1px solid rgba(242,237,248,.14); }
.tw-addr dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tw-gold); }
.tw-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; }
.tw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.tw-btn-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); }
.tw-btn-ghost:hover, .tw-btn-ghost:focus-visible { border-color: #fff; color: #fff; }
.tw-tilt-room { perspective: 1400px; }
.tw-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; }
.tw-poster img { display: block; width: 100%; height: auto; }
.tw-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) {
  .tw { --tw-cx: 50vw; }
  .tw-stage { padding-top: calc(var(--mast-h, 74px) + 16px); gap: 26px; }
  .tw-h1 { font-size: clamp(46px, 13.5vw, 66px); }
  .tw-lead { font-size: 16px; }
  .tw-p { padding-left: 40px; font-size: 16px; max-width: none; }
  .tw-facts { margin-left: 40px; }
  .tw-tower { width: 100%; margin: -10px auto 0; }
  .tw-roofs { height: 20%; }
  .tw-prints { gap: 16px; }
  .tw-print--a { width: 52%; } .tw-print--b { width: 44%; margin-bottom: 20px; }
  .tw-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-next-grid { grid-template-columns: minmax(0, 1fr); }
  .tw-tilt-room { order: -1; }
}
