/* ============================================================
   SALADO Golf & Beach Resort — Cinematic tour
   Scroll-driven chained-video stage + floating cards.
   Engine: cinematic.js (generic). Brand via :root tokens below.
   ============================================================ */

/* === Brand tokens (Vorgal — ink premium + champagne gold + turquesa) === */
:root {
  --color-bg: #14140f;            /* Vorgal ink (premium dark layer) */
  --color-bg-card: #1d1c15;       /* warm ink card */
  --color-text: #fbf8f1;          /* marfil-white */
  --color-text-secondary: #d7cfbf;
  --color-text-muted: #9a9078;
  --color-accent: #bf9f63;        /* Vorgal champagne gold */
  --color-accent-light: #dcc28a;
  --color-accent-dark: #9c7d44;
  --color-accent-glow: rgba(191, 159, 99, 0.42);
  --color-sea: #0e7c7b;           /* Vorgal turquesa (secondary accent) */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* === Text wordmark (Salado · by Vorgal) — no PNG dependency === */
.cn-wm { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.cn-wm__name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 0.9;
}
.cn-wm__sub {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}
.cn-wm--intro  .cn-wm__name { font-size: 56px; }
.cn-wm--intro  .cn-wm__sub  { font-size: 11px; letter-spacing: 0.5em; padding-left: 2px; }
.cn-wm--nav    { gap: 2px; }
.cn-wm--nav    .cn-wm__name { font-size: 24px; }
.cn-wm--nav    .cn-wm__sub  { font-size: 8px; letter-spacing: 0.42em; padding-left: 2px; }
.cn-wm--footer .cn-wm__name { font-size: 34px; }
.cn-wm--footer .cn-wm__sub  { font-size: 9px; letter-spacing: 0.46em; padding-left: 2px; }

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
}

/* ============================================================
   BRAND LOCKUP &mdash; reused tokens from parent site
   ============================================================ */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.brand-icon {
  display: block;
  background-image: url('../assets/logo/jovira-icon-gold.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.brand-divider {
  display: block;
  width: 1px;
  background: var(--color-accent);
  opacity: 0.55;
  align-self: stretch;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 0.9;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  line-height: 1;
}

.brand-lockup--intro { gap: 22px; }
.brand-lockup--intro .brand-icon { width: 64px; height: 84px; }
.brand-lockup--intro .brand-name { font-size: 44px; }
.brand-lockup--intro .brand-sub  { font-size: 11px; letter-spacing: 0.55em; padding-left: 2px; }

.brand-lockup--nav { gap: 12px; }
.brand-lockup--nav .brand-icon { width: 26px; height: 34px; }
.brand-lockup--nav .brand-name { font-size: 22px; }
.brand-lockup--nav .brand-sub  { font-size: 8px; letter-spacing: 0.5em; padding-left: 2px; }

.brand-lockup--footer { gap: 16px; }
.brand-lockup--footer .brand-icon { width: 34px; height: 44px; }
.brand-lockup--footer .brand-name { font-size: 28px; }
.brand-lockup--footer .brand-sub  { font-size: 9px; letter-spacing: 0.5em; padding-left: 2px; }

/* ============================================================
   INTRO OVERLAY &mdash; fades after first paint
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.intro-overlay.exit {
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
}

/* ============================================================
   TOP NAV &mdash; minimal, floats on top
   ============================================================ */
.cn-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px 40px;
  pointer-events: none;
}
.cn-nav > * { pointer-events: auto; }
.cn-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  z-index: -1;
  pointer-events: none;
}
.cn-nav__back {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  font-size: 16px;
  color: var(--color-text-secondary);
  transition: border-color .3s ease, color .3s ease, transform .3s var(--ease-out);
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.25);
}
.cn-nav__back:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateX(-2px);
}
.cn-nav__logo {
  justify-self: center;
  transition: transform .3s var(--ease-out);
}
.cn-nav__logo:hover { transform: translateY(-1px); }
.cn-nav__cta {
  padding: 11px 22px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-out);
  backdrop-filter: blur(8px);
  background: rgba(201, 169, 110, 0.06);
}
.cn-nav__cta:hover {
  background: var(--color-accent);
  color: #0a0a0a;
  transform: translateY(-1px);
}

