/* ==========================================================================
   Movies International — Homepage
   A cinematic WebGL journey (deep space → cyberpunk dusk → alien ocean →
   bright film studio) pinned under five story chapters, then a dense, light,
   CNBC-style front page with a soft 3D showcase floating behind it.
   Colours of the story layer are driven by home-world.js through CSS custom
   properties on <body>; everything has a static fallback.
   ========================================================================== */

body.is-home {
  /* fonts (fallbacks keep the page tidy before webfonts load) */
  --h-display: var(--font-display, "Space Grotesk", "Inter", system-ui, sans-serif);
  --h-mono: var(--font-mono, "JetBrains Mono", ui-monospace, Consolas, monospace);
  --h-sans: var(--font-sans, "Inter", system-ui, sans-serif);
  --h-primary: var(--brand-emerald, #2f6bff);
  --h-accent: var(--accent-amber, #ff3d81);
  --h-night: var(--bg-night, #070a14);
  --h-ink: var(--ink-primary, #0b1020);
  --h-up: #0a9a5c;
  --h-down: #e11d48;
  --h-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* story layer (live-updated by home-world.js while scrolling) */
  --story-ink: #f4f6ff;
  --story-ink-rgb: 244, 246, 255;
  --story-ink-soft: rgba(226, 231, 255, 0.78);
  --story-kicker: #9db8ff;
  --story-em-a: #8fb0ff;
  --story-em-b: #ff6fa5;
  --story-shadow: 3, 4, 14;
  --glass-bg: rgba(12, 16, 40, 0.42);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.12);
  --story-up: #3ee69a;
  --story-down: #ff6b8b;

  /* header offset (measured by home-effects.js) */
  --home-head: 0px;

  background: var(--h-night);
}
body.is-home.home-past-story {
  background: var(--bg-page, #f5f7fb);
}

/* ---------- Fixed sky + WebGL stage spanning the whole homepage ---------- */
.world-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --sky-top: #03040b;
  --sky-bottom: #150f33;
  background:
    radial-gradient(90% 70% at 72% 35%, color-mix(in srgb, var(--sky-bottom) 70%, #ffffff 6%) 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.world-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.world-stage.is-ready {
  opacity: 1;
}
.world-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.world-stage.is-fallback canvas {
  display: none;
}
/* WebGL unavailable: a soft CSS nebula still follows the colour journey (sky vars keep updating) */
.world-stage.is-fallback {
  opacity: 1;
  background:
    radial-gradient(40% 32% at 70% 40%, color-mix(in srgb, var(--h-primary) 30%, transparent), transparent 70%),
    radial-gradient(30% 26% at 82% 62%, color-mix(in srgb, var(--h-accent) 22%, transparent), transparent 70%);
  animation: fallbackDrift 18s ease-in-out infinite alternate;
}
@keyframes fallbackDrift {
  to { transform: translate3d(-3vw, 2vh, 0) scale(1.06); }
}
/* soft colour wash used during cinematic transitions (opacity driven by JS) */
.world-wash {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(70% 60% at 60% 50%, var(--wash, #ffffff) 0%, transparent 70%);
  mix-blend-mode: screen;
}

/* HUD labels anchored to 3D objects */
.world-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.world-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(8, 10, 26, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e9edff;
  font-family: var(--h-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.world-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-accent) 30%, transparent), 0 0 12px var(--h-accent);
  animation: hudPulse 2s ease-in-out infinite;
}
.world-label::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 100%;
  width: 1px;
  height: 26px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
}
.world-label b {
  font-weight: 600;
  color: #fff;
}
.world-label i {
  font-style: normal;
  color: color-mix(in srgb, var(--h-primary) 55%, #ffffff);
}
body.home-ink-dark .world-label {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(11, 16, 32, 0.1);
  color: var(--h-ink);
}
body.home-ink-dark .world-label b { color: var(--h-ink); }
body.home-ink-dark .world-label i { color: var(--h-primary); }
@keyframes hudPulse {
  50% { transform: scale(0.6); opacity: 0.6; }
}

/* ---------- Header: dark glass over the 3D intro, light once the world turns bright ---------- */
body.is-home .site-header,
body.is-home .header-topbar,
body.is-home .section-nav-wrap {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.is-home:not(.home-light) .site-header {
  background: rgba(5, 7, 18, 0.34);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #e9edff;
}
body.is-home:not(.home-light) .site-header::after {
  opacity: 0.55;
}
body.is-home:not(.home-light) .header-topbar {
  background: rgba(0, 0, 0, 0.22);
  color: rgba(225, 230, 255, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.is-home:not(.home-light) .header-topbar__links a { color: rgba(233, 237, 255, 0.82); }
body.is-home:not(.home-light) .header-topbar__links a:hover { color: #fff; }
body.is-home:not(.home-light) .brand-wordmark,
body.is-home:not(.home-light) .site-header .brand-name {
  color: #fff;
}
body.is-home:not(.home-light) .site-header .brand-name em {
  color: color-mix(in srgb, var(--h-primary) 50%, #ffffff);
}
body.is-home:not(.home-light) .site-header .brand-mark .bm-globe {
  fill: rgba(255, 255, 255, 0.08);
  stroke: color-mix(in srgb, var(--h-primary) 60%, #ffffff);
}
body.is-home:not(.home-light) .site-header .brand-mark .bm-lines {
  stroke: color-mix(in srgb, var(--h-primary) 60%, #ffffff);
}
body.is-home:not(.home-light) .header-search {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
body.is-home:not(.home-light) .header-search input {
  color: #fff;
}
body.is-home:not(.home-light) .header-search input::placeholder {
  color: rgba(233, 237, 255, 0.55);
}
body.is-home:not(.home-light) .header-search button {
  background: var(--h-primary);
}
body.is-home:not(.home-light) .header-left .btn-outline,
body.is-home:not(.home-light) .menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
body.is-home:not(.home-light) .section-nav-wrap {
  background: rgba(5, 7, 18, 0.42);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.is-home:not(.home-light) .section-nav a {
  color: rgba(228, 233, 255, 0.76);
}
body.is-home:not(.home-light) .section-nav a:hover,
body.is-home:not(.home-light) .section-nav a.is-active {
  color: #fff;
}
/* light glass while the story is bright (ocean/studio/boxoffice), solid once the gallery begins */
body.is-home.home-light:not(.home-past-story) .site-header,
body.is-home.home-light:not(.home-past-story) .section-nav-wrap {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
body.is-home.home-light .section-nav a {
  color: #1b2438;
}
body.is-home.home-light .section-nav a:hover,
body.is-home.home-light .section-nav a.is-active {
  color: var(--h-primary);
}

/* ---------- Home layout ---------- */
.home-main {
  position: relative;
  z-index: 2;
}

/* ---------- Shared homepage typography ---------- */
.display {
  margin: 0;
  font-family: var(--h-display);
  font-weight: 700;
  font-size: clamp(44px, min(5.8vw, 9.6vh), 96px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--h-ink);
}
.display em {
  font-style: normal;
  background: linear-gradient(95deg, var(--h-primary) 0%, var(--h-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: 0.04em;
}
.display .ln {
  display: block;
  overflow: visible;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.display .ln > span {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.85s var(--h-ease), opacity 0.65s ease;
  transition-delay: calc(var(--i, 0) * 85ms);
}

.mono-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--h-primary);
}
.mono-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--h-primary), var(--h-accent));
}
.mono-kicker__num {
  color: var(--h-accent);
}

.btn-pill,
.btn-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--h-sans);
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.3s var(--h-ease), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-pill {
  color: #fff;
  background: linear-gradient(100deg, var(--h-primary), color-mix(in srgb, var(--h-primary) 55%, var(--h-accent)));
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--h-primary) 70%, transparent);
}
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px color-mix(in srgb, var(--h-accent) 70%, transparent);
}
.btn-pill span,
.btn-line span,
.more-link span,
.sec-head__side a span {
  display: inline-block;
  transition: transform 0.3s var(--h-ease);
}
.btn-pill:hover span,
.btn-line:hover span,
.more-link:hover span,
.sec-head__side a:hover span {
  transform: translateX(4px);
}
.btn-line {
  color: var(--story-ink);
  border: 1.5px solid rgba(var(--story-ink-rgb), 0.32);
  background: rgba(var(--story-ink-rgb), 0.04);
}
.btn-line:hover {
  border-color: rgba(var(--story-ink-rgb), 0.85);
  background: rgba(var(--story-ink-rgb), 0.1);
}

/* ==========================================================================
   Pinned story: five chapters over the 3D journey
   ========================================================================== */
.story {
  position: relative;
  margin-top: calc(var(--home-head) * -1);
}
.story__pin {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  overflow: hidden;
}
.story__steps {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  margin-top: -100svh;
  pointer-events: none;
}
.story__step {
  height: 155vh;
}
.story__step:first-of-type {
  height: 150vh;
}

.chapter {
  position: absolute;
  top: 53%;
  transform: translateY(-50%);
  width: min(540px, 41vw);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0s linear 0.6s;
}
.chapter--left {
  left: max(4vw, calc((100vw - var(--max-width, 1340px)) / 2 + 24px));
}
.chapter--right {
  right: max(4vw, calc((100vw - var(--max-width, 1340px)) / 2 + 24px));
}
.chapter.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.7s ease, visibility 0s;
}
.chapter.is-active .display .ln > span {
  opacity: 1;
  transform: none;
}
.chapter .display {
  color: var(--story-ink);
  text-shadow: 0 2px 18px rgba(var(--story-shadow), 0.45);
}
.chapter .display em {
  background-image: linear-gradient(95deg, var(--story-em-a) 0%, var(--story-em-b) 100%);
  text-shadow: none;
  filter: drop-shadow(0 2px 18px rgba(var(--story-shadow), 0.62));
}
.chapter .mono-kicker {
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--story-kicker);
}
.chapter .mono-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--h-accent) 25%, transparent), 0 0 14px var(--h-accent);
}

.glass {
  margin-top: 24px;
  padding: 20px 22px 22px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 90px -30px rgba(var(--story-shadow), 0.55), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.9s var(--h-ease) 0.18s, opacity 0.7s ease 0.18s;
}
.chapter.is-active .glass {
  transform: none;
  opacity: 1;
}
.chapter__lede {
  margin: 0;
  font-size: 16.5px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--story-ink-soft);
}
.chapter__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chapter-links {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}
.chapter-markets + .demo-note + .chapter-links {
  margin-top: 10px;
}
.chapter-link {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 9px 10px 9px 9px;
  border-radius: 14px;
  color: var(--story-ink);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.7s var(--h-ease), opacity 0.6s ease, background-color 0.25s ease;
  transition-delay: calc(320ms + var(--i, 0) * 90ms), calc(320ms + var(--i, 0) * 90ms), 0s;
}
.chapter-link + .chapter-link::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -1px;
  height: 1px;
  background: rgba(var(--story-ink-rgb), 0.12);
}
.chapter.is-active .chapter-link {
  transform: none;
  opacity: 1;
}
.chapter-link:hover,
.chapter-link:focus-visible {
  background: rgba(var(--story-ink-rgb), 0.08);
}
.chapter-link__thumb {
  width: 78px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #1d2550, #070a14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.chapter-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--h-ease);
}
.chapter-link:hover .chapter-link__thumb img {
  transform: scale(1.08);
}
.chapter-link__cat {
  font-family: var(--h-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--story-kicker);
}
.chapter-link__title {
  margin: 3px 0 0;
  font-family: var(--h-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 16px;
  line-height: 1.25;
  color: var(--story-ink);
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chapter-link--big {
  grid-template-columns: 128px minmax(0, 1fr);
}
.chapter-link--big .chapter-link__thumb {
  width: 128px;
  height: 84px;
}
.chapter-link--big .chapter-link__title {
  font-size: 19px;
  -webkit-line-clamp: 3;
}

.chapter-markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.chapter-markets__cell {
  padding: 12px 14px 11px;
  border-radius: 14px;
  background: rgba(var(--story-ink-rgb), 0.05);
  border: 1px solid rgba(var(--story-ink-rgb), 0.1);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.7s var(--h-ease), opacity 0.6s ease;
  transition-delay: calc(260ms + var(--i, 0) * 80ms);
}
.chapter.is-active .chapter-markets__cell {
  transform: none;
  opacity: 1;
}
.chapter-markets__cell span {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--story-ink-soft);
}
.chapter-markets__cell b {
  display: block;
  margin-top: 4px;
  font-family: var(--h-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--story-ink);
}
.chapter-markets__cell i {
  font-style: normal;
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--story-up);
}
.chapter-markets__cell i.is-neg {
  color: var(--story-down);
}
.demo-note {
  margin: 10px 0 0;
  font-family: var(--h-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--story-ink-soft);
  opacity: 0.85;
}

/* dots + scroll hint */
.story__dots {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s ease;
}
.story__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--story-ink);
  opacity: 0.28;
  transition: opacity 0.3s ease, width 0.45s var(--h-ease), background-color 0.3s ease, border-radius 0.3s ease;
}
.story__dots i.on {
  width: 22px;
  border-radius: 6px;
  opacity: 1;
  background: linear-gradient(90deg, var(--h-primary), var(--h-accent));
}
.story__dots-label {
  min-width: 128px;
  margin-left: 6px;
  font-family: var(--h-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--story-ink);
}
.story__hint {
  position: absolute;
  left: 50%;
  bottom: calc(4vh + 62px);
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--h-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--story-ink-soft);
  transition: opacity 0.4s ease;
  text-align: center;
}
.story__hint::after {
  content: "";
  display: block;
  width: 1.5px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(var(--story-ink-soft), transparent);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Lower page (light, dense, CNBC-like) with the 3D showcase in the gaps
   ========================================================================== */

/* ---------- Latest ticker ---------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10vh 0 0;
  background: var(--h-night);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(7, 10, 20, 0.5);
}
.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--h-primary), var(--h-accent));
}
.ticker__label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  padding: 0 22px;
  background: linear-gradient(100deg, var(--h-primary), color-mix(in srgb, var(--h-primary) 40%, var(--h-accent)));
  color: #fff;
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ticker__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  50% { transform: scale(0.55); opacity: 0.5; }
}
.ticker__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}
.ticker__track a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  height: 54px;
  white-space: nowrap;
  font-family: var(--h-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #eef1ff;
}
.ticker__track a span {
  font-family: var(--h-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--h-primary) 55%, #ffffff);
}
.ticker__track a::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 22px;
  border-radius: 50%;
  background: var(--h-accent);
}
.ticker__track a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--h-accent);
  text-underline-offset: 5px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections over the showcase ---------- */
.sec {
  position: relative;
  padding: 12vh 0 6vh;
}
.sec--tight {
  padding: 9vh 0 5vh;
}
.sec-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.sec-head .display {
  font-size: clamp(38px, 4.6vw, 70px);
}
.sec-head .display .ln > span {
  opacity: 0;
  transform: translateY(24px);
}
.sec-head.is-visible .display .ln > span {
  opacity: 1;
  transform: none;
}
.sec-head__side {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sec-head__side a {
  position: relative;
  color: var(--h-primary);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-hairline, #e3e7f0);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.sec-head__side a:hover {
  border-color: var(--h-primary);
  background: #fff;
}
.sec-counter {
  color: var(--ink-muted, #687089);
  font-variant-numeric: tabular-nums;
}

/* ---------- Shared compact news card (never crops images) ---------- */
.news-card {
  width: 330px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-hairline, #e3e7f0);
  box-shadow: 0 22px 50px -24px rgba(11, 16, 32, 0.28);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--h-ease);
}
.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card__media {
  height: 190px;
  background: radial-gradient(120% 120% at 30% 20%, #1c2348 0%, #070a14 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.7s var(--h-ease);
}
.news-card:hover .news-card__media img {
  transform: scale(1.05);
}
.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted, #687089);
}
.news-card__title {
  margin: 0;
  font-family: var(--h-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--h-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary, #3a4256);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__cta {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--h-primary);
}

/* ---------- Ring carousel (auto-rotating) ---------- */
.ring {
  position: relative;
  outline: none;
}
.ring:focus-visible .ring__stage {
  outline: 2px solid var(--h-primary);
  outline-offset: -2px;
}
.ring__stage {
  position: relative;
  height: 540px;
  perspective: 2200px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.ring__stage.is-dragging {
  cursor: grabbing;
}
.ring__track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.ring .news-card {
  position: absolute;
  left: -150px;
  top: -205px;
  width: 300px;
  backface-visibility: hidden;
}
.ring .news-card.is-front {
  border-color: color-mix(in srgb, var(--h-primary) 60%, transparent);
  box-shadow: 0 30px 70px -20px color-mix(in srgb, var(--h-primary) 45%, transparent);
}

/* ---------- Dense front page ---------- */
.paper-band {
  position: relative;
  background: color-mix(in srgb, var(--bg-page, #f5f7fb) 95%, transparent);
  border-top: 1px solid var(--border-hairline, #e3e7f0);
  border-bottom: 1px solid var(--border-hairline, #e3e7f0);
  padding: 40px 0 46px;
  box-shadow: 0 -30px 60px -40px rgba(11, 16, 32, 0.25);
}
.rule-head {
  position: relative;
  margin: 0 0 14px;
  padding-top: 12px;
  border-top: 2px solid var(--h-ink);
  font-family: var(--h-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--h-ink);
}
.rule-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--h-primary), var(--h-accent));
}
.rule-head a {
  transition: color 0.2s ease;
}
.rule-head a span {
  display: inline-block;
  transition: transform 0.3s var(--h-ease);
}
.rule-head a:hover {
  color: var(--h-primary);
}
.rule-head a:hover span {
  transform: translateX(4px);
}
.rule-head small {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-ivory, #eef1f7);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-muted, #687089);
  vertical-align: 1px;
}
.rule-head--spaced {
  margin-top: 28px;
}
.front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1.15fr);
}
.front__col {
  padding: 0 24px;
}
.front__col--left {
  padding-left: 0;
  border-right: 1px solid var(--border-hairline, #e3e7f0);
}
.front__col--right {
  padding-right: 0;
  border-left: 1px solid var(--border-hairline, #e3e7f0);
}

/* underline sweep for headline links */
.hl-list__title,
.thumb-list__title,
.block__list a,
.block__title,
.front-sub h3 a,
.front-lead__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--h-ease), color 0.2s ease;
}
.hl-list a:hover .hl-list__title,
.thumb-list a:hover .thumb-list__title,
.block__list a:hover,
.block__lead:hover .block__title,
.front-sub h3 a:hover,
.front-lead__title a:hover {
  background-size: 100% 1.5px;
  color: var(--h-primary);
}
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hl;
}
.hl-list li {
  counter-increment: hl;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-hairline, #e3e7f0);
}
.hl-list li:first-child {
  padding-top: 0;
}
.hl-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 6px;
}
.hl-list a::before {
  content: counter(hl, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 1px;
  font-family: var(--h-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--h-accent);
}
.hl-list__cat {
  display: block;
  font-family: var(--h-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h-primary);
}
.hl-list__title {
  display: inline;
  margin-top: 2px;
  font-family: var(--h-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}
.more-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-primary);
}

.media-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #0b1020;
  isolation: isolate;
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s var(--h-ease);
}
.media-frame img.media-frame__blur {
  position: absolute;
  z-index: 0;
  inset: 0;
  object-fit: cover;
  filter: blur(22px) saturate(1.25) brightness(0.8);
  transform: scale(1.25);
  opacity: 0.95;
}
.front-lead:hover .front-lead__media img:not(.media-frame__blur),
.front-sub:hover .front-sub__media img:not(.media-frame__blur),
.block__lead:hover .block__img img:not(.media-frame__blur) {
  transform: scale(1.04);
}
.front-lead__media {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 16px;
}
.front-lead__title {
  margin: 8px 0 10px;
  font-family: var(--h-display);
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.front-lead__dek {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-secondary, #3a4256);
}
.byline-sm {
  margin: 0;
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-muted, #687089);
}
.front-subs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline, #e3e7f0);
}
.front-sub__media {
  aspect-ratio: 3 / 2;
  margin-bottom: 10px;
}
.front-sub h3 {
  margin: 5px 0 0;
  font-family: var(--h-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.015em;
}
.thumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.thumb-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline, #e3e7f0);
}
.thumb-list li:first-child {
  padding-top: 0;
}
.thumb-list a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.thumb-list__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 58px;
  overflow: hidden;
  border-radius: 9px;
  background: #0b1020;
}
.thumb-list__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--h-ease);
}
.thumb-list a:hover .thumb-list__img img {
  transform: scale(1.08);
}
.thumb-list__title {
  display: inline;
  font-family: var(--h-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--h-ink);
}
.mkt-box {
  border: 1px solid var(--border-hairline, #e3e7f0);
  border-radius: 14px;
  background: var(--bg-card, #fff);
  overflow: hidden;
}
.mkt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "label val delta" "spark spark spark";
  gap: 4px 10px;
  align-items: baseline;
  padding: 11px 14px 8px;
  border-bottom: 1px solid var(--border-hairline, #e3e7f0);
  font-size: 12.5px;
  transition: background-color 0.2s ease;
}
.mkt-row:hover {
  background: #f7f9fe;
}
.mkt-row__label {
  grid-area: label;
  color: var(--ink-secondary, #3a4256);
  line-height: 1.3;
}
.mkt-row b {
  grid-area: val;
  font-family: var(--h-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink);
}
.mkt-row i {
  grid-area: delta;
  min-width: 54px;
  font-style: normal;
  font-family: var(--h-mono);
  font-weight: 600;
  font-size: 11.5px;
  text-align: right;
  color: var(--h-up);
}
.mkt-row i.is-neg {
  color: var(--h-down);
}
.spark {
  grid-area: spark;
  display: block;
  width: 100%;
  height: 22px;
  overflow: visible;
  color: var(--h-up);
}
.spark.is-neg {
  color: var(--h-down);
}
.spark path.line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--h-ease);
}
.spark path.area {
  fill: currentColor;
  opacity: 0.1;
}
.spark.is-drawn path.line {
  stroke-dashoffset: 0;
}
.mkt-note {
  margin: 0;
  padding: 9px 14px;
  font-family: var(--h-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--ink-muted, #687089);
}

/* ---------- Section blocks ---------- */
.blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}
.blocks .block:first-child {
  grid-column: span 2;
}
.blocks .block:first-child .block__img {
  aspect-ratio: 16 / 8.2;
}
.blocks .block:first-child .block__title {
  font-size: 24px;
}
.block__lead {
  display: block;
}
.block__img {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}
.block__title {
  display: inline;
  font-family: var(--h-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--h-ink);
}
.block__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.block__list li {
  padding: 9px 0;
  border-top: 1px solid var(--border-hairline, #e3e7f0);
  font-family: var(--h-display);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

/* ---------- Photography mosaic ---------- */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 16vw, 240px);
  grid-auto-flow: dense;
  gap: 14px;
}
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1020;
  isolation: isolate;
  box-shadow: 0 24px 50px -28px rgba(11, 16, 32, 0.5);
}
.ph:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.ph:nth-child(6n + 2) { grid-row: span 2; }
.ph:nth-child(6n + 5),
.ph:nth-child(6n + 6) { grid-column: span 2; }
.ph__blur,
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1.1s var(--h-ease), filter 0.6s ease;
}
.ph__blur {
  z-index: 0;
  object-fit: cover;
  filter: blur(24px) saturate(1.3) brightness(0.7);
  transform: scale(1.3);
}
.ph__img {
  z-index: 1;
  object-fit: contain;
}
.ph:hover .ph__img,
.ph:focus-visible .ph__img {
  transform: scale(1.06);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 7, 16, 0.82) 100%);
  transition: opacity 0.4s ease;
}
.ph__cap {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px 18px;
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.5s var(--h-ease);
}
.ph:hover .ph__cap,
.ph:focus-visible .ph__cap {
  transform: none;
}
.ph__cat {
  font-family: var(--h-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--h-accent) 45%, #ffffff);
}
.ph__title {
  font-family: var(--h-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ph:nth-child(6n + 1) .ph__title {
  font-size: clamp(20px, 2vw, 28px);
}
.ph__credit {
  font-family: var(--h-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ph:hover .ph__credit,
.ph:focus-visible .ph__credit {
  opacity: 1;
}

/* ---------- Watch: dark video band ---------- */
.watch {
  position: relative;
  margin-top: 8vh;
  padding: 10vh 0 9vh;
  color: #fff;
  background:
    radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--h-primary) 28%, transparent), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--h-accent) 18%, transparent), transparent 70%),
    var(--h-night);
  overflow: hidden;
}
.watch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.sec-head--dark .display {
  color: #fff;
}
.sec-head--dark .display em {
  background-image: linear-gradient(95deg, color-mix(in srgb, var(--h-primary) 55%, #fff), color-mix(in srgb, var(--h-accent) 70%, #fff));
}
.sec-head--dark .mono-kicker {
  color: color-mix(in srgb, var(--h-primary) 50%, #fff);
}
.sec-head--dark .sec-head__side a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.sec-head--dark .sec-head__side a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.watch__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.vid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.vid--lead {
  grid-row: span 2;
}
.vid:nth-child(4) {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}
.vid:nth-child(4) .vid__media {
  flex: 0 0 52%;
}
.vid__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vid--lead .vid__media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 300px;
}
.vid__blur,
.vid__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1s var(--h-ease);
}
.vid__blur {
  object-fit: cover;
  filter: blur(22px) brightness(0.55) saturate(1.3);
  transform: scale(1.3);
}
.vid__img {
  z-index: 1;
  object-fit: contain;
}
.vid:hover .vid__img {
  transform: scale(1.05);
}
.vid__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55));
}
.vid__play {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--h-ease), background-color 0.3s ease, border-color 0.3s ease;
}
.vid--lead .vid__play {
  width: 74px;
  height: 74px;
  left: 24px;
  bottom: 24px;
}
.vid__play svg {
  width: 44%;
  height: 44%;
  margin-left: 6%;
  fill: #fff;
}
.vid:hover .vid__play,
.vid:focus-visible .vid__play {
  transform: scale(1.1);
  background: linear-gradient(120deg, var(--h-primary), var(--h-accent));
  border-color: transparent;
}
.vid__badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--h-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vid__badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--h-accent);
  vertical-align: 1px;
}
.vid__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vid__cat {
  font-family: var(--h-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 222, 255, 0.7);
}
.vid__title {
  font-family: var(--h-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid--lead .vid__title {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
}
.vid:hover .vid__title {
  text-decoration: underline;
  text-decoration-color: var(--h-accent);
  text-underline-offset: 4px;
}

/* ---------- Conveyor (continuous auto-scroll) ---------- */
.conveyor {
  overflow: hidden;
  padding: 10px 0 30px;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.conveyor__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.conveyor:hover .conveyor__track,
.conveyor:focus-within .conveyor__track {
  animation-play-state: paused;
}
.conveyor__dup {
  display: contents;
}
.conveyor .news-card {
  flex: 0 0 auto;
  width: 310px;
}
.conveyor .news-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--h-primary) 50%, transparent);
}

