/* ============================================================
   THE MAGNETIC VAULT — storefront stylesheet
   Palette: charcoal + cream + ferric-orange (one warm accent)
   Identity: cassette inlay cards, ferric-tape texture, reel + VU motifs
   ============================================================ */

:root {
  /* core palette */
  --ink:        #211d18;   /* charcoal — primary text / dark fields */
  --ink-2:      #2b2620;   /* slightly lifted charcoal */
  --ink-soft:   #4a4339;   /* muted body on cream */
  --cream:      #f4efe6;   /* page ground */
  --cream-2:    #fbf7ef;   /* card / panel ground */
  --paper:      #efe7d6;   /* inlay-card ground */
  --line:       #ddd2bf;   /* hairlines on cream */
  --line-dark:  #3a342c;   /* hairlines on charcoal */

  /* the single warm accent + supports */
  --ferric:     #e6a24c;   /* ferric-oxide amber — THE accent */
  --ferric-deep:#c97a26;
  --brick:      #c0492b;   /* secondary warm (record dot, alerts) */
  --rust:       #8a5a2b;

  /* moodboard-derived geometric accent ramp (flat, bold) */
  --geo-orange: #e8772e;  --geo-cream:  #f3e7cf;  --geo-red:    #e23b30;
  --geo-pink:   #e8447a;  --geo-yellow: #f2b417;  --geo-teal:   #1f9e8f;
  --geo-blue:   #2c3192;  --geo-navy:   #20264c;  --geo-green:  #3f9d52;
  --geo-purple: #6b4f9e;
  /* brighter variants for use on dark fields */
  --geo-teal-l: #46c7b3;  --geo-pink-l: #ff6f9d;  --geo-yellow-l: #ffc640;

  /* signal greens (VU "ok" zone / sellable) */
  --vu-green:   #4f8a5b;
  --vu-amber:   #d99a3a;
  --vu-red:     #c0492b;

  --shadow:     0 1px 2px rgba(20,16,10,.08), 0 8px 30px rgba(20,16,10,.10);
  --shadow-lg:  0 2px 6px rgba(20,16,10,.12), 0 24px 60px rgba(20,16,10,.20);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", Georgia, serif;
  --sans:  ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "DejaVu Sans Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  /* warm paper grain + a faint ferric-tape sheen */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(230,162,76,.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- tape-label typographic accents ---- */
.label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ferric-deep);
}

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .reel-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand b {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .82rem;
  text-transform: uppercase;
}
.nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(230,162,76,.16); }
.nav a.cta {
  color: var(--cream); background: var(--ink);
  border: 1px solid var(--ink);
}
.nav a.cta:hover { background: var(--ferric-deep); border-color: var(--ferric-deep); color: #fff; }

.nav-toggle { display: none; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(230,162,76,.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #191510 100%);
  color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 14px 0 18px;
}
.hero h1 .accent { color: var(--ferric); font-style: italic; }
.hero .lede {
  font-size: 1.12rem;
  color: #ddd3c2;
  max-width: 40ch;
  margin: 0 0 28px;
}
.hero .lede em { color: var(--ferric); font-style: normal; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  padding: 13px 22px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s, box-shadow .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ferric); color: #2a1c08; box-shadow: 0 6px 20px rgba(230,162,76,.32); }
.btn-primary:hover { background: #f0b25e; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(244,239,230,.32); }
.btn-ghost:hover { border-color: var(--ferric); color: var(--ferric); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ferric-deep); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .82rem; }

/* hero cassette art */
.hero-art { position: relative; }
.cassette-hero { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }

/* spinning reels — respect reduced motion */
.reel-spin { transform-origin: center; animation: spin 9s linear infinite; }
.reel-spin.slow { animation-duration: 14s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .reel-spin { animation: none; }
  .vu-needle { animation: none !important; }
}

/* ===========================================================
   MARQUEE STAT STRIP
   =========================================================== */
.stats {
  background: var(--ink-2); color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-dark); }
.stat { background: var(--ink-2); padding: 22px 18px; text-align: center; }
.stat .n { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--ferric); }
.stat .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #b7ac99; margin-top: 4px; }

/* ===========================================================
   SECTIONS
   =========================================================== */
section { padding: 76px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1; margin: 10px 0 12px; letter-spacing: -.01em;
}
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }

