/* ============================================================
   Layout-specific styles — header, hero, sections, components
   ============================================================ */

/* ─── Site header ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
  max-width: var(--w-canvas); margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; border: 0; color: inherit;
}
.brand-mark {
  width: 42px; height: 42px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  display: grid; line-height: 1;
}
.brand-text .top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-text .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 4px;
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--fg-2);
  border: 0;
  padding: 8px 12px;
  border-radius: var(--r-pill);
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.cta { background: var(--ink); color: var(--paper); }
.nav a.cta:hover { background: var(--cobalt); color: var(--paper); }

.menu-toggle { display: none; }

@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 16px 24px;
    gap: 4px;
    align-items: stretch;
  }
  .nav.open a { padding: 12px 14px; text-align: left; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-pill);
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; }
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.hero-eyebrow .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(54px, 8.6vw, 116px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .crimson { color: var(--crimson); }
.hero h1 .cobalt { color: var(--cobalt); }
.hero h1 em { font-style: italic; color: var(--graphite); }

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-1);
}
.hero-meta dd .accent { color: var(--cobalt); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.hero-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 64px;
}
.hero-statline .stat {
  flex: 1 1 180px;
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
}
.hero-statline .stat:last-child { border-right: 0; }
.hero-statline .stat .num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-statline .stat .num.cobalt { color: var(--cobalt); }
.hero-statline .stat .num.crimson { color: var(--crimson); }
.hero-statline .stat .num.gold { color: #b88a1e; }
.hero-statline .stat .lab {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* hero ornament: stripes drifting */
.hero-flag {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 38%;
  pointer-events: none;
  opacity: 0.10;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0 24px,
    transparent 24px 64px
  );
  mask: linear-gradient(90deg, transparent, black 60%);
  -webkit-mask: linear-gradient(90deg, transparent, black 60%);
}

/* ─── Marquee bar ──────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; gap: 48px;
  padding: 14px 0;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; gap: 12px; align-items: center;
}
.marquee-item .dot { width: 5px; height: 5px; background: var(--crimson); border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 36px;
}
.footer .h2 { color: var(--paper); }
.footer .body, .footer .body-sm { color: rgba(244,239,230,0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,239,230,0.18);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.6);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a {
  color: rgba(244,239,230,0.85);
  border-bottom: 0;
  font-size: 14px;
}
.footer-grid a:hover { color: var(--sky); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
}
