/**
 * Rethinking Water 2026 — conference page.
 *
 * Light, editorial, "flow of water" motion language in the Sciens design
 * system (Inter + a monospace accent voice for eyebrows/numerals), with one
 * immersive dark chapter — "What We Ignore", a pinned horizontal-scroll
 * sequence — as the signature interaction. Film grain over everything.
 *
 * Motion is layered: pure-CSS load choreography (works with JS off),
 * IntersectionObserver reveals, and GSAP scrub effects on top (hero
 * parallax, statement word-clarify, [data-parallax] drift, the pinned
 * chapter). Everything respects prefers-reduced-motion. Scoped under
 * .rw-page (+ a few page-template-scoped chrome overrides).
 */

.rw-page {
  --rw-orange: #EE7C23;
  --rw-orange-deep: #d96c14;
  --rw-navy: #16315f;
  --rw-navy-deep: #0d1f40;
  --rw-blue: #457FF9;
  --rw-ink: #14233f;
  --rw-muted: #707d92;
  --rw-line: #e6e9f0;
  --rw-bg: #ffffff;
  --rw-bg-alt: #f5f7fb;

  --rw-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --rw-ease: cubic-bezier(.16, 1, .3, 1);

  font-family: var(--sciens-font-main);
  color: var(--rw-ink);
  background: var(--rw-bg);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.rw-page *,
.rw-page *::before,
.rw-page *::after { box-sizing: border-box; }

.rw-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.rw-mono {
  font-family: var(--rw-mono);
  letter-spacing: 0.08em;
}

/* Shared placeholder atmospheres (until WordPress images are connected) */
.rw-ph { position: absolute; inset: 0; display: block; }
.rw-ph--0 {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(69,127,249,0.35), transparent 60%),
    linear-gradient(150deg, #1d3c6e, #0e2347);
}
.rw-ph--1 { background: linear-gradient(150deg, #2f7da3, #123a52); }
.rw-ph--2 { background: linear-gradient(150deg, #c96a18, #8a4708); }

/* Hero owns its top spacing — hide the global fixed-header spacer. */
.page-template-template-rethinking-water .sciens-header-spacer { display: none; }

/* ============================================================
   PAGE CHROME — glass nav, grain, progress bar, cursor
============================================================ */

/* Light glassmorphism on the fixed header (variable-driven override —
   global header styles untouched). */
.page-template-template-rethinking-water .sciens-site-header {
  --sciens-header-bg: rgba(255, 255, 255, 0.72);
  --sciens-header-border: rgba(20, 35, 63, 0.08);
  --sciens-header-border-light: rgba(20, 35, 63, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
}

/* Film grain — the finish layer. SVG turbulence tile, ~3.5% so it reads
   as texture, never as noise. */
.rw-grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  animation: rw-grain-shift 0.9s steps(2) infinite;
}
@keyframes rw-grain-shift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(1.2%, -0.8%); }
  100% { transform: translate(-0.6%, 1%); }
}
@media (prefers-reduced-motion: reduce) {
  .rw-grain { animation: none; }
}

/* Scroll progress — hairline capital-to-water gradient, above the header. */
.rw-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 10001;
  background: linear-gradient(90deg, var(--rw-blue), var(--rw-orange));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Custom cursor ring (injected by JS, fine pointers only). */
.rw-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1.5px solid rgba(238, 124, 35, 0.55);
  border-radius: 50%;
  z-index: 10002;
  pointer-events: none;
  transition: transform 0.25s var(--rw-ease), opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  opacity: 0;
}
.rw-cursor.is-on { opacity: 1; }
.rw-cursor.is-active {
  transform: scale(1.6);
  background: rgba(238, 124, 35, 0.08);
  border-color: rgba(238, 124, 35, 0.9);
}

/* ============================================================
   MOTION PRIMITIVES
============================================================ */

/* Load choreography (hero) — pure CSS, runs without JS. */
.rw-load {
  opacity: 0;
  transform: translateY(22px);
  animation: rw-load-in 1s var(--rw-ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rw-load-in { to { opacity: 1; transform: none; } }

/* Per-letter headline reveal — pure CSS. */
.rw-clip { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.rw-ltr {
  display: inline-block;
  transform: translateY(118%) rotate(2.5deg);
  animation: rw-ltr-in 0.9s var(--rw-ease) forwards;
  animation-delay: calc(0.12s + var(--i) * 0.034s);
}
@keyframes rw-ltr-in { to { transform: none; } }

/* Scroll reveal — JS-gated so content is never hidden without JS. */
html.rw-js .rw-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--rw-ease), transform 0.9s var(--rw-ease);
}
html.rw-js .rw-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rw-load, .rw-ltr { animation: none; opacity: 1; transform: none; }
  html.rw-js .rw-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   1. HERO
============================================================ */
.rw-hero {
  position: relative;
  overflow: hidden;
  min-height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7rem, 15vh, 10rem) 0 clamp(3.5rem, 7vh, 5.5rem);
  background:
    radial-gradient(140% 110% at 100% 0%, #eef4fd 0%, rgba(238,244,253,0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
  isolation: isolate;
}

/* Media layer — oversized so GSAP parallax never exposes edges. */
.rw-hero__media {
  position: absolute;
  inset: -10% 0 0 0;
  height: 114%;
  z-index: -1;
  will-change: transform;
}

/* Hero atmosphere — caustic light (no-video treatment).
   Drifting gradient pools + a soft turbulence shimmer + grain,
   faded toward the upper-left so the headline stays legible. */
.rw-caustics {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(112deg, transparent 4%, #000 52%);
          mask-image: linear-gradient(112deg, transparent 4%, #000 52%);
}
.rw-caustics__mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 52% at 74% 62%, rgba(69,127,249,0.50), transparent 70%),
    radial-gradient(32% 42% at 88% 38%, rgba(238,124,35,0.34), transparent 72%),
    radial-gradient(46% 56% at 56% 92%, rgba(22,49,95,0.40),  transparent 72%);
  filter: blur(40px) saturate(118%);
  animation: rw-mesh-drift 24s ease-in-out infinite alternate;
}
@keyframes rw-mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.07); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}
.rw-caustics__shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
.rw-caustics__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  .rw-caustics__mesh { animation: none; }
}