/* ============================================================
   STAGE &mdash; sticky pinned; scroll inside drives the video
   ============================================================ */
.cn-stage {
  height: 1200vh;
  position: relative;
}
.cn-stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

/* ----- video chain ----- */
.cn-video-chain {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cn-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
  /* Subtle quality boost: richer color, slightly more contrast */
  filter: saturate(1.08) contrast(1.04);
  transform: translateZ(0);
}
.cn-video.is-active {
  opacity: 1;
}

/* Poster fallback: must be pixel-identical to the video element so the
   handoff from <img> to <video> is invisible (no flash on first paint).
   z-index -1 keeps it behind the videos but above the .cn-stage__sticky
   #000 background (the sticky has isolation:isolate). */
.cn-poster {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cn-poster picture {
  display: block;
  width: 100%;
  height: 100%;
}
.cn-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: translateZ(0);
}

/* ----- cinematic grading layers ----- */
.cn-grade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(201,169,110,0.12), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.05) 65%, rgba(0,0,0,0.78) 100%);
  z-index: 2;
  pointer-events: none;
}
.cn-vignette {
  position: absolute;
  inset: 0;
  /* multiply-with-black-gradient is mathematically identical to alpha-blend
     with the same gradient (both yield underlying * (1 - alpha)). Dropping
     the blend mode removes a forced composite read of the scrubbing video
     every frame — same visual, far cheaper. */
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.6) 100%);
  z-index: 3;
  pointer-events: none;
}
.cn-haze {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 25% 35%, rgba(201,169,110,0.06), transparent 30%),
    radial-gradient(circle at 75% 65%, rgba(255,240,200,0.04), transparent 35%);
  filter: blur(40px);
  z-index: 4;
  pointer-events: none;
  animation: hazeShift 18s ease-in-out infinite alternate;
}
@keyframes hazeShift {
  from { transform: translate(0,0); }
  to   { transform: translate(2%, -1.5%); }
}

/* ============================================================
   BRAND BAND (top, subtle locator)
   ============================================================ */
.cn-brand-band {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(14px);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: opacity .6s ease;
}
.cn-band-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--color-accent-glow);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ============================================================
   HERO TEXT (centered, fades as scroll progresses)
   ============================================================ */
.cn-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 14;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  /* opacity / transform driven by JS via --p (0..1 within window) */
  --p: 1;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * -32px)) scale(calc(0.985 + var(--p) * 0.015));
}
.cn-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
  font-weight: 500;
}
.cn-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.cn-hero-line {
  font-size: clamp(64px, 10vw, 148px);
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
  line-height: 1.2;
}
.cn-hero-line--script {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 110px);
  color: var(--color-accent);
  margin-top: -0.32em;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.65), 0 0 60px rgba(201,169,110,0.15);
  line-height: 1.4;
}
.cn-hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  max-width: 520px;
  margin-top: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5);
}
.cn-hero-scroll-hint {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
}
.cn-scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  position: relative;
  animation: scrollDrip 2.4s var(--ease-in-out) infinite;
}
.cn-scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.cn-scroll-label {
  font-size: 9px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
@keyframes scrollDrip {
  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; }
}

/* ============================================================
   CARDS LAYER &mdash; floating tarjetas
   blur+fade+slide-up enter, opposite leave
   Driven by --p (0..1) JS-injected per card
   ============================================================ */
.cn-cards {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transform: translate3d(0,0,0);
}
.cn-card {
  position: absolute;
  width: min(420px, 90vw);
  padding: 28px 32px 30px;
  background: linear-gradient(155deg, rgba(22,22,22,0.82) 0%, rgba(14,14,14,0.78) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  /* blur lowered 22px -> 8px: backdrop-filter snapshots the scrubbing video
     every frame, and cost scales superlinearly with the radius. */
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 1px 0 0 rgba(255,255,255,0.04) inset;
  pointer-events: auto;
  /* Default state (offscreen-out). JS sets --p (0=hidden, 1=fully visible). */
  --p: 0;
  --slide: 16px;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * var(--slide)));
  transition: none;  /* state is scroll-driven, not time-driven */
}
.cn-card--left   { left: 6vw;  top: 50%; transform-origin: left center; }
.cn-card--right  { right: 6vw; top: 50%; transform-origin: right center; }
.cn-card--center { left: 50%; top: 50%; }