/* ---------- Newsletter ---------- */
.sec--nl {
  padding-bottom: 14vh;
}
.nl {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 30px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-card, #fff), var(--bg-card, #fff)) padding-box,
    linear-gradient(120deg, var(--h-primary), var(--h-accent)) border-box;
  box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--h-primary) 50%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.nl::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -60%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--h-accent) 14%, transparent), transparent);
}
.nl .display {
  font-size: clamp(34px, 4.2vw, 62px);
}
.nl p {
  margin: 16px 0 0;
  color: var(--ink-secondary, #3a4256);
}
.nl__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nl input {
  flex: 1 1 220px;
  min-width: 0;
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong, #cfd5e3);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--h-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nl input:focus {
  outline: none;
  border-color: var(--h-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--h-primary) 16%, transparent);
}
.nl button {
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--h-primary), color-mix(in srgb, var(--h-primary) 50%, var(--h-accent)));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--h-primary) 70%, transparent);
  transition: transform 0.3s var(--h-ease), box-shadow 0.3s ease;
}
.nl button span {
  display: inline-block;
  transition: transform 0.3s var(--h-ease);
}
.nl button:hover {
  transform: translateY(-2px);
}
.nl button:hover span {
  transform: translateX(4px);
}
.nl__status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--h-primary);
}
.nl__fine {
  margin: 4px 0 0 !important;
  font-family: var(--h-mono);
  font-size: 11px;
  color: var(--ink-muted, #687089) !important;
}

/* ---------- Reveal helpers ---------- */
.home-main .reveal {
  transition-delay: var(--d, 0ms);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .front {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
  .front__col--right {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border-hairline, #e3e7f0);
    padding: 24px 0 0;
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }
  .front__col--right > .rule-head:first-child { grid-column: 1; grid-row: 1; }
  .front__col--right > .thumb-list { grid-column: 1; grid-row: 2; }
  .front__col--right > .rule-head--spaced { grid-column: 2; grid-row: 1; margin-top: 0; }
  .front__col--right > .mkt-box { grid-column: 2; grid-row: 2; }
  .blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .watch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vid--lead {
    grid-column: span 2;
    grid-row: auto;
  }
  .vid--lead .vid__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .photo-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 30vw, 260px);
  }
  .ph:nth-child(6n + 2) { grid-row: span 1; }
}