/* Video treatment — activates only when footage is set in the template */
.rw-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rw-hero__media.is-poster {
  background-size: cover;
  background-position: center;
}
.rw-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(195deg, rgba(13,31,64,0.30) 0%, rgba(13,31,64,0.72) 70%, rgba(13,31,64,0.9) 100%);
}
.rw-hero--video { background: var(--rw-navy-deep); }
.rw-hero--video .rw-hero__title,
.rw-hero--video .rw-hero__title-year { color: #fff; }
.rw-hero--video .rw-hero__tagline { color: rgba(255,255,255,0.85); }
.rw-hero--video .rw-hero__eyebrow { color: rgba(255,255,255,0.8); }
.rw-hero--video .rw-countdown__num { color: #fff; }
.rw-hero--video .rw-countdown__lbl { color: rgba(255,255,255,0.5); }
.rw-hero--video .rw-countdown,
.rw-hero--video .rw-countdown__unit { border-color: rgba(255,255,255,0.14); }
.rw-hero--video .rw-btn--text { color: rgba(255,255,255,0.85); }
.rw-hero--video .rw-hero__scroll-txt { color: rgba(255,255,255,0.55); }
.rw-hero--video .rw-hero__scroll-line::after { background: var(--rw-navy-deep); }

.rw-hero__inner { position: relative; z-index: 1; }

.rw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--rw-navy);
  margin: 0 0 1.8rem;
}
.rw-hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rw-orange);
  box-shadow: 0 0 0 4px rgba(238,124,35,0.15);
  animation: rw-pulse 2.4s ease-in-out infinite;
}
@keyframes rw-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(238,124,35,0.15); }
  50% { box-shadow: 0 0 0 7px rgba(238,124,35,0.05); }
}
@media (prefers-reduced-motion: reduce) { .rw-hero__eyebrow-dot { animation: none; } }
.rw-hero__eyebrow-sep { color: var(--rw-orange); }

.rw-hero__title {
  margin: 0;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-size: clamp(3.2rem, 10vw, 8rem);
  text-transform: uppercase;
}
.rw-hero__title-line { display: block; color: var(--rw-orange); }
.rw-hero__title-year {
  display: inline-block;
  color: var(--rw-navy);
  margin-top: 0.04em;
}

