/* ---------- FONTS (self-host Cinzel; others via <link> in base.html) ---------- */
@font-face {
  font-family: "Cinzel";
  src: url("/static/assets/fonts/Cinzel/Cinzel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/static/assets/fonts/Cinzel/Cinzel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/static/assets/fonts/Cinzel/Cinzel-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/static/assets/fonts/Cinzel/Cinzel-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* If/when you self-host Citadel Script & Intro Rust Line, add @font-face here:
@font-face{ font-family:"Citadel Script"; src:url("/static/assets/fonts/CitadelScript/CitadelScript.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:"Intro Rust Line"; src:url("/static/assets/fonts/IntroRustLine/IntroRustLine.ttf") format("truetype"); font-weight:400; font-style:normal; font-display:swap; }
*/
@font-face {
  font-family: "Citadel Script";
  src: url("/static/assets/fonts/Citadel.otf") format("otf");
  font-style: normal;
  font-display: swap;
  /* or optional */
}

/* ---------- TOKENS ---------- */
:root {
  --bg: #000;
  --text-100: #e1e1e1;
  --text-200: #eaeaea;
  --text-300: #e0e0e0;
  --text-400: #d9d9d9;
  /* --gold: #c8a96a; */

  --container: 1200px;

  --space-1: 0.25rem;
  /* 4 */
  --space-2: 0.5rem;
  /* 8 */
  --space-3: 0.75rem;
  /* 12 */
  --space-4: 1rem;
  /* 16 */
  --space-6: 1.5rem;
  /* 24 */
  --space-8: 2rem;
  /* 32 */
  --space-12: 3rem;
  /* 48 */
  --space-16: 4rem;
  /* 64 */

  /* font families */
  --ff-cinzel: "Cinzel", Georgia, "Times New Roman", serif;
  --ff-cormorant: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-libre: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --ff-plex: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  --ff-script: "Pinyon Script", cursive;
  --ff-citadel: "Citadel Script", "Pinyon Script", cursive;
  /* temp fallback */
  --ff-intro: "Intro Rust Line", "Cinzel", serif;
  /* temp fallback */

  --img-bleed: 1.5%;

  --bleed-top: 1.2%;
  --bleed-right: 2.2%;
  /* a bit more than left */
  --bleed-bottom: 1.2%;
  --bleed-left: 1.6%;

  --img-shift-x: 52%;
  /* 50% = centered. Try 52% for a tiny extra left crop */
}

/* ---------- BASE ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* helpers */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-left: 2em;
  padding-right: 2em;
}

.section {
  padding-block: min(10vw, 0rem);
  margin-top: 3em;
}

.section--bleed {
  padding-block: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.gold {
  color: var(--gold);
}

.mt-8 {
  margin-top: var(--space-8);
}

.f-cinzel {
  font-family: var(--ff-cinzel);
  font-weight: 400;
}

.f-cormorant {
  font-family: var(--ff-cormorant);
}

.f-libre {
  font-family: var(--ff-libre);
}

.f-plex {
  font-family: var(--ff-plex);
}

.f-script {
  font-family: var(--ff-script);
}

.f-citadel {
  font-family: var(--ff-citadel);
}

.f-intro {
  font-family: var(--ff-intro);
}

.media-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero {
  position: relative;
  min-height: 100svh;
  /* fill viewport */
  isolation: isolate;
}

.hero__inner {
  /* two columns, three rows: top / spacer / bottom */
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: min-content 1fr min-content;
  align-items: stretch;
  /* was: end */
  gap: clamp(24px, 4vw, 48px);
  /* padding-block: clamp(56px, 12vh, 120px); */
  /* outside breathing room */
}

/* TOP-LEFT block */
.hero__left {
  grid-column: 1;
  grid-row: 1;
  /* lock to the top row */
  align-self: start;
  width: 75ch;
  /* wraps like the reference */
}

/* BOTTOM-RIGHT block */
.hero__right {
  grid-column: 2;
  grid-row: 3;
  /* lock to the bottom row */
  align-self: end;
  justify-self: end;
  text-align: right;
  width: 75ch;
}

/* ---------- HERO ---------- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 88%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.05);
}

.hero__badge {
  position: absolute;
  top: min(4vw, 2rem);
  right: min(4vw, 2rem);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.hero__claim {
  color: #e1e1e1;
  line-height: 1.25;
  font-size: 26px;
  /* Cinzel 26px as requested */
  letter-spacing: 0.4px;
}

.hero__strap {
  /* color: #e1e1e1; */
  /* line-height: 1.35; */
  /* font-size: 32px; */
  /* text-align: right; */
}

/* ---------- SECTION TITLES & TEXT STYLES ---------- */
.section__title {
  font-size: 39px;
  /* maybe */
  /* font-size: 46px; */
  color: #e1e1e1;
  letter-spacing: 0.6px;
  text-align: center;
}

.kicker {
  font-size: 24px;
  /* maybe
  font-size: 32px; */
  color: #eaeaea;
}

.body {
  font-size: 16px;
  color: #e0e0e0;
}

.body-italic {
  font-size: 14px;
  color: #eaeaea;
  font-style: italic;
}

.body-italic.big {
  color: #d9d9d9;
}

.body.larger {
  font-size: 18px;
  color: #d9d9d9;
}

.mono {
  font-size: 14px;
  color: #d9d9d9;
}

.small {
  font-size: 12px;
  color: #d9d9d9;
}

.script {
  font-size: 26px;
  color: #c8a96a;
}

.script-big {
  font-size: 26px;
  color: #c8a96a;
  margin-bottom: var(--space-6);
}

.review-title {
  font-size: 30px;
  color: #d9d9d9;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  margin-bottom: var(--space-8);
}

.cta-line {
  margin-top: var(--space-6);
  font-size: 18px;
  color: #d9d9d9;
}

.ghost-link {
  color: currentColor;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 4px;
}

/* ---------- DOCTRINE ---------- */
.doctrine__grid {
  align-items: center;
}

.doctrine .body {
  margin-top: var(--space-2);
}

.doctrine__media {
  position: relative;
  margin: 0;
  background: #000;
  border: 0 !important;
  outline: 0;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  transform: translateZ(0);
}

.doctrine__media .media-img {
  position: absolute;
  inset: calc(-1 * var(--bleed-top)) calc(-1 * var(--bleed-right))
    calc(-1 * var(--bleed-bottom)) calc(-1 * var(--bleed-left));
  width: calc(100% + var(--bleed-left) + var(--bleed-right));
  height: calc(100% + var(--bleed-top) + var(--bleed-bottom));
  object-fit: cover;
  object-position: var(--img-shift-x) 50%;

  max-width: none;
  background: #000;
  border: 0 !important;
}

.doctrine__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 100% at 50% 45%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.45) 100%
  );
  mix-blend-mode: multiply;
}

