@import url("colors_and_type.css");

/* ===================================================================
   Rotomatic — V2 / Editorial monograph
   Same Amelia Audio family DNA as Echomatic, different posture:
   - Asymmetric, left-aligned narrative
   - Display ROTOMATIC type, not a brass-plate wordmark
   - Big mono section numerals like a manual or art-book TOC
   - Full-bleed dark panels alternating with constrained text
   - Walnut + old-brass palette (warmer, older than Echomatic's amber)
   =================================================================== */

/* ---- Palette overrides --------------------------------------------------- */
:root {
  --bg:           #0a0807;
  --surface-1:    #161210;
  --surface-2:    #1f1916;
  --surface-3:    #2a221d;
  --hairline:     #3a2f27;
  --hairline-2:   #4a3d33;

  --fg-1:         #ece3d2;
  --fg-2:         #a89888;
  --fg-3:         #6f5f52;

  --amber:        #c89760;       /* old brass */
  --amber-deep:   #a07a47;
  --amber-bright: #e6b87a;
  --amber-glow:   rgba(200, 151, 96, 0.40);

  --tube:         #d96b3a;
  --tube-glow:    rgba(217, 107, 58, 0.45);

  --wood-1:       #3a261a;
  --wood-2:       #2a1a11;
  --wood-3:       #1d130b;
}

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg-1); font-family: var(--font-sans); }