/* compose with translateY to keep vertical center */
.cn-card--left,
.cn-card--right {
  transform: translateY(calc(-50% + (1 - var(--p)) * var(--slide)));
}
.cn-card--center {
  transform: translate(-50%, calc(-50% + (1 - var(--p)) * var(--slide)));
}

/* gold corner accents on hover */
.cn-card::before,
.cn-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-accent);
  opacity: 0;
  transition: opacity .35s ease;
}
.cn-card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.cn-card::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.cn-card:hover::before,
.cn-card:hover::after { opacity: 0.7; }

/* === card icon — premium gold gradient box === */
.cn-card__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(40,32,22,0.85) 0%, rgba(20,16,12,0.95) 100%);
  color: var(--color-accent-light);
  box-shadow:
    0 6px 24px -8px rgba(201,169,110,0.45),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 0 rgba(255,255,255,0.05) inset;
}
.cn-card__icon::before {
  /* gradient border — gold sheen */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(223,195,150,0.75) 0%, rgba(168,138,78,0.25) 45%, rgba(255,240,210,0.55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cn-card__icon::after {
  /* inner sheen highlight */
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,235,200,0.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.cn-card__icon svg {
  position: relative;
  width: 26px;
  height: 26px;
  z-index: 1;
  /* gold gradient stroke via filter */
  color: var(--color-accent-light);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4));
}

/* card text */
.cn-card__eyebrow {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.cn-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.cn-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-weight: 300;
}
.cn-card__src {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}
.cn-card__cta {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 22px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-out);
}
.cn-card__cta:hover {
  background: var(--color-accent);
  color: #0a0a0a;
  transform: translateY(-1px);
}

/* ============================================================
   EDITORIAL STATEMENT &mdash; full-screen big serif
   No card box. Just type. Words split into lines for stagger.
   Driven by --p (0..1)
   ============================================================ */
.cn-statement {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 18;
  padding: 0 max(8vw, 24px);
  text-align: center;
  pointer-events: none;
  --p: 0;
  opacity: var(--p);
}
.cn-statement--left { align-items: flex-start; text-align: left; padding-left: max(8vw, 32px); }
.cn-statement--right { align-items: flex-end; text-align: right; padding-right: max(8vw, 32px); }

.cn-statement__eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: calc(var(--p) * 0.95);
  transform: translateY(calc((1 - var(--p)) * -8px));
  transition: none;
}
.cn-statement__eyebrow::before,
.cn-statement__eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}
.cn-statement--left .cn-statement__eyebrow::before { display: none; }
.cn-statement--right .cn-statement__eyebrow::after { display: none; }

.cn-statement__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 1.02;
  color: var(--color-text);
  letter-spacing: -0.012em;
  max-width: 16ch;
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.3);
}
.cn-statement__h .cn-line {
  display: block;
}
.cn-statement__h .cn-line > span {
  display: inline-block;
}
.cn-statement__h em {
  font-style: italic;
  color: var(--color-accent-light);
  -webkit-text-stroke: 0.8px rgba(0,0,0,0.5);
}
.cn-statement__sub {
  font-size: 14px;
  font-weight: 300;
  color: #e0e0e0;
  letter-spacing: 0.04em;
  margin-top: 28px;
  max-width: 460px;
  line-height: 1.65;
  opacity: calc(var(--p) * 0.95);
  transform: translateY(calc((1 - var(--p)) * 12px));
}
.cn-statement__rule {
  width: 64px;
  height: 1px;
  background: var(--color-accent);
  margin-top: 28px;
  transform-origin: left center;
  transform: scaleX(var(--p));
  opacity: 0.7;
}
.cn-statement--center .cn-statement__rule { transform-origin: center; transform: scaleX(var(--p)); }
.cn-statement--right .cn-statement__rule { transform-origin: right center; transform: scaleX(var(--p)); }

/* ============================================================
   COORDINATE / DATA MARK &mdash; corner ticker, monospace feel
   ============================================================ */
