/* Konquer Media Agency — site-v2 base styles
   Aligned to the current konquermediaagency.com visual system
   (Archivo + Fraunces italic em + #E2C07C gold + #001A1B emerald-deep)
   Mobile-first responsive. */

:root {
  /* Brand palette — EXACT match to live site */
  --emerald:        #003839;
  --emerald-deep:   #001A1B;   /* body bg */
  --emerald-ink:    #000F10;   /* deepest */
  --emerald-card:   #0A4849;
  --gold:           #E2C07C;
  --gold-bright:    #F2D79A;
  --gold-soft:      rgba(226,192,124,0.72);
  --gold-mute:      rgba(226,192,124,0.42);
  --gold-hair:      rgba(226,192,124,0.16);
  --gold-hair-strong: rgba(226,192,124,0.34);
  --cream:          #F5EFD7;   /* italic Fraunces words, ledes, edge quotes */
  --white:          #FFFFFF;

  /* Typography */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-italic:  'Fraunces', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Type scale — display gets dramatic clamp */
  --fs-display-1: clamp(56px, 9vw, 160px);
  --fs-display-2: clamp(40px, 6vw, 104px);
  --fs-display-3: clamp(28px, 3.4vw, 44px);
  --fs-display-4: clamp(22px, 2.6vw, 32px);
  --fs-lede:      clamp(17px, 1.6vw, 22px);
  --fs-body:      clamp(15px, 1.05vw, 17px);
  --fs-small:     14px;
  --fs-eyebrow:   11px;

  /* Spacing — generous, matches live site */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 140px;
  --space-11: 160px;
  --space-12: 180px;

  --container: 1400px;
  --container-narrow: 880px;
  --container-pad: 32px;
  --container-pad-mobile: 20px;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Custom ease — signature motion curve */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Borders / hairlines */
  --hair: 1px solid var(--gold-hair);
  --hair-strong: 1px solid var(--gold-hair-strong);

  /* ── ALIAS TOKENS ────────────────────────────────────────────────────
     Inline styles across pages referenced these names. They were silently
     undefined before — buttons + card borders + helper text rendered
     unstyled. These aliases wire the page-level references back to the
     real palette so the design system actually paints.
     ────────────────────────────────────────────────────────────────── */
  --cream-50:  var(--cream);
  --gold-400:  var(--gold);
  --ink-900:   var(--emerald-ink);
  --ink-300:   rgba(245, 239, 215, 0.55);
  --fs-lg:     var(--fs-lede);
  --fs-4xl:    var(--fs-display-3);
  --fs-3xl:    var(--fs-display-4);
  --fs-2xl:    clamp(20px, 2vw, 28px);
  --fs-md:     var(--fs-body);
  --fs-sm:     var(--fs-small);
  --fs-xs:     12px;
  --line:      var(--gold-hair-strong);
}

