/* ═══════════════════════════════════════════════════════════════
   BIRDIE BOUND MEDIA  ·  shared site styles
   Aesthetic: The Phoenix Operator
   ═══════════════════════════════════════════════════════════════ */

/* ── Touche font (local, dev preview only) ──────────────────── */
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-SemiboldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Touche";
  src: url("../fonts/Touche-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --ink-deep:   #0A0908;
  --ink-panel:  #16140F;
  --ink-line:   #2A2620;
  --ink-soft:   #1F1C16;

  --paper:      #F5EFE6;
  --paper-mute: #C9C0B0;
  --paper-dim:  #8B8275;

  --gold:       #D4A24C;
  --gold-soft:  #E5C485;
  --clay:       #B5471F;
  --sage:       #7B8466;

  --mute:       #6B6358;

  --rad-sm: 4px;
  --rad-md: 10px;
  --rad-lg: 22px;

  --max:    1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --t-sm:   clamp(13px, 0.84vw + 11px, 15px);
  --t-md:   clamp(15px, 0.5vw + 14px, 17px);
  --t-lg:   clamp(18px, 0.6vw + 16px, 22px);
  --t-xl:   clamp(22px, 1.4vw + 18px, 30px);
  --t-2xl:  clamp(34px, 3.5vw + 22px, 60px);
  --t-3xl:  clamp(56px, 8vw + 24px, 132px);
  --t-display: clamp(64px, 10.5vw + 24px, 188px);

  --ease: cubic-bezier(.2,.7,0,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink-deep);
  color: var(--paper);
  font-family: "Touche", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--t-md);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

::selection { background: var(--gold); color: var(--ink-deep); }

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Type primitives ───────────────────────────────────────── */
.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--t-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  font-weight: 500;
}
.kicker .num { color: var(--gold); }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.display {
  font-family: "Touche", system-ui, sans-serif;
  font-weight: 320;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  text-transform: uppercase;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.h2 {
  font-family: "Touche", system-ui, sans-serif;
  font-weight: 350;
  font-size: var(--t-2xl);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
}
.h2 em { font-style: italic; color: var(--gold); }

.lead {
  font-size: clamp(17px, 0.6vw + 15px, 21px);
  line-height: 1.45;
  color: var(--paper-mute);
  max-width: 56ch;
}

/* ── Layout ────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.divider { height: 1px; background: var(--ink-line); border: 0; margin: 0; }
.divider.gold {
  background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  height: 1px;
}

section { position: relative; padding: clamp(72px, 8vw, 140px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 768px) {
  .section-head { grid-template-columns: 220px 1fr; gap: 60px; align-items: end; }
}
.section-head .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.4;
}
.section-head .num b {
  font-family: "Touche", system-ui, sans-serif;
  font-weight: 320;
  font-style: italic;
  font-size: clamp(64px, 8vw, 132px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--gold);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 15px;
  font-family: "Touche", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--gold); color: var(--ink-deep); }
.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--ink-line);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(245, 239, 230, 0.05); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--ink-line);
  padding: 6px 0;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.btn-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding: 12px 0;
  border-bottom-color: var(--ink-line);
}
.nav.solid {
  background: rgba(10, 9, 8, 0.92);
  border-bottom-color: var(--ink-line);
}

.nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Touche", system-ui, sans-serif;
  font-weight: 350;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 14;
}
.wordmark .dot { color: var(--gold); }
.wordmark .small {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  text-transform: uppercase;
  margin-left: 6px;
  position: relative;
  top: -2px;
}

.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--paper-mute);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 920px) { .nav-links { display: inline-flex; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink-deep);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background .3s var(--ease);
}
.nav-cta:hover { background: var(--gold); }

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .3s, opacity .3s;
}
@media (min-width: 920px) { .menu-btn { display: none; } }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--ink-panel);
  border-top: 1px solid var(--ink-line);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }

.footer-brand .wordmark { font-size: 28px; }
.footer-tag {
  margin-top: 18px;
  font-family: "Touche", system-ui, sans-serif;
  font-style: italic;
  font-weight: 320;
  font-size: 17px;
  color: var(--paper-mute);
  max-width: 36ch;
  line-height: 1.4;
}
.footer h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: var(--paper-mute);
  font-size: 14.5px;
  transition: color .25s;
}
.footer ul a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.footer-bottom .badges { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .badges span { color: var(--paper-mute); }
.footer-bottom .badges b { color: var(--gold); font-weight: 500; }

/* ── Sticky mobile CTA ─────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  background: var(--gold);
  color: var(--ink-deep);
  border-radius: 999px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.6);
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta .sub {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.sticky-cta .arrow { font-size: 18px; }
@media (min-width: 920px) { .sticky-cta { display: none; } }

/* ── Reveal animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-stagger.in > *               { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1)  { transition-delay: 0.04s; }
.reveal-stagger.in > *:nth-child(2)  { transition-delay: 0.10s; }
.reveal-stagger.in > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4)  { transition-delay: 0.22s; }
.reveal-stagger.in > *:nth-child(5)  { transition-delay: 0.28s; }
.reveal-stagger.in > *:nth-child(6)  { transition-delay: 0.34s; }
.reveal-stagger.in > *:nth-child(7)  { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .marquee-track, .hero-scroll { animation: none !important; }
}