/* page wash — lighter, more open. A soft cream wash from the top right
   stops the page reading as a flat black box. */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(236, 227, 210, 0.05), transparent 55%),
    radial-gradient(ellipse 90% 50% at 20% 110%, rgba(200,151,96,0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
.wrap-wide {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg-1);
}
.brand-mark { height: 30px; width: auto; }
.brand-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.product-switch {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.product-switch a {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  padding: 9px 18px;
  transition: all 140ms var(--ease);
}
.product-switch a + a { border-left: 1px solid var(--hairline); }
.product-switch a:hover { color: var(--fg-1); }
.product-switch a.is-active { background: var(--amber); color: var(--bg); }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg-1);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 120ms var(--ease);
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn-primary { border-color: var(--amber); color: var(--amber); }
.btn-primary:hover { background: var(--amber); color: var(--bg); }
.btn-ghost { border-color: transparent; padding-inline: 0; color: var(--fg-2); }
.btn-ghost:hover { color: var(--amber); }
.btn.lg { padding: 17px 34px; font-size: 12px; }

/* ===================================================================
   HERO — full-bleed cinematic cabinet shot with overlaid text on the left.
   The image's dark ceiling is gradient-masked into the page just like the
   Echomatic wordmark hero, so there's no hard top seam.
   =================================================================== */
.hero {
  position: relative;
  padding: 0;
}
.hero-frame {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  border: 0;
}
.hero-frame > img {
  display: block;
  width: 100%;
  height: auto;
  /* feather top edge into the page bg */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 6%,
    rgba(0,0,0,0.75) 14%,
    #000 22%,
    #000 100%
  );
          mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 6%,
    rgba(0,0,0,0.75) 14%,
    #000 22%,
    #000 100%
  );
}
/* dark scrim from the left so the overlay text reads against the photo */
.hero-frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  padding-left: 99px;          /* fixed offset from the page edge */
  padding-right: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 8, 7, 0.92) 0%,
      rgba(10, 8, 7, 0.85) 18%,
      rgba(10, 8, 7, 0.55) 32%,
      rgba(10, 8, 7, 0.15) 42%,
      transparent 50%
    );
}
/* the .wrap inside the overlay was capping width; drop that constraint */
.hero-frame-overlay > .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero-text {
  max-width: 460px;
  text-align: left;
  padding: 64px 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-text .hero-wordmark {
  /* smaller so the wordmark sits on one line within the left column,
     never running into the cabinet on the right */
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: 0.03em;
}
.hero-text .hero-rule {
  margin: 24px 0 22px;
  align-self: flex-start;
}
.hero-text .hero-lede {
  margin: 0 0 28px;
  max-width: 100%;
  text-align: left;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.hero-text .hero-cta {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.hero-text .hero-meta { justify-content: flex-start; }

@media (max-width: 900px) {
  .hero-frame-overlay {
    position: relative;
    inset: auto;
    background: transparent;
    padding-top: 0;
  }
  .hero-text { max-width: 100%; padding: 40px 0 0; margin-left: 0; align-items: center; text-align: center; }
  .hero-text .hero-rule { align-self: center; }
  .hero-text .hero-lede { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-text .hero-cta { flex-direction: column; gap: 18px; align-items: center; }
  .hero-text .hero-meta { justify-content: center; }
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--fg-3);
  opacity: 0.6;
}
.hero-wordmark {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(56px, 9vw, 144px);
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin: 0;
  color: var(--fg-1);
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(200, 151, 96, 0.10);
}
/* brass underline accent */
.hero-rule {
  display: block;
  width: 96px;
  height: 2px;
  margin: 36px 0 28px;
  background: linear-gradient(to right, var(--amber-deep), var(--amber-bright), var(--amber));
  box-shadow: 0 0 18px var(--amber-glow);
}
.hero-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-1);
  max-width: 42ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-lede strong { color: var(--amber-bright); font-weight: 400; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-meta .dot { opacity: 0.45; }

.hero-cabinet {
  position: relative;
  /* bleed off the right edge to break the centered, polite Echomatic rhythm */
  margin-right: -100px;
  margin-left: -24px;
}
.hero-cabinet img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin-left: auto;
  filter:
    drop-shadow(0 0 60px rgba(200, 151, 96, 0.18))
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.75));
  /* feather every edge so the glamour photo's smoky studio background
     dissolves into the page rather than meeting it as a hard rectangle */
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    #000 50%,
    rgba(0,0,0,0.85) 70%,
    rgba(0,0,0,0.4) 88%,
    transparent 100%
  );
          mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    #000 50%,
    rgba(0,0,0,0.85) 70%,
    rgba(0,0,0,0.4) 88%,
    transparent 100%
  );
}
.hero-cabinet::after {
  /* warm tube wash spilling out from behind the cabinet */
  content: "";
  position: absolute;
  inset: -10% -20% -20% -10%;
  background: radial-gradient(
    ellipse 60% 50% at 60% 55%,
    rgba(217, 107, 58, 0.10) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* ===================================================================
   CONTROL-PANEL STRIP — full-bleed wood band right under the hero
   =================================================================== */
.panel-strip {
  position: relative;
  margin: 72px 0 0;
  /* full-bleed background while the image inside stays max-width */
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
  padding: 0 0 48px;
}
.panel-strip-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
  margin: 0 0 24px;
}
.panel-strip-caption .sep {
  color: var(--fg-3);
  margin: 0 12px;
  opacity: 0.6;
}
.panel-img {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.panel-img img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 28px 64px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 32px rgba(200, 151, 96, 0.08));
}

/* ===================================================================
   SECTION SHELL — numbered editorial blocks
   Each section gets a big monospace numeral floating to the left of the
   content, like an art book or service manual TOC.
   =================================================================== */
.chapter {
  position: relative;
  padding: 140px 0;
}
.chapter + .chapter { border-top: 1px solid var(--hairline); }
/* Alternating chapter surfaces. A subtly lighter walnut tier gives the
   page a textural breath between dark blocks. */