* { box-sizing: border-box; margin: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background: var(--emerald-deep);
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--gold-soft);
  background: var(--emerald-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover { color: var(--gold-bright); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────────────
   FILM GRAIN OVERLAY — perf-conscious. Pre-rendered SVG noise, no
   mix-blend-mode (which forces full-page repaints on scroll), no
   continuous animation. Subtle static texture only. Disabled on mobile
   + reduced-motion. The live site uses mix-blend-mode here and it
   contributes to its laggy scroll. We get 90% of the look at 5% of the
   GPU cost by skipping the blend mode.
   ────────────────────────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.886 0 0 0 0 0.753 0 0 0 0 0.486 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  will-change: transform;
}
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .grain { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────
   TYPOGRAPHY — display headings are ARCHIVO ALL CAPS with FRAUNCES em
   ────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
  color: var(--gold);
}
h1 { font-size: var(--fs-display-1); }
h2 { font-size: var(--fs-display-2); }
h3 { font-size: var(--fs-display-3); font-weight: 800; letter-spacing: -0.02em; }
h4 { font-size: var(--fs-display-4); font-weight: 700; letter-spacing: -0.015em; }

/* The signature treatment: italic Fraunces em inside ALL-CAPS Archivo */
h1 em, h2 em, h3 em, .display em {
  font-family: var(--font-italic);
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* Stack-shadow on h1 for that pressed 3D feel — signature */
h1 {
  text-shadow:
    0 1px 0 var(--emerald-ink),
    0 2px 0 var(--emerald-ink),
    0 3px 0 var(--emerald-ink);
}

p {
  margin-bottom: var(--space-4);
  max-width: 62ch;
  color: var(--gold-soft);
}

.lede {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--cream);
  max-width: 58ch;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

/* ──────────────────────────────────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 var(--container-pad-mobile); }
}

section {
  padding: var(--space-11) 0 var(--space-12);
  position: relative;
}
@media (max-width: 760px) {
  section { padding: var(--space-9) 0 var(--space-10); }
}

/* Section background gradient stagger — ink → emerald → deep descent */
.bg-ink { background: var(--emerald-ink); }
.bg-emerald { background: var(--emerald); }
.bg-deep { background: var(--emerald-deep); }
.bg-card { background: var(--emerald-card); }

/* ──────────────────────────────────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--container-pad);
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(0);
}
.site-header.scrolled {
  padding: 14px var(--container-pad);
  background: rgba(0,24,25,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-hair);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
  transition: height 0.4s var(--ease);
}
.site-header.scrolled .brand { height: 36px; }
.brand img, .brand svg { height: 100%; width: auto; }

.nav-links {
  display: flex;
  gap: var(--space-7);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
@media (max-width: 760px) { .nav-links { display: none; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--gold);
  color: var(--emerald-deep);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-bright);
  color: var(--emerald-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(226,192,124,0.55);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--gold-hair-strong);
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
}
@media (max-width: 760px) { .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--emerald-deep);
  border-bottom: 1px solid var(--gold-hair);
  padding: var(--space-4) var(--container-pad-mobile) var(--space-6);
  z-index: 49;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--space-3) 0;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-hair);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ──────────────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────────────── */
.hero {
  padding: var(--space-10) 0 var(--space-8);
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  max-width: 22ch;
  margin-bottom: var(--space-5);
}
.hero-sub {
  margin-top: var(--space-6);
  max-width: 56ch;
  font-size: var(--fs-lede);
  color: var(--gold-soft);
  line-height: 1.55;
}
.hero-sub em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
}
.hero-actions {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero video background — autoplay muted loop, dimmed under copy.
   Heavier overlay + lower opacity than first pass: the showreel has
   its own title-card text and we don't want it competing with the H1. */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  opacity: 0.14;
  filter: contrast(1.06) saturate(0.85) blur(1.2px);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,15,16,0.70) 0%, rgba(0,26,27,0.96) 90%),
    radial-gradient(900px circle at var(--mx, 50%) var(--my, 40%),
      rgba(226,192,124,0.08),
      transparent 55%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

/* Hero variant — natural-case H1 (homepage). Smaller + tighter than the
   CAPS variant; lowercase reads larger optically so we cap the max. */
.hero.hero-natural h1 {
  text-transform: none;
  letter-spacing: -0.028em;
  font-size: clamp(38px, 5.5vw, 84px);
  line-height: 1.02;
  max-width: 20ch;
  text-shadow:
    0 1px 0 var(--emerald-ink),
    0 2px 0 var(--emerald-ink);
}
.hero.hero-natural h1 em {
  letter-spacing: -0.005em;
  font-size: 0.95em;
}
.hero.hero-natural .hero-sub {
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px);
}

/* ──────────────────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn.primary, .btn-primary {
  background: var(--gold);
  color: var(--emerald-deep);
}
.btn.primary:hover, .btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(226,192,124,0.55);
  color: var(--emerald-deep);
}
.btn.ghost, .btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-hair-strong);
}
.btn.ghost:hover, .btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(226,192,124,0.06);
  color: var(--gold);
}

/* ──────────────────────────────────────────────────────────────────────
   TRUST STRIP / NAMED CLIENTS
   ────────────────────────────────────────────────────────────────────── */
.trust-strip {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--gold-hair);
  border-bottom: 1px solid var(--gold-hair);
}
.trust-strip-label {
  text-align: center;
  margin-bottom: var(--space-5);
}
.trust-strip-clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
  list-style: none;
  padding: 0;
}
.trust-strip-clients li {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--cream);
  white-space: nowrap;
  letter-spacing: -0.005em;
}

/* ──────────────────────────────────────────────────────────────────────
   CARDS
   ────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--emerald-card);
  border: 1px solid var(--gold-hair);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-hair-strong);
}
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-4);
}
.card h3 {
  font-size: var(--fs-display-3);
  margin-bottom: var(--space-4);
}
.card .sub {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--cream);
  font-size: var(--fs-lede);
  margin-bottom: var(--space-3);
}

/* Ghost numeral inside cards / sections */
.ghost-num {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 280px;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 760px) {
  .ghost-num { font-size: 180px; }
}

/* ──────────────────────────────────────────────────────────────────────
   GRIDS
   ────────────────────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }

.grid-4 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ──────────────────────────────────────────────────────────────────────
   SCROLL PROGRESS BAR — gold gradient with glow
   ────────────────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(226,192,124,0.4);
  z-index: 60;
  transition: width 0.1s linear;
}

/* ──────────────────────────────────────────────────────────────────────
   STAGE DOTS — right-edge section nav
   ────────────────────────────────────────────────────────────────────── */