.age__grid {
  align-items: center;
}

.age__text p {
  margin-bottom: var(--space-3);
}

.shift__copy {
  text-align: center;
}

.shift__copy .mono {
  margin-top: var(--space-4);
}

.shift__copy p {
  max-width: 58ch;
}

.quote .script-big,
.ruling .script-big {
  text-align: center;
  margin-bottom: var(--space-8);
}

.vaults .section__title {
  font-size: 42px;
  color: #d9d9d9;
}

.verified .section__title {
  font-size: 32px;
  color: #e1e1e1;
}

.ending .xl {
  font-size: 24px;
  color: #d9d9d9;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero__strap {
    text-align: left;
    margin-top: var(--space-6);
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: var(--space-12);
  }
}

/* ====== Motion system (append to end) ====== */

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Reveal (fade/slide-up) */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s ease-out,
    transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-parallax] {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.gold-shine,
.ghost-link {
  position: relative;
  /* background:
    linear-gradient(90deg, rgba(200, 169, 106, 0) 0%,
      rgba(200, 169, 106, .6) 50%,
      rgba(200, 169, 106, 0) 100%) 0 100% / 200% 2px no-repeat; */
  transition: background-position 0.9s ease;
}

.gold-shine:hover,
.ghost-link:hover {
  background-position: 100% 100%;
}

.gold-shine {
  text-shadow: 0 0 0.5px rgba(200, 169, 106, 0.7),
    0 0 6px rgba(200, 169, 106, 0.2);
}

.shift-year.is-active {
  color: var(--gold);
  letter-spacing: 0.2px;
}

.media-img {
  transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1), filter 0.6s ease;
}

.media-img:hover {
  transform: translateZ(0) scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}

.media-img-half {
  width: 50%;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 9999;
  background: linear-gradient(90deg, var(--gold), #8f6b2e);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.15s linear;
  pointer-events: none;
}

.hero__claim {
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: 0.4px;
}

.hero__strap {
  font-size: 32px;
  line-height: 1.55;
}

.hero__strap {
  position: relative;
  padding-bottom: 0.6rem;
}

.hero__strap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    #b99d57 18%,
    #b99d57 82%,
    rgba(0, 0, 0, 0)
  );
  opacity: 0.9;
}

@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero__left {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__right {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    max-width: 40ch;
    margin-top: var(--space-6);
  }
}

.container.hero__inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-top: 0;
  padding-bottom: 6em;
}

.hero__row {
  width: 100%;
  display: flex;
}

.hero__row--top {
  justify-content: flex-start;
}

.hero__row--bottom {
  justify-content: flex-end;
}

/* Keep your video overlay as-is */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(185, 157, 87, 0.22);
  /* subtle gold hairline */
}

.header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-100);
  border: solid var(--gold) 1px;
}

.brand__wordmark {
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text-100);
}

/* Nav */
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text-100);
  text-decoration: none;
  font-family: var(--ff-cinzel);
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
  opacity: 0.92;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    #b99d57 20%,
    #b99d57 80%,
    rgba(0, 0, 0, 0)
  );
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.28s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Active link */
.site-nav a[aria-current="page"] {
  color: #edeae4;
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Mobile */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #e1e1e1;
  transition: transform 0.25s ease, opacity 0.25s;
}

/* Collapse into a dropdown under the header */
@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(185, 157, 87, 0.18);
    border-top: none;
    padding: 12px 16px;
    margin-right: 12px;
  }

  .site-header[menu-open] .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Solid background after scroll (optional but nice) */
.site-header.is-solid {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(185, 157, 87, 0.3);
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fourteenpx {
  font-size: 18px;
}

/* ===== SHIFT TIMELINE ===== */
#shift {
  --gold: #c8a96a;
}

/* local token so .gold works even if global is unset */

.timeline {
  position: relative;
  margin-top: var(--space-12);
  padding-block: var(--space-8);
}

.timeline__rail {
  position: relative;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(185, 157, 87, 0.18),
    rgba(185, 157, 87, 0.28)
  );
  border-radius: 2px;
  overflow: hidden;
  /* Desktop: horizontal line centered behind dots */
  margin-inline: clamp(8px, 4vw, 24px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.timeline__progress {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, #b99d57, #d8bd7a);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform 0.45s ease;
  will-change: transform;
}

.timeline__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
  position: relative;
}

.timeline__item {
  position: relative;
  text-align: center;
}

