/* ==========================================================================
   Movies International — Tech & Cinema Newsroom Design System
   Palette: Cool Paper / Midnight Ink / Electric Blue (primary) / Neon Magenta (accent)
   Fonts: Space Grotesk (headlines) · Inter (UI + reading) · JetBrains Mono (kickers, data)
   Brand colors are defaults; admins override them from the CMS Theme tab.
   ========================================================================== */

:root {
  --bg-page: #f5f7fb;
  --bg-ivory: #eef1f7;
  --bg-warm: #e6eaf3;
  --bg-card: #ffffff;
  --bg-night: #070a14;
  --bg-night-2: #0d1222;
  --ink-primary: #0b1020;
  --ink-secondary: #3a4256;
  --ink-muted: #687089;
  --brand-emerald: #2f6bff;
  --brand-emerald-dark: #224dbb;
  --brand-emerald-soft: #e8efff;
  --accent-amber: #ff3d81;
  --accent-amber-soft: #ffe4ee;
  --border-hairline: #e3e7f0;
  --border-strong: #cfd5e3;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06);
  --shadow-md: 0 14px 34px rgba(11, 16, 32, 0.10);
  --shadow-lg: 0 28px 60px rgba(11, 16, 32, 0.16);
  --grad-brand: linear-gradient(90deg, var(--brand-emerald), var(--accent-amber));

  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max-width: 1340px;
  --article-width: 740px;
  --wide-width: 1080px;
  --header-offset: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-emerald);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand-emerald);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1200;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-emerald), var(--accent-amber));
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-hairline);
}

.header-topbar {
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-ivory);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  flex-wrap: wrap;
}

.header-topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.header-topbar__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-topbar__links a:hover {
  color: var(--brand-emerald);
}

.header-masthead {
  padding-block: 16px;
}

.header-masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
}

/* Logo mark: ringed planet whose orbit ring is a film strip */
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}
.brand-mark .bm-globe { fill: var(--brand-emerald); }
.brand-mark .bm-lines { fill: none; stroke: #fff; stroke-opacity: 0.5; stroke-width: 1.4; stroke-linecap: round; }
.brand-mark .bm-ring { fill: none; stroke: var(--accent-amber); stroke-width: 3.4; stroke-linecap: round; }
.brand-mark .bm-perf { fill: none; stroke: #fff; stroke-width: 1.05; stroke-dasharray: 1.4 2.3; }
.brand-mark .bm-orbit { fill: none; stroke: var(--accent-amber); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark .bm-dot { fill: var(--accent-amber); }
.brand-wordmark:hover .brand-mark .bm-perf { animation: bm-film 1.2s linear infinite; }
@keyframes bm-film { to { stroke-dashoffset: -7.4; } }

/* Wordmark: Space Grotesk, "International" in the brand colour */
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-primary);
}

.brand-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-emerald);
}

.brand-name--sm {
  font-size: 1.4rem;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  background: var(--bg-page);
  max-width: 240px;
  width: 100%;
}

.header-search input {
  border: none;
  background: transparent;
  font-size: 13.5px;
  width: 100%;
  color: var(--ink-primary);
  outline: none;
}

.header-search button {
  border: none;
  background: var(--brand-emerald);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--brand-emerald-dark);
}

/* Sticky Section Bar */
.section-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-hairline);
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 8px;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 11px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  color: var(--brand-emerald);
  background: var(--brand-emerald-soft);
}

.section-nav a.nav-3d {
  color: var(--accent-amber);
  background: var(--accent-amber-soft);
}

.section-nav a.nav-3d:hover,
.section-nav a.nav-3d.is-active {
  background: var(--accent-amber);
  color: #fff;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border-hairline);
  padding: 16px 24px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mobile-drawer__grid a {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Badges & Kickers */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-emerald);
}

.badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-amber-soft);
  color: #b0164f;
  border: 1px solid #ffc2d7;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-demo {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--ink-muted);
  border: 1px solid var(--border-hairline);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #b91c1c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Section Headers */
.band {
  padding-block: 40px;
  border-bottom: 1px solid var(--border-hairline);
}

.band--ivory {
  background: var(--bg-ivory);
}

.band--emerald-tint {
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
}

.band-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-primary);
}

.band-header__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.band-header__link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-emerald);
  white-space: nowrap;
}

.band-header__link:hover {
  text-decoration: underline;
}

