/* ==========================================================================
   Amazon Discovery — Homepage (warm paper, fixed Discovery Globe behind all content)
   ========================================================================== */

body.is-home {
  background: var(--bg-page);
}

/* ---------- Fixed sky + 3D stage spanning the entire homepage ---------- */
.world-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --sky-top: #ffe1c4;
  --sky-bot: #fff6ea;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 78%);
}

.world-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.world-stage.is-ready,
.world-stage.is-fallback {
  opacity: 1;
}
.world-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.world-stage.is-fallback canvas {
  display: none;
}
.world-stage.is-fallback::after {
  content: "";
  position: absolute;
  right: -8vw;
  top: 12vh;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, color-mix(in srgb, var(--brand-emerald-soft) 90%, #fff) 45%, color-mix(in srgb, var(--brand-emerald) 22%, var(--bg-page)) 100%);
  box-shadow: 0 40px 90px rgba(23, 36, 55, 0.12);
}

.world-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.world-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -34px 0 0 10px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 6px 16px rgba(23, 36, 55, 0.08);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.world-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-amber) 25%, transparent);
}
.world-label b {
  font-weight: 700;
  color: var(--ink-primary);
}
.world-label i {
  font-style: normal;
  color: var(--brand-emerald);
  text-transform: uppercase;
}

/* ---------- Header and footer float over the globe ---------- */
body.is-home .site-header,
body.is-home .header-topbar {
  background: rgba(251, 248, 241, 0.86);
}
body.is-home .section-nav-wrap {
  background: rgba(251, 248, 241, 0.9);
}
body.is-home .site-footer {
  background: rgba(251, 248, 241, 0.8);
  border-top-color: var(--brand-emerald);
}

.home-main {
  position: relative;
  z-index: 2;
  /* updated by home-world.js as the sky moves from day to night */
  --home-fg: var(--ink-primary);
  --home-fg-soft: var(--ink-secondary);
  --home-em: var(--brand-emerald);
  --home-link: var(--brand-emerald);
  --home-glow: 251, 248, 241;
}

/* ---------- Shared homepage typography ---------- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--home-fg);
  /* layered lift: crisp edge + soft sky-matched glow + gentle drop for depth over the 3D scene */
  /* crisp halo in the sky color only (no grey drop shadow under the letters) */
  text-shadow:
    0 0 1px rgba(var(--home-glow), 0.9),
    0 0 18px rgba(var(--home-glow), 0.85),
    0 0 42px rgba(var(--home-glow), 0.55);
}
.display em {
  font-style: normal;
  color: var(--home-em);
  background: linear-gradient(transparent 72%, color-mix(in srgb, var(--accent-amber) 38%, transparent) 72%, color-mix(in srgb, var(--accent-amber) 38%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.04em;
}
.display .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.display .ln > span {
  display: block;
  transform: translateY(108%);
  transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.mono-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 6px 18px rgba(23, 36, 55, 0.08);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
}
.mono-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}

.btn-pill,
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-pill {
  background: var(--brand-emerald);
  color: #fff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--brand-emerald) 28%, transparent);
}
.btn-pill:hover {
  background: var(--ink-primary);
  transform: translateY(-2px);
}
.btn-line {
  border: 1.5px solid var(--ink-primary);
  color: var(--ink-primary);
  background: rgba(255, 253, 248, 0.6);
}
.btn-line:hover {
  background: var(--ink-primary);
  color: #fff;
}

/* ---------- Pinned story: five chapters over the globe ---------- */
.story {
  position: relative;
}
.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: 115vh;
}
.story__step:first-of-type {
  height: 100vh;
}