.cn-mark {
  position: absolute;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace, var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  pointer-events: none;
  --p: 0;
  --slide: 16px;
  opacity: var(--p);
}
.cn-mark--tl { top: 96px; left: 5vw; transform: translateX(calc((1 - var(--p)) * (-1 * var(--slide)))); }
.cn-mark--tr { top: 96px; right: 5vw; transform: translateX(calc((1 - var(--p)) * var(--slide))); }
.cn-mark--bl { bottom: 96px; left: 5vw; transform: translateY(calc((1 - var(--p)) * var(--slide))); }
.cn-mark--br { bottom: 96px; right: 5vw; transform: translateY(calc((1 - var(--p)) * var(--slide))); }
.cn-mark--center {
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + (1 - var(--p)) * var(--slide)));
}

.cn-mark__dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-glow);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.cn-mark__label {
  color: var(--color-accent);
  font-weight: 500;
}
.cn-mark__sep {
  color: rgba(255, 255, 255, 0.25);
}
.cn-mark__value {
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0.12em;
}

/* ============================================================
   MATERIALS LIST &mdash; vertical reveal stack
   Each li animates in sequence via --p + transition-delay
   ============================================================ */
.cn-materials {
  position: absolute;
  top: 50%;
  left: 7vw;
  transform: translateY(-50%);
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  pointer-events: none;
  --p: 0;
}
.cn-materials--right {
  left: auto;
  right: 7vw;
  align-items: flex-end;
}
.cn-materials__eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 6px;
  opacity: calc(var(--p));
  transform: translateY(calc((1 - var(--p)) * -10px));
}
.cn-materials__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.cn-materials__item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.005em;
  /* per-item progress: easedProgress is global, but we visually stagger
     by mapping --p [0..1] across N items with offsets */
  --offset: 0;
  --delay: 0;
  opacity: calc(max(0, min(1, (var(--p) - var(--offset)) * 4)));
  transform: translateX(calc((1 - max(0, min(1, (var(--p) - var(--offset)) * 4))) * -28px));
}
.cn-materials__num {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace, var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  font-weight: 400;
  align-self: center;
  padding-top: 4px;
}
.cn-materials__name em {
  font-style: italic;
  color: var(--color-accent);
}
.cn-materials__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201, 169, 110, 0.3), transparent);
  align-self: center;
  margin-top: 4px;
  transform: scaleX(var(--p));
  transform-origin: left center;
}

/* ============================================================
   STAT CALLOUT &mdash; oversized number + small label
   ============================================================ */
.cn-stat {
  position: absolute;
  z-index: 18;
  pointer-events: none;
  --p: 0;
  opacity: var(--p);
}
.cn-stat--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + (1 - var(--p)) * 24px));
  text-align: center;
}
.cn-stat--right {
  top: 50%;
  right: 7vw;
  transform: translateY(calc(-50% + (1 - var(--p)) * 24px));
  text-align: right;
}
.cn-stat--left {
  top: 50%;
  left: 7vw;
  transform: translateY(calc(-50% + (1 - var(--p)) * 24px));
  text-align: left;
}
.cn-stat__eyebrow {
  font-size: 10px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
}
.cn-stat__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.9;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-shadow: 0 8px 80px rgba(0, 0, 0, 0.6);
  display: block;
}
.cn-stat__value sup {
  font-size: 0.32em;
  vertical-align: super;
  color: var(--color-accent);
  font-weight: 400;
  font-style: italic;
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.cn-stat__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 22px;
}
.cn-stat__source {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 14px;
  display: block;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
}

/* ============================================================
   PULL QUOTE &mdash; italic blockquote with em-dash attribution
   ============================================================ */
.cn-quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 18;
  padding: 0 max(10vw, 32px);
  pointer-events: none;
  --p: 0;
  opacity: var(--p);
}
.cn-quote__open {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 80px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: -28px;
  align-self: center;
  opacity: calc(var(--p) * 0.55);
}
.cn-quote__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.25;
  color: var(--color-text);
  text-align: center;
  max-width: 24ch;
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(calc((1 - var(--p)) * 14px));
}
.cn-quote__attrib {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cn-quote__attrib::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--color-accent);
}

/* ============================================================
   ROMAN NUMERAL MARKER &mdash; oversized centered chapter mark
   ============================================================ */