.rw-hero__tagline {
  margin: 1.9rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--rw-ink);
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.rw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

/* Countdown — flat, hairline, mono numerals */
.rw-countdown {
  display: inline-flex;
  margin-top: 3.2rem;
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
}
.rw-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 1.8rem 1.1rem 0;
  margin-right: 1.8rem;
  border-right: 1px solid var(--rw-line);
}
.rw-countdown__unit:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rw-countdown__num {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 300;            /* ultralight numerals vs heavy headline */
  letter-spacing: -0.02em;
  color: var(--rw-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rw-countdown__lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rw-muted);
}

/* Scroll cue — mono label + draining line */
.rw-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  z-index: 1;
}
.rw-hero__scroll-txt {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rw-muted);
}
.rw-hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--rw-orange), transparent);
  overflow: hidden;
  position: relative;
}
.rw-hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f4f8fe;
  animation: rw-drain 2.2s var(--rw-ease) infinite;
}
@keyframes rw-drain {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) { .rw-hero__scroll-line::after { animation: none; opacity: 0; } }

/* ---------- Buttons (flat, editorial) ---------- */
.rw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sciens-font-main);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.rw-btn svg { transition: transform 0.25s ease; }
.rw-btn:hover svg { transform: translateX(4px); }

.rw-btn--solid {
  background: var(--rw-navy);
  color: #fff;
  padding: 1.05rem 1.7rem;
  border-radius: 3px;
}
.rw-btn--solid:hover { background: var(--rw-orange); }

/* Text button: animated underline that draws on hover */
.rw-btn--text {
  color: var(--rw-navy);
  padding: 0.5rem 0;
  position: relative;
}
.rw-btn--text span { position: relative; }
.rw-btn--text span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--rw-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--rw-ease);
}
.rw-btn--text:hover span::after { transform: scaleX(1); }

.rw-btn--invert {
  background: #fff;
  color: var(--rw-navy);
  padding: 1.05rem 1.8rem;
  border-radius: 3px;
}
.rw-btn--invert:hover { background: var(--rw-orange); color: #fff; }

/* ============================================================
   SECTION SCAFFOLD
============================================================ */
.rw-section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; }
.rw-section--alt { background: var(--rw-bg-alt); }

.rw-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rw-orange);
  margin: 0 0 1rem;
  font-family: var(--rw-mono);
}
.rw-heading {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--rw-navy);
  margin: 0;
}
.rw-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rw-line);
}
.rw-section__kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rw-muted);
}

/* ============================================================
   2. OVERVIEW — statement + offset image pair
============================================================ */
.rw-overview__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.rw-statement {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--rw-navy);
  max-width: 21ch;
  margin: 0 0 1.8rem;
}
.rw-statement .rw-w { display: inline-block; }
.rw-statement .rw-w--em { color: var(--rw-orange); }
.rw-lede {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--rw-muted);
  max-width: 52ch;
  margin: 0;
}

/* Overview visual — animated water SVG (placeholder for richer art).
   Square-ish stage, no crop, sits centered in its column. */
.rw-overview__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rw-overview__art {
  position: relative;
  width: 100%;
  max-width: 520px;
  will-change: transform;
}
.rw-wave {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
}
/* JS-off fallback: a soft branded gradient orb instead of a blank canvas. */
html:not(.rw-js) .rw-wave {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(69,127,249,0.55), rgba(238,124,35,0.35) 55%, rgba(22,49,95,0.5) 100%);
}

/* ============================================================
   3. WHAT WE IGNORE — pinned horizontal chapter
   Light, typographic, anchored by per-panel stat counters.
   Default layout = stacked panels (mobile / no-GSAP / reduced
   motion). JS adds .is-pinned on desktop to switch the track to a
   horizontal row that ScrollTrigger drives.
============================================================ */
.rw-ignore {
  background: linear-gradient(180deg, var(--rw-bg) 0%, var(--rw-bg-alt) 18%, var(--rw-bg-alt) 82%, var(--rw-bg) 100%);
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
  overflow: hidden;
}
.rw-ignore__pin { padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(3.5rem, 8vh, 5.5rem); }