.timeline__dot {
  --s: 18px;
  position: relative;
  width: var(--s);
  height: var(--s);
  margin-inline: auto;
  border-radius: 50%;
  border: 2px solid rgba(200, 169, 106, 0.65);
  background: radial-gradient(
    circle at 50% 50%,
    #e7d19d 0%,
    #b99d57 55%,
    #755b22 100%
  );
  box-shadow: 0 0 0 2px rgba(200, 169, 106, 0.14),
    0 0 16px 2px rgba(200, 169, 106, 0.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.3s ease;
}

.timeline__dot::after {
  /* subtle breathing glow */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 169, 106, 0.15),
    rgba(200, 169, 106, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.timeline__item:hover .timeline__dot {
  transform: scale(1.06);
}

.timeline__item:hover .timeline__dot::after {
  opacity: 1;
}

.timeline__card {
  margin-top: var(--space-4);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(185, 157, 87, 0.22);
  padding: clamp(10px, 1.8vw, 16px);
  backdrop-filter: saturate(120%) blur(4px);
  -webkit-backdrop-filter: saturate(120%) blur(4px);
  border-radius: 10px;
  text-align: left;
  transform: translate3d(0, 12px, 0);
  opacity: 0;
  transition: opacity 0.45s ease-out,
    transform 0.55s cubic-bezier(0.2, 0.65, 0.2, 1);
}

/* Alternate card rise positions for rhythm */
.timeline__item:nth-child(odd) .timeline__card {
  transform: translate3d(0, -12px, 0);
}

.timeline__item.is-active .timeline__card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.timeline__item.is-active .timeline__dot {
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.22),
    0 0 20px 4px rgba(200, 169, 106, 0.35);
  filter: saturate(1.08) contrast(1.04);
}

/* Mobile: vertical timeline */
@media (max-width: 820px) {
  .timeline__items {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .timeline__rail {
    position: absolute;
    left: 26px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    margin: 0;
    transform: translateY(8px);
    background: linear-gradient(
      180deg,
      rgba(185, 157, 87, 0.18),
      rgba(185, 157, 87, 0.28)
    );
  }

  .timeline__progress {
    transform: scaleY(var(--p, 0));
    transform-origin: 50% 0;
  }

  .timeline__item {
    text-align: left;
    padding-left: 56px;
  }

  .timeline__dot {
    position: absolute;
    left: 18px;
    top: 0;
  }

  .timeline__card {
    margin-top: 0;
  }
}

/* ===== CONSTELLATION TIMELINE (SHIFT) ===== */
#shift {
  --gold-1: #b99d57;
  --gold-2: #e7d19d;
  --ink: rgba(0, 0, 0, 0.55);
}

#shift .shift-stage {
  position: relative;
  margin-top: clamp(24px, 4vw, 48px);
  height: clamp(420px, 52vw, 560px);
  overflow: visible;
  perspective: 1000px;
}

#shift .shift-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 40px rgba(185, 157, 87, 0.08));
}

/* Node housing */
#shift .shift-node {
  position: absolute;
  translate: -50% -50%;
  will-change: transform, filter;
}

/* Dot with magnetic halo */
#shift .dot {
  --s: 20px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(200, 169, 106, 0.55);
  background: radial-gradient(
    circle at 45% 40%,
    var(--gold-2) 0%,
    var(--gold-1) 58%,
    #6b5320 100%
  );
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.12),
    0 0 24px 6px rgba(200, 169, 106, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.25s ease;
}

#shift .dot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 169, 106, 0.2),
    rgba(200, 169, 106, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

#shift .shift-node:hover .dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.18),
    0 0 30px 8px rgba(200, 169, 106, 0.32);
}

#shift .shift-node:hover .dot::after {
  opacity: 1;
}

/* Label + card */
#shift .label {
  position: relative;
  padding-top: 14px;
  width: min(340px, 36vw);
}

#shift .year-watermark {
  position: absolute;
  inset: auto auto 100% 0;
  transform: translateY(-8px);
  font-family: var(--font-cinzel, serif);
  font-size: clamp(26px, 4.5vw, 42px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(231, 209, 157, 0.08);
  pointer-events: none;
  user-select: none;
}

#shift .card {
  background: rgba(6, 6, 6, 0.62);
  border: 1px solid rgba(185, 157, 87, 0.24);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  padding: clamp(12px, 1.8vw, 18px);
  border-radius: 12px;
  transform: translate3d(0, 16px, 0) rotateX(8deg);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1),
    opacity 0.45s ease-out, box-shadow 0.4s ease;
  box-shadow: 0 0 0 0 rgba(200, 169, 106, 0);
}

#shift .shift-node.is-active .card {
  transform: translate3d(0, 0, 0) rotateX(0deg);
  opacity: 1;
  box-shadow: 0 8px 40px -6px rgba(200, 169, 106, 0.18);
}

#shift .shift-node:nth-child(odd) .card {
  transform: translate3d(0, -16px, 0) rotateX(8deg);
}

/* Mobile: switch to vertical curve (we’ll reuse same JS positions) */
@media (max-width: 820px) {
  #shift .shift-stage {
    height: 720px;
  }

  #shift .label {
    width: min(440px, 84vw);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #shift .card,
  #shift .dot {
    transition: none !important;
  }
}

/* ==== Age of Intelligence timeline (scoped) ==== */
.ai-shift {
  padding: var(--space-16) 0;
}

.ai-shift__header {
  text-align: center;
  max-width: 96ch;
  margin: 0 auto var(--space-12);
}

.ai-overline {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold, #c8a96a);
  opacity: 0.9;
  margin-bottom: var(--space-4);
}

.ai-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
}

.ai-desc {
  color: var(--text-300);
  margin-top: var(--space-4);
}

.ai-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* center rail */
.ai-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(200, 169, 106, 0) 0%,
    rgba(200, 169, 106, 0.9) 15%,
    rgba(200, 169, 106, 0.9) 85%,
    rgba(200, 169, 106, 0) 100%
  );
  transform: translateX(-50%);
}

/* items alternate across the rail */
.ai-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  padding-block: 5rem;
}

.ai-item:nth-child(even) .ai-year {
  order: 2;
  text-align: left;
}

.ai-item:nth-child(even) .ai-copy {
  order: 1;
}

