/* MRE HEADER / OFFICIAL EMBER FRAME
   The original metallic MRE lettering is preserved pixel-for-pixel.
   Outer rectangle and orange glow are CSS; only the inner viewport crops
   the previously retired line of small text below the official wordmark.
   Never retype, colorize, distort, or add filters to the approved logo. */
:root{--header:58px}

.site-header{
  height:var(--header)!important;
  padding-inline:clamp(18px,3.4vw,42px)!important;
  border-bottom:0!important;
  overflow:visible!important;
}
.site-header.scrolled{
  border-bottom:0!important;
  box-shadow:0 12px 34px rgba(0,0,0,.28)!important;
}

/* A rectangular brand badge, not a free-floating logo or a generic pill. */
.site-header .wordmark{
  display:block!important;
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  flex:0 0 auto;
  width:148px!important;
  height:48px!important;
  margin:0;
  border:1px solid rgba(255,133,62,.87);
  border-radius:2px;
  overflow:visible!important;
  background:linear-gradient(115deg,#010101 55%,#180b06 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,184,124,.14),
    inset 0 0 12px rgba(255,104,26,.08),
    0 0 10px rgba(255,104,26,.34),
    0 0 24px rgba(255,104,26,.20);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.site-header .wordmark::after{
  content:"";
  position:absolute;
  z-index:2;
  left:16px;
  right:16px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,181,122,.8),transparent);
  pointer-events:none;
}
/* Only the image viewport clips, so no orange frame/glow is cut off. */
.wordmark-art{
  display:block;
  position:absolute;
  inset:5px 10px 5px;
  overflow:hidden;
  background:#000;
}
.wordmark-art img.wordmark-primary{
  display:block!important;
  position:absolute;
  top:-3px;
  left:0;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  filter:none!important;
  transform:none!important;
  object-fit:contain;
  pointer-events:none;
}
.site-header .wordmark:hover{
  border-color:#ffac78;
  box-shadow:
    inset 0 0 0 1px rgba(255,184,124,.22),
    inset 0 0 12px rgba(255,104,26,.12),
    0 0 13px rgba(255,104,26,.48),
    0 0 30px rgba(255,104,26,.25);
}
.site-header .wordmark:focus-visible{
  outline:2px solid #ffb38b;
  outline-offset:4px;
  border-radius:2px;
}

/* Keep the film-frame hero intact below the navigation. */
.hero{padding-top:0!important;border-top:0!important}
.hero-poster{margin-top:0!important}
.hero-copy{padding-top:calc(var(--header) + clamp(38px,4.4vw,66px))!important}

@media(max-width:900px){
  :root{--header:56px}
  .site-header{padding-inline:16px!important}
  .site-header .wordmark{width:138px!important;height:46px!important}
  .wordmark-art{inset:5px 9px 5px}
  .wordmark-art img.wordmark-primary{top:-2.5px}
  .hero-copy{padding-top:calc(var(--header) + 32px)!important}
}
@media(max-width:390px){
  .site-header .wordmark{width:132px!important;height:44px!important}
  .wordmark-art{inset:5px 9px 5px}
  .wordmark-art img.wordmark-primary{top:-2px}
}
@media(prefers-reduced-motion:reduce){
  .site-header .wordmark{transition:none}
}