.stage-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 40;
}
@media (max-width: 900px) { .stage-dots { display: none; } }
.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-hair-strong);
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.stage-dot:hover, .stage-dot.active { background: var(--gold); }
.stage-dot.active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: pulse 2s var(--ease) infinite;
}
.stage-dot .label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.stage-dot:hover .label { opacity: 1; }

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.5); }
}

/* ──────────────────────────────────────────────────────────────────────
   MARQUEE FILM-STRIP DIVIDER
   ────────────────────────────────────────────────────────────────────── */
.marquee {
  background: var(--emerald-ink);
  border-top: 1px solid var(--gold-hair);
  border-bottom: 1px solid var(--gold-hair);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background-image: repeating-linear-gradient(90deg, var(--gold-hair) 0 8px, transparent 8px 24px);
}
.marquee::before { top: 0; }
.marquee::after { bottom: 0; }
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 45s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}
.marquee em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  text-transform: none;
  letter-spacing: -0.005em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--emerald-ink);
  border-top: 1px solid var(--gold-hair);
  padding: var(--space-9) 0 var(--space-6);
  margin-top: var(--space-11);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  text-shadow: none;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--gold-soft);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gold-hair);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-mute);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}

/* ──────────────────────────────────────────────────────────────────────
   FORMS
   ────────────────────────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--gold);
  background: var(--emerald-ink);
  border: 1px solid var(--gold-hair-strong);
  border-radius: 8px;
  transition: border-color 0.3s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226,192,124,0.15);
}
label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

/* ──────────────────────────────────────────────────────────────────────
   REVEAL ON SCROLL — opacity + translateY (GPU-only)
   ────────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────────────
   PERF — content-visibility on offscreen sections lets the browser skip
   rendering for sections not yet near the viewport. Modern Chromium /
   Safari 18+ honor this. Older browsers ignore it — harmless.
   ────────────────────────────────────────────────────────────────────── */
section {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* Promote heavily-animated elements to GPU layers */
.card, .btn, .nav-cta, .stage-dot { will-change: transform; }
.hero h1 { will-change: opacity, transform; }

/* ──────────────────────────────────────────────────────────────────────
   HERO RADIAL CURSOR LIGHT — signature live-site move. A soft gold
   radial that follows the cursor on the hero only. CSS background-only
   so it stays GPU-cheap. Hero variants with .hero-bg-video supply their
   own radial via the .hero-overlay layer, so we scope this rule with
   :not().
   ────────────────────────────────────────────────────────────────────── */
.hero:not(:has(.hero-bg-video)) {
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%),
      rgba(226, 192, 124, 0.07),
      transparent 50%);
  transition: background 0.3s var(--ease);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero:not(:has(.hero-bg-video)) { background: none; }
}

/* ──────────────────────────────────────────────────────────────────────
   CTA PULSE — subtle attention beacon on primary CTAs (8s cadence)
   ────────────────────────────────────────────────────────────────────── */
.btn.primary, .btn-primary, .nav-cta { position: relative; overflow: visible; }
.btn.primary::after, .btn-primary::after, .nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(226, 192, 124, 0);
  pointer-events: none;
  animation: cta-pulse 8s var(--ease) infinite;
  animation-delay: 4s;
}
@keyframes cta-pulse {
  0%, 92%, 100% { box-shadow: 0 0 0 0 rgba(226, 192, 124, 0); }
  96% { box-shadow: 0 0 0 14px rgba(226, 192, 124, 0); }
}

/* Card hover lift + gold-glow */
.card { transform: translateZ(0); }
.card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: var(--gold-hair-strong);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6),
              0 0 0 1px var(--gold-hair-strong);
}

/* ──────────────────────────────────────────────────────────────────────
   STAT COUNTERS — gold display number with subtle 3D press shadow
   ────────────────────────────────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow:
    0 1px 0 var(--emerald-ink),
    0 2px 0 var(--emerald-ink),
    0 3px 0 var(--emerald-ink);
}
.stat-label {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 15px;
  color: var(--cream);
  margin-top: var(--space-2);
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE TRANSITIONS — View Transitions API. Modern browsers cross-fade
   between pages with a soft scale. Falls back gracefully on Safari < 18
   and Firefox (regular nav, no transition).
   ────────────────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) { animation-name: vt-old; }
::view-transition-new(root) { animation-name: vt-new; }
@keyframes vt-old {
  to { opacity: 0; transform: scale(0.985); }
}
@keyframes vt-new {
  from { opacity: 0; transform: scale(1.015); }
}

/* ──────────────────────────────────────────────────────────────────────
   REDUCED MOTION — kill animations + decorative layers
   ────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
  .btn.primary::after, .btn-primary::after, .nav-cta::after { animation: none; }
}

/* ──────────────────────────────────────────────────────────────────────
   UTILITIES
   ────────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--gold-mute); }
.italic { font-family: var(--font-italic); font-style: italic; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