/* dot with glow */
.ai-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold, #c8a96a);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.2),
    0 0 18px rgba(200, 169, 106, 0.35), 0 0 28px rgba(200, 169, 106, 0.25);
}

/* left column (years + titles) */
.ai-year {
  text-align: right;
  padding-right: 3rem;
}

.ai-y {
  color: var(--gold, #c8a96a);
  line-height: 0.9;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  margin-bottom: 0.5rem;
}

.ai-h {
  font-weight: 600;
  font-size: 1.125rem;
}

/* right column (copy) */
.ai-copy {
  padding-left: 3rem;
}

.ai-copy p {
  color: var(--text-200);
  line-height: 1.8;
}

/* reveal ties into your existing [data-reveal] JS */
.ai-item[data-reveal] {
  will-change: opacity, transform;
}

/* responsive: stack, move rail to the left */
@media (max-width: 1024px) {
  .ai-timeline::before {
    left: 28px;
    transform: none;
  }

  .ai-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 80px;
  }

  .ai-item:nth-child(even) .ai-year {
    order: 1;
    text-align: left;
  }

  .ai-item:nth-child(even) .ai-copy {
    order: 2;
  }

  .ai-year {
    padding-right: 0;
  }

  .ai-copy {
    padding-left: 0;
  }

  .ai-dot {
    left: 28px;
  }
}

@media (max-width: 640px) {
  .ai-item {
    padding-block: 3rem;
    padding-left: 60px;
  }
}

/* ===============================
   AGE OF INTELLIGENCE — TUNING
   Tight spacing, proper type scale,
   centered rail, connector arms,
   kill stray italics.
==================================*/

.ai-shift {
  /* control knobs */
  --rail-x: 50%;
  --col-w: min(38rem, 42vw);
  --gap-x: clamp(32px, 6vw, 72px);
  --vpad: clamp(56px, 9vw, 96px);
  --gold: var(--gold, #c8a96a);
}

.ai-shift * {
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

/* header copy */
.ai-shift .ai-desc {
  max-width: 66ch;
  margin: 0.75rem auto 0;
  font-style: normal !important;
}

/* timeline frame */
.ai-shift .ai-timeline {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
}

/* center rail */
.ai-shift .ai-timeline::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(200, 169, 106, 0) 0%,
    rgba(200, 169, 106, 0.9) 14%,
    rgba(200, 169, 106, 0.9) 86%,
    rgba(200, 169, 106, 0) 100%
  );
}

/* items: two equal columns, centered vertically on the dot */
.ai-shift .ai-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--col-w) var(--col-w);
  column-gap: var(--gap-x);
  align-items: center;
  padding-block: var(--vpad);
}

/* alternate sides */
.ai-shift .ai-item:nth-child(even) .ai-year {
  order: 2;
  text-align: left;
}

.ai-shift .ai-item:nth-child(even) .ai-copy {
  order: 1;
}

/* connector arms from rail to the active column */
.ai-shift .ai-item::before,
.ai-shift .ai-item::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  width: min(10vw, 120px);
  transform: translateY(-0.5px);
  background: linear-gradient(
    90deg,
    rgba(200, 169, 106, 0),
    rgba(200, 169, 106, 0.55)
  );
}

.ai-shift .ai-item::before {
  left: calc(50% + 6px);
}

/* right arm */
.ai-shift .ai-item::after {
  right: calc(50% + 6px);
  transform: translateY(-0.5px) scaleX(-1);
}

/* left arm */
.ai-shift .ai-item:nth-child(even)::before {
  display: none;
}

.ai-shift .ai-item:nth-child(even)::after {
  display: block;
}

.ai-shift .ai-item:nth-child(odd)::before {
  display: block;
}

.ai-shift .ai-item:nth-child(odd)::after {
  display: none;
}

/* the dot sits on the rail, vertically centered to the row */
.ai-shift .ai-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.15),
    0 0 18px rgba(200, 169, 106, 0.35), 0 0 36px rgba(200, 169, 106, 0.25);
}

/* left column: year + heading */
.ai-shift .ai-year {
  text-align: right;
}

.ai-shift .ai-y {
  font-family: "Cinzel", serif;
  color: var(--gold);
  line-height: 0.9;
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 72px);
  /* BIG like the sample */
  margin-bottom: 0.3rem;
}

.ai-shift .ai-h {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: clamp(16px, 0.9rem + 0.3vw, 20px);
  opacity: 0.95;
}

/* right column: paragraph — de-italicize & keep readable width */
.ai-shift .ai-copy {
  max-width: 44ch;
}