.rw-ignore__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.rw-ignore__intro {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--rw-muted);
  max-width: 44ch;
  margin: 0;
  padding-bottom: 0.3rem;
}
.rw-ignore__meter {
  display: none; /* shown only in pinned mode */
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  padding-bottom: 0.4rem;
}
.rw-ignore.is-pinned .rw-ignore__meter { display: flex; }
.rw-ignore__count {
  font-size: 0.72rem;
  color: var(--rw-muted);
}
.rw-ignore__count b { color: var(--rw-orange); font-weight: 600; }
.rw-ignore__bar {
  width: 160px;
  height: 2px;
  background: var(--rw-line);
  overflow: hidden;
}
.rw-ignore__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--rw-blue), var(--rw-orange));
  transform: scaleX(0);
  transform-origin: left;
}

/* --- Track + panels (stacked baseline) --- */
.rw-ignore__track {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 5rem);
  padding: 0 max(2.4rem, calc((100vw - 1200px) / 2 + 2.4rem));
}

.rw-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.rw-panel__text { position: relative; }
.rw-panel__num {
  display: block;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(22,49,95,0.25);
  margin-bottom: 1.1rem;
  letter-spacing: 0;
}
.rw-panel__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--rw-navy);
  margin: 0 0 1.1rem;
}
/* The calm line — struck through as the truth surfaces */
.rw-panel__calm {
  font-size: 1.05rem;
  color: var(--rw-muted);
  margin: 0 0 1.4rem;
}
.rw-panel__calm span { position: relative; }
.rw-panel__calm span::after {
  content: '';
  position: absolute;
  left: 0; top: 54%;
  width: 100%; height: 1.5px;
  background: var(--rw-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--rw-ease) 0.15s;
}
/* The stat — counts up when the panel activates */
.rw-panel__stat {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--rw-navy);
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.7rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.2s, transform 0.7s var(--rw-ease) 0.2s;
}
.rw-panel__stat-fix { color: var(--rw-orange); }
.rw-panel__truth {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--rw-ink);
  max-width: 40ch;
  margin: 0 0 1.4rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.3s, transform 0.7s var(--rw-ease) 0.3s;
}
.rw-panel__tag {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--rw-orange);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.45s, transform 0.7s var(--rw-ease) 0.45s;
}

.rw-panel.is-active .rw-panel__calm span::after { transform: scaleX(1); }
.rw-panel.is-active .rw-panel__stat,
.rw-panel.is-active .rw-panel__truth,
.rw-panel.is-active .rw-panel__tag { opacity: 1; transform: none; }