/* Media Frames â€” Strict Non-Cropping Default */
.card-media {
  display: block;
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.card-media--fixed {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
}

.card-media--fixed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-media--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card:hover .card-media img {
  transform: scale(1.015);
}

/* Homepage Hero Grid (Lead + Latest Headlines + Right Rail) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.lead-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-story__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead-story__title a:hover {
  color: var(--brand-emerald);
}

.lead-story__subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* Latest Headlines Rail (CNBC-inspired scannable density) */
.headlines-rail {
  border-left: 1px solid var(--border-hairline);
  padding-left: 28px;
}

.headlines-rail__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  border-bottom: 2px solid var(--brand-emerald);
  padding-bottom: 8px;
}

.headline-item {
  padding-block: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.headline-item:last-child {
  border-bottom: none;
}

.headline-item__title {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
}

.headline-item__title a:hover {
  color: var(--brand-emerald);
}

/* Asymmetric News Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.grid-2-asym {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

.story-card__title a:hover {
  color: var(--brand-emerald);
}

.story-card__excerpt {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Demo Market Strip (Clearly Labeled Demo Data) */
.markets-strip {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.markets-strip__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.markets-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market-cell {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 10px 12px;
}

.market-cell__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.market-cell__val {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
}

.market-cell__delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-emerald);
}

.market-cell__delta.is-neg {
  color: #b91c1c;
}

/* Explore in 3D Showcase Cards */
.card-3d {
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-3d:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-3d__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-3d__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* Newsletter Box */
.newsletter-box {
  background: var(--brand-emerald);
  color: #fff;
  border-radius: 12px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.newsletter-box h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.newsletter-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
}

.newsletter-form button {
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  background: var(--accent-amber);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}

/* ==========================================================================
   Article Page & Longform Typography
   ========================================================================== */
.article-header {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.article-header__title {
  margin: 10px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-header__subtitle {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 820px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 14px;
  color: var(--ink-muted);
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.article-hero-media {
  max-width: var(--wide-width);
  margin: 0 auto 32px;
  padding-inline: 24px;
}

.article-body {
  padding-bottom: 48px;
}

.block-column {
  max-width: var(--article-width);
  margin: 0 auto 24px;
  padding-inline: 24px;
}

.block-wide {
  max-width: var(--wide-width);
  margin: 28px auto;
  padding-inline: 24px;
}

.block-full-bleed {
  width: 100%;
  max-width: 100%;
  margin: 32px auto;
  padding-inline: 0;
}

.prose p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.78;
  color: var(--ink-primary);
  margin: 0 0 18px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.22;
  margin: 32px 0 14px;
  scroll-margin-top: var(--header-offset);
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 24px 0 10px;
}

.prose ul,
.prose ol {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  padding-left: 24px;
}

.prose a {
  color: var(--brand-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-quote {
  border-left: 4px solid var(--brand-emerald);
  background: var(--bg-ivory);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.editorial-quote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.5;
}

.editorial-quote cite {
  font-size: 13.5px;
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 600;
}

.editorial-callout {
  background: var(--brand-emerald-soft);
  border: 1px solid #cfdcff;
  border-radius: 8px;
  padding: 20px 24px;
}

.editorial-callout h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--brand-emerald-dark);
}

.editorial-callout p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0;
}

/* Full-size Media Figure (NEVER cropped) */
.media-figure {
  margin: 0;
}

.media-figure__frame {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
}

.media-figure__frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.media-figure figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.5;
  padding-inline: 4px;
}

.media-credit {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Multi-aspect Gallery */
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.editorial-gallery__item {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 10px;
}

.editorial-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: zoom-in;
}

/* Video Wrapper */
.video-wrap {
  background: #05070f;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrap video,
.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Data Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}

.editorial-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-table th,
.editorial-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-table th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: #f3f5fa;
}

/* ==========================================================================
   3D WebGL Interactive Stage & Scrollytelling Chapters
   ========================================================================== */
.scene3d-shell {
  background: #f5f3ee;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.scene3d-shell.is-sticky-stage {
  position: sticky;
  top: 58px;
  z-index: 20;
}

.scene3d-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
}

.scene3d-toolbar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.scene3d-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.scene3d-btn {
  background: var(--bg-ivory);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.scene3d-btn:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.scene3d-btn.is-active {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #fff;
}

.scene3d-viewport {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vh, 580px);
  background: radial-gradient(circle at 50% 35%, #eef4f1 0%, #dce6e1 100%);
  touch-action: pan-y;
}

.scene3d-viewport.is-explore-active {
  touch-action: none;
}

.scene3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene3d-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(250, 248, 244, 0.92);
  z-index: 5;
  padding: 20px;
  text-align: center;
}