.ai-shift .ai-copy p {
  font-style: normal !important;
  /* kills stray italics from global classes */
  font-weight: 400;
  font-size: clamp(15px, 0.95rem + 0.25vw, 17px);
  line-height: 1.75;
  color: var(--text-200, #cfcfcf);
}

/* responsive: left rail, stacked items, no arms */
@media (max-width: 1024px) {
  .ai-shift .ai-timeline::before {
    left: 40px;
    transform: none;
  }

  .ai-shift .ai-dot {
    left: 40px;
  }

  .ai-shift .ai-item {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-left: 88px;
    padding-block: clamp(40px, 8vw, 64px);
  }

  .ai-shift .ai-year {
    text-align: left;
  }

  .ai-shift .ai-item::before,
  .ai-shift .ai-item::after {
    display: none;
  }
}

/* small phones */
@media (max-width: 640px) {
  .ai-shift .ai-item {
    padding-left: 64px;
  }
}

.section:not(.section--bleed) {
  margin-top: 0 !important;
}

:root {
  --type-h2: clamp(30px, 2rem + 1vw, 44px);
  --type-h3: clamp(18px, 1.05rem + 0.4vw, 22px);
  --type-p: clamp(16px, 1rem + 0.25vw, 18px);
  --type-lead: clamp(18px, 1.1rem + 0.4vw, 20px);
  --lh-body: 1.75;
  --glass-bg: rgba(10, 10, 10, 0.45);
  /* transparency */
  --glass-blur: 8px;
  /* blur strength */
  --glass-border: rgba(185, 157, 87, 0.18);
  --glass-border-strong: rgba(185, 157, 87, 0.28);
}

/* Section titles */
.section__title,
.review-title,
.ai-title {
  font-family: var(--ff-cinzel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: var(--type-h2);
  color: var(--text-100);
  text-align: center;
}

/* Normalize special-case overrides */
.vaults .section__title,
.verified .section__title {
  font-size: inherit;
}

/* Subheads */
.kicker,
.ai-h {
  font-family: var(--ff-cormorant);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e0dbb7;
  /* color: var(--text-200); */
}

/* Body copy — make default non-italic, single family & rhythm */
.body,
.ai-copy p,
.doctrine .body,
.reviews .body,
.verified .body,
.vaults .body,
.ending .body,
.age__text p,
.ai-desc {
  font-family: var(--ff-libre);
  font-style: italic;
  font-size: var(--type-p);
  line-height: var(--lh-body);
  color: var(--text-300);
}

/* Monospace blocks align to same size/line-height for harmony */
.mono {
  font-family: var(--ff-plex);
  font-size: var(--type-p);
  line-height: var(--lh-body);
  color: var(--text-300);
}

/* Script faces reserved for callouts/quotes only */
.f-script,
.f-citadel {
  font-size: clamp(22px, 1.25rem + 0.6vw, 31px);
}

/* Nuke ad‑hoc size & italics helpers for consistency */
.fourteenpx,
.small {
  font-size: inherit !important;
}

.body-italic {
  font-style: normal !important;
}

/* Nice readable line length for text columns we mark with .prose */
/* .prose{ max-width: 66ch; } */

/* Slightly tighten default 2-col gap so text & image feel connected */
.grid-2 {
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

/* === Fixes based on review === */

/* (2) & (3): Unify heading sizes for these sections */
.vaults .section__title,
.verified .section__title {
  font-size: var(--type-h2) !important;
}

/* (4): Remove underline/shine background ONLY for the quote marquee */
.quote .gold-shine {
  background: none !important;
  margin-bottom: 0;
}

/* (1a): Give Age of Intelligence text more real estate */
.age .age__grid {
  gap: clamp(28px, 5vw, 48px);
}

.age .age__text.prose {
  max-width: 74ch;
}

/* (1b): Tighten vertical rhythm on the timeline */
.ai-item {
  padding-block: clamp(28px, 5vw, 48px) !important;
}

.ibm-normal {
  font-family: var(--ff-plex);
  font-style: normal;
}

.n-hero {
  position: relative;
  height: 92vh;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 174, 107, 0.12);
}

.n-hero h2 {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 9;
  font: 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.n-hero h2 small {
  opacity: 0.6;
  font-weight: 400;
}

.n-variant-a .n-media::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    60% 60% at 40% 38%,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.56) 100%
  );
  pointer-events: none;
}

.n-rule {
  width: min(520px, 60vw);
  height: 2px;
  background: rgba(201, 174, 107, 0.3);
  margin: 18px 0 8px;
  position: relative;
  overflow: hidden;
}

.n-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  mix-blend-mode: screen;
  width: 40%;
  transform: translateX(-120%);
  animation: glint 2.2s ease-in-out 3s both;
  /* one pass on load */
}

.n-place-top-left {
  place-items: start start;
  padding: 8vh 4vw;
}

.n-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.n-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) contrast(1.02) saturate(0.85);
}

.n-inner {
  position: relative;
  z-index: 5;
  width: min(1200px, 92vw);
  margin: auto;
  padding-inline: 2.5vw;
}

.n-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(980px, 80vw);
}

.n-lockup .n-h {
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.08;
  font-weight: 500;
}

.n-lockup .n-h span {
  display: block;
}

.n-lockup .n-subline {
  margin-top: 0.6rem;
  font-size: clamp(14px, 1.5vw, 20px);
  letter-spacing: 0.02em;
  opacity: 0.92;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c8a96a;
  --gold-light: #f4e4b8;
  --gold-dark: #b8941f;
  --bg-dark: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section {
  position: relative;
  z-index: 10;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.doctrine-content {
  max-width: 900px;
  margin: 0 auto;
}

.timeline {
  max-width: 1200px;
  margin: 4rem auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 2;
}

.timeline-item:nth-child(even) .timeline-year {
  order: 1;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 20px var(--gold);
}

.timeline-year {
  text-align: right;
  padding-right: 4rem;
}

.timeline-year h3 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-year h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-content {
  padding-left: 4rem;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 1rem;
}

/* Parallax wrapper class kept for parity (no JS needed here) */
.parallax-section {
  transform: translateZ(0);
  will-change: transform;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.02) 50%,
    transparent 100%
  );
}

/* Responsive rules exactly as designer's */
@media (max-width: 1024px) {
  .timeline::before {
    left: 30px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 80px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    order: 2;
  }

  .timeline-item:nth-child(even) .timeline-year {
    order: 1;
  }

  .timeline-dot {
    left: 30px;
    transform: none;
  }

  .timeline-year {
    text-align: left;
    padding-right: 0;
  }

  .timeline-content {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .timeline-item {
    padding-left: 60px;
  }
}

.cormo-timeline {
  font-weight: 600;
}

/* ===== Footer (drop-in) ===== */
.footer {
  --hairline: rgba(185, 157, 87, 0.22);
  position: relative;
  margin-top: clamp(40px, 8vw, 100px);
  padding-block: clamp(18px, 3vw, 34px);
  text-align: center;
  font-family: var(--ff-cinzel, serif);
  letter-spacing: 0.06em;
  color: var(--text-200, #eaeaea);
  border-top: 1px solid var(--hairline);
  /* soft gold vignette + faint noise sheen */
  background: radial-gradient(
      120% 140% at 50% 0,
      rgba(185, 157, 87, 0.06) 0%,
      rgba(0, 0, 0, 0) 65%
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.015)
    );
}

/* animated gold sweep along the top edge (very subtle) */
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    var(--gold) 18%,
    var(--gold) 82%,
    rgba(0, 0, 0, 0)
  );
  opacity: 0.65;
  background-size: 200% 100%;
  animation: footer-sweep 14s ease-in-out infinite;
  pointer-events: none;
}