.rw-panel__media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--rw-navy);
  border: 1px solid var(--rw-line);
  box-shadow: 0 24px 60px rgba(22,49,95,0.14);
  will-change: transform;
}
.rw-panel__media img,
.rw-panel__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rw-panel__video { opacity: 0; transition: opacity 0.6s ease; }
.rw-panel.is-active .rw-panel__video { opacity: 1; }
.rw-panel__ph { position: absolute; inset: 0; }
.rw-panel--0 .rw-panel__ph { background: radial-gradient(130% 90% at 20% 0%, rgba(69,127,249,0.4), transparent 55%), linear-gradient(165deg, #14305e, #081226); }
.rw-panel--1 .rw-panel__ph { background: radial-gradient(120% 90% at 80% 10%, rgba(141,177,251,0.35), transparent 60%), linear-gradient(165deg, #0e2a52, #060f22); }
.rw-panel--2 .rw-panel__ph { background: radial-gradient(130% 100% at 30% 100%, rgba(95,178,214,0.3), transparent 55%), linear-gradient(165deg, #123a52, #071528); }
.rw-panel--3 .rw-panel__ph { background: radial-gradient(120% 90% at 70% 90%, rgba(238,124,35,0.28), transparent 55%), linear-gradient(165deg, #1d3c6e, #0a1226); }

@media (prefers-reduced-motion: reduce) {
  .rw-panel__calm span::after,
  .rw-panel__stat,
  .rw-panel__truth,
  .rw-panel__tag,
  .rw-panel__video { transition: none; }
}

/* --- Pinned (horizontal) mode — JS adds .is-pinned on desktop --- */
.rw-ignore.is-pinned .rw-ignore__pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vh, 7rem) 0 0;
}
.rw-ignore.is-pinned .rw-ignore__track {
  flex-direction: row;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.rw-ignore.is-pinned .rw-panel {
  flex: 0 0 auto;
  width: min(78vw, 1040px);
  margin-right: clamp(4rem, 8vw, 8rem);
}
.rw-ignore.is-pinned .rw-panel:last-child { margin-right: 30vw; }
.rw-ignore.is-pinned .rw-panel__media { aspect-ratio: 16 / 11; max-height: 52vh; }

/* ============================================================
   5. MOMENTS — past convenings collage
============================================================ */
.rw-moments { padding-bottom: clamp(5rem, 12vh, 9rem); }
.rw-moments__note {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rw-muted);
  margin: 0 0 1.6rem;
  line-height: 1.9;
}
/* Flexible gallery — any number of photos. Uniform 3-up rhythm, with
   every 3rd tile spanning two columns to keep an editorial feel. */
.rw-moments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.rw-moments__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 4 / 3;
}
.rw-moments__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
/* oversized media wrapper = parallax headroom (GSAP drifts it) */
.rw-moments__media {
  position: absolute;
  inset: -9% 0;
  will-change: transform;
}
.rw-moments__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--rw-ease);
}
.rw-moments__item:hover .rw-moments__media img { transform: scale(1.04); }
.rw-moments__media .rw-ph { inset: 0; }

/* ============================================================
   6. SPEAKERS — hairline grid
============================================================ */
.rw-speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rw-line);
  border-left: 1px solid var(--rw-line);
}
/* Hairline-divided cells instead of floating cards */
.rw-speaker {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.8rem;
  border-right: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
  background: #fff;
  transition: background 0.25s ease;
}
.rw-speaker:hover { background: var(--rw-bg-alt); }
.rw-speaker__photo {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2f8, #dde6f2);
  display: flex; align-items: center; justify-content: center;
}
.rw-speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.rw-speaker__photo-ph { color: #aab6cc; }
.rw-speaker__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rw-navy);
  margin: 0 0 0.2rem;
}
.rw-speaker__role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-orange); margin: 0 0 0.1rem; }
.rw-speaker__org { font-size: 0.86rem; color: var(--rw-muted); margin: 0; }
.rw-speaker--tba .rw-speaker__name { color: var(--rw-muted); font-weight: 500; }

/* ============================================================
   7. AGENDA — flowing editorial timeline
============================================================ */
.rw-timeline { list-style: none; margin: 0; padding: 0; }
.rw-timeline__item {
  display: grid;
  grid-template-columns: 96px 40px 1fr;
  align-items: start;
  gap: 1.4rem;
  padding: 1.7rem 0;
}
.rw-timeline__time {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--rw-navy);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
/* Vertical rail with a continuously-flowing water gradient */
.rw-timeline__rail {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.rw-timeline__rail::before {
  content: '';
  position: absolute;
  top: 0; bottom: -3.4rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--rw-blue), var(--rw-navy), var(--rw-orange), var(--rw-blue));
  background-size: 100% 300%;
  animation: rw-rail 5s linear infinite;
  opacity: 0.4;
}
.rw-timeline__item:last-child .rw-timeline__rail::before { bottom: 50%; }
@keyframes rw-rail { to { background-position: 0 -300%; } }
@media (prefers-reduced-motion: reduce) {
  .rw-timeline__rail::before { animation: none; }
}
.rw-timeline__node {
  position: relative;
  width: 11px; height: 11px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rw-navy);
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.rw-timeline__item:hover .rw-timeline__node { background: var(--rw-orange); border-color: var(--rw-orange); transform: scale(1.25); }
.rw-timeline__body { position: relative; padding-bottom: 0.2rem; }
.rw-timeline__index {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--rw-orange);
  display: block;
  margin-bottom: 0.3rem;
}
.rw-timeline__title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rw-navy);
  margin: 0 0 0.3rem;
}
.rw-timeline__desc { font-size: 0.98rem; color: var(--rw-muted); margin: 0; max-width: 52ch; }

