/* ============================================================
   DUSTIN HILL PRODUCTIONS — Global Stylesheet v2
   Mobile-first. Breakpoints: 480 | 768 | 1024 | 1280 | 1920
============================================================ */

/* ── FUTURA FONT FACE ───────────────────────────────────── */
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('/assets/fonts/Futura-ExtraBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --c-black:      #000000;
  --c-void:       #050505;
  --c-dark:       #0d0d0d;
  --c-navy:       #101520;
  --c-light:      #f0f0f0;
  --c-white:      #ffffff;
  --c-accent:     #1a7fd4;
  --c-accent-hi:  #4aa3f5;
  --c-accent-dim: rgba(26,127,212,0.15);
  --c-text:       rgba(255,255,255,0.90);
  --c-text-muted: rgba(255,255,255,0.52);
  --c-text-dark:  #111111;
  --c-text-dark-muted: rgba(17,17,17,0.55);
  --c-border:     rgba(255,255,255,0.07);

  --font:   'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;
  --fw-900: 900;

  --nav-h:  68px;
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:    0.28s;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --space-8: 9rem;

  --max-w:   1320px;
  --max-w-sm: 720px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--c-black);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea { font-family: inherit; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
@media (min-width: 768px)  { .container { padding: 0 var(--space-5); } }
@media (min-width: 1280px) { .container { padding: 0 var(--space-6); } }

/* ── SECTION ────────────────────────────────────────────── */
.section { padding: var(--space-6) 0; }
@media (min-width: 768px)  { .section { padding: var(--space-7) 0; } }
@media (min-width: 1280px) { .section { padding: var(--space-8) 0; } }

.rule-accent {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--c-accent) 30%, var(--c-accent) 70%, transparent);
  opacity: 0.6;
}

/* ── BLUE KEYWORD HIGHLIGHT ─────────────────────────────── */
/* Drop <span class="hi"> around power words inside any heading or body text.
   Inherits parent font-size/weight — only colour changes.              */
.hi {
  color: var(--c-accent) !important;   /* override muted parent colours */
  font-style: normal;                  /* cancel italic if inside em */
}

/* ── TYPOGRAPHY — 4-size system (Apple discipline) ──────── */
/*
   SIZE 1 — Display:  clamp(2.5rem, 7vw, 5.5rem)  hero only
   SIZE 2 — Heading:  clamp(2rem, 4vw, 3.5rem)    all H2s
   SIZE 3 — Body:     1.125rem                     all prose + card text
   SIZE 4 — Label:    0.875rem                     all eyebrows, tags, nav
   Nothing else. No intermediate values.
*/

.section-eyebrow {
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-600);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--space-2);
}
.section-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);   /* SIZE 2 — Heading */
  font-weight: var(--fw-700);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-wrap: balance;
}
.section-header {
  margin-bottom: var(--space-5);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-600);
  color: var(--c-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap var(--dur) var(--ease);
}
.text-link:hover { gap: 10px; }
.muted { color: var(--c-text-muted); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.875rem 2rem;      /* was 0.75rem 1.75rem */
  font-size: 0.9375rem;        /* was 0.8125rem */
  font-weight: var(--fw-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  border: 1.5px solid var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-hi);
  border-color: var(--c-accent-hi);
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.6);
}

.btn--outline-dark {
  background: transparent;
  color: var(--c-text-dark);
  border: 1.5px solid rgba(17,17,17,0.3);
}
.btn--outline-dark:hover {
  background: var(--c-text-dark);
  color: var(--c-white);
}

.btn--lg {
  padding: 1.125rem 3rem;
  font-size: 1rem;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur) var(--ease);
}
.site-header.scrolled { background: rgba(0,0,0,0.96); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 var(--space-5); } }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Burger */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-white);
  transform-origin: center;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  /* backdrop-filter on .site-header makes it a containing block for fixed children,
     so inset alone collapses the menu to ~0 height. Explicit height bypasses this.
     Restricted to mobile only — desktop nav is position:static, no height needed. */
  height: calc(100dvh - var(--nav-h)); /* overridden to auto on desktop below */
  background: rgba(0,0,0,0.98);
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  gap: 2px;
  z-index: 950;
}
.nav-menu.is-open {
  display: flex;
  /* translateZ promotes to its own compositor layer, defeating iframe z-fighting */
  transform: translateZ(0);
}

.nav-item {
  display: block;
  padding: var(--space-2) 0;
  font-size: 1rem;
  font-weight: var(--fw-500);
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--dur) var(--ease);
}
.nav-item:hover, .nav-item.active { color: var(--c-white); }
.nav-item--cta { color: var(--c-accent) !important; }
.nav-item-label { display: flex; align-items: center; gap: 6px; cursor: default; }