@media (max-width: 860px) {
  .chapter,
  .chapter--left,
  .chapter--right {
    left: 14px;
    right: 14px;
    width: auto;
    top: auto;
    bottom: calc(5vh + 46px);
    transform: none;
  }
  .display {
    font-size: clamp(36px, 10.6vw, 64px);
  }
  .chapter .mono-kicker {
    margin-bottom: 12px;
    font-size: 10px;
  }
  .glass {
    margin-top: 14px;
    padding: 14px 14px 14px;
    border-radius: 20px;
  }
  .chapter__lede {
    font-size: 14px;
    line-height: 1.5;
  }
  .chapter-links {
    margin-top: 8px;
  }
  .chapter-link {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 7px 6px;
  }
  .chapter-link__thumb { width: 64px; height: 46px; }
  .chapter-link__title { font-size: 14.5px; }
  .chapter-link:nth-child(n + 3) { display: none; }
  .chapter-link--big { grid-template-columns: 88px minmax(0, 1fr); }
  .chapter-link--big .chapter-link__thumb { width: 88px; height: 60px; }
  .chapter-link--big .chapter-link__title { font-size: 15.5px; }
  .chapter[data-chapter="0"] .chapter__lede { display: none; }
  .chapter[data-chapter="0"] .chapter-links { margin-top: 0; }
  .chapter[data-chapter="4"] .chapter-link:nth-child(n + 2) { display: none; }
  .chapter__acts { margin-top: 10px; }
  .btn-pill, .btn-line { height: 42px; padding: 0 16px; font-size: 13.5px; }
  .chapter-markets { gap: 6px; }
  .chapter-markets__cell { padding: 8px 10px; border-radius: 12px; }
  .chapter-markets__cell span { font-size: 10px; }
  .chapter-markets__cell b { font-size: 18px; margin-top: 2px; }
  .chapter-markets__cell i { font-size: 10px; }
  .demo-note { font-size: 9px; margin-top: 6px; }
  .story__hint { display: none; }
  .story__dots { bottom: 2.2vh; padding: 7px 14px; }
  .story__dots-label { min-width: 0; font-size: 9.5px; }
  .world-labels { display: none; }
  .ring__stage { height: 470px; }
  .news-card { width: 280px; }
  .news-card__media { height: 160px; }
  .ring .news-card { left: -130px; top: -185px; width: 260px; }
  .conveyor .news-card { width: 270px; }
  .nl { grid-template-columns: 1fr; gap: 24px; border-radius: 24px; }
  .ticker__track a { font-size: 15px; }
  .ticker__label { padding: 0 14px; }
}