/* manifesto */
.manifesto { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.manifesto blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem,2.6vw,1.75rem);
  line-height: 1.4; margin: 0; color: var(--ink); font-weight: 500;
}
.manifesto blockquote .accent { color: var(--ferric-deep); font-style: italic; }
.manifesto .body p { color: var(--ink-soft); margin: 0 0 16px; }
.manifesto .body p:last-child { margin-bottom: 0; }

/* ===========================================================
   RELEASES GALLERY — each card = a cassette inlay card
   =========================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.inlay {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.inlay:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* the punched index notch + spine line, like a real inlay */
.inlay::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(180deg, var(--ferric) 0 14px, var(--ferric-deep) 14px 28px);
  opacity: .9;
}

.inlay .art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.inlay .art svg { width: 100%; height: 100%; }

.inlay .body { padding: 18px 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.inlay .toptag { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.inlay h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.32rem;
  margin: 0 0 4px; letter-spacing: -.01em;
}
.inlay .flex { font-style: italic; color: var(--rust); font-size: .98rem; margin: 0 0 10px; }
.inlay .decodes {
  font-size: .85rem; color: var(--ink-soft); margin: 0 0 16px;
  padding-top: 10px; border-top: 1px dotted var(--line);
}
.inlay .decodes b { color: var(--ink); font-weight: 600; }
.inlay .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inlay .actions .try { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; }
.inlay .actions .try:hover { color: var(--ferric-deep); }

/* badges */
.badge {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; padding: 4px 8px; border-radius: 3px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-license { background: rgba(74,67,57,.08); color: var(--ink-soft); border-color: var(--line); }
.badge-gift { background: rgba(192,73,43,.12); color: var(--brick); border-color: rgba(192,73,43,.3); }
.badge-tier {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(79,138,91,.12); color: var(--vu-green); border-color: rgba(79,138,91,.3);
}
.badge-tier.hifi { background: rgba(217,154,58,.14); color: var(--ferric-deep); border-color: rgba(217,154,58,.35); }
.badge-tier .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- order / price / stock controls ---- */
/* sold-out: a greyed, non-interactive button-shaped chip */
.btn-soldout {
  background: rgba(74,67,57,.10); color: var(--ink-soft);
  border: 1px dashed var(--line); cursor: not-allowed; pointer-events: none;
  box-shadow: none; opacity: .85;
}
.btn-soldout:active { transform: none; }
.order-group { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.restock {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--ferric-deep); text-decoration: none; font-weight: 700;
}
.restock:hover { color: var(--brick); text-decoration: underline; }

/* the small note under the order CTAs */
.checkout-note {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .03em;
  line-height: 1.5; color: var(--ink-soft); margin: 12px 0 0;
}
.checkout-note a { color: var(--ferric-deep); text-decoration: none; font-weight: 700; }
.checkout-note a:hover { text-decoration: underline; }
.rel .checkout-note { margin-top: 14px; }
/* the "have a discount code?" sub-line folded into the checkout note */
.checkout-promo { display: inline-block; margin-top: 5px; color: var(--ferric-deep); font-weight: 700; }

/* ---- slim, dismissible promo bar (rendered by releases.js) ---- *
 * Surfaces a Stripe promotion code; no discount logic lives here.   */
.promo-bar {
  background: rgba(230,162,76,.10);
  border-bottom: 1px solid rgba(230,162,76,.34);
  border-top: 1px solid rgba(230,162,76,.22);
}
.promo-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 42px; padding-top: 7px; padding-bottom: 7px; }
.promo-tick { font-size: 1rem; line-height: 1; flex: 0 0 auto; }
.promo-text {
  margin: 0; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  font-size: .86rem; color: var(--ink-soft); line-height: 1.4;
}
.promo-code {
  font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  color: #2a1c08; background: var(--ferric);
  padding: 3px 9px; border-radius: 3px; white-space: nowrap;
}
.promo-label { color: var(--ink); font-weight: 600; }
.promo-note { color: var(--rust); font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; }
.promo-x {
  margin-left: auto; flex: 0 0 auto;
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink-soft);
  padding: 4px 6px; border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.promo-x:hover { color: var(--ink); background: rgba(230,162,76,.18); }
@media (max-width: 600px) {
  .promo-note { display: none; }
  .promo-text { font-size: .8rem; gap: 7px; }
}

/* calm small-batch capacity banner above the gallery */
.capacity-banner {
  display: flex; align-items: center; gap: 14px;
  background: rgba(230,162,76,.08); border: 1px solid rgba(230,162,76,.30);
  border-left: 4px solid var(--ferric);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 30px;
}
.capacity-banner .cb-mark { flex: 0 0 auto; width: 26px; height: 26px; }
.capacity-banner p {
  margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.capacity-banner b { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .capacity-banner { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ===========================================================
   RELEASE DETAIL SECTIONS
   =========================================================== */
.releases-detail { background: var(--cream-2); border-top: 1px solid var(--line); }
.rel {
  display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center;
  padding: 56px 0; border-bottom: 1px dashed var(--line);
}
.rel:last-child { border-bottom: none; }
.rel:nth-child(even) { grid-template-columns: 1fr 320px; }
.rel:nth-child(even) .rel-art { order: 2; }
.rel-art { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.rel-art svg { width: 100%; aspect-ratio: 16/9; }
.rel-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; margin: 6px 0 6px; }
.rel-body .flex { font-style: italic; color: var(--rust); font-size: 1.1rem; margin: 0 0 14px; }
.rel-body p { color: var(--ink-soft); margin: 0 0 16px; }
.rel-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.rel-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===========================================================
   HOW IT WORKS — the romance / the chain
   =========================================================== */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px 0 0; }
.chain .step { position: relative; padding: 26px 22px; text-align: center; }
.chain .step:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 40px; color: var(--ferric); font-size: 1.4rem;
}
.chain .glyph { width: 64px; height: 64px; margin: 0 auto 14px; }
.chain h4 { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; color: var(--ferric-deep); }
.chain p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.prose { max-width: 64ch; }
.prose p { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 20px; }
.prose p.lead { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.prose h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 38px 0 12px; }
.prose .pull {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: var(--ferric-deep); border-left: 3px solid var(--ferric); padding-left: 22px; margin: 32px 0;
}
.prose code { font-family: var(--mono); font-size: .9em; background: rgba(74,67,57,.08); padding: 1px 5px; border-radius: 3px; }

/* feature row with VU meter */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel-dark {
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.panel-dark h3 { color: var(--ferric); font-family: var(--serif); }

/* VU meter component */
.vu { background: #efe7cf; border: 1px solid var(--rust); border-radius: 6px; padding: 14px 16px 10px; }
.vu .scale { position: relative; height: 92px; }
.vu .arc { width: 100%; height: 100%; }
.vu-needle { transform-origin: 100px 96px; transform: rotate(-18deg);
  animation: vu 3.2s ease-in-out infinite alternate; }
@keyframes vu { from { transform: rotate(-34deg); } to { transform: rotate(28deg); } }
.vu .cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .12em; color: var(--rust); text-transform: uppercase; margin-top: 4px; }

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.linkcard {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.linkcard:hover { transform: translateY(-2px); border-color: var(--ferric); box-shadow: var(--shadow-lg); }
.linkcard .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ferric-deep); }
.linkcard h4 { margin: 4px 0 4px; font-size: 1.1rem; }
.linkcard p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.facts li:last-child { border-bottom: none; }
.facts .v { font-family: var(--mono); color: var(--ferric-deep); font-weight: 700; flex: 0 0 auto; min-width: 92px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-foot {
  background: var(--ink); color: #b7ac99;
  border-top: 1px solid var(--line-dark);
  padding: 48px 0 40px; margin-top: 0;
}
.site-foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; align-items: start; }
.site-foot a { color: #d8cdba; text-decoration: none; }
.site-foot a:hover { color: var(--ferric); }
.site-foot .foot-brand b { font-family: var(--mono); letter-spacing: .14em; color: var(--cream); display: block; margin-bottom: 8px; }
.site-foot .foot-brand p { font-size: .88rem; max-width: 36ch; margin: 0; }
.site-foot .col h5 { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ferric); margin: 0 0 12px; }
.site-foot .col a { display: block; font-size: .9rem; padding: 4px 0; }
.foot-rule { border: none; border-top: 1px solid var(--line-dark); margin: 36px 0 18px; }
.foot-fine { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: #8a8070; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 44px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .manifesto .wrap { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain .step:nth-child(2)::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .rel, .rel:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .rel:nth-child(even) .rel-art { order: 0; }
  .rel-art { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 52px 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream-2); border-bottom: 1px solid var(--line);
    padding: 8px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--ink); }
  .gallery { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain .step::after { display: none !important; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ===========================================================
   MOODBOARD-DRIVEN REFRESH (2026-06-22)
   A bold geometric layer on top of the cassette identity:
   a Bauhaus colour bar, multi-colour stats, and the moodboard grid.
   =========================================================== */

/* Bauhaus colour ribbon (used under header + above footer) */
.geo-ribbon {
  height: 6px; border: none; margin: 0;
  background: linear-gradient(90deg,
    var(--ferric) 0 14.28%, var(--geo-teal) 14.28% 28.57%,
    var(--geo-yellow) 28.57% 42.85%, var(--geo-pink) 42.85% 57.14%,
    var(--geo-blue) 57.14% 71.42%, var(--geo-red) 71.42% 85.71%,
    var(--geo-green) 85.71% 100%);
}

/* stat numbers march through the geometric palette (Bauhaus energy) */
.stats .stat:nth-child(2) .n { color: var(--geo-teal-l); }
.stats .stat:nth-child(3) .n { color: var(--geo-pink-l); }
.stats .stat:nth-child(4) .n { color: var(--geo-yellow-l); }

/* ---- the moodboard grid ---- */
.moodboard { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.moodboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mood { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.mood-art {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(20,16,10,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mood:hover .mood-art { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mood-art svg { width: 100%; height: 100%; display: block; }
img.mood-art { width: 100%; object-fit: cover; display: block; }
.mood figcaption { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mood-note { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); margin: 26px 0 0; }
.mood-note code { background: rgba(74,67,57,.10); padding: 1px 6px; border-radius: 3px; }

/* tile — Buccaneer C60 j-card */
.m-buccaneer { background: var(--geo-orange); }
.m-buccaneer::before { content: "BUCCANEER"; position: absolute; left: 9%; top: 15%; font: 800 1.2rem/1 var(--sans); letter-spacing: .01em; color: var(--geo-cream); }
.m-buccaneer::after { content: "C60 · LOW NOISE"; position: absolute; left: 9%; bottom: 12%; font: 700 .5rem/1 var(--mono); letter-spacing: .18em; color: #3a1f06; }

/* tile — Philips polka dots */
.m-philips { background-color: var(--geo-cream); background-image: radial-gradient(var(--geo-red) 30%, transparent 32%); background-size: 18px 18px; background-position: 4px 4px; }
.m-philips::after { content: "C-60"; position: absolute; left: 8%; bottom: 9%; font: 800 1.15rem/1 var(--sans); color: #fff; background: var(--geo-red); padding: 2px 7px; }

/* tile — Caravan LP rainbow type */
.m-caravan { background: #161413; display: grid; place-items: center; }
.m-caravan .caravan {
  font: 900 1.4rem/1 var(--sans); letter-spacing: -.01em; transform: rotate(-6deg);
  background: linear-gradient(90deg, var(--geo-red), var(--geo-orange), var(--geo-yellow), var(--geo-green), var(--geo-teal), var(--geo-blue), var(--geo-purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* tile — Ellison rainbow spines */
.m-ellison { background: linear-gradient(90deg,
  var(--geo-green) 0 16.6%, var(--geo-teal) 16.6% 33.3%, var(--geo-blue) 33.3% 50%,
  var(--geo-purple) 50% 66.6%, var(--geo-orange) 66.6% 83.3%, var(--geo-red) 83.3% 100%); }
.m-ellison::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(16.6% - 1.5px), rgba(243,231,207,.6) calc(16.6% - 1.5px) 16.6%); }

/* tile — Vintage classics spines (black/cream/orange/yellow bands) */
.m-vintage {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(20,16,10,.5) calc(25% - 2px) 25%),
    linear-gradient(180deg, #15140f 0 30%, #efe3cc 30% 44%, var(--geo-orange) 44% 76%, var(--geo-yellow) 76% 100%);
}

/* tiles — geometric triangle grids carry GEO—METRIC labels */
.m-geo1::after, .m-geo2::after, .m-geo-retro::after {
  content: "GEO—METRIC"; position: absolute; left: 8%; top: 8%;
  font: 800 .6rem/1 var(--sans); letter-spacing: .03em;
}
.m-geo1::after { color: #fff; }
.m-geo2::after { color: #fff; }
.m-geo-retro::after { color: #2a2f4a; }

/* tile — Penguin thin rainbow spines */
.m-penguin {
  background: repeating-linear-gradient(90deg,
    var(--geo-teal) 0 8.33%, var(--geo-green) 8.33% 16.6%, var(--geo-yellow) 16.6% 25%,
    var(--geo-orange) 25% 33.3%, var(--geo-pink) 33.3% 41.6%, var(--geo-red) 41.6% 50%,
    var(--geo-purple) 50% 58.3%, var(--geo-blue) 58.3% 66.6%, var(--geo-teal) 66.6% 75%,
    var(--geo-green) 75% 83.3%, var(--geo-orange) 83.3% 91.6%, var(--geo-red) 91.6% 100%);
}
.m-penguin::before { content: ""; position: absolute; left: 0; right: 0; top: 13%; height: 15%; background: rgba(243,231,207,.92); }
.m-penguin::after  { content: ""; position: absolute; left: 0; right: 0; bottom: 13%; height: 11%; background: rgba(243,231,207,.92); }

/* tile — concentric circles cover */
.m-geo-circles {
  background:
    linear-gradient(90deg, transparent 0 50%, var(--geo-navy) 50% 100%),
    repeating-radial-gradient(circle at 38% 50%, var(--geo-teal) 0 7px, var(--geo-pink) 7px 14px, var(--geo-yellow) 14px 21px);
}

/* tile — Bauhaus */
.m-bauhaus { background: #f6502e; }
.m-bauhaus::after { content: "BAUHAUS"; position: absolute; right: 22%; top: 50%; transform: translate(50%,-50%) rotate(90deg); font: 800 1.45rem/1 var(--sans); letter-spacing: .04em; color: #111; }

/* tile — brand ferric tie-in */
.m-ferric { background: repeating-linear-gradient(45deg, var(--ferric) 0 13px, var(--ferric-deep) 13px 26px); }
.m-ferric::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; transform: translate(-50%,-50%); border-radius: 50%; border: 5px solid #1c1813; background: radial-gradient(circle, #1c1813 0 24%, transparent 26%); }

@media (max-width: 900px) { .moodboard-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .moodboard-grid { grid-template-columns: repeat(2, 1fr); } .m-caravan .caravan { font-size: 1.05rem; } }

/* ---- hardware recommendation table (how-it-works › read your own tapes) ---- */
.hw-table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: .92rem;
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.hw-table th {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  text-align: left; color: var(--ferric-deep); background: var(--paper);
  padding: 12px 16px; border-bottom: 2px solid var(--ferric);
}
.hw-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.hw-table tr:last-child td { border-bottom: none; }
.hw-table tbody tr:hover { background: rgba(230,162,76,.06); }
.hw-table td:first-child { color: var(--ink); font-weight: 600; }
.hw-table td:nth-child(3) { font-family: var(--mono); color: var(--ferric-deep); white-space: nowrap; }
.hw-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 22px; }
.hw-notes .capacity-banner { margin: 0; }
@media (max-width: 760px) {
  .hw-notes { grid-template-columns: 1fr; }
  .hw-table thead { display: none; }
  .hw-table tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .hw-table tbody tr:last-child { border-bottom: none; }
  .hw-table td { display: block; border: none; padding: 3px 16px; }
  .hw-table td:first-child { padding-top: 10px; font-size: 1rem; }
}

/* ===== private-preview access gate (client-side; not real security) ===== */
#gate {
  position: fixed; inset: 0; z-index: 9999; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
}
#gate .gate-card {
  width: 100%; max-width: 360px; box-sizing: border-box; text-align: center;
  font-family: var(--mono); background: var(--cream-2); padding: 36px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
#gate .gate-card b { font-size: 1.15rem; letter-spacing: .02em; margin-bottom: 6px; color: var(--ink); }
#gate .gate-card p { font-size: .76rem; color: var(--ink-soft); margin: 0 0 20px; }
#gate input {
  box-sizing: border-box; width: 100%; padding: 11px 13px; font-family: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px;
}
#gate button {
  width: 100%; padding: 12px; font-family: inherit; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; color: var(--cream); background: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
}
#gate button:hover { background: var(--ink-2); }
#gate #gate-err { margin-top: 14px; font-size: .72rem; color: var(--ferric-deep); letter-spacing: .04em; }