.cn-roman {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 14;
  pointer-events: none;
  --p: 0;
  opacity: calc(var(--p) * 0.85);
  transform: translate(-50%, -50%) scale(calc(0.92 + var(--p) * 0.08));
  text-align: center;
}
.cn-roman__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.85;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-shadow:
    0 8px 80px rgba(0, 0, 0, 0.75),
    0 0 120px rgba(201, 169, 110, 0.25);
  display: block;
  margin-bottom: 16px;
  font-style: italic;
}
.cn-roman__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: block;
}
.cn-roman__rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 18px auto 0;
  transform-origin: center;
  transform: scaleX(var(--p));
  opacity: 0.65;
}

/* ============================================================
   EDGE TEXT &mdash; vertical type running up the side
   ============================================================ */
.cn-edge {
  position: absolute;
  z-index: 16;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.85em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  pointer-events: none;
  --p: 0;
  --slide: 14px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.cn-edge--left {
  top: 50%;
  left: 28px;
  transform-origin: left center;
  transform: rotate(-90deg) translateX(calc(-50% - (1 - var(--p)) * var(--slide))) translateY(0);
  opacity: var(--p);
}
.cn-edge--right {
  top: 50%;
  right: 28px;
  transform-origin: right center;
  transform: rotate(90deg) translateX(calc(50% + (1 - var(--p)) * var(--slide))) translateY(0);
  opacity: var(--p);
}
.cn-edge::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--color-accent);
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.7;
  transform-origin: left center;
  transform: scaleX(var(--p));
}
.cn-edge__label {
  white-space: nowrap;
}

/* ============================================================
   BIG QUOTE &mdash; oversized italic blockquote
   ============================================================ */
.cn-bigquote {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 19;
  padding: 0 max(10vw, 40px);
  pointer-events: none;
  text-align: center;
  --p: 0;
  opacity: var(--p);
}
.cn-bigquote__mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.6;
  color: var(--color-accent);
  opacity: calc(var(--p) * 0.35);
  margin-bottom: 8px;
  display: block;
  align-self: center;
  text-shadow: 0 0 80px rgba(201, 169, 110, 0.18);
}
.cn-bigquote__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.18;
  color: var(--color-text);
  max-width: 22ch;
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.65);
  letter-spacing: -0.005em;
  transform: translateY(calc((1 - var(--p)) * 18px));
}
.cn-bigquote__text em {
  color: var(--color-accent);
  font-style: italic;
}
.cn-bigquote__attrib {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cn-bigquote__attrib::before,
.cn-bigquote__attrib::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

/* ============================================================
   RATIO BLOCK &mdash; dual stat / before-after style
   ============================================================ */
.cn-ratio {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + (1 - var(--p)) * 18px));
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 30px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.55);
  /* blur lowered 22px -> 8px: backdrop-filter snapshots the scrubbing video
     every frame, and cost scales superlinearly with the radius. */
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  pointer-events: none;
  --p: 0;
  opacity: var(--p);
  min-width: min(620px, 88vw);
}
.cn-ratio__col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cn-ratio__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  color: var(--color-text);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.cn-ratio__num em {
  font-style: italic;
  color: var(--color-accent);
}
.cn-ratio__lbl {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}
.cn-ratio__sep {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-accent);
  opacity: 0.5;
  font-weight: 400;
  line-height: 1;
}

/* ============================================================
   INLINE CTA — button that floats within the stage
   ============================================================ */