.chapter.surface-cream {
  background: linear-gradient(180deg, #14110e 0%, #1a1612 50%, #14110e 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.chapter.surface-cream + .chapter { border-top: 0; }
.chapter-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: baseline;
  margin-bottom: 64px;
}
.chapter-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--fg-3);
  padding-top: 18px;
  position: relative;
}
.chapter-num::after {
  /* a tick from the brass to the title baseline */
  content: "";
  position: absolute;
  top: 50%;
  left: 64px;
  right: 0;
  height: 1px;
  background: var(--hairline);
}
.chapter-title {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.chapter-title em {
  font-style: normal;
  color: var(--amber);
}

/* ---- Manifesto / numbered editorial blocks (replaces feature grid) ------- */
.manifesto {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.manifesto .stanza {
  display: contents;
}
.manifesto-stanzas {
  display: flex;
  flex-direction: column;
  gap: 56px;
  grid-column: 2 / -1;
}
.stanza {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}
.stanza:last-child { border-bottom: 0; padding-bottom: 0; }
.stanza-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  padding-top: 6px;
}
.stanza-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.stanza-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* ===================================================================
   SPREAD — pull section, asymmetric image+text spread
   =================================================================== */
.spread {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.spread.flip {
  grid-template-columns: 1fr 1fr 200px;
}
.spread-img {
  position: relative;
  grid-column: 2;
}
.spread.flip .spread-img { grid-column: 1; order: 2; }
.spread-img img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 32px 64px rgba(0,0,0,0.7))
    drop-shadow(0 0 40px rgba(200, 151, 96, 0.10));
}
/* plate label like a museum caption */
.spread-img-cap {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.spread-img-cap .roman { color: var(--fg-3); margin-right: 8px; font-weight: 500; }

.spread-copy { grid-column: 3; }
.spread.flip .spread-copy { grid-column: 2; order: 1; }
.spread-copy h3 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--fg-1);
  text-wrap: balance;
}
.spread-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-2);
  margin: 0 0 18px;
  max-width: 42ch;
  text-wrap: pretty;
}
.spread-copy .pullquote {
  border-left: 2px solid var(--amber);
  padding: 8px 0 8px 24px;
  margin: 36px 0 0;
  font-size: 15px;
  font-style: italic;
  color: var(--fg-1);
  line-height: 1.55;
  max-width: 38ch;
}
.spread-copy .pullquote-attr {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ===================================================================
   SCHEMATIC — presented like a museum plate
   =================================================================== */
.plate {
  position: relative;
  margin: 0;
}
.plate-frame {
  position: relative;
  background: #000;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 32px;
  overflow: hidden;
}
.plate-frame::before,
.plate-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--amber);
  opacity: 0.55;
  pointer-events: none;
}
.plate-frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.plate-frame::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.plate-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(200, 151, 96, 0.18));
}
.plate-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.plate-cap .roman { color: var(--fg-3); font-weight: 500; }
.plate-cap .sep { color: var(--fg-3); opacity: 0.55; }

/* ===================================================================
   SECTION HEAD — centered title for the new tighter layout
   =================================================================== */
.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.section-title {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--amber);
}
.section-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 22px auto 0;
  text-wrap: pretty;
}
.eyebrow-lg {
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: 0.32em;
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
  color: var(--fg-1);
}

/* ===================================================================
   STORY TRIO — three compact cards in a row
   =================================================================== */
.story {
  padding: 120px 0 80px;
  border-top: 1px solid var(--hairline);
}
/* When the section after .story needs to sit close to it, the chapter
   gets .chapter-tight to lose the big 140px top padding + border. */