/* faint golden “stardust” to give the footer life */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(
      1px 1px at 22% 38%,
      rgba(200, 169, 106, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 68% 62%,
      rgba(200, 169, 106, 0.22),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 41% 78%,
      rgba(200, 169, 106, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 83% 24%,
      rgba(200, 169, 106, 0.18),
      transparent 60%
    );
  mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* links look elegant in the footer */
.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 106, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.footer a:hover {
  color: var(--text-100, #e1e1e1);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 8px rgba(200, 169, 106, 0.2);
}

/* optional tiny size/spacing tweak on very small screens */
@media (max-width: 520px) {
  .footer {
    letter-spacing: 0.04em;
    padding-block: 16px;
  }
}

/* sweep animation */
@keyframes footer-sweep {
  0%,
  12% {
    background-position: 0% 0;
  }

  50% {
    background-position: 100% 0;
  }

  88%,
  100% {
    background-position: 0% 0;
  }
}

.prediction-warning {
  /* font-size: 1000px; */
}

.prediction-warning-2 {
  /* font-size: 1000px; */
}

.site-header {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(120%) blur(var(--glass-blur));
  backdrop-filter: saturate(120%) blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
  /* soft lift */
}

/* Slightly more opaque when you scroll */
.site-header.is-solid {
  background: rgba(8, 8, 8, 0.72);
  border-bottom-color: var(--glass-border-strong);
}

/* Brand: remove hard border, keep a refined glass chip */
.brand {
  border: 0 !important;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(185, 157, 87, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.22);
}

/* Links look a touch clearer over glass */
.site-nav a {
  opacity: 0.96;
}

.site-nav a:hover {
  opacity: 1;
}

/* Mobile dropdown inherits the glass look */
@media (max-width: 900px) {
  .site-nav {
    background: rgba(8, 8, 8, 0.78);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    backdrop-filter: saturate(120%) blur(8px);
    border: 1px solid var(--glass-border);
    border-top: none;
  }
}

/* --- Doctrine image: layer order and parallax hook --- */
.doctrine__media::after {
  z-index: 1;
}

/* keep your vignette but pin its layer */
.doctrine__media[data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0px), 0) translateZ(0);
  will-change: transform;
}

/* --- Gold Glint Sweep overlay --- */
.glint-img {
  position: relative;
}

.glint-img::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 2;
  /* above vignette */
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 46%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.1) 54%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  opacity: 0.25;
  background-size: 200% 100%;
  background-position: -120% 0;
  animation: glint-sweep 6.5s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glint-img::before {
    animation: none;
  }
}

/* Keyframes for the sweep */
@keyframes glint-sweep {
  0%,
  8% {
    background-position: -120% 0;
  }

  50% {
    background-position: 120% 0;
  }

  92%,
  100% {
    background-position: -120% 0;
  }
}

/* Pause the ::before animation when element is off-screen */
.glint-paused::before {
  animation-play-state: paused !important;
}

/* unified rounding for the doctrine media */
.doctrine__media {
  position: relative;
  border-radius: 16px;
  /* adjust to taste: 12px, 20px, etc. */
  overflow: hidden;
  /* ensures ::before/::after and the img are clipped */
}

/* inherit rounding for overlays and the image itself */
.doctrine__media::before,
.doctrine__media::after,
.doctrine__media .media-img {
  border-radius: inherit;
  display: block;
  /* remove stray gaps */
}

/* --- HERO OVERRIDES: no hover zoom in hero --- */
.n-hero .media-img {
  transition: none;
  /* don't animate hover in hero */
}

.n-hero .media-img:hover {
  transform: none !important;
  /* cancel the global scale(1.02) */
  filter: none !important;
}

/* --- HERO: gentle breathing on the hero image --- */
@keyframes hero-breathe {
  0%,
  100% {
    transform: translateZ(0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateZ(0) scale(0.99);
    /* was 1 ↔ 0.99 for subtlety */
    opacity: 0.94;
    /* tiny dim for “life” */
  }
}

.n-hero .doctrine__media .media-img {
  animation: hero-breathe var(--hero-breath-dur, 12s) ease-in-out infinite;
  transform-origin: 50% 50%;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .n-hero .doctrine__media .media-img {
    animation: none !important;
  }
}

/* --- HERO: faint gold aura that breathes --- */
@keyframes hero-aura {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 0.45;
  }
}

.n-hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(
    62% 54% at 50% 44%,
    rgba(200, 169, 106, 0.1),
    rgba(0, 0, 0, 0) 62%
  );
  opacity: 0.05;
  animation: hero-aura 11s ease-in-out infinite;
  z-index: 1;
  /* below your lockup (z-index:5 on .n-inner) */
}

@media (prefers-reduced-motion: reduce) {
  .n-hero::after {
    animation: none !important;
  }
}

/* ===== Ending CTA (Variant C2) ===== */
.ending-cta {
  position: relative;
  padding: 0 !important;
  isolation: isolate;
}

.ending-cta__media {
  position: relative;
  margin: 0;
  height: clamp(420px, 62vw, 760px);
  overflow: hidden;
}

.ending-cta__media .media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1) contrast(1.05);
}

/* Soft radial darkening like the sample */
.ending-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.85)
  );
}
@media (max-width: 900px) {

.section{
  margin-top: -4em;
  margin-bottom: -4em;
}
}
/* Center stack */
.ending-cta__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4vw;
}


