/* Emblems retain the approved board crops; the lettering uses clipped original source pixels. */
:root {
  --obsidian: #0B111B;
  --beacon-gold: #D7A257;
  --ember: #F07832;
  --steel: #78818D;
  --ivory: #E7DED0;
  --bg: var(--obsidian);
  --surface: #151E29;
  --text: var(--ivory);
  --muted: #ADB3BC;
  --line: #2E3947;
  --lilac: var(--beacon-gold);
  --mint: var(--ember);
  --cta: var(--ember);
  --cta-hover: #FF9250;
  --cta-text: var(--obsidian);
  --quiet-surface: #1C2632;
  --brand-board: url('/assets/brand-warm.webp');
  --signal: rgba(215, 162, 87, .45);
}

:root[data-theme="cool"] {
  --bg: #0B1020;
  --surface: #141A2B;
  --text: #E6E0EF;
  --muted: #AFB7C8;
  --line: #2D3548;
  --lilac: #C9B5EF;
  --mint: #8BD3CF;
  --cta: #BEA8EB;
  --cta-hover: #D7C5F2;
  --cta-text: #0B1020;
  --quiet-surface: #21243A;
  --brand-board: url('/assets/brand-cool.webp');
  --signal: rgba(174, 157, 220, .45);
}

.header-inner {
  min-height: 120px;
  height: auto;
  gap: 26px;
  padding-block: 18px;
  border-bottom-color: var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 252px;
  height: 65px;
}

.brand-emblem, .brand-lettering {
  display: block;
  flex: none;
}

.brand-emblem {
  background-image: var(--brand-board);
  background-repeat: no-repeat;
  mix-blend-mode: lighten;
}

.brand-emblem {
  --u: .37px;
  width: calc(135 * var(--u));
  height: calc(174 * var(--u));
  background-size: calc(1448 * var(--u)) calc(1086 * var(--u));
  background-position: calc(-47 * var(--u)) calc(-737 * var(--u));
}

.brand-lettering {
  width: 194.4px;
  height: auto;
  object-fit: contain;
}

:root[data-theme="cool"] .brand-lettering { filter: hue-rotate(150deg); }

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.site-nav { gap: 28px; padding: 0; }
.preview-label { white-space: nowrap; }
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  min-width: 88px;
  padding: 9px 12px;
  border: 1px solid var(--steel);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font: 500 12px/1.2 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.theme-ready .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--quiet-surface); }
.theme-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lilac);
  border: 1px solid currentColor;
}

.hero { min-height: 640px; padding-top: 56px; padding-bottom: 65px; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(52px, 5.4vw, 76px); }
.hero-copy > p { color: var(--muted); }
.beacon-scene {
  background-image: var(--brand-board);
  background-repeat: no-repeat;
}
.hero-beacon {
  position: absolute;
  right: -24px;
  top: 22px;
  width: 54%;
  aspect-ratio: 500 / 440;
  background-size: 289.6% 246.8182%;
  background-position: 50.1055% 0;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 83%, transparent);
  mask-composite: intersect;
}

.button { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.button:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.button-secondary { color: var(--text); background: transparent; border-color: var(--steel); }
.button-secondary:hover { background: var(--quiet-surface); border-color: var(--lilac); }
.footer-bottom { color: var(--muted); border-color: var(--line); }
.footer-note { border-color: var(--signal); }
.mission-signal {
  position: absolute;
  right: 8%;
  top: 110px;
  bottom: 110px;
  width: 1px;
  background: linear-gradient(transparent, var(--signal), transparent);
}

.brand-mantra {
  font-size: 12px !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lilac) !important;
  max-width: none !important;
  margin-top: 20px !important;
}
.footer-main .brand-lockup { width: 252px; }

@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .header-utilities { gap: 12px; }
  .header-utilities .preview-label { font-size: 10px; }
  .site-nav { gap: 20px; }
  .brand-lockup { width: 225px; height: 60px; gap: 5px; }
  .brand-emblem { --u: .34px; }
  .brand-lettering { width: 171.72px; }
  .hero h1 { font-size: clamp(48px, 5.9vw, 65px); }
  .hero-beacon { width: 54%; right: -20px; top: 70px; }
  .hero-copy > p { max-width: 420px; }
  .header-utilities .preview-label { display: none; }
}

@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 132px;
    gap: 8px 12px;
    padding-block: 14px;
  }
  .header-inner > .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand-lockup { width: 236px; height: 62px; }
  .brand-emblem { --u: .35px; }
  .brand-lettering { width: 181.44px; }
  .header-utilities {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    margin-top: 0;
  }
  .header-utilities .preview-label { display: flex; position: static; margin-left: 0; font-size: 10px; }
  .theme-toggle { min-height: 36px; min-width: 84px; padding: 7px 10px; font-size: 11px; }
  .menu-toggle, .nav-ready .menu-toggle { grid-row: 1; grid-column: 2; margin: 0 !important; min-width: 44px; width: 44px; justify-content: center; padding: 0; }
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .site-nav, .nav-ready .site-nav.is-open { grid-row: 3; grid-column: 1 / -1; width: 100%; padding-top: 8px; }
  .hero { padding-top: 34px; padding-bottom: 0; min-height: 0; }
  .hero h1 { font-size: clamp(42px, 8.5vw, 62px); }
  .hero-copy > p { max-width: 520px; }
  .hero-beacon {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    aspect-ratio: 500 / 440;
    margin-top: 18px;
    margin-bottom: 4px;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 87%, transparent);
  }
  .mission-signal { display: none; }
  .brand-mantra { font-size: 10px !important; line-height: 1.8; letter-spacing: .12em; }
  .footer-main .brand-lockup { width: 236px; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 410px) {
  .brand-lockup, .footer-main .brand-lockup { width: 218px; height: 58px; }
  .brand-emblem { --u: .33px; }
  .brand-lettering { width: 168.48px; }
  .hero h1 { font-size: 43px; }
}

@media (forced-colors: active) {
  .brand-emblem, .brand-lettering { forced-color-adjust: none; mix-blend-mode: normal; }
  .theme-swatch { border: 1px solid ButtonText; }
  .beacon-scene { opacity: .4; }
}
