/* ============================================================================
 * ROOSTER CAPITAL — Cinematic public site
 * Shared foundation: tokens, nav, footer, motion, reusable section pieces.
 * Modern Patriot palette. Inter (system) + Cinzel (engraved-serif display echo).
 * ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  /* Brand primitives */
  --ink:          #1F2937;
  --ink-deep:     #161D27;
  --slate-700:    #374151;
  --slate-mid:    #2A3441;
  --slate-600:    #4B5563;
  --slate-500:    #64748B;
  --slate-300:    #CBD5E1;
  --slate-200:    #E2E8F0;
  --slate-100:    #F1F5F9;

  --terra-900:    #5C2E1F;
  --terra-700:    #8A4530;
  --terra-deep:   #9D4D32;
  --terra:        #B85C3E;
  --terra-400:    #C97A60;
  --terra-100:    #F1D5C6;
  --terra-50:     #FBF1ED;

  --gold:         #C89B3C;
  --gold-soft:    #D9B968;
  --amber-600:    #A8821F;

  --sage:         #5A7A52;
  --cream:        #F7F5F0;
  --cream-deep:   #EFEBE2;
  --gray-500:     #6B7280;
  --border:       #E5E7EB;
  --white:        #FFFFFF;

  /* Roles */
  --fg:           var(--ink);
  --fg-muted:     var(--slate-600);
  --fg-subtle:    var(--gray-500);
  --on-dark:      var(--cream);
  --on-dark-mut:  rgba(247,245,240,0.62);

  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cinzel', Georgia, serif;

  --tracking-tight:  -0.02em;
  --tracking-eyebrow:0.32em;

  --container:  1280px;
  --container-wide: 1480px;
  --nav-height: 80px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std:   cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-md:  0 4px 16px rgba(31,41,55,0.08);
  --shadow-lg:  0 24px 60px rgba(0,0,0,0.30);

  --hero-scrim: linear-gradient(180deg, rgba(22,29,39,0.55) 0%, rgba(22,29,39,0.30) 35%, rgba(22,29,39,0.55) 70%, rgba(22,29,39,0.92) 100%);
  --dark-grad:  linear-gradient(160deg, #1F2937 0%, #2A3441 45%, #1B232F 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ink-deep);
  color: var(--on-dark);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Full-page background video stage ─────────────────────────────────── */
.bg-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink-deep); }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease-out); will-change: opacity;
}
.bg-video.is-on { opacity: 1; }
.bg-scrim { position: absolute; inset: 0;
  background:
    radial-gradient(135% 105% at 50% 22%, transparent 38%, rgba(15,20,28,0.55) 100%),
    linear-gradient(180deg, rgba(15,20,28,0.66) 0%, rgba(15,20,28,0.42) 32%, rgba(15,20,28,0.50) 64%, rgba(15,20,28,0.72) 100%); }
.bg-grain { position:absolute; inset:0; opacity:0.05; mix-blend-mode:overlay;
  background-image: radial-gradient(rgba(255,255,255,0.5) 0.5px, transparent 0.5px); background-size: 3px 3px; }