.cn-inline-cta {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 22;
  pointer-events: none;
  --p: 0;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 16px));
  gap: 16px;
}
.cn-inline-cta__label {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 400px;
  line-height: 1.65;
}
.cn-inline-cta__btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: background .35s ease, color .35s ease, transform .35s var(--ease-out), box-shadow .35s ease;
  background: rgba(201, 169, 110, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.cn-inline-cta__btn:hover {
  background: var(--color-accent);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(201, 169, 110, 0.5);
}

/* ============================================================
   SPLIT INFO — two-column panel with divider
   ============================================================ */
.cn-split {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + (1 - var(--p)) * 18px));
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 40px;
  padding: 36px 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.55);
  /* blur lowered 22px -> 8px: backdrop-filter snapshots the scrubbing video
     every frame, and cost scales superlinearly with the radius. */
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  pointer-events: none;
  --p: 0;
  opacity: var(--p);
  min-width: min(680px, 90vw);
  max-width: 780px;
}
.cn-split__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cn-split__divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  opacity: 0.4;
  align-self: stretch;
}
.cn-split__eyebrow {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.cn-split__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
}
.cn-split__title em { color: var(--color-accent); font-style: italic; }
.cn-split__body {
  font-size: 13px;
  color: #d0d0d0;
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   INLINE MINI FORM — contact form floating in the stage
   ============================================================ */
.cn-mini-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + (1 - var(--p)) * 20px));
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  pointer-events: auto;
  --p: 0;
  opacity: var(--p);
  width: min(460px, 90vw);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.cn-mini-form__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  line-height: 1.15;
}
.cn-mini-form__title em { color: var(--color-accent); font-style: italic; }
.cn-mini-form__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  font-weight: 300;
  max-width: 340px;
}
.cn-mini-form__row {
  display: flex;
  gap: 12px;
  width: 100%;
}
.cn-mini-form__input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color .3s ease;
}
.cn-mini-form__input--phone {
  max-width: 160px;
}
.cn-mini-form__input::placeholder {
  color: var(--color-text-muted);
}
.cn-mini-form__input:focus {
  border-color: var(--color-accent);
}
.cn-mini-form__submit {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.cn-mini-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(201, 169, 110, 0.55);
}
.cn-mini-form__legal {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}

/* ============================================================
   FILM GRAIN — cinematic texture layer
   ============================================================ */
.cn-grain {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 50;
  pointer-events: none;
  /* opacity bumped 0.035 -> 0.05 to keep visible grain feel after dropping
     overlay blend-mode (overlay was forcing a full-screen video composite
     read on every animation tick — single biggest scroll-jank source). */
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grainDrift 0.5s steps(3) infinite;
  transform: translateZ(0);
  will-change: transform;
}
@keyframes grainDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 4%); }
  50%  { transform: translate(3%, -1%); }
  75%  { transform: translate(-3%, 2%); }
  100% { transform: translate(1%, -3%); }
}

/* === GPU hints for scroll-driven reveals === */
.cn-statement, .cn-card, .cn-split, .cn-mini-form, .cn-bigquote,
.cn-stat, .cn-ratio, .cn-roman, .cn-edge, .cn-mark,
.cn-materials, .cn-inline-cta {
  will-change: opacity, transform;
}

/* ============================================================
   GOLDEN PARTICLES — drifting light motes
   ============================================================ */
.cn-particles {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.cn-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: particleFloat var(--dur, 14s) var(--delay, 0s) ease-in-out infinite;
  box-shadow: 0 0 6px 1px rgba(201, 169, 110, 0.5);
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
  15%  { opacity: 0.7; }
  50%  { opacity: 0.4; transform: translate(var(--dx, 15px), var(--dy, -80px)) scale(1); }
  85%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(var(--dx2, -10px), var(--dy2, -160px)) scale(0.2); }
}

/* ============================================================
   GRADIENT TEXT ACCENT — shimmering gold on key words
   ============================================================ */