.scene3d-loading.is-hidden {
  display: none;
}

.scene3d-progress-track {
  width: 220px;
  height: 6px;
  background: var(--border-hairline);
  border-radius: 999px;
  overflow: hidden;
}

.scene3d-progress-fill {
  height: 100%;
  width: 15%;
  background: var(--brand-emerald);
  transition: width 0.2s ease;
}

.scene3d-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand-emerald);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-pin:hover,
.hotspot-pin.is-selected {
  background: var(--accent-amber);
  transform: translate(-50%, -50%) scale(1.12);
}

.scene3d-info-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  z-index: 6;
}

.scene3d-info-card.is-hidden {
  display: none;
}

.scene3d-info-card__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
}

.scene3d-info-card__title {
  margin: 4px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.scene3d-info-card__body {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.scene3d-info-card__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border-hairline);
  padding-top: 6px;
}

.scene3d-helpbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-ivory);
  border-top: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.scene3d-fallback {
  padding: 20px;
  background: var(--bg-ivory);
  text-align: center;
}

.scene3d-fallback img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
}

.chapter-card {
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--border-strong);
  border-radius: 8px;
  padding: 24px 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chapter-card.is-active-chapter {
  border-left-color: var(--brand-emerald);
  box-shadow: var(--shadow-sm);
}

/* Article Footer: References, Corrections, Copyright */
.article-footer-box {
  max-width: var(--article-width);
  margin: 32px auto 0;
  padding: 24px;
  border-top: 1px solid var(--border-hairline);
}

.correction-box {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}

.copyright-statement {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.95);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__controls {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 2005;
}

.lightbox__btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.lightbox__stage {
  max-width: 94vw;
  max-height: 80vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  transition: transform 0.2s ease;
}

.lightbox__caption {
  color: #e5e7eb;
  font-size: 14px;
  margin-top: 12px;
  max-width: 780px;
  text-align: center;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg-night);
  border-top: 2px solid var(--ink-primary);
  padding: 48px 0 32px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-emerald);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  color: var(--brand-emerald);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Pagination & Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--bg-ivory);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
}

.filter-bar input,
.filter-bar select {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.filter-bar button {
  padding: 9px 18px;
  background: var(--brand-emerald);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.pagination .is-current {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #fff;
}

/* Responsive Breakpoints (360, 390, 768, 1024, 1440, 1920) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .headlines-rail {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
    padding-left: 0;
    padding-top: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .markets-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .header-masthead__inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .header-search {
    display: none;
  }

  .grid-3,
  .grid-2-asym {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-header,
  .article-hero-media,
  .block-column,
  .block-wide {
    padding-inline: 16px;
  }

  .scene3d-shell.is-sticky-stage {
    position: relative;
    top: 0;
  }

  .scene3d-info-card {
    position: static;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 480px) {

  .markets-strip__grid,
  .footer-grid,
  .mobile-drawer__grid {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-card:hover .card-media img {
    transform: none;
  }
}

/* ==========================================================================
   Modern, firm headline typography (site-wide)
   ========================================================================== */
.lead-story__title,
.headline-item__title,
.story-card__title,
.band-header__title,
.article-header__title,
.prose h2,
.prose h3,
.chapter-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
}
.article-header__title {
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.04;
}
.article-header__subtitle {
  font-family: var(--font-sans);
  font-weight: 450;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .header-left .btn-outline { display: none; }
  .brand-name { font-size: 1.3rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-wordmark { gap: 8px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.12rem; }
}


/* ==========================================================================
   Movies International theme layer — tech & cinema finish
   (overrides the base system above; keep at the end of the file)
   ========================================================================== */
::selection { background: color-mix(in srgb, var(--brand-emerald) 22%, transparent); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* Header: midnight topbar + clean masthead with a brand gradient hairline */
.site-header { background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 0; }
.site-header::after { content: ""; display: block; height: 2px; background: var(--grad-brand); opacity: 0.9; }
.header-topbar { background: var(--bg-night); color: #aab3c8; border-bottom: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; }
.header-topbar__meta > span:first-child::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--accent-amber); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-amber) 60%, transparent);
  animation: mi-pulse 2.2s ease-out infinite; vertical-align: 1px;
}
@keyframes mi-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-amber) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.header-topbar__links a { color: #d9deea; transition: color .15s ease; }
.header-topbar__links a:hover { color: #fff; }
.header-masthead { padding-block: 14px; }
.menu-toggle { background: #fff; border-color: var(--border-strong); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.header-search { background: #fff; border-color: var(--border-strong); transition: border-color .2s ease, box-shadow .2s ease; }
.header-search:focus-within { border-color: var(--brand-emerald); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-emerald) 14%, transparent); }
.header-search button { background: var(--ink-primary); }
.header-search button:hover { background: var(--brand-emerald); }

/* Section nav: compact, sharp, animated underline */
.section-nav-wrap { background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(160%) blur(12px); }
.section-nav { gap: 2px; padding-block: 0; }
.section-nav a {
  position: relative; border-radius: 0; padding: 12px 12px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink-secondary);
}
.section-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.section-nav a:hover, .section-nav a.is-active { background: transparent; color: var(--ink-primary); }
.section-nav a:hover::after, .section-nav a.is-active::after { transform: scaleX(1); }