/* Content sits above the fixed video stage */
.page { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.wrap-wide { max-width: var(--container-wide); }

/* ─── Typographic helpers ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--terra);
  margin: 0;
}
.eyebrow.on-dark { color: var(--gold); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

h1, h2, h3 { letter-spacing: var(--tracking-tight); margin: 0; }

.section-title,
h1.section-title,
h2.section-title {
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.65;
  color: rgba(247,245,240,0.74);
  font-weight: 400;
}

.stat-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
/* All buttons share the same translucent glass treatment: the video
   behind shows through, the text stays white, and each variant carries
   a tinted border + subtle glow that scales on hover. No solid fills. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px; border-radius: 8px;
  border: 1.5px solid rgba(247,245,240,0.45);
  background: rgba(255,255,255,0.04);
  color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; transition: border-color .25s, background .25s, box-shadow .35s, transform .2s;
  line-height: 1; white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(247,245,240,0.85);
  box-shadow: 0 0 56px rgba(247,245,240,0.22), 0 0 100px rgba(247,245,240,0.14), inset 0 0 0 1px rgba(247,245,240,0.08);
}
.btn svg { width: 18px; height: 18px; transition: transform .28s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* Terra (primary action) — terra border + warm back-glow on hover */
.btn-primary { border-color: rgba(184,92,62,0.85); color: #fff;
  box-shadow: 0 0 40px -4px rgba(184,92,62,0.55), 0 0 80px -20px rgba(184,92,62,0.45); }
.btn-primary:hover {
  border-color: rgba(212,118,82,1);
  background: rgba(184,92,62,0.15);
  box-shadow: 0 0 70px rgba(184,92,62,0.55), 0 0 120px rgba(184,92,62,0.35), inset 0 0 0 1px rgba(184,92,62,0.25);
}

/* Gold (secondary action) — gold border + warm back-glow on hover */
.btn-gold { border-color: rgba(200,155,60,0.85); color: #fff;
  box-shadow: 0 0 40px -4px rgba(200,155,60,0.55), 0 0 80px -20px rgba(200,155,60,0.45); }
.btn-gold:hover {
  border-color: rgba(220,180,80,1);
  background: rgba(200,155,60,0.15);
  box-shadow: 0 0 70px rgba(200,155,60,0.55), 0 0 120px rgba(200,155,60,0.35), inset 0 0 0 1px rgba(200,155,60,0.28);
}

/* Ghost — soft cream border, neutral glow */
.btn-ghost { border-color: rgba(247,245,240,0.45); color: #fff;
  box-shadow: 0 0 36px -6px rgba(247,245,240,0.30), 0 0 72px -24px rgba(247,245,240,0.22); }
.btn-ghost:hover {
  border-color: rgba(247,245,240,0.95);
  background: rgba(247,245,240,0.12);
  box-shadow: 0 0 60px rgba(247,245,240,0.32), 0 0 110px rgba(247,245,240,0.20), inset 0 0 0 1px rgba(247,245,240,0.14);
}

/* Ghost-dark — kept for any future light-theme surface, same glass treatment */
.btn-ghost-dark {
  background: rgba(31,41,55,0.04); color: var(--ink); border-color: rgba(31,41,55,0.30);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: none;
}
.btn-ghost-dark:hover {
  border-color: var(--ink); background: rgba(31,41,55,0.08);
  box-shadow: 0 6px 24px rgba(31,41,55,0.12);
}

/* ─── Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: background .4s var(--ease-std), box-shadow .4s var(--ease-std), border-color .4s var(--ease-std);
  border-bottom: 1px solid transparent;
}
.nav-inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo {
  display: inline-flex; align-items: center;
  padding: 0; background: transparent;
  transition: transform .25s var(--ease-out);
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo img {
  height: 55px; width: auto; display: block;
  /* Drop-shadow only — +25% bloom on top of the prior pass for a
     larger, more atmospheric halo. */
  filter:
    drop-shadow(0 0 4px rgba(247,245,240,1))
    drop-shadow(0 0 15px rgba(247,245,240,0.8))
    drop-shadow(0 0 30px rgba(247,245,240,0.45))
    drop-shadow(0 3px 20px rgba(0,0,0,0.5));
  transition: filter .35s var(--ease-out);
}
.nav-logo:hover img {
  filter:
    drop-shadow(0 0 4px rgba(247,245,240,1))
    drop-shadow(0 0 18px rgba(247,245,240,0.9))
    drop-shadow(0 0 35px rgba(184,92,62,0.58))
    drop-shadow(0 3px 22px rgba(0,0,0,0.5));
}
.nav.scrolled .nav-logo img {
  filter:
    drop-shadow(0 0 4px rgba(247,245,240,1))
    drop-shadow(0 0 13px rgba(247,245,240,0.78))
    drop-shadow(0 3px 15px rgba(0,0,0,0.65));
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative; font-size: 0.92rem; font-weight: 500; color: rgba(247,245,240,0.82);
  letter-spacing: 0.01em; transition: color .25s; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--terra); transition: width .3s var(--ease-std);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-cta {
  font-size: 0.9rem; font-weight: 600; padding: 11px 20px; border-radius: 6px;
  background: var(--terra); color: #fff; transition: all .28s var(--ease-std);
}
.nav-cta:hover { background: var(--terra-deep); transform: translateY(-1px); }

/* Solid state once scrolled */
.nav.scrolled {
  background: rgba(22,29,39,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--terra);
  box-shadow: 0 6px 30px rgba(0,0,0,0.28);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-height) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(22,29,39,0.98); backdrop-filter: blur(14px);
    padding: 8px clamp(20px,5vw,48px) 28px;
    border-bottom: 1px solid var(--terra);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; text-align: center; }
}

/* ─── Cinematic hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: transparent;
  padding: calc(var(--nav-height) + 28px) 0 96px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.hero-video.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { transition: none; } }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: var(--hero-scrim); }
.hero-scrim::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(22,29,39,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }

/* Kinetic typography stack — all lines share one grid cell so the
   container auto-sizes to the tallest line (no overlap with sub-text) */