.chapter.chapter-tight {
  padding-top: 64px;
  border-top: 0;
}
.story-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.story-card {
  background: var(--bg);
  padding: 48px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.story-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, rgba(200,151,96,0.08), transparent 70%);
}
.story-img img {
  max-width: 88%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 32px rgba(0,0,0,0.6))
    drop-shadow(0 0 24px rgba(200,151,96,0.08));
}
.story-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.story-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* ---- Doppler illustration (CSS-only, used in the 3rd story card) -------- */
.story-img-doppler {
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(200,151,96,0.08), transparent 70%);
  position: relative;
  overflow: hidden;
}
.doppler {
  position: relative;
  width: 70%;
  height: 70%;
  display: grid;
  place-items: center;
}
.doppler-core {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow:
    0 0 16px var(--amber-glow),
    0 0 32px rgba(200,151,96,0.25);
  z-index: 2;
}
.doppler-ring {
  position: absolute;
  border: 1px solid rgba(200,151,96,0.55);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  opacity: 0;
  animation: doppler-pulse 4.2s ease-out infinite;
}
.doppler-ring:nth-child(2) { animation-delay: 0s;   }
.doppler-ring:nth-child(3) { animation-delay: 0.7s; }
.doppler-ring:nth-child(4) { animation-delay: 1.4s; }
.doppler-ring:nth-child(5) { animation-delay: 2.1s; }
.doppler-ring:nth-child(6) { animation-delay: 2.8s; }
@keyframes doppler-pulse {
  0%   { transform: scale(1);  opacity: 0.7; border-color: rgba(200,151,96,0.85); }
  60%  { opacity: 0.25; }
  100% { transform: scale(14); opacity: 0; border-color: rgba(200,151,96,0); }
}
@media (prefers-reduced-motion: reduce) {
  .doppler-ring { animation: none; opacity: 0.5; }
  .doppler-ring:nth-child(3) { transform: scale(3); }
  .doppler-ring:nth-child(4) { transform: scale(5); }
  .doppler-ring:nth-child(5) { transform: scale(7); }
  .doppler-ring:nth-child(6) { transform: scale(9); }
}

/* ===================================================================
   BUY SEAL — lifetime license stamp, replaces the reused cabinet photo
   =================================================================== */
.buy-seal {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  display: grid;
  place-items: center;
  /* warm brass radial behind it */
  background: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    rgba(200, 151, 96, 0.15) 0%,
    rgba(200, 151, 96, 0.05) 40%,
    transparent 75%
  );
}
.buy-seal-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.buy-seal-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 151, 96, 0.4);
  border-radius: 50%;
}
.buy-seal-rings span:nth-child(1) { inset: 4%;  border-width: 1px;   opacity: 0.7; }
.buy-seal-rings span:nth-child(2) { inset: 12%; border-width: 2px;   opacity: 0.5;
  border-style: dashed; }
.buy-seal-rings span:nth-child(3) { inset: 22%; border-width: 1px;   opacity: 0.4; }
.buy-seal-rings span:nth-child(4) { inset: 30%; border-width: 1px;   opacity: 0.3; }
.buy-seal-inner {
  text-align: center;
  padding: 22% 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}
.buy-seal-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.buy-seal-mark {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--fg-1);
  text-transform: uppercase;
}
.buy-seal-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
  opacity: 0.7;
}
.buy-seal-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--amber);
}

@media (max-width: 980px) {
  .buy-seal { margin: 0 auto; max-width: 320px; }
}

/* ===================================================================
   BUY LOGO — closing brand mark (Amelia Audio logo only)
   =================================================================== */
.buy-logo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  text-align: center;
  /* soft brass radial behind the mark */
  background: radial-gradient(
    ellipse 70% 70% at 50% 45%,
    rgba(200, 151, 96, 0.12) 0%,
    rgba(200, 151, 96, 0.04) 40%,
    transparent 75%
  );
}
.buy-logo img {
  width: 56%;
  height: auto;
  max-height: 60%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(200, 151, 96, 0.20));
}
.buy-logo figcaption {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 980px) {
  .buy-logo { margin: 0 auto; max-width: 320px; }
}
.buy-plate {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  /* the right-side bleed off the page edge and the left fade are what
     make this image feel embedded in the section rather than dropped on. */
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(200, 151, 96, 0.10);
}
.buy-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* feather the left and top edges into the dark buy-section bg */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.4) 10%,
    #000 28%,
    #000 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.4) 10%,
    #000 28%,
    #000 100%
  );
}
/* subtle warm glow seeping out from behind the plate */
.buy-plate::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    ellipse 55% 50% at 60% 50%,
    rgba(200, 151, 96, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(30px);
}

