/* ==========================================================================
   Man O' War Precision Arms — mowpa.css
   Design system: blackened steel, forge ember, aged brass.
   Display: Big Shoulders Display  |  Body: Barlow  |  Data: IBM Plex Mono
   ========================================================================== */

:root {
  /* Surfaces — cold blued steel, not tinted black */
  --void:      #08090a;
  --pitch:     #0d1013;
  --steel:     #14181c;
  --plate:     #1b2126;
  --etch:      #2b333a;
  --etch-lit:  #3d474f;

  /* Ink */
  --bone:      #e9e4d9;
  --ash:       #8e979e;
  --ash-dim:   #6b747b;

  /* Heat */
  --ember:     #c04a16;
  --ember-hot: #e8701f;
  --ember-dim: rgba(192, 74, 22, 0.14);
  --brass:     #a98a4b;
  --brass-lit: #d4b478;

  /* Type */
  --display: "Big Shoulders Display", "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body:    "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --data:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Rhythm */
  --gut:   clamp(1.25rem, 4vw, 2.5rem);
  --band:  clamp(4rem, 9vw, 7.5rem);
  --shell: 1240px;
  --rule:  1px solid var(--etch);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--brass-lit); text-decoration-color: rgba(169,138,75,.45); text-underline-offset: 3px; }
a:hover { color: var(--ember-hot); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; }

/* --- Type -------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9.5vw, 6.75rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--bone); line-height: 1.55; }
.muted { color: var(--ash); }
strong { font-weight: 600; color: var(--bone); }

/* Section marker: a forged notch, not an all-caps eyebrow */
.marker {
  font-family: var(--data);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}
.marker::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent);
  flex: none;
}

/* --- Layout ------------------------------------------------------------ */
.shell { width: min(100% - (var(--gut) * 2), var(--shell)); margin-inline: auto; }
.shell-wide { width: min(100% - (var(--gut) * 2), 1480px); margin-inline: auto; }
.band { padding-block: var(--band); position: relative; }
.band-plate { background: var(--pitch); border-block: var(--rule); }
.band-steel { background: var(--steel); border-block: var(--rule); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .split-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .split-hold { grid-template-columns: 5fr 6fr; align-items: start; }
  .split-side { grid-template-columns: 320px 1fr; align-items: start; }
}
.stack > * + * { margin-top: 1rem; }

/* Hairline that reads as machined, used to separate bands of content */
.rule-etch {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--etch) 0%, var(--etch-lit) 12%, var(--etch) 40%, transparent 100%);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-hot); color: #fff; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--etch-lit); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-lit); background: rgba(169,138,75,.06); }
.btn-brass { background: var(--brass); color: #16120a; }
.btn-brass:hover { background: var(--brass-lit); color: #16120a; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- Header ------------------------------------------------------------ */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,9,10,.9);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}
.masthead-bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--bone);
  text-decoration: none;
  display: flex; flex-direction: column;
  flex: none;
}
.wordmark span {
  font-family: var(--data);
  font-size: .56rem;
  letter-spacing: .24em;
  color: var(--ember);
  margin-top: 4px;
}
.wordmark:hover { color: var(--bone); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  font-family: var(--display);
  font-size: 1rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ash); text-decoration: none;
  padding: .5rem .7rem; border-radius: 2px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ember); }