.kinetic {
  position: relative;
  display: grid;
  max-width: min(92vw, 820px);
}
.kinetic-line {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
  text-wrap: balance;
  pointer-events: none;
}
.kinetic-line.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.kinetic-line.is-out { opacity: 0; transform: translateY(-26px); transition-duration: .7s; }
.kinetic-line .accent { color: var(--terra-400); }
.kinetic-line .gold { color: var(--gold-soft); }

.hero-sub {
  margin-top: 30px; max-width: 560px;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.6; color: rgba(247,245,240,0.86); font-weight: 400;
  opacity: 0; transform: translateY(18px);
  animation: heroFade 1s var(--ease-out) 1.1s forwards;
}
.hero-actions {
  margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px;
  opacity: 0; transform: translateY(18px);
  animation: heroFade 1s var(--ease-out) 1.35s forwards;
}
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(247,245,240,0.6); font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0; animation: heroFade 1s var(--ease-out) 1.8s forwards;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(rgba(247,245,240,0.6), transparent);
  animation: scrollPulse 2.2s var(--ease-std) infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ─── Sections / reveal ────────────────────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
/* Scrim bands — translucent so the video stays visible through every section.
   Alternating opacities give the page rhythm while motion reads throughout. */
.dark-band { background: rgba(15,20,28,0.58); color: var(--on-dark); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cream-band { background: rgba(15,20,28,0.34); color: var(--on-dark); }
.cream-band-deep { background: rgba(13,18,26,0.70); color: var(--on-dark); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dark-band .section-title, .dark-band h2, .dark-band h3,
.cream-band .section-title, .cream-band h2, .cream-band h3,
.cream-band-deep .section-title, .cream-band-deep h2, .cream-band-deep h3 { color: #fff; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .kinetic-line { transform: none; transition: none; }
  .hero-sub, .hero-actions, .scroll-cue { animation: none; opacity: 1; transform: none; }
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer { background: rgba(11,15,21,0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--on-dark); padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.10); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand img { height: 34px; margin-bottom: 22px; }
.footer-tagline { font-family: var(--font-display); font-size: 1.15rem; color: rgba(247,245,240,0.8); letter-spacing: 0.02em; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(247,245,240,0.66); font-size: 0.95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(247,245,240,0.5); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

/* ─── Misc reusable ────────────────────────────────────────────────────── */
.divider-rule { width: 56px; height: 3px; background: var(--terra); border: none; margin: 0 0 28px; }
.divider-rule.center { margin-inline: auto; }
.divider-rule.gold { background: var(--gold); }

/* ─── Glass card (sits over the background video) ───────────────────────── */
.glass {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 14px;
}

/* ─── Hero historical-data dropdown (transparent, video shows behind) ───── */
.data-drop { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 4; width: min(92vw, 720px); }
.data-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(247,245,240,0.06); border: 1px solid rgba(247,245,240,0.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 12px; padding: 16px 22px; cursor: pointer; color: #fff;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: background .3s var(--ease-std), border-color .3s; text-align: left;
}
.data-toggle:hover { background: rgba(247,245,240,0.11); border-color: rgba(247,245,240,0.4); }
.data-toggle .dt-label { display: flex; align-items: center; gap: 12px; }
.data-toggle .dt-eyebrow { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); display:block; margin-bottom: 3px; }
.data-toggle .chev { width: 20px; height: 20px; transition: transform .35s var(--ease-out); flex-shrink: 0; }
.data-drop.open .chev { transform: rotate(180deg); }
.data-panel {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .55s var(--ease-out), opacity .4s var(--ease-out), margin .4s var(--ease-out);
}
.data-drop.open .data-panel { max-height: 540px; opacity: 1; margin-bottom: 12px; }
.data-card {
  background: rgba(15,20,28,0.30); border: 1px solid rgba(247,245,240,0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 14px; padding: 26px 26px 22px;
}
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; }
.data-item .di-num { font-family: var(--font-display); font-size: clamp(1.35rem,1rem+1vw,1.8rem); color: #fff; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.data-item .di-num .gold { color: var(--gold-soft); }
.data-item .di-lbl { margin-top: 8px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247,245,240,0.6); }
.data-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(247,245,240,0.12);
  font-size: 0.82rem; color: rgba(247,245,240,0.6); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
@media (max-width: 640px) {
  .data-grid { grid-template-columns: 1fr 1fr; }
  .data-drop { bottom: 84px; }
}