@media (max-width: 980px) {
  .buy-plate {
    margin: 0 auto;
    max-width: 520px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 980px) {
  .story-trio { grid-template-columns: 1fr; }
  .story { padding: 80px 0; }
}

/* ===================================================================
   A/B GRID variant (matches Echomatic in-use card grid)
   =================================================================== */
.ab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 1180px) {
  .ab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ab-grid { grid-template-columns: 1fr; }
}
.ab-grid .ab {
  background: var(--bg);
  padding: 32px 32px 28px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 22px;
  position: relative;
}
.ab-grid .ab[data-active="wet"] {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 151, 96, 0.06), transparent 75%),
    var(--bg);
}
.ab-grid .ab-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ab-grid .ab-num {
  padding-top: 3px;
  color: var(--fg-3);
}
.ab-grid[data-active="wet"] .ab-num,
.ab-grid .ab[data-active="wet"] .ab-num { color: var(--amber); }
.ab-grid .ab-play { justify-self: start; }
.ab-grid .ab-scrub { height: 32px; }
.ab-grid .ab-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-self: stretch;
  width: 100%;
}
.ab-note-top { margin: 22px 0 0; }
.ab-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.ab {
  display: grid;
  grid-template-columns: 80px 56px 1fr 1.2fr 220px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.ab-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}
.ab[data-active="wet"] .ab-num { color: var(--amber); }
.ab-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 140ms var(--ease);
}
.ab-play:hover {
  border-color: var(--amber);
  box-shadow: 0 0 24px rgba(200, 151, 96, 0.18);
}
.ab-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.ab-play .ico-pause { display: none; }
.ab.is-playing .ab-play .ico-play  { display: none; }
.ab.is-playing .ab-play .ico-pause { display: block; }
.ab.is-playing .ab-play {
  border-color: var(--amber);
  box-shadow: 0 0 24px rgba(200, 151, 96, 0.22);
}
.ab-meta { min-width: 0; }
.ab-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--fg-1);
  margin: 0;
}
.ab-tag {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ab-scrub {
  position: relative;
  height: 28px;
}
.ab-wave {
  position: absolute;
  inset: 12px 0 12px 0;
  background-image: linear-gradient(
    to right,
    rgba(255,255,255,0.10) 0,
    rgba(255,255,255,0.10) 1px,
    transparent 1px,
    transparent 8px
  );
  background-size: 8px 100%;
  background-position: 0 50%;
  background-repeat: repeat-x;
  opacity: 0.55;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.ab-progress {
  position: absolute;
  top: 13px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  transition: width 120ms linear;
}
.ab-time {
  position: absolute;
  inset: auto 0 -2px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}
.ab-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  justify-self: end;
}
.ab-toggle button {
  background: transparent;
  color: var(--fg-2);
  border: 0;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 100ms var(--ease);
}
.ab-toggle button + button { border-left: 1px solid var(--hairline); }
.ab-toggle button:hover { color: var(--fg-1); }
.ab-toggle button.is-active {
  background: var(--amber);
  color: var(--bg);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.15);
}
.ab.is-missing .ab-play { opacity: 0.35; pointer-events: none; }
.ab.is-missing::after {
  content: "Audio file not found";
  position: absolute;
  top: 8px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0.7;
}
.ab-note {
  margin: 0 0 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ===================================================================
   SPECS — match Echomatic exactly
   =================================================================== */
.spec-list {
  max-width: 720px;
  margin: 0 auto;
  display: block;
}
.spec-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.spec-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.spec-row dt,
.spec-row dd { border: 0; padding: 0; }
.spec-row dt {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0;
  align-self: center;
}
.spec-row dd {
  font-size: 15px;
  color: var(--fg-1);
  margin: 0;
  line-height: 1.5;
}

/* ===================================================================
   SECTION (matches Echomatic exactly so the Buy block reads identical)
   =================================================================== */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--hairline);
}
/* Compressed spec section — less air around the table */
.chapter.chapter-specs {
  padding: 72px 0 64px;
}
.section.section-specs {
  padding: 80px 0 72px;
}
.section-head.section-head-tight {
  margin-bottom: 40px;
}
.chapter-specs .spec-row,
.section-specs .spec-row {
  padding: 14px 0;
}
.section > .wrap > .section-head:first-child {
  text-align: center;
  margin-bottom: 80px;
}