.chapter {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  width: min(580px, 44vw);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.chapter--left {
  left: max(4vw, calc((100vw - var(--max-width)) / 2 + 24px));
}
.chapter--right {
  right: max(4vw, calc((100vw - var(--max-width)) / 2 + 24px));
}
.chapter.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.6s ease, visibility 0s;
}
.chapter.is-active .display .ln > span {
  transform: translateY(0);
}
.chapter__lede {
  margin: 22px 0 0;
  max-width: 470px;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--home-fg-soft);
  text-shadow: 0 0 14px rgba(var(--home-glow), 1), 0 0 28px rgba(var(--home-glow), 0.8);
}
.chapter__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.chapter-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  max-width: 500px;
}
.chapter-link {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 10px 26px rgba(23, 36, 55, 0.07);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, border-color 0.2s ease;
  transition-delay: calc(240ms + var(--i, 0) * 90ms);
}
.chapter.is-active .chapter-link {
  transform: none;
  opacity: 1;
}
.chapter-link:hover {
  border-color: var(--brand-emerald);
}
.chapter-link__thumb {
  width: 84px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapter-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chapter-link__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-emerald);
}
.chapter-link__title {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink-primary);
}
.chapter-link--big {
  grid-template-columns: 150px minmax(0, 1fr);
}
.chapter-link--big .chapter-link__thumb {
  width: 150px;
  height: 104px;
}
.chapter-link--big .chapter-link__title {
  font-size: 21px;
}

.chapter-markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  max-width: 480px;
}
.chapter-markets__cell {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--border-hairline);
}
.chapter-markets__cell span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}
.chapter-markets__cell b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chapter-markets__cell i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand-emerald);
}
.chapter-markets__cell i.is-neg {
  color: #b4362b;
}
.demo-note {
  color: var(--home-fg-soft) !important;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.story__dots {
  position: absolute;
  left: 50%;
  bottom: 4.5vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--border-hairline);
  pointer-events: none;
}
.story__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-primary);
  opacity: 0.22;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.story__dots i.on {
  opacity: 1;
  transform: scale(1.45);
  background: var(--accent-amber);
}
.story__dots-label {
  min-width: 110px;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
}
.story__hint {
  position: absolute;
  left: 50%;
  bottom: 11vh;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: opacity 0.4s ease;
}
.story__hint::after {
  content: "";
  display: block;
  width: 1.5px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(var(--ink-muted), 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; }
}

/* ---------- Latest ticker ---------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  margin: 6vh 0 0;
  background: var(--brand-emerald);
  color: #fff;
  overflow: hidden;
}
.ticker__label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 22px;
  background: var(--accent-amber);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-primary);
  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%);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__track a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  height: 58px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;

}
.ticker__track a span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-amber) 70%, #fff);
}
.ticker__track a::after {
  content: "✦";
  margin-left: 22px;
  font-size: 11px;
  color: var(--accent-amber);
}
.ticker__track a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.sec {
  position: relative;
  padding: 13vh 0 6vh;
}
.sec-head {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}
.sec-head .display {
  font-size: clamp(38px, 4.6vw, 72px);
}
.sec-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -6%;
  top: -40%;
  width: min(760px, 80%);
  height: 180%;
  background: radial-gradient(closest-side, rgba(var(--home-glow), 0.92), rgba(var(--home-glow), 0.6) 55%, rgba(var(--home-glow), 0));
  pointer-events: none;
}
.chapter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -14%;
  background: radial-gradient(closest-side, rgba(var(--home-glow), 0.88), rgba(var(--home-glow), 0.55) 60%, rgba(var(--home-glow), 0));
  pointer-events: none;
}
.sec-head__side {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sec-head__side a {
  color: var(--home-link);
}
.sec-head__side a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sec-counter {
  color: var(--home-fg-soft);
  font-variant-numeric: tabular-nums;
}
.sec-head .display .ln > span,
.sec .reveal-title .ln > span {
  transform: translateY(108%);
}
.sec-head.is-visible .display .ln > span {
  transform: none;
}

/* ---------- Shared compact news card (never crops images) ---------- */
.news-card {
  width: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 18px 44px rgba(23, 36, 55, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card__media {
  height: 200px;
  background: var(--bg-warm);
  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;
}
.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px 20px;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}
.news-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-primary);
}
.news-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__cta {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* ---------- Ring carousel (auto-rotating) ---------- */
.ring {
  position: relative;
}
.ring__stage {
  position: relative;
  height: 560px;
  perspective: 2200px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, 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: -210px;
  width: 300px;
  backface-visibility: hidden;
}
.ring .news-card.is-front {
  border-color: var(--brand-emerald);
  box-shadow: 0 26px 60px color-mix(in srgb, var(--brand-emerald) 22%, transparent);
}

/* ---------- Coverflow (auto-advancing) ---------- */
.cflow__stage {
  position: relative;
  height: 560px;
  perspective: 1500px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.cflow .news-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -215px 0 0 -180px;
  width: 360px;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}
.cflow .news-card.is-front {
  border-color: var(--accent-amber);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--accent-amber) 26%, transparent);
}
.cflow__progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.cflow__progress i {
  opacity: 0.85;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--border-strong);
  overflow: hidden;
}
.cflow__progress i.on {
  background: var(--accent-amber);
}