.cn-gradient-text {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 40%, #fff8e1 55%, var(--color-accent) 70%, var(--color-accent-dark) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 6s ease-in-out infinite;
}
@keyframes shimmerGold {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ============================================================
   METALLIC GOLD TYPOGRAPHY
   Vertical gradient with a bright reflection band — applied to
   italic accents, hero script and main headings for a premium
   "embossed" metallic look (matches brand mockups).
   ============================================================ */
.metal-gold,
.cn-hero-line--script,
.cn-statement__h em,
.cn-split__title em,
.cn-mini-form__title em,
.cn-outro__title em,
.cn-bigquote__text em,
.cn-materials__name em,
.cn-ratio__num em {
  background-image: linear-gradient(
    180deg,
    #f4e4be 0%,
    #e6c987 22%,
    #fff5d6 48%,
    #cba269 60%,
    #8b6f3d 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 2px 18px rgba(201, 169, 110, 0.32))
          drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
}

/* Soft warm-white gradient on the bold display headings —
   lifts the top, lets the bottom cool into champagne. */
.warm-white,
.cn-hero-line:not(.cn-hero-line--script),
.cn-statement__h,
.cn-split__title,
.cn-mini-form__title,
.cn-outro__title {
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #faf3df 38%,
    #e2cea0 78%,
    #b89865 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, 0.55));
}

/* Re-apply metallic gold on em inside headings (cascade safety —
   the warm-white rule above would otherwise overwrite the em). */
.cn-statement__h em,
.cn-split__title em,
.cn-mini-form__title em,
.cn-outro__title em {
  background-image: linear-gradient(
    180deg,
    #f4e4be 0%,
    #e6c987 22%,
    #fff5d6 48%,
    #cba269 60%,
    #8b6f3d 100%
  );
}

/* ============================================================
   SCROLL PROGRESS &mdash; thin bar at bottom
   ============================================================ */
.cn-progress {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cn-progress__bar {
  position: relative;
  width: 140px;
  height: 1px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.cn-progress__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--cn-progress, 0%);
  background: linear-gradient(to right, var(--color-accent-dark), var(--color-accent-light));
  transition: width 0.18s var(--ease-out);
}

/* ============================================================
   OUTRO SECTION
   ============================================================ */
.cn-outro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  /* skip painting outro while offscreen (saves ~200ms on long pages) */
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.08), transparent 55%),
    var(--color-bg);
  position: relative;
}
.cn-outro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,169,110,0.4), transparent);
}
.cn-outro__inner {
  max-width: 760px;
  text-align: center;
}
.cn-outro__eyebrow {
  font-size: 11px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  display: block;
  margin-bottom: 32px;
}
.cn-outro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.cn-outro__body {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 44px;
}
.cn-outro__cta {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, transform .35s var(--ease-out);
  margin-bottom: 80px;
}
.cn-outro__cta:hover {
  background: var(--color-accent);
  color: #0a0a0a;
  transform: translateY(-2px);
}
.cn-outro__brand {
  display: flex;
  justify-content: center;
  opacity: 0.85;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cn-nav { padding: 16px 18px; gap: 18px; }
  .cn-card { width: min(360px, 88vw); padding: 22px 24px; }
  .cn-card--left  { left: 5vw; }
  .cn-card--right { right: 5vw; }
  .cn-hero-line  { font-size: clamp(48px, 14vw, 92px); }
  .cn-hero-line--script { font-size: clamp(38px, 11vw, 72px); }
  .cn-brand-band { top: 76px; font-size: 10px; padding: 8px 16px; }
  .cn-card__title { font-size: 22px; }

  /* Split panels — tighter on tablets */
  .cn-split {
    min-width: min(580px, 90vw);
    max-width: 92vw;
    padding: 28px 28px;
    gap: 0 28px;
  }
  .cn-split__title { font-size: clamp(20px, 2.6vw, 30px); }

  /* Statements */
  .cn-statement__h { font-size: clamp(36px, 6vw, 72px); }
  .cn-statement__sub { font-size: 13px; }

  /* Mini form */
  .cn-mini-form { padding: 32px 28px; width: min(420px, 92vw); }

  /* Outro */
  .cn-outro { padding: 100px 24px; }
  .cn-outro__title { font-size: clamp(36px, 6vw, 60px); }
}