/* Kickers, badges */
.kicker { font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; color: var(--brand-emerald); }
.badge-3d { background: var(--accent-amber-soft); color: #b0164f; border-color: #ffc2d7; font-family: var(--font-mono); }
.badge-demo { background: var(--bg-ivory); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; }
.badge-live { background: #e11d48; font-family: var(--font-mono); letter-spacing: .08em; }
.meta-line { font-family: var(--font-sans); }

/* Section header rule: ink bar + brand gradient tick */
.band-header { border-bottom: 1px solid var(--ink-primary); position: relative; }
.band-header::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--grad-brand); }
.band-header__title { font-family: var(--font-display); font-weight: 700; }
.band-header__link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }

/* Cards & media */
.card-media { background: var(--bg-ivory); border-color: var(--border-hairline); border-radius: 10px; }
.card-media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.story-card:hover .card-media img { transform: scale(1.04); }
.story-card__title, .lead-story__title, .headline-item__title { font-family: var(--font-display); font-weight: 700; }
.story-card__title a, .lead-story__title a, .headline-item__title a {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease, color .2s ease;
}
.story-card__title a:hover, .lead-story__title a:hover, .headline-item__title a:hover { background-size: 100% 1.5px; color: var(--brand-emerald); }
.headlines-rail__title { font-family: var(--font-mono); font-weight: 600; letter-spacing: .14em; border-bottom-width: 1px; }
.card-3d { border-radius: 14px; }
.card-3d:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.market-cell { background: #fff; border-radius: 10px; }
.market-cell__val { font-family: var(--font-mono); font-weight: 600; }
.market-cell__delta { font-family: var(--font-mono); color: #059669; }
.market-cell__delta.is-neg { color: #e11d48; }

/* Newsletter: midnight panel with brand glow */
.newsletter-box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand-emerald) 55%, #070a14) 0%, #070a14 60%);
}
.newsletter-box::after {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-amber) 45%, transparent), transparent);
  filter: blur(10px); opacity: .7;
}
.newsletter-box h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.newsletter-form input { border-radius: 999px; padding-inline: 18px; background: rgba(255, 255, 255, .96); }
.newsletter-form button { border-radius: 999px; background: var(--accent-amber); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-amber) 40%, transparent); transition: transform .15s ease, filter .15s ease; }
.newsletter-form button:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* Buttons */
.btn-outline { border-radius: 999px; font-family: var(--font-sans); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.btn-outline:hover { background: var(--brand-emerald-soft); }

/* Article page */
.reading-progress { height: 3px; }
.reading-progress__bar { background: var(--grad-brand); box-shadow: 0 0 12px color-mix(in srgb, var(--accent-amber) 60%, transparent); }
.article-header .kicker {
  padding: 5px 10px; border-radius: 999px; background: var(--brand-emerald-soft); color: var(--brand-emerald-dark);
}
.article-header__title { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.article-header__subtitle { color: var(--ink-secondary); }
.article-meta-bar { font-family: var(--font-sans); font-size: 13.5px; }
.prose p { font-family: var(--font-serif); font-size: 1.135rem; line-height: 1.78; color: #1b2236; letter-spacing: -0.003em; }
.prose ul, .prose ol { font-family: var(--font-serif); font-size: 1.1rem; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.95rem); letter-spacing: -0.03em; }
.prose h3 { font-family: var(--font-display); font-weight: 700; }
.prose a { text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--brand-emerald) 45%, transparent); transition: text-decoration-color .2s ease; }
.prose a:hover { text-decoration-color: var(--brand-emerald); }
.prose > p:first-child::first-letter { font-family: var(--font-display); font-weight: 700; }
.editorial-quote { border-left: 0; background: var(--bg-card); box-shadow: var(--shadow-sm); border-radius: 14px; position: relative; padding: 24px 28px 22px 32px; }
.editorial-quote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--grad-brand); }
.editorial-quote p { font-family: var(--font-display); font-style: normal; font-weight: 500; letter-spacing: -0.02em; font-size: 1.45rem; }
.editorial-quote cite { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.editorial-callout { border-radius: 14px; border-color: #cfdcff; background: linear-gradient(135deg, var(--brand-emerald-soft), #fff 80%); }
.editorial-callout h3 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-emerald-dark); }
.media-figure__frame, .editorial-gallery__item { border-radius: 12px; }
.media-figure figcaption { font-size: 13px; }
.media-credit { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; }
.editorial-gallery__item { background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.editorial-gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-wrap { border-radius: 14px; box-shadow: var(--shadow-md); }
.table-scroll { border-radius: 12px; background: #fff; }
.editorial-table { font-variant-numeric: tabular-nums; }
.editorial-table th { font-family: var(--font-mono); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; }
.editorial-table tbody tr:hover td { background: #f7f9fe; }
.chapter-card { border-radius: 14px; }
.article-footer-box { font-size: 14.5px; }
.lightbox { backdrop-filter: blur(6px); }
.lightbox__btn { border-radius: 999px; font-family: var(--font-mono); font-size: 12px; backdrop-filter: blur(6px); }

/* Filters & pagination */
.filter-bar { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); }
.filter-bar input, .filter-bar select { border-radius: 999px; padding-inline: 14px; }
.filter-bar button { border-radius: 999px; background: var(--ink-primary); }
.filter-bar button:hover { background: var(--brand-emerald); }
.pagination a, .pagination span { border-radius: 999px; font-family: var(--font-mono); font-size: 13px; }
.pagination a:hover { border-color: var(--brand-emerald); color: var(--brand-emerald); }

/* Footer: midnight */
.site-footer { background: var(--bg-night); color: #c3cad9; border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-brand); }
.site-footer .brand-name, .site-footer .brand-wordmark { color: #fff; }
.site-footer .brand-name em { color: color-mix(in srgb, var(--brand-emerald) 55%, #ffffff); }
.site-footer p { color: #9aa3b8 !important; }
.footer-grid { border-bottom-color: rgba(255, 255, 255, .08); }
.footer-col h3 { font-family: var(--font-mono); font-weight: 600; letter-spacing: .14em; color: color-mix(in srgb, var(--accent-amber) 75%, #ffffff); }
.footer-col ul { color: #c3cad9; }
.footer-col a { transition: color .15s ease; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { color: #7f89a1; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; }

/* Mobile drawer */
.mobile-drawer { background: #fff; }
.mobile-drawer__grid a { border-radius: 10px; }
.mobile-drawer__grid a:hover { border-color: var(--brand-emerald); color: var(--brand-emerald); }


/* ==========================================================================
   Full-size post images — never cropped, never corner-clipped
   ========================================================================== */
.article-hero-media {
  max-width: var(--max-width);
}
.media-figure__frame,
.media-figure__frame picture,
.media-figure__frame img,
.editorial-gallery__item,
.editorial-gallery__item img,
.card-media,
.card-media picture,
.card-media img {
  border-radius: 0 !important;
}
.media-figure__frame {
  background: transparent;
  border: none;
  overflow: visible;
}
.media-figure__frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: initial;
}
.editorial-gallery__item {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none !important;
}
.editorial-gallery__item:hover {
  transform: none;
  box-shadow: none !important;
}
.editorial-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: initial;
}
.card-media {
  background: transparent;
  border: none;
  overflow: visible;
}
.card-media img {
  width: 100%;
  height: auto;
  object-fit: initial;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.story-card:hover .card-media img {
  transform: none;
  filter: brightness(1.03);
}
.card-media--fixed {
  aspect-ratio: auto;
  background: transparent;
}
.card-media--fixed img {
  width: 100%;
  height: auto;
  object-fit: initial;
}