.ending-cta__lockup {
  max-width: 80ch;
  margin-inline: auto;
}

.ending-cta__title {
  font-family: var(--ff-cinzel);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: clamp(40px, 2rem + 4vw, 86px);
  color: #edeae4;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.25em;
}

.ending-cta__lead {
  font-style: normal;
  font-size: clamp(16px, 1rem + 0.5vw, 20px);
  color: var(--text-300);
  margin: 0 auto 1.2rem;
  max-width: 80ch;
}

/* CTA uses your ghost-link but makes it a pill button here */
.ending-cta__cta .ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border-color: rgba(200, 169, 106, 0.75);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
  backdrop-filter: saturate(120%) blur(2px);
  font-family: var(--ff-cinzel);
  font-size: clamp(14px, 0.9rem + 0.2vw, 18px);
}

.ending-cta__cta .ghost-link:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Mobile spacing polish */
@media (max-width: 600px) {
  .ending-cta__media {
    height: 66vh;
  }

  .ending-cta__title {
    font-size: clamp(38px, 10vw, 56px);
  }
}

/* 1) Keep the image bright everywhere */
.ending-cta__media .media-img {
  filter: brightness(1) contrast(1.05);
}

/* Turn off the full-frame darkening */
.ending-cta__media::after {
  background: none;
}

/* 2) Local “soft-spot” behind the text */
.ending-cta {
  --spot-alpha: 0.6;
  /* strength of center darkening */
  --spot-w: min(100%);
  /* halo width  */
  --spot-h: min(60vw, 560px);
  margin-bottom: 1em;
  /* halo height */
  --spot-blur: 28px;
  /* blur amount for ultra-soft edge */
}

.ending-cta__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ending-cta__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--spot-w);
  height: var(--spot-h);
  pointer-events: none;
  z-index: 0;

  /* Fallback: radial darkening with feathered edges */
  background: radial-gradient(
    72% 62% at 50% 50%,
    rgba(0, 0, 0, var(--spot-alpha)) 0%,
    rgba(0, 0, 0, calc(var(--spot-alpha) - 0.18)) 55%,
    rgba(0, 0, 0, 0) 88%
  );

  /* Make it feel even more natural when supported */
  -webkit-backdrop-filter: brightness(0.66) saturate(110%) blur(0.5px);
  backdrop-filter: brightness(0.66) saturate(110%) blur(0.5px);

  /* Feather the very edge so there’s no “shape” */
  -webkit-mask-image: radial-gradient(
    74% 64% at 50% 50%,
    #000 65%,
    transparent 95%
  );
  mask-image: radial-gradient(74% 64% at 50% 50%, #000 65%, transparent 95%);
}

/* Keep text above the halo */
.ending-cta__lockup {
  position: relative;
  z-index: 1;
}

/* Mobile tuning */
@media (max-width: 600px) {
  .ending-cta {
    --spot-w: 92vw;
    --spot-h: 54vw;
    --spot-alpha: 0.58;
  }
}

/* ===== Evidence Carousel (scoped) ===== */
.bci-cc {
  --cc-gap: clamp(16px, 2.4vw, 28px);
  --cc-card-w: min(86%, 520px);
  /* same feel as a.html */
}

/* Title harmony with your system */
.bci-cc .section__title {
  margin-bottom: var(--cc-gap);
}

/* Horizontal snap carousel (scoped) */
.bci-cc__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--cc-card-w);
  gap: var(--cc-gap);
  overflow-x: auto;
  padding-bottom: 8px;
  /* space for scrollbar */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bci-cc__carousel:focus {
  outline: none;
}

/* Each card snaps to center */
.bci-cc__card {
  scroll-snap-align: center;
}

.bci-cc__card {
  background: var(--bg-card, #111);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(200, 169, 106, 0.14);
  transition: transform 0.2s ease;
}

.bci-cc__card:hover {
  transform: translateY(-1px);
}

.bci-cc__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Caption */
.bci-cc__cap {
  padding: 14px 16px;
  color: var(--text-300, #cfcfcf);
  font-family: var(--ff-libre, serif);
  line-height: var(--lh-body, 1.75);
  opacity: 0.9;
}

/* Subtle custom scrollbar — scoped */
.bci-cc__carousel::-webkit-scrollbar {
  height: 8px;
}

.bci-cc__carousel::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--gold) 40%, transparent);
  border-radius: 99px;
}

/* Reduced motion = same layout, no extra transforms */
@media (prefers-reduced-motion: reduce) {
  .bci-cc__card {
    transition: none;
  }
}

/* ------- Scoped tweaks for the vault evidence area ------- */
.bci-cc .bci-cc__tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 0.5em;
  border: 1px solid rgba(224, 219, 183, 0.35);
  border-radius: 999px;
  font-family: var(--font-cinzel, serif);
  font-size: 0.8em;
  letter-spacing: 0.04em;
  color: #e0dbb7;
  opacity: 0.9;
}

.bci-cc .bci-cc__cap {
  font-size: 0.95rem;
  line-height: 1.5;
}

.bci-cc .bci-cc__note {
  max-width: 40ch;
}

.bci-cc .bci-cc__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.bci-cc .bci-cc__dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224, 219, 183, 0.22);
  list-style: none;
}

.bci-cc .bci-cc__dots li.is-active {
  background: #e0dbb7;
}

.doctrine__grid {
  align-items: stretch;
}

.doctrine__media {
  aspect-ratio: auto;
  height: 100%;
}

.doctrine__media .media-img {
  height: calc(100% + var(--bleed-top) + var(--bleed-bottom));
  object-fit: cover;
}

.war-room-section p {
  font-size: 1.1em;
  margin-bottom: 1.45em;
  letter-spacing: 1.1;
}

.war-room-section p span {
  display: block;
}

.no-margin-top {
  /* margin-top: -1em !important ; */
}