@media (max-width: 640px) {
  .cn-card {
    width: 88vw;
    left: 6vw !important;
    right: auto !important;
  }
  .cn-card--center {
    left: 50% !important;
    transform: translate(-50%, calc(-50% + (1 - var(--p)) * var(--slide)));
  }
  .cn-stage { height: 1400vh; }
  .cn-progress { bottom: 18px; }
  .cn-progress__bar { width: 80px; }

  /* Split panels stack vertically */
  .cn-split {
    grid-template-columns: 1fr;
    gap: 24px 0;
    padding: 24px 20px;
    min-width: 0;
    width: 90vw;
    max-width: 90vw;
  }
  .cn-split__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  }
  .cn-split__title { font-size: clamp(20px, 5vw, 28px); }
  .cn-split__body { font-size: 13px; }

  /* Statements center-align on mobile for readability */
  .cn-statement--left,
  .cn-statement--right {
    align-items: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  .cn-statement--left .cn-statement__eyebrow::before,
  .cn-statement--right .cn-statement__eyebrow::after { display: inline-block; }
  .cn-statement__h {
    font-size: clamp(28px, 8vw, 56px);
    max-width: 100%;
  }
  .cn-statement__sub {
    font-size: 13px;
    max-width: 90vw;
  }
  .cn-statement__rule { margin: 20px auto 0; }
  .cn-statement--left .cn-statement__rule,
  .cn-statement--right .cn-statement__rule {
    transform-origin: center;
  }

  /* Edge texts — hide rotated side text on mobile */
  .cn-edge { display: none; }

  /* Marks — reposition and shrink */
  .cn-mark {
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 10px 14px;
    gap: 10px;
  }
  .cn-mark--bl { bottom: 52px; left: 12px; }
  .cn-mark--br { bottom: 52px; right: 12px; }
  .cn-mark--tl { top: 72px; left: 12px; }
  .cn-mark--tr { top: 72px; right: 12px; }

  /* Brand band */
  .cn-brand-band {
    font-size: 8px;
    letter-spacing: 0.2em;
    padding: 6px 12px;
    top: 64px;
  }

  /* Hero text */
  .cn-hero-sub {
    font-size: 13px;
    max-width: 90vw;
  }
  .cn-hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.4em;
  }

  /* Inline CTA */
  .cn-inline-cta__label {
    font-size: 12px;
    max-width: 88vw;
    padding: 0 12px;
  }
  .cn-inline-cta__btn {
    padding: 14px 28px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* Mini form */
  .cn-mini-form {
    padding: 24px 18px;
    width: 92vw;
    gap: 16px;
  }
  .cn-mini-form__title { font-size: 22px; }
  .cn-mini-form__sub { font-size: 12px; }
  .cn-mini-form__row { flex-direction: column; }
  .cn-mini-form__input--phone { max-width: none !important; }
  .cn-mini-form__input { padding: 12px 14px; font-size: 14px; }
  .cn-mini-form__submit { padding: 14px 20px; }

  /* Outro */
  .cn-outro {
    padding: 72px 20px;
    min-height: auto;
  }
  .cn-outro__title { font-size: clamp(28px, 7vw, 48px); }
  .cn-outro__body { font-size: 14px; }
  .cn-outro__eyebrow { margin-bottom: 24px; }
  .cn-outro__cta {
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 48px;
  }

  /* Ratio block */
  .cn-ratio {
    min-width: 90vw;
    gap: 20px;
    padding: 22px 20px;
    grid-template-columns: 1fr auto 1fr;
  }
  .cn-ratio__num { font-size: clamp(32px, 7vw, 48px); }
  .cn-ratio__lbl { font-size: 9px; letter-spacing: 0.3em; }

  /* Scroll hint closer to bottom */
  .cn-hero-scroll-hint { bottom: 36px; }

  /* Grain lighter on mobile for performance */
  .cn-grain { opacity: 0.02; }
}

@media (max-width: 380px) {
  .cn-hero-line { font-size: clamp(36px, 12vw, 64px); }
  .cn-hero-line--script { font-size: clamp(28px, 9vw, 48px); }
  .cn-brand-band { display: none; }
  .cn-mark { display: none; }
  .cn-statement__h { font-size: clamp(24px, 7vw, 40px); }
  .cn-split { padding: 20px 16px; width: 94vw; max-width: 94vw; }
  .cn-mini-form { padding: 20px 14px; width: 94vw; }
  .cn-mini-form__title { font-size: 20px; }
  .cn-outro__title { font-size: clamp(24px, 7vw, 36px); }
  .cn-stage { height: 1600vh; }
}

/* Ensure touch targets are at least 44px on touch devices */
@media (pointer: coarse) {
  .cn-nav__cta { min-height: 44px; display: inline-flex; align-items: center; }
  .cn-inline-cta__btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .cn-mini-form__submit { min-height: 48px; }
  .cn-mini-form__input { min-height: 48px; font-size: 16px; /* prevents iOS zoom on focus */ }
  .cn-outro__cta { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-poster img { animation: none; }
  .cn-haze { animation: none; }
  .cn-scroll-arrow { animation: none; }
  .cn-band-label::before { animation: none; }
  .cn-grain { animation: none; display: none; }
  .cn-particle { animation: none; display: none; }
}
