/* ==========================================================================
   NNP RAISINS — NEWS POST, ANUGA COLOGNE 2025: THE RHINE (v1, 2026-10-05).
   Loaded by news/anuga-cologne-2025/ only, after site.css.

   Cologne at dusk in October: one photoreal render of the Hohenzollern
   bridge and the cathedral across the Rhine, full-bleed, panned and
   zoomed slowly by the scroll; a dark veil under the text column; two
   drifting haze layers; the stand photographs as large prints in front.

   ⚠ THE BASE STATE IS THE READABLE DOCUMENT (GOTCHAS): the view behind
     the title, then the sentences, the prints and the facts in a column.
     `.cg-live` (desktop, one pinned scene) and `.cg-flat` (phone) come
     from post-rhine.js.
   ⚠ LIGHT: one image on transform only; the veil and haze are gradients;
     no filter, no backdrop-filter.
   ⚠ NO CSS TRANSITION on anything the script tweens. Nothing needs :hover.
   ========================================================================== */

.cg-dark-page, .cg-dark-page body { background: #0a0c16; }
.cg-dark-page body { padding-top: 0; }
.cg { --cg-bg: #0a0c16; --cg-amber: #f2b85a; --cg-amber-dp: #b8812a;
      position: relative; background: var(--cg-bg); color: var(--chalk); overflow-x: clip; }

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

/* ------------------------------------------------------------- type ---- */
.cg-kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cg-amber); margin: 0 0 18px; }
.cg-h1 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(60px, 8.4vw, 148px); line-height: .88; letter-spacing: -.055em; margin: 0; text-wrap: nowrap; }
.cg-ln { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.cg-ln > span { display: inline-block; }
.cg-accent > span { color: var(--cg-amber); }
.cg-lead { margin: 22px 0 0; max-width: 38ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--chalk-dim); }
.cg-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; }
.cg-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.cg-h2 .w > span { display: inline-block; }
.cg-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); }
.cg-n { position: absolute; left: 0; top: .55em; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--cg-amber); }
.cg-n::after { content: ''; position: absolute; left: 0; top: 1.9em; width: 24px; height: 1px; background: var(--cg-amber); opacity: .6; }
.cg-facts { margin: 26px 0 0 52px; display: grid; gap: 10px; }
.cg-facts > div { display: flex; gap: 14px; align-items: baseline; padding: 9px 0 8px; border-top: 1px solid rgba(242,237,248,.16); }
.cg-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(--cg-amber); }
.cg-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 RHINE (base) */
.cg-scene { position: relative; }
.cg-stage { position: relative; display: flex; flex-direction: column; gap: 30px; padding: calc(var(--mast-h, 90px) + 24px) var(--spine) 60px; overflow: hidden; }
.cg-col { display: contents; }
.cg-head { order: 1; } .cg-view { order: 2; } [data-cg-slot="p1"] { order: 3; } .cg-prints { order: 4; } [data-cg-slot="p2"] { order: 5; } .cg-end { order: 6; }
.cg-view { position: relative; margin: 0 calc(-1 * var(--spine)); overflow: hidden; }
.cg-view-img { display: block; width: 100%; height: auto; }
.cg-haze { position: absolute; left: -20%; right: -20%; top: 0; bottom: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, rgba(255,210,150,0) 0%, rgba(255,210,150,.12) 30%, rgba(255,210,150,0) 50%, rgba(255,220,180,.1) 72%, rgba(255,210,150,0) 100%); }
.cg-haze--b { opacity: .3; background: linear-gradient(90deg, rgba(255,255,255,0) 10%, rgba(255,255,255,.1) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.08) 85%, rgba(255,255,255,0) 100%); }
.cg-live .cg-haze--a, .cg-flat .cg-haze--a { animation: cg-drift 28s ease-in-out infinite alternate; }
.cg-live .cg-haze--b, .cg-flat .cg-haze--b { animation: cg-drift 41s ease-in-out infinite alternate-reverse; }
@keyframes cg-drift { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, 0, 0); } }
.cg-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,22,.55) 0%, rgba(10,12,22,0) 30%, rgba(10,12,22,0) 70%, rgba(10,12,22,.75) 100%); }
.cg-grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; background: url("../img/grain-256.png") repeat; background-size: 160px 160px; }
.cg-col > *, .cg-prints { position: relative; z-index: 2; }
.cg-hint { display: none; }

/* the prints (base: the stand wide, the two small ones under it) */
.cg-prints { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.cg-print { position: relative; margin: 0; }
.cg-print--stand { grid-column: 1 / -1; transform: rotate(-1.2deg); }
.cg-print--aisle { transform: rotate(1.6deg); }
.cg-print--card { transform: rotate(-2deg); margin-top: 26px; }
.cg-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); }
.cg-print-in img { display: block; width: 100%; height: auto; }
.cg-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; }
.cg-print figcaption span:first-child { color: #16141c; }
.cg-print figcaption span:last-child { margin-left: auto; text-align: right; }

/* ======================================================= THE RHINE (live) */
.cg-live .cg-scene { height: 520vh; }
.cg-live .cg-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cg-live .cg-stage { display: block; height: 100%; padding: 0; overflow: hidden; }
.cg-live .cg-view { position: absolute; z-index: 0; inset: 0; margin: 0; }
.cg-live .cg-view-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cg-live .cg-veil { background:
  linear-gradient(90deg, rgba(10,12,22,.82) 0%, rgba(10,12,22,.62) 28%, rgba(10,12,22,.12) 50%, rgba(10,12,22,0) 65%),
  linear-gradient(180deg, rgba(10,12,22,.5) 0%, rgba(10,12,22,0) 26%, rgba(10,12,22,0) 72%, rgba(10,12,22,.7) 100%); }
.cg-live .cg-col { display: grid; position: absolute; z-index: 5; left: max(var(--gut), calc(50vw - 760px)); top: 50%; transform: translateY(-50%); width: min(34vw, 500px); }
.cg-live .cg-col > * { grid-area: 1 / 1; align-self: center; margin: 0; }
.cg-live .cg-prints { display: block; position: absolute; z-index: 4; left: 50vw; top: 0; width: 50vw; height: 100%; margin: 0; }
.cg-live .cg-print { position: absolute; }
.cg-live .cg-print--stand { left: 4vw; bottom: 9vh; width: min(34vw, 62vh); }
/* the three never cover each other's captions: the aisle sits above the card, both to the right of the stand's caption */
.cg-live .cg-print--aisle { left: 28vw; bottom: 37vh; width: min(19vw, 34vh); margin: 0; }
.cg-live .cg-print--card { left: 35vw; bottom: 5vh; width: min(12vw, 22vh); margin: 0; }
.cg-live .cg-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); }
.cg-live .cg-hint i { display: inline-block; width: 1px; height: 18px; margin-right: 12px; vertical-align: middle; background: rgba(242,237,248,.5); }

/* ------------------------------------------------- what is published ---- */
.cg-after { position: relative; padding: clamp(50px, 8vh, 90px) 0 0; }
.cg-spec { margin: 0 auto; max-width: 980px; padding: 24px 26px 26px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(242,237,248,.16); color: var(--chalk);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 28px; align-items: center; }
.cg-spec-k { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cg-amber); }
.cg-spec-p { margin: 0; max-width: 56ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--chalk); }

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