/* ============================================================
   7b. ANNOUNCING SOON — stands in for Speakers / Agenda
   Hairline panel: copy on the left, a decorative rail of
   still-to-come rows on the right. Section keeps a white
   background and a hairline top edge so it reads as its own
   chapter between Moments and Location.
============================================================ */
.rw-tba { border-top: 1px solid var(--rw-line); }
/* offset anchor target so the fixed header doesn't cover the panel */
.rw-tba__anchor {
  display: block;
  position: relative;
  top: -90px;
  height: 0;
}
.rw-tba__panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background: var(--rw-bg-alt);
  border: 1px solid var(--rw-line);
  border-radius: 6px;
}
.rw-tba__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rw-orange);
  margin: 0 0 1.1rem;
}
/* slow breathing dot — the only motion in the copy column */
.rw-tba__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rw-orange);
  box-shadow: 0 0 0 0 rgba(238,124,35,0.5);
  animation: rw-tba-pulse 2.4s var(--rw-ease) infinite;
}
@keyframes rw-tba-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(238,124,35,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(238,124,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,124,35,0); }
}
.rw-tba__body .rw-lede { margin: 1.1rem 0 0; max-width: 46ch; }
.rw-tba__meta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rw-line);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-muted);
}
.rw-tba__meta-sep { color: var(--rw-line); }

/* Decorative rows — the agenda rail with its content still to come */
.rw-tba__skeleton {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rw-tba__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
  position: relative;
}
.rw-tba__row + .rw-tba__row { border-top: 1px solid rgba(20,35,63,0.06); }
.rw-tba__node {
  position: relative;
  justify-self: center;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rw-bg-alt);
  border: 2px solid rgba(22,49,95,0.28);
}
/* rail through the nodes, fading out at the last row */
.rw-tba__row::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(69,127,249,0.28), rgba(22,49,95,0.18));
}
.rw-tba__row:first-child::before { top: 50%; }
.rw-tba__row:last-child::before  { bottom: 50%; }
.rw-tba__lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.rw-tba__line {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, #dfe5f0 0%, #eef2f8 45%, #dfe5f0 90%);
  background-size: 220% 100%;
  animation: rw-tba-sweep 3.2s linear infinite;
  animation-delay: calc(var(--s, 0) * -0.5s);
}
/* widths vary per row (--s) so the stack doesn't read as a template */
.rw-tba__line--a { width: calc(46% + var(--s, 0) * 7%); }
.rw-tba__line--b { width: calc(92% - var(--s, 0) * 6%); height: 7px; opacity: 0.7; }
@keyframes rw-tba-sweep { to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
  .rw-tba__pulse { animation: none; }
  .rw-tba__line  { animation: none; }
}
@media (max-width: 900px) {
  .rw-tba__panel { grid-template-columns: 1fr; }
  /* the decorative rail adds nothing once stacked on a phone */
  .rw-tba__skeleton { display: none; }
}

/* ============================================================
   8. LOCATION
============================================================ */
.rw-location__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  margin-bottom: 2.4rem;
}
.rw-location__addr {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--rw-muted);
  margin: 0;
}
.rw-location__map {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rw-line);
  line-height: 0;
  box-shadow: 0 20px 50px rgba(22,49,95,0.08);
}
.rw-location__map iframe { display: block; width: 100%; }

/* ============================================================
   9. PARTNERS — wordmark lockup
============================================================ */
.rw-partners { text-align: center; }
.rw-partners__label { color: var(--rw-muted); }

/* Logo ticker — overflow-clipped lane with a soft fade at both edges.
   The track is four identical groups; translating -50% loops seamlessly. */
.rw-marquee {
  margin-top: 2.6rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.rw-marquee__track {
  display: flex;
  width: max-content;
  animation: rw-marquee 44s linear infinite;
}
.rw-marquee:hover .rw-marquee__track { animation-play-state: paused; }
.rw-marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
@keyframes rw-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.rw-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  /* horizontal padding (not flex gap) so spacing is consistent across
     the seam between repeated groups */
  padding: 0.6rem clamp(1.75rem, 3.4vw, 3rem);
  position: relative;
}
.rw-partner__logo { max-height: 52px; max-width: 200px; object-fit: contain; }
.rw-partner__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rw-navy);
}
.rw-partner__sub {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-orange);
}
/* No scrolling under reduced-motion — show a single static, centered,
   wrapped row of partners instead of the looping ticker. */