@media (max-width: 760px) {
  .front {
    grid-template-columns: 1fr;
  }
  .front__col,
  .front__col--left {
    padding: 0;
    border: 0;
  }
  .front__col--center {
    order: -1;
    margin-bottom: 26px;
  }
  .front__col--right {
    display: block;
  }
  .front__col--right > .rule-head--spaced { margin-top: 28px; }
  .front-subs {
    grid-template-columns: 1fr;
  }
  .front-sub {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 14px;
  }
  .front-sub__media {
    grid-row: span 2;
    margin: 0;
  }
  .blocks {
    grid-template-columns: 1fr;
  }
  .blocks .block:first-child {
    grid-column: auto;
  }
  .blocks .block:first-child .block__title {
    font-size: 19px;
  }
  .watch__grid {
    grid-template-columns: 1fr;
  }
  .vid--lead,
  .vid:nth-child(4) {
    grid-column: auto;
  }
  .vid:nth-child(4) {
    flex-direction: column;
    align-items: stretch;
  }
  .vid:nth-child(4) .vid__media {
    flex: none;
  }
  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .ph:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .ph__cap {
    transform: none;
  }
  .sec-head__side {
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .story__dots i { width: 5px; height: 5px; }
  .story__dots i.on { width: 16px; }
  .story__dots { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track,
  .conveyor__track,
  .world-stage.is-fallback {
    animation: none;
  }
  .ticker__viewport,
  .conveyor {
    overflow-x: auto;
  }
  .display .ln > span,
  .chapter-link,
  .glass,
  .chapter-markets__cell {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .story__hint::after,
  .ticker__label::before,
  .world-label::before {
    animation: none;
  }
  .spark path.line {
    stroke-dashoffset: 0;
    transition: none;
  }
}


/* ==========================================================================
   Full-size uncropped post images on homepage — sharp corners, zero cropping
   ========================================================================== */
.media-frame,
.front-lead__media,
.front-sub__media,
.block__img,
.blocks .block:first-child .block__img {
  aspect-ratio: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  display: block;
}
.media-frame img.media-frame__blur,
.ph__blur,
.vid__blur {
  display: none !important;
}
.media-frame img,
.front-lead__media img,
.front-sub__media img,
.block__img img {
  width: 100% !important;
  height: auto !important;
  object-fit: initial !important;
  border-radius: 0 !important;
  display: block;
}
.front-lead:hover .front-lead__media img:not(.media-frame__blur),
.front-sub:hover .front-sub__media img:not(.media-frame__blur),
.block__lead:hover .block__img img:not(.media-frame__blur),
.news-card:hover .news-card__media img,
.thumb-list a:hover .thumb-list__img img,
.ph:hover .ph__img,
.vid:hover .vid__img {
  transform: none !important;
  filter: brightness(1.04);
}
.news-card {
  border-radius: 0 !important;
}
.news-card__media {
  height: auto !important;
  background: transparent !important;
  overflow: visible !important;
  border-radius: 0 !important;
  display: block;
}
.news-card__media img {
  width: 100% !important;
  height: auto !important;
  object-fit: initial !important;
  border-radius: 0 !important;
  display: block;
}
.thumb-list__img,
.thumb-list__img img,
.chapter-link__thumb,
.chapter-link__thumb img {
  border-radius: 0 !important;
  background: transparent !important;
}
.thumb-list__img {
  height: auto !important;
  overflow: visible !important;
}
.thumb-list__img img {
  width: 88px;
  height: auto !important;
  object-fit: initial !important;
}
.chapter-link__thumb {
  height: auto !important;
  overflow: visible !important;
}
.chapter-link__thumb img {
  width: 100%;
  height: auto !important;
  object-fit: initial !important;
}
.ph {
  border-radius: 0 !important;
  background: #0b1020;
}
.ph__img {
  border-radius: 0 !important;
  object-fit: contain !important;
}
.vid__media {
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
.vid__img {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  object-fit: initial !important;
  border-radius: 0 !important;
  display: block;
}
.vid__media::after {
  border-radius: 0 !important;
}


/* ==========================================================================
   Compositor performance polish: lightweight frosted glass over live WebGL
   ========================================================================== */
.glass,
.story__dots,
.chapter .mono-kicker,
body.is-home .site-header,
body.is-home .section-nav-wrap,
body.is-home.home-light .section-nav-wrap {
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
.chapter {
  will-change: opacity;
}