/* ---------- Spotlight rotator ---------- */
.spot {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}
.spot__stage {
  position: relative;
  min-height: 520px;
  border-radius: 26px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 26px 60px rgba(23, 36, 55, 0.12);
}
.spot__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.6s ease;
  pointer-events: none;
}
.spot__slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.spot__media {
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.spot__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spot__caption {
  padding: 22px 26px 24px;
}
.spot__caption h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.spot__caption p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
}
.spot__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spot__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 16px 16px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--ink-primary);
  cursor: pointer;
  transition: background 0.3s ease;
}
.spot__item:hover,
.spot__item.is-on {
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 26px rgba(23, 36, 55, 0.07);
}
.spot__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber);
  padding-top: 4px;
}
.spot__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.spot__item small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-emerald);
}
.spot__bar {
  grid-column: 2;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--border-hairline);
  overflow: hidden;
}
.spot__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-emerald);
}

/* ---------- Business & markets ---------- */
.markets-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.markets-band__cell {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border-hairline);
}
.markets-band__cell span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}
.markets-band__cell b {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.markets-band__cell i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-emerald);
}
.markets-band__cell i.is-neg {
  color: #b4362b;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.tile-grid .news-card {
  width: auto;
}
.tile-grid .news-card:hover {
  border-color: var(--brand-emerald);
  transform: translateY(-4px);
}
.tile-grid .news-card {
  transition: transform 0.35s ease, border-color 0.3s ease;
}