@media (prefers-reduced-motion: reduce) {
  .rw-marquee { -webkit-mask-image: none; mask-image: none; }
  .rw-marquee__track { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; }
  .rw-marquee__group { flex-wrap: wrap; justify-content: center; }
  .rw-marquee__group:nth-child(n+2) { display: none; }
}

/* ============================================================
   10. SAVE THE DATE — navy finale
============================================================ */
.rw-cta {
  background: var(--rw-navy);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 12vh, 8.5rem) 0;
  position: relative;
  overflow: hidden;
}
/* a single faint flowing accent line at the top edge */
.rw-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rw-blue), var(--rw-orange), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: rw-edge 4s linear infinite;
}
@keyframes rw-edge { from { background-position: -100% 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .rw-cta::before { animation: none; } }
.rw-cta__inner { display: flex; flex-direction: column; align-items: center; }
.rw-cta__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.2rem;
}
.rw-cta__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.1rem;
}
.rw-cta__sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin: 0 0 2.6rem; max-width: 36ch; }

/* ---------- Registration ----------
   Live state: a single outbound button (.rw-register--link) pointing at
   the Luma event. The form styles below it are kept for the on-site form
   in functions.php, in case that is ever brought back. */
.rw-register {
  width: 100%;
  max-width: 880px;
  scroll-margin-top: 90px;
}

/* Off-site (Luma) registration button + explanatory note */
.rw-register--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.rw-register__cta { padding: 1.15rem 2.2rem; }
.rw-register__note {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 42ch;
  text-align: center;
}
.rw-register__msg {
  margin: 0 0 1.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
}
.rw-register__msg--ok  { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.rw-register__msg--err { background: rgba(238,124,35,0.12); border: 1px solid rgba(238,124,35,0.5); color: #ffd9bb; }

/* honeypot — visually gone, still in the DOM for bots */
.rw-register__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.rw-register__fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 1.4rem;
  align-items: end;
  text-align: left;
}
.rw-register__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rw-register__lbl {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
}
.rw-register__field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  border-radius: 0;
  padding: 0.55rem 0.1rem;
  font-family: var(--sciens-font-main);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  transition: border-color 0.25s ease;
  outline: none;
  -webkit-appearance: none;
          appearance: none;
}
.rw-register__field input:focus { border-bottom-color: var(--rw-orange); }
.rw-register__field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px var(--rw-navy) inset;
  transition: background-color 9999s ease-out;
}
.rw-register__submit { justify-self: start; white-space: nowrap; }

@media (max-width: 820px) {
  .rw-register__fields { grid-template-columns: 1fr 1fr; }
  .rw-register__submit { grid-column: 1 / -1; justify-self: stretch; justify-content: center; margin-top: 0.4rem; }
}
@media (max-width: 520px) {
  .rw-register__fields { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .rw-speaker-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .rw-overview__grid { grid-template-columns: 1fr; }
  .rw-overview__visual { aspect-ratio: auto; }
  .rw-overview__art { max-width: 380px; margin: 0 auto; }
  .rw-panel { grid-template-columns: 1fr; gap: 1.6rem; }
  .rw-panel__media { order: -1; }
  .rw-ignore__head { grid-template-columns: 1fr; align-items: start; }
  /* Two-up gallery; wide tiles drop back to a single column span. */
  .rw-moments__grid { grid-template-columns: repeat(2, 1fr); }
  .rw-moments__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .rw-container { padding: 0 1.4rem; }
  .rw-countdown { width: 100%; }
  .rw-countdown__unit { flex: 1; padding-right: 0.8rem; margin-right: 0.8rem; }
  .rw-hero__scroll { display: none; }
  .rw-ignore__track { padding: 0 1.4rem; }
  .rw-timeline__item { grid-template-columns: 64px 28px 1fr; gap: 0.9rem; }
  .rw-timeline__time { font-size: 1.05rem; }
  .rw-marquee__track { animation-duration: 30s; }
}

@media (max-width: 560px) {
  /* Single column gallery on phones; wide tiles match the rest. */
  .rw-moments__grid { grid-template-columns: 1fr; }
  .rw-moments__item--wide { grid-column: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .rw-hero__actions { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .rw-speaker-grid { grid-template-columns: 1fr; }
}