/* ===================================================================
   BUY (Echomatic parity)
   =================================================================== */
.buy-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 64px;
}
.buy-left { display: flex; flex-direction: column; gap: 22px; }
.buy-left .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0;
}
.buy-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
}
.buy-price .amount {
  font-size: 88px;
  font-weight: 200;
  letter-spacing: 0.01em;
  color: var(--fg-1);
  line-height: 1;
}
.buy-price .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.buy-copy {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.7;
  margin: 0;
  max-width: 38ch;
}
.buy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}
.buy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-1);
  letter-spacing: 0.02em;
}
.buy-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  flex-shrink: 0;
}
.buy-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}
.buy-right img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8));
}

@media (max-width: 980px) {
  .buy-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-tag {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-1);
  text-decoration: none;
  transition: color 120ms var(--ease);
}
.footer-col a:hover { color: var(--amber); }
.footer-base {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* ===================================================================
   CONTACT MODAL (shared structure)
   =================================================================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease);
}
.contact-modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 44px 44px 36px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(200,151,96,0.08),
    0 0 60px rgba(200,151,96,0.06);
  transform: translateY(8px);
  transition: transform 200ms var(--ease);
}
.contact-modal[aria-hidden="false"] .contact-card { transform: translateY(0); }
.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: var(--fg-2);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all 120ms var(--ease);
}
.contact-close:hover { color: var(--amber); background: rgba(255,255,255,0.04); }
.contact-card .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.contact-card h3 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin: 8px 0 10px;
  color: var(--fg-1);
}
.contact-sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
}
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 2px;
  resize: vertical;
  transition: border-color 120ms var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 0; border-color: var(--amber); }
.contact-form textarea { min-height: 110px; }
.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.contact-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  flex: 1 1 220px;
  line-height: 1.5;
}
.contact-note a { color: var(--amber); text-decoration: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1080px) {
  .wrap, .wrap-wide { padding: 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: 0; }
  .hero-cabinet { margin: 0; }
  .hero-cabinet img { max-width: 520px; margin: 0 auto; }
  .chapter-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .chapter-num::after { display: none; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-stanzas { grid-column: 1 / -1; }
  .stanza { grid-template-columns: 50px 1fr; }
  .stanza-body { grid-column: 2; }
  .stanza-title { grid-column: 2; }
  .spread { grid-template-columns: 1fr; gap: 32px; }
  .spread.flip { grid-template-columns: 1fr; }
  .spread-img, .spread-copy { grid-column: 1 !important; order: initial !important; }
  .buy-card { grid-template-columns: 1fr; gap: 48px; }
  .ab {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "play meta"
      "play tag"
      "scrub scrub"
      "toggle toggle";
    gap: 14px 18px;
  }
  .ab-num { display: none; }
  .ab-play { grid-area: play; align-self: start; }
  .ab-meta { grid-area: meta; }
  .ab-scrub { grid-area: scrub; margin-top: 8px; }
  .ab-toggle { grid-area: toggle; justify-self: start; }
  .spec-list { grid-template-columns: 1fr; gap: 0; }
  .spec-row dt { padding-bottom: 4px; }
  .spec-row dd { border-top: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 22px; }
  .chapter { padding: 100px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 14px; text-align: center; }
  .hero-cta { gap: 18px; }
}