.nav-drop {
  padding-left: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.nav-drop a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color var(--dur) var(--ease);
}
.nav-drop a:hover { color: var(--c-accent); }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-burger { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    inset: unset;
    height: auto;
    align-items: center;
    gap: var(--space-4);
    overflow: visible;
  }
  .nav-item {
    padding: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    font-weight: var(--fw-500);
    border: none;
    text-transform: uppercase;
  }
  .nav-item--cta {
    background: var(--c-accent);
    color: var(--c-white) !important;
    padding: 0.55rem 1.25rem;
    border-radius: 2px;
    transition: background var(--dur) var(--ease);
  }
  .nav-item--cta:hover { background: var(--c-accent-hi); }
  .has-drop {
    position: relative;
    align-self: stretch;   /* fill full header height → no gap between label and panel */
    display: flex;
    align-items: center;
  }
  .nav-drop {
    /* JS toggles .drop-open on .has-drop — CSS only handles the visual transition */
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5,5,5,0.97);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-accent);
    padding: 14px 0 var(--space-2);
    min-width: 210px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
  /* Invisible bridge: fills the pixel gap between the trigger bottom and panel top
     so mouseleave never fires mid-travel — consistent across all pages */
  .nav-drop::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }
  .has-drop.drop-open .nav-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-drop a {
    padding: 0.5rem var(--space-3);
    white-space: nowrap;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--c-navy);
  border-top: 1px solid var(--c-border);
  padding-top: var(--space-6);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px)  { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-tagline {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.footer-col-heading {
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-700);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--space-2);
}
.footer-links ul { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  color: var(--c-text-muted);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--c-accent); }

.footer-contact-line {
  display: block;
  font-size: 1.125rem;          /* SIZE 3 — Body */
  color: var(--c-text-muted);
  margin-bottom: 4px;
  transition: color var(--dur) var(--ease);
}
a.footer-contact-line:hover { color: var(--c-accent); }

.footer-bottom {
  margin-top: var(--space-6);
  border-top: 1px solid var(--c-border);
  padding: var(--space-3) 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.footer-bottom p { font-size: 0.75rem; color: var(--c-text-muted); }

/* ── CONTACT COMBINED — global template (used on every inner page) ── */
/*
   Usage: <section class="contact-combined"> ... </section>
   Includes: dark blue-gradient background, radial blue glow, CTA header,
   form divider, 2-col form layout, brief block (border-top only, no box).
   All form field styles, honeypot, and submit button styles included here.
*/
.contact-combined {
  background: linear-gradient(160deg, #050a14 0%, #000814 45%, #000 100%);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0;
}
@media (min-width: 768px)  { .contact-combined { padding: var(--space-7) 0; } }
@media (min-width: 1280px) { .contact-combined { padding: var(--space-8) 0; } }

.contact-combined::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(26,127,212,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.contact-combined .cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: var(--space-4);
}
.contact-combined .cta-body {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}
.contact-form-divider { margin: var(--space-6) 0 var(--space-7); }

.contact-form-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .contact-form-inner { grid-template-columns: 1fr 1.6fr; align-items: start; gap: var(--space-7); }
}

/* Nav open — hide video wrap entirely so YouTube doesn't float above the mobile menu */
body.nav-open .hero-video-wrap {
  display: none;
}

.contact-form-sub {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

/* Brief block — border-top separator only, no box/background */
.contact-brief-block {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-brief-title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: var(--fw-700);
  color: var(--c-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contact-brief-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-text-muted);
}
.contact-brief-block .btn { align-self: flex-start; margin-top: var(--space-1); }

/* Mobile: show form fields above the header text; centre all copy */
@media (max-width: 1023px) {
  .contact-form-header { order: 2; text-align: center; }
  .contact-form        { order: 1; }
  .contact-brief-block { align-items: center; }
  .contact-brief-title,
  .contact-brief-sub   { text-align: center; }
  .contact-brief-block .btn { align-self: center; }
  .contact-form .btn   { align-self: center; }
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: var(--fw-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-hi);
}
.form-optional { font-weight: var(--fw-400); opacity: 0.6; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-family: var(--font);
  color: var(--c-text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  resize: vertical;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-muted); opacity: 0.5; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(26,127,212,0.04);
}
@media (min-width: 1024px) {
  .contact-form .btn { align-self: flex-start; margin-top: var(--space-1); }
}

/* Honeypot */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1024px) { #cf-message { min-height: 200px; } }

/* ── SCROLL ANIMATION UTILITY ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ── HOMEPAGE VIDEO MODAL ───────────────────────────────── */
.hp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.90);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
}
.hp-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.hp-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #0d1523;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.hp-modal-overlay.open .hp-modal-inner {
  transform: translateY(0) scale(1);
}
.hp-modal-video {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.hp-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hp-modal-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.6rem 1rem;
}
.hp-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hp-modal-close:hover { background: rgba(255,255,255,0.18); }