/* ---------- Conveyor (continuous auto-scroll) ---------- */
.conveyor {
  overflow: hidden;
  padding: 10px 0 24px;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.conveyor__track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.conveyor:hover .conveyor__track {
  animation-play-state: paused;
}
.conveyor .news-card {
  flex: 0 0 auto;
  width: 320px;
}

/* ---------- Editor's picks mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.mosaic .news-card {
  width: auto;
}
.mosaic .news-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.mosaic .news-card:nth-child(1) .news-card__media { height: 380px; }
.mosaic .news-card:nth-child(1) .news-card__title { font-size: clamp(26px, 2.4vw, 34px); }
.mosaic .news-card:nth-child(n + 2) { grid-column: span 5; }
.mosaic .news-card:nth-child(n + 2) .news-card__link { flex-direction: row; }
.mosaic .news-card:nth-child(n + 2) .news-card__media { width: 42%; height: auto; min-height: 150px; flex: 0 0 42%; }
.mosaic .news-card:nth-child(n + 2) .news-card__excerpt { display: none; }

/* ---------- Newsletter ---------- */
.nl {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 30px 70px rgba(23, 36, 55, 0.1);
}
.nl .display {
  font-size: clamp(36px, 4.4vw, 68px);
}
.nl p {
  margin: 16px 0 0;
  color: var(--ink-secondary);
}
.nl form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nl input {
  flex: 1 1 220px;
  height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.nl button {
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-emerald);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nl button:hover {
  background: var(--ink-primary);
}
.nl__status {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--brand-emerald);
}

/* ---------- Reveal helpers ---------- */
.home-main .reveal {
  transition-delay: var(--d, 0ms);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .markets-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot { grid-template-columns: 1fr; }
  .mosaic .news-card:nth-child(1),
  .mosaic .news-card:nth-child(n + 2) { grid-column: span 12; }
}

@media (max-width: 860px) {
  .chapter,
  .chapter--left,
  .chapter--right {
    left: 16px;
    right: 16px;
    width: auto;
    top: auto;
    bottom: 13vh;
    transform: none;
    padding: 20px 18px 22px;
    border-radius: 22px;
    background: rgba(251, 248, 241, 0.9);
    border: 1px solid var(--border-hairline);
  }
  .chapter[data-chapter="0"] {
    background: rgba(251, 248, 241, 0.82);
  }
  .display { font-size: 12vw; }
  .sec-head .display { font-size: 10.5vw; }
  .chapter__lede { font-size: 15px; margin-top: 12px; }
  .chapter-links { margin-top: 14px; gap: 8px; }
  .chapter-link:nth-child(n + 3) { display: none; }
  .chapter-markets { margin-top: 14px; }
  .chapter-link--big { grid-template-columns: 96px minmax(0, 1fr); }
  .chapter-link--big .chapter-link__thumb { width: 96px; height: 70px; }
  .story__hint { display: none; }
  .story__dots { bottom: 2.5vh; }
  .btn-pill, .btn-line { height: 44px; padding: 0 18px; font-size: 14px; }
  .ring__stage, .cflow__stage { height: 480px; }
  .news-card { width: 280px; }
  .news-card__media { height: 165px; }
  .ring .news-card { left: -130px; top: -190px; width: 260px; }
  .cflow .news-card { width: 290px; margin: -190px 0 0 -145px; }
  .world-label { font-size: 9.5px; }
  .tile-grid, .markets-band { grid-template-columns: 1fr; }
  .mosaic .news-card:nth-child(n + 2) .news-card__link { flex-direction: column; }
  .mosaic .news-card:nth-child(n + 2) .news-card__media { width: 100%; flex-basis: auto; height: 170px; }
  .mosaic .news-card:nth-child(1) .news-card__media { height: 220px; }
  .nl { grid-template-columns: 1fr; border-radius: 24px; }
  .ticker__track a { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track,
  .conveyor__track {
    animation: none;
  }
  .ticker__viewport,
  .conveyor {
    overflow-x: auto;
  }
  .display .ln > span,
  .chapter-link {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .story__hint::after,
  .ticker__label::before {
    animation: none;
  }
}


/* ==========================================================================
   Classic dense front page (CNN-style) on solid paper, below the 3D story
   ========================================================================== */
.paper-band {
  position: relative;
  background: var(--bg-page);
  border-top: 3px solid var(--ink-primary);
  border-bottom: 1px solid var(--border-hairline);
  padding: 34px 0 40px;
  box-shadow: 0 -24px 60px rgba(23, 36, 55, 0.06);
}
.sec--tight {
  padding: 9vh 0 5vh;
}
.rule-head {
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 4px solid var(--ink-primary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-primary);
}
.rule-head a:hover {
  color: var(--brand-emerald);
}
.front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1.1fr);
  gap: 0;
}
.front__col {
  padding: 0 22px;
}
.front__col--left {
  padding-left: 0;
  border-right: 1px solid var(--border-hairline);
}
.front__col--right {
  padding-right: 0;
  border-left: 1px solid var(--border-hairline);
}
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hl-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.hl-list li:first-child {
  padding-top: 0;
}
.hl-list__cat {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-emerald);
}
.hl-list__title {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}
.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 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-emerald);
}
.front-lead__media,
.front-sub__media,
.block__img,
.thumb-list__img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-warm);
}
.front-lead__media img,
.front-sub__media img,
.block__img img,
.thumb-list__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.front-lead__media {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}
.front-lead__title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.front-lead__dek {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.byline-sm {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.front-subs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}
.front-sub__media {
  aspect-ratio: 3 / 2;
  margin-bottom: 8px;
}
.front-sub h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.thumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.thumb-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.thumb-list li:first-child {
  padding-top: 0;
}
.thumb-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.thumb-list__img {
  width: 92px;
  height: 62px;
}
.thumb-list__title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink-primary);
}
.mkt-box {
  border: 1px solid var(--border-hairline);
  background: #fffdf8;
}
.mkt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13px;
}
.mkt-row span {
  color: var(--ink-secondary);
}
.mkt-row b {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mkt-row i {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: var(--brand-emerald);
  min-width: 52px;
  text-align: right;
}
.mkt-row i.is-neg {
  color: #b4362b;
}
.mkt-note {
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--ink-muted);
}
.blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 26px;
}
.block__lead {
  display: block;
}
.block__img {
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
}
.block__title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}
.block__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.block__list li {
  padding: 8px 0;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}
@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);
    padding: 22px 0 0;
    margin-top: 22px;
  }
  .blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@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: 22px;
  }
  .front-subs {
    grid-template-columns: 1fr;
  }
  .blocks {
    grid-template-columns: 1fr;
  }
}
