/* =========================================================
   GUNPOWDER PRODUCTIONS — Shared Stylesheet
   Theme: cinematic dark stage — black, antique gold, curtain red
   ========================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  --bg:        #0a0908;
  --bg-raised: #141210;
  --gold:      #c9a24a;
  --gold-hi:   #e8cd86;
  --red:       #7a1f2b;
  --red-hi:    #9c2c3a;
  --cream:     #f2ecdd;
  --cream-dim: #cfc6b0;
  --ink:       #0a0908;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--cream);
}
p { margin: 0 0 1em; max-width: 66ch; }
.container p { max-width: 66ch; }
ul { margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
}
.section-narrow { max-width: 760px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- Curtain-edge divider ---- */
.curtain-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 18%,
    var(--gold-hi) 50%,
    var(--gold) 82%,
    transparent 100%);
  opacity: 0.55;
  margin: 0;
}

/* ---- Site header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.25);
}
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-hi);
  white-space: nowrap;
}
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--cream-dim); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201,162,74,0.4);
  border-radius: 4px;
  color: var(--gold-hi);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-dim);
  position: relative;
  padding: 0.3rem 0.05rem;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-hi); }
.main-nav a.active { color: var(--gold-hi); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--red);
  color: var(--cream) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 3px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-hi); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items:center; gap:.4rem; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid rgba(201,162,74,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--gutter) 1.25rem;
    gap: 0.1rem;
  }
  .main-nav li { border-bottom: 1px solid rgba(201,162,74,0.1); }
  .main-nav a { display: block; padding: 0.8rem 0.2rem; }
  .nav-cta { display: inline-block; margin-top: 0.6rem; text-align: center; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(201,162,74,0.16), transparent 60%),
    linear-gradient(180deg, rgba(10,9,8,0.35) 0%, rgba(10,9,8,0.55) 55%, rgba(10,9,8,0.96) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  width: 100%;
}
.hero-eyebrow-line {
  width: 46px; height: 2px; background: var(--gold);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 15ch;
  color: var(--cream);
}
.hero h1 em { font-style: italic; color: var(--gold-hi); }
.hero-tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream-dim);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* smaller inner-page hero */
.hero.hero-sub { min-height: 46vh; }
.hero.hero-sub h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* curtain reveal panels (Home only) */
.curtain-panel {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; pointer-events: none;
}
.curtain-panel .leaf {
  flex: 1; background: linear-gradient(180deg, #5c1520, #3b0e16);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.curtain-panel.opening .leaf.left { animation: pullLeft 1.1s var(--ease) forwards; }
.curtain-panel.opening .leaf.right { animation: pullRight 1.1s var(--ease) forwards; }
@keyframes pullLeft { to { transform: translateX(-100%); } }
@keyframes pullRight { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .curtain-panel { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color .18s var(--ease);
}
.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-hi); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(242,236,221,0.35); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold-hi); color: var(--gold-hi); }

/* ---- Section heading pattern ---- */
.section-head { margin-bottom: 2.5rem; max-width: 62ch; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head .lede { color: var(--cream-dim); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Two column split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media img, .split-media video {
  border-radius: 2px;
  border: 1px solid rgba(201,162,74,0.25);
  width: 100%;
}
/* Some source photos are low-resolution; cap their display size
   so they read as framed snapshots instead of blown-up, pixelated hero art. */
.split-media.compact { display: flex; justify-content: center; }
.split-media.compact img { width: auto; max-width: 340px; max-height: 380px; object-fit: cover; }

/* Small snapshot row (e.g. founder production stills) */
.snap-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.2rem; }
.snap-row figure { margin: 0; width: 132px; }
.snap-row img {
  width: 132px; height: 132px; object-fit: cover;
  border: 1px solid rgba(201,162,74,0.3); background: #000;
}
.snap-row figcaption { font-size: 0.72rem; color: var(--cream-dim); margin-top: 0.35rem; line-height: 1.3; }
.framed {
  padding: 10px;
  border: 1px solid rgba(201,162,74,0.35);
  background: var(--bg-raised);
}

/* ---- Card grid (used sparingly: media / partners) ---- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised);
  border: 1px solid rgba(201,162,74,0.18);
  padding: 1.6rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--cream-dim); font-size: 0.95rem; margin-bottom: 0; }

/* ---- Photo gallery ---- */
.gallery-item { overflow: hidden; border: 1px solid rgba(201,162,74,0.25); background:#000; }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { padding: 0.9rem 1rem; background: var(--bg-raised); font-size: 0.88rem; color: var(--cream-dim); }

/* ---- Timeline (Pipeline - genuine sequence) ---- */
.timeline { border-left: 2px solid rgba(201,162,74,0.35); margin-left: 0.6rem; }
.timeline-item { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -7px; top: 0.3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-date { font-family: var(--font-display); color: var(--gold-hi); font-size: 1.05rem; margin-bottom: 0.2rem; }

/* ---- Quote / pull ---- */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--gold-hi);
  border-left: 3px solid var(--red);
  padding-left: 1.4rem;
  max-width: 44ch;
  margin: 1.5rem 0;
}

/* ---- Forms ---- */
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block; margin-bottom: 0.4rem; font-size: 0.9rem;
  color: var(--cream-dim); font-weight: 500;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid rgba(201,162,74,0.3);
  color: var(--cream);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 3px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(207,198,176,0.45); }