/* ===== [ADD AFTER L2595] – Scoped fixes for #about-ledger only ===== */
#about-ledger.section {
  padding-block: clamp(2rem, 6vw, 6rem) !important;
  /* override .section L127–130 only here */
  margin-top: 0 !important;
}

#about-ledger .wrap {
  width: clamp(320px, 90vw, 1200px) !important;
  /* beats .container L120–125 inside this section */
  margin-inline: auto !important;
  padding-inline: clamp(12px, 3vw, 20px) !important;
  /* replaces container's 2em padding locally */
  display: grid !important;
  grid-template-columns: clamp(180px, 22vw, 240px) 1fr !important;
  /* left-nav + content */
  gap: clamp(16px, 3vw, 28px) !important;
  overflow-x: clip !important;
  /* prevent sideways scroll only here */
}

#about-ledger .left {
  position: sticky !important;
  top: clamp(64px, 12vh, 140px) !important;
  align-self: start !important;
}

#about-ledger nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
}

#about-ledger .tab {
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.64) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.46rem 0 0.46rem 0.75rem !important;
  border-left: 2px solid transparent !important;
  white-space: nowrap !important;
}

#about-ledger .tab.is-active {
  color: #fff !important;
  border-left-color: #d4af37 !important;
}

#about-ledger .pane {
  display: grid !important;
  grid-template-columns: minmax(260px, 420px) minmax(32ch, 50ch) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(16px, 3vw, 28px) !important;
  padding: clamp(40px, 7vh, 72px) 0 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12) !important;
  scroll-margin-top: clamp(80px, 14vh, 160px) !important;
}

#about-ledger .pane.reverse {
  grid-template-columns: minmax(32ch, 50ch) minmax(260px, 420px) !important;
}

#about-ledger .pane:last-of-type {
  border-bottom: 0 !important;
}

#about-ledger .media {
  width: 100% !important;
  max-width: 420px !important;
  aspect-ratio: 1/1 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #0a0a0a !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
  margin: 0 !important;
}

#about-ledger .media > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#about-ledger .copy {
  max-width: 50ch !important;
}

#about-ledger .copy h2 {
  margin: 0 0 0.5rem !important;
  color: #d4af37 !important;
}

#about-ledger .copy p {
  margin: 0.55rem 0 !important;
  line-height: 1.68 !important;
  color: #b7b2a8 !important;
}

/* Tablet & down: turn left nav horizontal; stack panes */
@media (max-width: 1024px) {
  #about-ledger .wrap {
    grid-template-columns: 1fr !important;
  }

  #about-ledger .left {
    position: relative !important;
    top: 0 !important;
    background: #000 !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12) !important;
  }

  #about-ledger nav {
    flex-direction: row !important;
    gap: 0.5rem !important;
    overflow: auto !important;
    padding: 0 0.5rem !important;
    scrollbar-width: none !important;
  }

  #about-ledger nav::-webkit-scrollbar {
    display: none !important;
  }

  #about-ledger .tab {
    border-left: 0 !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  #about-ledger .tab.is-active {
    outline: 1px solid rgba(212, 175, 55, 0.35) !important;
    background: rgba(212, 175, 55, 0.06) !important;
  }

  #about-ledger .pane,
  #about-ledger .pane.reverse {
    grid-template-columns: 1fr !important;
    max-width: min(92vw, 760px) !important;
    padding: clamp(28px, 6vw, 44px) 0 !important;
  }

  #about-ledger .media {
    max-width: 560px !important;
    margin: 0 auto !important;
  }

  #about-ledger .copy {
    margin: 0 auto !important;
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  #about-ledger .pane {
    padding: clamp(22px, 6vw, 36px) 0 !important;
  }

  #about-ledger .media {
    max-width: 520px !important;
    aspect-ratio: 4/3 !important;
  }

  #about-ledger .copy {
    max-width: 66ch !important;
  }

  #about-ledger .copy p {
    line-height: 1.62 !important;
  }
}

/* ===== [ADD AFTER L2595] – Scoped fixes for #age only ===== */
/* Override the global .container padding only inside #age */
#age .container {
  padding-inline: clamp(12px, 3vw, 24px) !important;
  /* beats .container L120–125 locally */
}

/* Keep 2 cols on desktop, collapse earlier on tablets/phones ONLY in #age */
#age .grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  /* more robust than 1fr 1fr */
  gap: var(--space-12) !important;
  /* reuses your token */
}

@media (max-width: 1024px) {
  #age .grid-2 {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  /* overrides global collapse L452–466 only here */
}

/* Tweak images inside #age to avoid overflow when stacked */
#age .age__media .media-img,
#age .media-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ===== AGE — make the script line ~25% bigger across breakpoints ===== */

/* Phones: ≤480px */
@media (max-width: 480px) {
  #age.section .script.f-script {
    font-size: clamp(23.75px, 6.25vw, 27.5px) !important;
  }
}

/* 481–640px */
@media (min-width: 481px) and (max-width: 640px) {
  #age.section .script.f-script {
    font-size: clamp(23.75px, 6.25vw, 27.5px) !important;
  }
}

/* 641–768px */
@media (min-width: 641px) and (max-width: 768px) {
  #age.section .script.f-script {
    font-size: clamp(22.5px, 3.375vw, 27.5px) !important;
  }
}

/* Tablets: 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  #age.section .script.f-script {
    font-size: clamp(22.5px, 3.375vw, 27.5px) !important;
  }
}

/* Desktop: 1025–1920px */
@media (min-width: 1025px) and (max-width: 1920px) {
  #age.section .script.f-script {
    font-size: clamp(22.5px, 2.25vw, 27.5px) !important;
  }
}

/* Ultra-wide: ≥1921px */
@media (min-width: 1921px) {
  #age.section .script.f-script {
    font-size: 27.5px !important;
  }
}