.nav-cart { position: relative; }
.nav-cart .count {
  position: absolute; top: 0; right: -2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--ember); color: #fff;
  font-family: var(--data); font-size: .62rem; line-height: 17px;
  text-align: center; border-radius: 9px;
}
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--etch-lit); color: var(--bone);
  padding: .45rem .7rem; border-radius: 2px; cursor: pointer;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .06em;
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--pitch); border-bottom: var(--rule);
    padding: .6rem var(--gut) 1.4rem;
    margin: 0;
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem .2rem; border-bottom: var(--rule); font-size: 1.15rem; }
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92dvh, 900px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: var(--rule);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--void) 4%, rgba(8,9,10,.55) 45%, rgba(8,9,10,.25) 100%),
    linear-gradient(to right, rgba(8,9,10,.85) 0%, transparent 62%);
}
.hero-body { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--ember-hot);
  font-size: .42em;
  letter-spacing: .04em;
  margin-bottom: .35em;
  font-weight: 700;
}
.hero .lede { max-width: 46ch; color: #d6d2c8; }
.hero-actions { margin-top: 2rem; }

/* Video mute/play control sits bottom-right of the hero */
.hero-vidctl {
  position: absolute; right: var(--gut); bottom: 1.6rem; z-index: 3;
  display: flex; gap: .5rem;
}
.hero-vidctl button {
  width: 40px; height: 40px;
  background: rgba(8,9,10,.6); border: 1px solid var(--etch-lit);
  color: var(--bone); border-radius: 2px; cursor: pointer;
  display: grid; place-items: center;
}
.hero-vidctl button:hover { border-color: var(--ember); color: var(--ember-hot); }

/* --- Recoil comparison (signature element) ----------------------------- */
.recoil-rig {
  background: var(--pitch);
  border: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.recoil-head {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: var(--rule);
  background: var(--steel);
}
.recoil-modes { display: flex; gap: 0; border: 1px solid var(--etch-lit); border-radius: 2px; overflow: hidden; }
.recoil-modes button {
  background: transparent; border: 0; border-right: 1px solid var(--etch-lit);
  color: var(--ash); padding: .5rem 1rem; cursor: pointer;
  font-family: var(--display); font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.recoil-modes button:last-child { border-right: 0; }
.recoil-modes button[aria-pressed="true"] { background: var(--ember); color: #fff; }
.recoil-modes button:hover:not([aria-pressed="true"]) { color: var(--bone); background: rgba(255,255,255,.04); }
.recoil-canvas-wrap { position: relative; aspect-ratio: 16 / 8; background: #06070a; }
.recoil-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.recoil-readout {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule);
}
.recoil-readout div { padding: .9rem 1.25rem; border-right: var(--rule); }
.recoil-readout div:last-child { border-right: 0; }
.recoil-readout dt { font-family: var(--data); font-size: .68rem; letter-spacing: .14em; color: var(--ash-dim); text-transform: uppercase; margin-bottom: .2rem; }
.recoil-readout dd { margin: 0; font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--bone); line-height: 1; }
.recoil-readout dd small { font-size: .45em; color: var(--ash); font-family: var(--body); font-weight: 400; margin-left: .3em; }
.recoil-note { padding: .75rem 1.25rem; border-top: var(--rule); color: var(--ash-dim); font-size: .82rem; }
@media (max-width: 640px) {
  .recoil-readout { grid-template-columns: 1fr; }
  .recoil-readout div { border-right: 0; border-bottom: var(--rule); }
}

/* --- Build lineup ------------------------------------------------------ */
.lineup { display: grid; gap: 1px; background: var(--etch); border: var(--rule); }
@media (min-width: 720px)  { .lineup { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lineup { grid-template-columns: repeat(3, 1fr); } }

.rig {
  background: var(--pitch);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
  transition: background-color .18s ease;
}
.rig:hover { background: var(--steel); color: inherit; }
.rig:hover .rig-name { color: var(--ember-hot); }
.rig-shot { aspect-ratio: 4 / 3; background: #0b0d0f; overflow: hidden; position: relative; }
.rig-shot img { width: 100%; height: 100%; object-fit: cover; }
.rig-shot .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--etch-lit); font-family: var(--data); font-size: .7rem; letter-spacing: .16em;
  background: repeating-linear-gradient(45deg, #0b0d0f 0 10px, #0e1114 10px 20px);
}
.rig-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.rig-name {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1;
  margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .01em;
  transition: color .16s ease;
}
.rig-tag { color: var(--ash); font-size: .95rem; margin: 0 0 1rem; flex: 1; }
.rig-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: var(--rule); padding-top: .8rem; }
.price {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: var(--brass-lit); line-height: 1; white-space: nowrap;
}
.price .from { font-family: var(--data); font-size: .58rem; letter-spacing: .14em; color: var(--ash-dim); display: block; margin-bottom: .2rem; text-transform: uppercase; }
.price .was { font-family: var(--body); font-size: .78rem; color: var(--ash-dim); text-decoration: line-through; margin-left: .5rem; font-weight: 400; }
.price-quote { color: var(--bone); font-size: 1.15rem; }
.rig-more { font-family: var(--data); font-size: .7rem; letter-spacing: .14em; color: var(--ash-dim); text-transform: uppercase; }

/* Ribbon for stock / FFL state */
.flag {
  display: inline-block;
  font-family: var(--data); font-size: .62rem; letter-spacing: .14em;
  padding: .25rem .5rem; border-radius: 2px; text-transform: uppercase;
  border: 1px solid var(--etch-lit); color: var(--ash);
}
.flag-ffl { border-color: rgba(192,74,22,.5); color: var(--ember-hot); background: var(--ember-dim); }
.flag-stock { border-color: rgba(169,138,75,.45); color: var(--brass-lit); }

/* --- Product / build detail ------------------------------------------- */
.detail-gallery { position: sticky; top: 92px; }
.detail-frame {
  aspect-ratio: 4 / 3; background: #0b0d0f; border: var(--rule);
  display: grid; place-items: center; overflow: hidden;
}
.detail-frame img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.thumbs button {
  width: 68px; height: 54px; padding: 0; overflow: hidden;
  background: #0b0d0f; border: 1px solid var(--etch); cursor: pointer; border-radius: 2px;
}
.thumbs button[aria-pressed="true"] { border-color: var(--ember); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox {
  border: var(--rule); background: var(--pitch);
  padding: 1.4rem; border-radius: 3px; margin: 1.75rem 0;
}
.buybox .price { font-size: 2.6rem; }
.buybox-note { color: var(--ash); font-size: .9rem; margin: .8rem 0 1.2rem; }
.qty { display: inline-flex; border: 1px solid var(--etch-lit); border-radius: 2px; overflow: hidden; }
.qty button { width: 40px; background: transparent; border: 0; color: var(--bone); cursor: pointer; font-size: 1.1rem; }
.qty button:hover { background: rgba(255,255,255,.06); }
.qty input { width: 52px; background: transparent; border: 0; color: var(--bone); text-align: center; font-family: var(--data); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Spec sheet — monospace here because it is machine data */
.specsheet { border: var(--rule); border-radius: 3px; overflow: hidden; margin-top: 2rem; }
.specsheet h4 {
  margin: 0; padding: .7rem 1.1rem; background: var(--steel);
  border-bottom: var(--rule); font-family: var(--display); letter-spacing: .05em; text-transform: uppercase;
  color: var(--brass-lit); font-size: 1rem;
}
.specsheet ul { list-style: none; margin: 0; padding: 0; }
.specsheet li {
  font-family: var(--data); font-size: .82rem; line-height: 1.5;
  padding: .55rem 1.1rem; border-bottom: 1px solid rgba(43,51,58,.6);
  color: var(--bone);
}
.specsheet li:last-child { border-bottom: 0; }
.specsheet + .specsheet { margin-top: 1rem; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 2px; background: var(--ember);
}

/* --- Shop filters ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2rem; }
.filters button {
  background: transparent; border: 1px solid var(--etch-lit); color: var(--ash);
  padding: .45rem .95rem; border-radius: 2px; cursor: pointer;
  font-family: var(--display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.filters button[aria-pressed="true"] { background: var(--bone); color: var(--void); border-color: var(--bone); }
.filters button:hover:not([aria-pressed="true"]) { color: var(--bone); border-color: var(--brass); }
.filters input[type="search"] {
  flex: 1; min-width: 200px;
  background: var(--pitch); border: 1px solid var(--etch-lit); color: var(--bone);
  padding: .5rem .8rem; border-radius: 2px; font-family: var(--body);
}

/* --- Forms ------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-family: var(--data); font-size: .7rem;
  letter-spacing: .14em; color: var(--ash); margin-bottom: .35rem; text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--pitch); border: 1px solid var(--etch-lit);
  color: var(--bone); padding: .7rem .85rem; border-radius: 2px;
  font-family: var(--body); font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ember); outline: none; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }
.field-hint { font-size: .82rem; color: var(--ash-dim); margin-top: .3rem; }
.formnote { padding: .9rem 1.1rem; border-radius: 2px; margin-bottom: 1.2rem; font-size: .92rem; }
.formnote-ok  { background: rgba(169,138,75,.12); border: 1px solid var(--brass); color: var(--brass-lit); }
.formnote-bad { background: var(--ember-dim); border: 1px solid var(--ember); color: var(--ember-hot); }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; font-size: .93rem; color: var(--ash); }
.check input { margin-top: .35rem; accent-color: var(--ember); flex: none; }

/* --- Cart -------------------------------------------------------------- */
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 1.1rem;
  padding: 1.2rem 0; border-bottom: var(--rule); align-items: start;
}
.cart-line .shot { aspect-ratio: 4/3; background: #0b0d0f; border: var(--rule); overflow: hidden; }
.cart-line .shot img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { margin: 0 0 .25rem; }
.cart-line .drop { background: none; border: 0; color: var(--ash-dim); cursor: pointer; font-size: .82rem; padding: 0; text-decoration: underline; }
.cart-line .drop:hover { color: var(--ember-hot); }
.totals { border-top: 2px solid var(--etch-lit); padding-top: 1.2rem; margin-top: .5rem; }
.totals-row { display: flex; justify-content: space-between; margin-bottom: .5rem; color: var(--ash); }
.totals-row.grand { color: var(--bone); font-family: var(--display); font-size: 1.8rem; font-weight: 800; margin-top: .8rem; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 72px 1fr; } .cart-line > :last-child { grid-column: 1 / -1; } }

/* --- Charity ----------------------------------------------------------- */
.orgs { display: grid; gap: 1px; background: var(--etch); border: var(--rule); }
@media (min-width: 560px) { .orgs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .orgs { grid-template-columns: repeat(4, 1fr); } }
.orgs a {
  background: var(--pitch); padding: 1.4rem 1.1rem;
  display: flex; flex-direction: column; gap: .4rem;
  text-decoration: none; color: var(--bone); min-height: 118px;
  justify-content: center;
}
.orgs a:hover { background: var(--steel); color: var(--brass-lit); }
.orgs strong { font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.orgs span { font-size: .82rem; color: var(--ash-dim); }

/* Raised counter — the one big number on the site, and it earns it */
.raised {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 14vw, 10rem); line-height: .85;
  color: var(--ember); letter-spacing: -.02em;
}

/* --- Gallery ----------------------------------------------------------- */
.grid-shots { display: grid; gap: 1px; background: var(--etch); border: var(--rule); }
@media (min-width: 600px)  { .grid-shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-shots { grid-template-columns: repeat(3, 1fr); } }
.grid-shots figure { margin: 0; background: var(--pitch); aspect-ratio: 1; overflow: hidden; position: relative; }
.grid-shots img { width: 100%; height: 100%; object-fit: cover; }
.grid-shots figcaption {
  position: absolute; inset: auto 0 0 0; padding: .7rem .9rem;
  background: linear-gradient(transparent, rgba(8,9,10,.92));
  font-size: .85rem; color: var(--bone);
}

/* --- Footer ------------------------------------------------------------ */
.foot { background: var(--pitch); border-top: var(--rule); padding-block: 3.5rem 2rem; margin-top: 0; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h5 {
  font-family: var(--data); font-size: .7rem; letter-spacing: .16em;
  color: var(--ash-dim); margin: 0 0 .9rem; text-transform: uppercase; font-weight: 400;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; }
.foot a { color: var(--ash); text-decoration: none; }
.foot a:hover { color: var(--ember-hot); }
.foot-legal {
  margin-top: 3rem; padding-top: 1.4rem; border-top: var(--rule);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem; color: var(--ash-dim);
}

/* --- Utilities --------------------------------------------------------- */
.center { text-align: center; }
.narrow { max-width: 66ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ember); color: #fff; padding: .7rem 1.1rem;
}
.skip:focus { left: 0; }
.empty {
  border: 1px dashed var(--etch-lit); padding: 2.5rem 1.5rem;
  text-align: center; color: var(--ash); border-radius: 3px;
}
.loading { color: var(--ash-dim); font-family: var(--data); font-size: .8rem; letter-spacing: .12em; }

/* Compliance strip that must never be missed */
.legal-strip {
  background: var(--ember-dim); border: 1px solid rgba(192,74,22,.4);
  border-radius: 3px; padding: 1.1rem 1.25rem; font-size: .9rem; color: #e5ded2;
}
.legal-strip strong { color: var(--ember-hot); }


/* ==========================================================================
   NORSE THEME LAYER
   Brand red from the logo becomes the primary accent. Ember drops back to a
   supporting warmth. Brass stays on prices so commerce reads apart from brand.
   Loaded last so it overrides the base above.
   ========================================================================== */

:root {
  --blood:      #e21c21;   /* logo red, sampled from the artwork */
  --blood-hot:  #ff2b31;
  --blood-deep: #a3131a;
  --blood-dim:  rgba(226, 28, 33, 0.13);
  --mark: url("../img/brand/mark.png");
}

/* --- Logo -------------------------------------------------------------- */
/* The artwork is solid black on transparent, so it inverts to bone cleanly
   for dark surfaces and stays black where it sits on red. */
.wordmark { flex-direction: row; align-items: center; gap: 0; }
.wordmark img { height: 30px; width: auto; filter: invert(1); display: block; }
.wordmark span { display: none; }
.masthead-bar .wordmark img { height: 27px; }
.foot .wordmark img { height: 40px; }
@media (max-width: 620px) { .wordmark img { height: 22px; } }

/* --- The mark as a repeating motif -------------------------------------- */
.mark-rule {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 0; padding: 0; border: 0;
}
.mark-rule::before, .mark-rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--etch-lit), transparent);
}
.mark-rule i {
  width: 26px; height: 27px; flex: none; display: block;
  background: var(--blood);
  -webkit-mask: var(--mark) center/contain no-repeat;
  mask: var(--mask, var(--mark)) center/contain no-repeat;
  mask-image: var(--mark); mask-size: contain;
  mask-repeat: no-repeat; mask-position: center;
}

/* --- Section markers now carry the mark instead of a plain dash --------- */
.marker { color: var(--blood); letter-spacing: .2em; }
.marker::before {
  content: ""; width: 17px; height: 18px; background: var(--blood);
  mask-image: var(--mark); mask-size: contain;
  mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}

/* --- Accents move from ember to brand red ------------------------------ */
.btn-ember { background: var(--blood); }
.btn-ember:hover { background: var(--blood-hot); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blood); }
.ticks li::before { background: var(--blood); }
.rig:hover .rig-name { color: var(--blood-hot); }
.flag-ffl {
  border-color: rgba(226,28,33,.55); color: var(--blood-hot);
  background: var(--blood-dim);
}
.legal-strip {
  background: var(--blood-dim); border-color: rgba(226,28,33,.42);
}
.legal-strip strong { color: var(--blood-hot); }
.formnote-bad { background: var(--blood-dim); border-color: var(--blood); color: var(--blood-hot); }
.recoil-modes button[aria-pressed="true"] { background: var(--blood); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blood); }
a:hover { color: var(--blood-hot); }