.form-note { font-size: 0.85rem; color: var(--cream-dim); margin-top: 0.75rem; }
.form-success, .form-error {
  padding: 1rem 1.2rem; border-radius: 3px; margin-bottom: 1.2rem; font-size: 0.95rem; display:none;
}
.form-success { background: rgba(201,162,74,0.12); border: 1px solid var(--gold); color: var(--gold-hi); }
.form-error { background: rgba(122,31,43,0.18); border: 1px solid var(--red-hi); color: #e7a6ae; }

/* ---- Video ---- */
.video-frame {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(201,162,74,0.3);
  background: #000;
}
.video-frame video { width: 100%; display: block; }
.fact-strip {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem);
  padding: 2.2rem var(--gutter);
  background: var(--bg-raised);
  border-top: 1px solid rgba(201,162,74,0.18);
  border-bottom: 1px solid rgba(201,162,74,0.18);
}
.fact { min-width: 140px; }
.fact .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-hi); display:block; }
.fact .lbl { font-size: 0.85rem; color: var(--cream-dim); }

/* ---- Scroll-reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Footer ---- */
.site-footer {
  background: #060505;
  border-top: 1px solid rgba(201,162,74,0.2);
  padding: 3rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.03em;
  color: var(--gold-hi); margin-bottom: 0.9rem; font-weight: 600;
}
.footer-grid ul { list-style: none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.55rem; }
.footer-grid a { text-decoration:none; color: var(--cream-dim); font-size:0.92rem; }
.footer-grid a:hover { color: var(--gold-hi); }
.footer-brand { display:flex; align-items:center; gap:0.6rem; margin-bottom:0.9rem; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: var(--font-display); color: var(--gold-hi); font-size:1.1rem; }
.footer-tagline { color: var(--cream-dim); font-size:0.9rem; max-width: 32ch; }
.social-row { display:flex; gap:0.9rem; margin-top:1rem; }
.social-row a {
  width:36px; height:36px; border:1px solid rgba(201,162,74,0.35);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  text-decoration:none; color: var(--gold-hi); font-size:0.95rem;
}
.social-row a:hover { background: var(--gold); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,74,0.15);
  padding-top: 1.5rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.6rem;
  font-size: 0.82rem; color: var(--cream-dim);
}

/* ---- Newsletter mini form (footer) ---- */
.newsletter-form { display:flex; gap:0.5rem; margin-top:0.5rem; flex-wrap: wrap; }
.newsletter-form input {
  flex:1; min-width: 150px;
  background: var(--bg-raised); border:1px solid rgba(201,162,74,0.3);
  color: var(--cream); padding:0.6rem 0.8rem; border-radius:3px; font-size:0.9rem;
}
.newsletter-form button {
  background: var(--gold); color: var(--ink); border:none; border-radius:3px;
  padding:0.6rem 1rem; font-weight:600; cursor:pointer; font-size:0.9rem;
}
.newsletter-form button:hover { background: var(--gold-hi); }

/* ---- Page intro block (for inner pages without full hero content) ---- */
.eyebrow {
  color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; display:block;
}

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip: rect(0,0,0,0); white-space:nowrap; border:0;
}