/* --- Build cards get a shield notch and a red edge on approach ---------- */
.rig {
  border-top: 2px solid transparent;
  transition: background-color .18s ease, border-color .18s ease;
}
.rig:hover { border-top-color: var(--blood); }
.rig-shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60px;
  background: linear-gradient(transparent, rgba(8,9,10,.75));
  pointer-events: none;
}
.rig-name { position: relative; }

/* Watermark the mark faintly behind quote-only cards so they don't read empty */
.rig .price-quote::before {
  content: ""; position: absolute; right: 1rem; bottom: .6rem;
  width: 54px; height: 56px; opacity: .07;
  background: var(--bone);
  mask-image: var(--mark); mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  pointer-events: none;
}
.rig-foot { position: relative; }

/* --- The red band: one loud moment per page, never two ------------------ */
.band-blood {
  background: var(--blood);
  color: #14090a;
  border-block: 0;
  position: relative;
  overflow: hidden;
}
.band-blood::before {
  content: ""; position: absolute; right: -70px; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 440px; opacity: .11;
  background: #14090a;
  mask-image: var(--mark); mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  pointer-events: none;
}
.band-blood > * { position: relative; z-index: 1; }
.band-blood h2, .band-blood h3, .band-blood .raised { color: #14090a; }
.band-blood p, .band-blood .lede { color: #2b0e10; }
.band-blood .muted { color: #4a1a1d; }
.band-blood .marker { color: #14090a; }
.band-blood .marker::before { background: #14090a; }
.band-blood .ticks li::before { background: #14090a; }
.band-blood a { color: #14090a; text-decoration-color: rgba(20,9,10,.45); }

.band-blood .btn-ghost {
  border-color: rgba(20,9,10,.45); color: #14090a;
}
.band-blood .btn-ghost:hover {
  background: rgba(20,9,10,.1); border-color: #14090a; color: #14090a;
}
.band-blood .btn-brass { background: #14090a; color: var(--blood); }
.band-blood .btn-brass:hover { background: #000; color: var(--blood-hot); }
.band-blood .orgs { background: rgba(20,9,10,.28); border-color: rgba(20,9,10,.3); }
.band-blood .orgs a { background: var(--blood); color: #14090a; }
.band-blood .orgs a:hover { background: var(--blood-deep); color: #fff; }
.band-blood .orgs span { color: #5c2124; }

/* The charity number is the loudest type on the site. Let it be black on red. */
.band-blood .raised {
  color: #14090a;
  text-shadow: 0 2px 0 rgba(255,255,255,.08);
}

/* --- Spec sheets read as issued documents ------------------------------ */
.specsheet h4 {
  color: var(--bone);
  border-left: 3px solid var(--blood);
  padding-left: calc(1.1rem - 3px);
}
.recoil-head { border-bottom-color: var(--etch); }


/* --- Fixes found in visual review -------------------------------------- */

/* .raised is a <p>, so it inherited margin-bottom:1.1em. At a 10rem font
   size that em resolves to ~160px of dead space under the number. */
.raised { margin: 0 0 .12em; }

/* The logo now carries the company name in the header, so the hero eyebrow
   became a redundant repeat. It's the tagline instead, in brand red. */
.hero h1 em { color: var(--blood); }

/* Footer link hover was still pointing at the old orange. */
.foot a:hover { color: var(--blood-hot); }
.skip { background: var(--blood); }

/* Mark motif divider, for use between sections that need a breath */
.mark-rule i { background: var(--blood); }


/* ==========================================================================
   FORGE PASS
   Red-on-black type failed on contrast. The new emblem shows the right idea:
   red is LIGHT, not a background. Bands go back to near-black and the red
   arrives as glow, edge-light and rule. Reads better and hits harder.
   ========================================================================== */

/* --- The emblem, rebuilt in CSS from the mark + type + glow ------------- */
.emblem { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; }
.emblem b {
  font-family: var(--display); font-weight: 800;
  font-size: .95rem; letter-spacing: .42em; text-indent: .42em;
  color: var(--blood);
  text-shadow: 0 0 8px rgba(226,28,33,.85), 0 0 22px rgba(226,28,33,.5);
}
.emblem i {
  display: block; width: var(--em-size, 116px); height: var(--em-size, 116px);
  background: var(--blood);
  mask-image: var(--mark); mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  filter: drop-shadow(0 0 7px rgba(226,28,33,.9)) drop-shadow(0 0 20px rgba(226,28,33,.55));
}
.emblem-lg { --em-size: 190px; }
.emblem-lg b { font-size: 1.35rem; }

/* --- Red band becomes a forge band: black ground, red light ------------- */
.band-blood {
  background:
    radial-gradient(120% 90% at 78% 50%, rgba(226,28,33,.30), transparent 62%),
    radial-gradient(90% 70% at 8% 20%, rgba(226,28,33,.14), transparent 60%),
    #08090a;
  color: var(--bone);
  border-top: 1px solid rgba(226,28,33,.5);
  border-bottom: 1px solid rgba(226,28,33,.5);
}
.band-blood::before {
  right: -80px; opacity: .22;
  background: var(--blood);
  filter: drop-shadow(0 0 40px rgba(226,28,33,.6));
}
/* undo the black-on-red text colours from the previous pass */
.band-blood h2, .band-blood h3 { color: var(--bone); }
.band-blood p, .band-blood .lede { color: #d8d2c7; }
.band-blood .muted { color: var(--ash); }
.band-blood .marker { color: var(--blood); }
.band-blood .marker::before { background: var(--blood); }
.band-blood .ticks li::before { background: var(--blood); }
.band-blood a { color: var(--brass-lit); }
.band-blood a:hover { color: var(--blood-hot); }

/* The charity figure now glows like hot steel instead of sitting flat */
.band-blood .raised {
  color: var(--blood);
  text-shadow: 0 0 18px rgba(226,28,33,.75), 0 0 55px rgba(226,28,33,.4);
}
.band-blood .btn-ghost { border-color: rgba(226,28,33,.5); color: var(--bone); }
.band-blood .btn-ghost:hover { border-color: var(--blood); background: var(--blood-dim); color: #fff; }
.band-blood .btn-brass { background: var(--blood); color: #fff; }
.band-blood .btn-brass:hover { background: var(--blood-hot); color: #fff; }
.band-blood .orgs { background: var(--etch); border-color: rgba(226,28,33,.3); }
.band-blood .orgs a { background: #0b0d0f; color: var(--bone); }
.band-blood .orgs a:hover { background: #14181c; color: var(--blood-hot); }
.band-blood .orgs span { color: var(--ash-dim); }

/* --- Headlines get edge-light so they read forged, not printed ---------- */
.hero h1 em {
  text-shadow: 0 0 14px rgba(226,28,33,.6), 0 0 40px rgba(226,28,33,.3);
}
.band-blood h2 { text-shadow: 0 1px 0 rgba(0,0,0,.6); }

/* --- Nav gets a hairline of heat on the active item --------------------- */
.masthead { border-bottom-color: rgba(226,28,33,.28); }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--blood);
  text-shadow: 0 0 12px rgba(226,28,33,.55);
}

/* --- Photo bands: rifles carry the page, not flat colour ---------------- */
.band-shot {
  position: relative;
  background: #08090a;
  border-block: 1px solid var(--etch);
  overflow: hidden;
}
.band-shot > .shot-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .34;
  filter: grayscale(.35) contrast(1.08);
}
.band-shot > .shot-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, #08090a 6%, rgba(8,9,10,.55) 48%, rgba(8,9,10,.2) 100%),
    radial-gradient(70% 100% at 85% 50%, rgba(226,28,33,.22), transparent 65%);
}
.band-shot > .shell-wide, .band-shot > .shell { position: relative; z-index: 1; }

/* A strip of build photos, edge to edge */
.shot-strip { display: grid; gap: 2px; background: var(--etch); }
@media (min-width: 700px) { .shot-strip { grid-template-columns: repeat(4, 1fr); } }
.shot-strip figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: #0b0d0f; position: relative; }
.shot-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); transition: filter .25s ease, transform .35s ease; }
.shot-strip figure:hover img { filter: none; transform: scale(1.04); }


/* ==========================================================================
   SHOWCASE — the second gut-punch after the video
   ========================================================================== */
.showcase {
  position: relative;
  min-height: min(88dvh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-block: 1px solid rgba(226,28,33,.35);
}
.showcase-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 42%;
  transform: scale(1.03);
}
.showcase-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, #08090a 3%, rgba(8,9,10,.72) 38%, rgba(8,9,10,.25) 100%),
    linear-gradient(to right, rgba(8,9,10,.85) 0%, transparent 58%),
    radial-gradient(65% 80% at 88% 65%, rgba(226,28,33,.26), transparent 62%);
}
.showcase-body { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem,7vw,6rem); }
.showcase h2 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 18ch; margin-bottom: .5rem;
}
.showcase .lede { max-width: 44ch; color: #d6d2c8; }

/* ==========================================================================
   BUILD SHEET — product pages read as an issued document, not a listing
   Every value here is real catalog data or MOWPA's own stated policy.
   Nothing is invented: no fake serials, no fabricated test-fire dates.
   ========================================================================== */
.buildsheet {
  position: relative;
  border: 1px solid var(--etch-lit);
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(226,28,33,.05) 27px 28px),
    var(--pitch);
  margin-top: 2rem;
  overflow: hidden;
}
.buildsheet-head {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline;
  padding: .8rem 1.15rem;
  border-bottom: 1px solid var(--etch-lit);
  background: var(--steel);
}
.buildsheet-head h4 {
  margin: 0; font-family: var(--display); font-size: 1.05rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--bone);
}
.buildsheet-head span {
  font-family: var(--data); font-size: .68rem; letter-spacing: .16em;
  color: var(--ash-dim); text-transform: uppercase;
}

.buildsheet-rows { padding: .3rem 1.15rem 1.15rem; }
.buildsheet-rows div {
  display: flex; gap: 1rem; justify-content: space-between; align-items: baseline;
  padding: .62rem 0; border-bottom: 1px dashed var(--etch);
}
.buildsheet-rows div:last-child { border-bottom: 0; }
.buildsheet-rows dt, .buildsheet-rows b {
  font-family: var(--data); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ash-dim); font-weight: 400; flex: none;
}
.buildsheet-rows dd, .buildsheet-rows em {
  margin: 0; font-style: normal; text-align: right; color: var(--bone); font-size: .92rem;
}
.buildsheet-rows .yes { color: var(--blood); }

/* The stamp. Rotated, outlined, sitting over the sheet like it was inked on. */
.stamp {
  position: absolute; right: 1rem; bottom: 1rem;
  transform: rotate(-11deg);
  border: 2px solid rgba(226,28,33,.62);
  border-radius: 4px; padding: .42rem .7rem .34rem;
  font-family: var(--data); font-size: .62rem; letter-spacing: .2em;
  line-height: 1.35; text-align: center; text-transform: uppercase;
  color: rgba(226,28,33,.82);
  pointer-events: none; opacity: .92;
  box-shadow: 0 0 14px rgba(226,28,33,.16) inset;
}
.stamp b { display: block; font-size: .8rem; letter-spacing: .16em; color: rgba(226,28,33,.95); }
@media (max-width: 700px) { .stamp { position: static; transform: none; margin: 0 1.15rem 1.15rem; display: inline-block; } }


/* Reserve clear space at the foot of the sheet so the stamp never lands on
   top of a row. Caught in visual review — it was covering "Warranty". */
@media (min-width: 701px) {
  .buildsheet-rows { padding-bottom: 4.6rem; }
}


/* ==========================================================================
   BUG FIX: product photos were hidden behind the "Photo pending" panel.
   The panel is absolute and later in the DOM, so it painted over a
   perfectly loaded image. Lift the image above it; onerror still removes
   the image so the panel shows only when a photo is genuinely missing.
   ========================================================================== */
.rig-shot img { position: relative; z-index: 1; }
.rig-shot .placeholder { z-index: 0; }
.rig-shot::after { z-index: 2; }


/* ==========================================================================
   INTERIOR PAGE HEROES
   Every page that opens with a plain text band now opens on a rifle.
   Selected by data-page, which site.js sets on <body>. index.html opens
   with .hero, not .band, so it is untouched by the first-child selector.
   ========================================================================== */
main > .band:first-child {
  position: relative; overflow: hidden;
  min-height: min(52dvh, 520px);
  display: flex; align-items: flex-end;
  border-bottom: 1px solid rgba(226,28,33,.38);
  background-size: cover; background-position: center 40%;
  background-color: #08090a;
}
main > .band:first-child::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to top, #08090a 0%, rgba(8,9,10,.78) 45%, rgba(8,9,10,.3) 100%),
    linear-gradient(to right, rgba(8,9,10,.8) 0%, transparent 60%),
    radial-gradient(60% 90% at 90% 60%, rgba(226,28,33,.22), transparent 62%);
}
main > .band:first-child > * { position: relative; z-index: 1; }
main > .band:first-child h1 { text-shadow: 0 2px 18px rgba(0,0,0,.75); }
main > .band:first-child .lede { color: #d6d2c8; }

/* One rifle per page. Chosen so no two adjacent pages share a photo. */
body[data-page="builds.html"]           main > .band:first-child { background-image: url("../img/products/berserker-1.jpg"); }
body[data-page="shop.html"]             main > .band:first-child { background-image: url("../img/products/pistol-2.jpg"); }
body[data-page="recoil-reduction.html"] main > .band:first-child { background-image: url("../img/products/alpha-lf-1.jpg"); }
body[data-page="gallery.html"]          main > .band:first-child { background-image: url("../img/products/ulfhedinn-5.jpg"); }
body[data-page="about.html"]            main > .band:first-child { background-image: url("../img/products/mjolnir-2.jpg"); }
body[data-page="rekkr.html"]            main > .band:first-child { background-image: url("../img/products/spec-plus-2.jpg"); }
body[data-page="contact.html"]          main > .band:first-child { background-image: url("../img/products/partisan-3.jpg"); }
body[data-page="quote.html"]            main > .band:first-child { background-image: url("../img/products/bolt-4.jpg"); }
body[data-page="shipping-and-ffl.html"] main > .band:first-child { background-image: url("../img/products/bolt-2.jpg"); }
body[data-page="cart.html"]             main > .band:first-child { background-image: url("../img/products/pistol-5.jpg"); }

/* Product and status pages keep a quiet header; the product photo is the hero there. */
body[data-page="product.html"]        main > .band:first-child,
body[data-page="order-complete.html"] main > .band:first-child,
body[data-page="order-canceled.html"] main > .band:first-child,
body[data-page="404.html"]            main > .band:first-child { min-height: 0; display: block; }
body[data-page="product.html"]        main > .band:first-child::before,
body[data-page="order-complete.html"] main > .band:first-child::before,
body[data-page="order-canceled.html"] main > .band:first-child::before,
body[data-page="404.html"]            main > .band:first-child::before { display: none; }

/* ==========================================================================
   SEAMS — the mark sits at every join between sections, site-wide.
   Pure CSS, so every page gets it without touching the HTML.
   ========================================================================== */
.band + .band, .band + .showcase, .showcase + .band, .shot-strip + .band { position: relative; }
.band + .band::after, .band + .showcase::after, .showcase + .band::after, .shot-strip + .band::after {
  content: ""; position: absolute; left: 50%; top: -14px; z-index: 5;
  width: 26px; height: 28px; transform: translateX(-50%);
  background: var(--blood);
  mask-image: var(--mark); mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
  filter: drop-shadow(0 0 6px rgba(226,28,33,.7));
}
/* the band-blood already has red rules; keep its seam mark but not doubled */
.band-blood + .band::after { top: -15px; }

/* --- Footer carries the emblem and a forged line --------------------------- */
.foot { border-top: 1px solid rgba(226,28,33,.3); }
.foot .emblem { margin-bottom: 1.2rem; --em-size: 72px; }
.foot .emblem b { font-size: .78rem; }
.foot-legal { border-top-color: rgba(226,28,33,.18); }

/* --- Gallery: captions ride up on hover with the mark ------------------- */
.grid-shots figure { position: relative; overflow: hidden; background: #0b0d0f; }
.grid-shots img { transition: transform .45s ease, filter .3s ease; filter: grayscale(.25); }
.grid-shots figure:hover img { transform: scale(1.05); filter: none; }
.grid-shots figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.2rem .95rem .85rem;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--bone);
  background: linear-gradient(transparent, rgba(8,9,10,.92));
  transform: translateY(105%); transition: transform .3s ease;
  display: flex; align-items: center; gap: .55rem;
}
.grid-shots figcaption::before {
  content: ""; width: 16px; height: 17px; flex: none; background: var(--blood);
  mask-image: var(--mark); mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}
.grid-shots figure:hover figcaption { transform: none; }
.grid-shots figure::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--blood); transition: box-shadow .25s ease;
}
.grid-shots figure:hover::after { box-shadow: inset 0 0 0 2px var(--blood); }


/* Correction: pages already set <body data-page="builds"> (no extension) and
   pages.js dispatches on it. The earlier selectors used "builds.html" and
   never matched. These use the real values and override the block above. */
body[data-page="builds"]    main > .band:first-child { background-image: url("../img/products/berserker-1.jpg"); }
body[data-page="shop"]      main > .band:first-child { background-image: url("../img/products/pistol-2.jpg"); }
body[data-page="recoil"]    main > .band:first-child { background-image: url("../img/products/alpha-lf-1.jpg"); }
body[data-page="gallery"]   main > .band:first-child { background-image: url("../img/products/ulfhedinn-5.jpg"); }
body[data-page="about"]     main > .band:first-child { background-image: url("../img/products/mjolnir-2.jpg"); }
body[data-page="rekkr"]     main > .band:first-child { background-image: url("../img/products/spec-plus-2.jpg"); }
body[data-page="contact"]   main > .band:first-child { background-image: url("../img/products/partisan-3.jpg"); }
body[data-page="quote"]     main > .band:first-child { background-image: url("../img/products/bolt-4.jpg"); }
body[data-page="shipping"]  main > .band:first-child { background-image: url("../img/products/bolt-2.jpg"); }
body[data-page="cart"]      main > .band:first-child { background-image: url("../img/products/pistol-5.jpg"); }
body[data-page="product"]        main > .band:first-child,
body[data-page="order-complete"] main > .band:first-child,
body[data-page="order-canceled"] main > .band:first-child,
body[data-page="404"]            main > .band:first-child { min-height: 0; display: block; }
body[data-page="product"]        main > .band:first-child::before,
body[data-page="order-complete"] main > .band:first-child::before,
body[data-page="order-canceled"] main > .band:first-child::before,
body[data-page="404"]            main > .band:first-child::before { display: none; }


/* ==========================================================================
   THE CREED — numbered, stamped, four across on wide screens
   ========================================================================== */
.creed { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1px; background: rgba(226,28,33,.28); }
@media (min-width: 720px)  { .creed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .creed { grid-template-columns: repeat(4, 1fr); } }
.creed li {
  background: #0b0d0f; padding: 1.6rem 1.4rem 1.7rem;
  display: flex; flex-direction: column; gap: .55rem; position: relative;
}
.creed li b {
  font-family: var(--data); font-size: .7rem; letter-spacing: .24em; color: var(--blood);
  text-shadow: 0 0 8px rgba(226,28,33,.6);
}
.creed li strong {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .01em; color: var(--bone);
}
.creed li span { color: var(--ash); font-size: .92rem; line-height: 1.55; }
.creed li::after {
  content: ""; position: absolute; right: .9rem; top: .9rem; width: 18px; height: 19px; opacity: .35;
  background: var(--blood);
  mask-image: var(--mark); mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: var(--mark); -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}

/* Recoil readouts glow like the emblem on the red band */
.band-blood .recoil-readout dd { color: var(--bone); text-shadow: 0 0 12px rgba(226,28,33,.5); }
.band-blood .recoil-rig { border-color: rgba(226,28,33,.35); }


/* ==========================================================================
   NO BLANK SQUARES
   Grids no longer paint their own background, so a leftover cell is invisible
   instead of a bordered box. Each tile draws its own rule. Then orphans in the
   product grid are promoted: one alone spans the row as a feature card laid
   out sideways; two split the row. Holds for any item count the owner adds.
   ========================================================================== */
.lineup, .orgs, .grid-shots { background: transparent; border: 0; gap: 1px; }
.lineup > .rig, .orgs > a, .grid-shots > figure { box-shadow: 0 0 0 1px var(--etch-lit); }

@media (min-width: 720px) {
  .lineup { grid-template-columns: repeat(6, 1fr); }
  .lineup > .rig { grid-column: span 3; }
  /* two-across: an odd last card goes full width, sideways */
  .lineup > .rig:nth-child(2n+1):last-child { grid-column: span 6; }
}
@media (min-width: 1080px) {
  .lineup > .rig { grid-column: span 2; }
  .lineup > .rig:nth-child(2n+1):last-child { grid-column: span 2; }
  /* three-across: one orphan spans the row, two orphans split it */
  .lineup > .rig:nth-child(3n+1):last-child { grid-column: span 6; }
  .lineup > .rig:nth-child(3n+1):nth-last-child(2),
  .lineup > .rig:nth-child(3n+1):nth-last-child(2) + .rig { grid-column: span 3; }
}

/* A full-width card is laid out sideways: photo left, details right, so it
   reads as a feature rather than a stretched thumbnail. */
@media (min-width: 720px) {
  .lineup > .rig:nth-child(2n+1):last-child { display: grid; grid-template-columns: 1.15fr 1fr; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-shot { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-body { justify-content: center; padding: 2rem 2.2rem; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-name { font-size: 2.6rem; }
}
@media (min-width: 1080px) {
  .lineup > .rig:nth-child(2n+1):last-child { display: flex; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-shot { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-body { justify-content: flex-start; padding: 1.15rem 1.25rem 1.4rem; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-name { font-size: 1.9rem; }
  .lineup > .rig:nth-child(3n+1):last-child { display: grid; grid-template-columns: 1.15fr 1fr; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-shot { aspect-ratio: auto; height: 100%; min-height: 340px; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-body { justify-content: center; padding: 2.2rem 2.6rem; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-name { font-size: 2.8rem; }
}

/* Org links and gallery tiles centre their last row instead of leaving holes */
.orgs { display: flex; flex-wrap: wrap; justify-content: center; }
.orgs > a { flex: 1 1 200px; max-width: 100%; }
@media (min-width: 560px) { .orgs > a { max-width: calc(50% - 1px); } }
@media (min-width: 960px) { .orgs > a { flex-basis: 220px; max-width: calc(25% - 1px); } }
.grid-shots { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-shots > figure { flex: 0 0 100%; }
@media (min-width: 600px)  { .grid-shots > figure { flex-basis: calc(50% - 1px); } }
@media (min-width: 1000px) { .grid-shots > figure { flex-basis: calc(33.333% - 1px); } }


/* Feature-card fix: the vertical card pins its footer to the bottom with
   margin-top:auto, which in the sideways layout left a void under the copy.
   Let the footer follow the text when the card is laid out sideways. */
@media (min-width: 720px) {
  .lineup > .rig:nth-child(2n+1):last-child .rig-foot { margin-top: 1.6rem; }
}
@media (min-width: 1080px) {
  .lineup > .rig:nth-child(2n+1):last-child .rig-foot { margin-top: auto; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-foot { margin-top: 1.6rem; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-body p { font-size: 1.05rem; max-width: 46ch; }
}


/* Feature card, second pass: the tagline stops stretching and the photo
   gets a fixed height so the row is driven by design, not by the image. */
@media (min-width: 720px) {
  .lineup > .rig:nth-child(2n+1):last-child .rig-tag  { flex: 0 0 auto; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-shot { height: 360px; min-height: 0; }
}
@media (min-width: 1080px) {
  .lineup > .rig:nth-child(2n+1):last-child .rig-tag  { flex: 1; }
  .lineup > .rig:nth-child(2n+1):last-child .rig-shot { height: auto; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-tag  { flex: 0 0 auto; }
  .lineup > .rig:nth-child(3n+1):last-child .rig-shot { height: 400px; min-height: 0; }
}


/* Preview bar — preview build only */
#preview-bar {
  position: relative; z-index: 200;
  background: var(--blood); color: #14090a;
  font-family: var(--data); font-size: .78rem; line-height: 1.5;
  padding: .7rem 1.1rem; text-align: center;
}
#preview-bar strong { font-weight: 700; }
#preview-bar button {
  margin-left: .8rem; background: #14090a; color: var(--blood);
  border: 0; border-radius: 3px; padding: .25rem .6rem;
  font-family: var(--data); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer;
}
#preview-bar button:hover { background: #000; }
