/* ═══════════════════════════════════════════
   TONFALL — style.css
   Editorial cream, amber warmth, cascade signature.
   ═══════════════════════════════════════════ */

/* ── Self-hosted webfonts (no Google Fonts calls) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/inter-v20-latin-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-v5-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-v5-latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-v24-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2');
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0A0A0C;
  --bg-elevated: #131318;
  --bg-viz:      #050329;
  --text:        #F0EDE6;
  --text-mid:    #B8B4C0;
  --text-dim:    #8A8698;
  --text-faint:  #6A6678;
  --amber:       #D4A070;
  --amber-glow:  #E8C090;
  --amber-dim:   #7A5A3A;
  --border:      #2A2838;
  --border-lite: #3A3848;

  /* Section backgrounds — Ableton-style colored rooms */
  --bg-pitch:    #E8E4DC;
  --bg-device:   #DDDBD6;
  --bg-listen:   #E2D8CC;
  --bg-product:  #F0EDE6;
  --bg-footer:   #1A1A1E;

  /* Control colors from the device */
  --c-fog:    rgb(135, 160, 210);
  --c-drift:  rgb(210, 170, 120);
  --c-echo:   rgb(165, 145, 195);
  --c-space:  rgb(120, 145, 200);
  --c-size:   rgb(195, 165, 115);
  --c-thick:  rgb(130, 180, 130);
  --c-harm:   rgb(180, 135, 170);
  --c-pitch:  rgb(205, 180, 115);
  --c-perc:   rgb(217, 166, 89);
  --c-frz:    rgb(184, 199, 224);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --section-pad: clamp(64px, 8vh, 120px);
  --inner-max: 1100px;

  --nav-height: 56px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-product);
  color: #1A1A1E;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: #FFFFFF;
}

a {
  color: #6A6678;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: #1A1A1E; }


/* ═══════════════════════════════════════════
   NAV — minimal sticky header
   ═══════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

#nav.scrolled {
  background: rgba(240, 237, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1A1A1E;
  text-decoration: none;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  color: var(--amber);
  display: block;
  flex-shrink: 0;
}

.brand-name { font-weight: 500; }

#nav.scrolled .nav-brand {
  color: #1A1A1E;
}

.nav-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--amber);
  padding: 7px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--amber-glow);
  color: var(--bg);
}

.nav-cta:disabled,
.nav-cta[aria-disabled="true"] {
  cursor: default;
}

.nav-cta:disabled:hover,
.nav-cta[aria-disabled="true"]:hover {
  background: var(--amber);
  color: var(--bg);
}

.nav-orders {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 30, 0.58);
  min-height: 34px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(26, 26, 30, 0.1);
  border-radius: 5px;
  text-decoration: none;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.nav-orders:hover {
  color: #1A1A1E;
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(26, 26, 30, 0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #8A8690;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #1A1A1E;
}

.nav-cta-price {
  opacity: 0.78;
}

.price-sale {
  display: none;
}

body.pricing-sale .price-sale {
  display: inline;
}

body.pricing-sale .price-regular {
  display: none;
}

body.pricing-sale .nav-cta-price {
  opacity: 1;
}


/* ── Shared Section Styles ── */
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8A8690;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1A1A1E;
  margin-bottom: 16px;
}

.section-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: #4A4650;
  max-width: 540px;
  margin-bottom: 48px;
}


/* ═══════════════════════════════════════════
   SHOWCASE — punchy product hero (light bg)
   ═══════════════════════════════════════════ */
#hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + clamp(48px, 8vh, 100px));
  padding-bottom: clamp(48px, 8vh, 100px);
  background: var(--bg-product);
}

#hero-viz {
  display: none;
}

.showcase {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.showcase-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #8A8690;
  margin-bottom: 12px;
}

.showcase-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8A8690;
  margin-bottom: 20px;
}


.showcase-product {
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 0.85;
  margin-bottom: 16px;
  color: #1A1A1E;
  -webkit-text-fill-color: #1A1A1E;
}

.showcase-line {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 300;
  color: #5A5660;
  letter-spacing: 0.02em;
  margin-bottom: clamp(40px, 6vh, 72px);
}

/* Device inside showcase — big and proud */
.showcase-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.showcase-device .device-frame {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 800 / 333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 12px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.showcase-device .device-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.device-static {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════
   FEATURE GROUPS — three punchy sections
   ═══════════════════════════════════════════ */
.feature-group {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  color: #1A1A1E;
}

#fg-grain   { background: var(--bg-device); }
#fg-texture { background: var(--bg-listen); }
#fg-harmony { background: var(--bg-device); }

.fg-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.fg-layout--reverse {
  grid-template-columns: auto 1fr;
}

.fg-layout--reverse .fg-text {
  order: 2;
}

.fg-layout--reverse .fg-icons {
  order: 1;
}

.fg-heading {
  font-family: var(--font-body);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #1A1A1E;
  text-wrap: balance;
  margin-bottom: 40px;
}

.fg-body {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: #4A4650;
  max-width: 520px;
  letter-spacing: 0.01em;
}

.fg-body em {
  font-style: normal;
  color: #8A6530;
  font-weight: 400;
}

.fg-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Vertical stack for sections with only 2 controls */
.fg-icons--stack {
  grid-template-columns: 1fr;
  max-width: 160px;
}

.fg-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: #1C1A22;
  border-radius: 8px;
}

.fg-icon-item canvas {
  display: block;
  width: 64px;
  height: 64px;
}

.fg-icon-item span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════
   DEEP DIVE — reference on paper
   ═══════════════════════════════════════════ */
#deep-dive {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: var(--bg-device);
  color: #1A1A1E;
}

#deep-dive .section-label {
  color: #8A8690;
}

.dive-section {
  border-top: 1px solid rgba(26, 26, 30, 0.1);
}

.dive-section:last-child {
  border-bottom: 1px solid rgba(26, 26, 30, 0.1);
}

.dive-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  color: #1A1A1E;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.dive-trigger::-webkit-details-marker { display: none; }

.dive-trigger::after {
  content: '+';
  font-size: 24px;
  font-weight: 200;
  color: #8A8690;
  transition: transform 0.3s;
}

details[open] .dive-trigger::after {
  content: '−';
}

.dive-trigger:hover {
  color: var(--amber-dim);
}

.dive-content {
  padding: 0 0 32px;
}

.dive-content > p {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: #4A4650;
  max-width: 640px;
}

.dive-content em {
  font-style: normal;
  color: var(--amber-dim);
}

.dive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.dive-item h4 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: #1A1A1E;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dive-item h4::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(26, 26, 30, 0.06);
}

.dive-item p {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  color: #5A5660;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   PRODUCT — Specs & Buy (dark closer)
   ═══════════════════════════════════════════ */
#product {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: #0F0E12;
  color: var(--text);
  overflow: hidden;
  border-top: 1px solid rgba(240, 237, 230, 0.08);
  border-bottom: 1px solid rgba(240, 237, 230, 0.08);
}

/* Subtle device-like top edge — warm inner highlight, like the real device */
#product::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(212, 160, 112, 0.06) 0%, rgba(212, 160, 112, 0) 60%),
    linear-gradient(180deg, rgba(240, 237, 230, 0.04) 0%, rgba(240, 237, 230, 0) 8%);
}

#product .section-inner { position: relative; z-index: 1; }

#product .section-label {
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* ── Single-column editorial offer ─────────────── */
.offer-inner {
  max-width: 780px;
  text-align: center;
}

.offer-headline {
  font-family: var(--font-body);
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0 0 32px;
}

.offer-sale-note {
  min-height: 18px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.6vw, 12px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.offer-price-wrap {
  white-space: nowrap;
}

.offer-price {
  white-space: nowrap;
  color: var(--amber);
}

.offer-price-was {
  position: relative;
  display: inline-block;
  margin-right: 0.18em;
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(221, 219, 214, 0.42);
  vertical-align: 0.35em;
}

.offer-price-was::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 52%;
  height: 0.08em;
  background: rgba(212, 160, 112, 0.7);
  transform: rotate(-8deg);
}

.offer-currency {
  font-size: 0.62em;
  vertical-align: 0.32em;
  margin-right: 0.02em;
  font-weight: 500;
  letter-spacing: 0;
}

.offer-headline em {
  font-style: normal;
  color: var(--amber);
}

.offer-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 44px;
}

.offer-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 56px;
  background: var(--amber);
  color: #1A1A1E;
  border: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow:
    0 0 60px 10px rgba(232, 192, 144, 0.16),
    0 0 180px 48px rgba(212, 160, 112, 0.10),
    0 0 360px 120px rgba(212, 160, 112, 0.055),
    0 0 560px 200px rgba(184, 130, 80, 0.025),
    0 10px 30px rgba(0, 0, 0, 0.25);
  animation: ctaGlowBreath 7s ease-in-out infinite;
}

/* Vintage lamp halo — breathing */
@keyframes ctaGlowBreath {
  0%, 100% {
    box-shadow:
      0 0 60px 10px rgba(232, 192, 144, 0.14),
      0 0 180px 48px rgba(212, 160, 112, 0.09),
      0 0 360px 120px rgba(212, 160, 112, 0.05),
      0 0 560px 200px rgba(184, 130, 80, 0.022),
      0 10px 30px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow:
      0 0 72px 14px rgba(232, 192, 144, 0.20),
      0 0 220px 58px rgba(212, 160, 112, 0.13),
      0 0 420px 140px rgba(212, 160, 112, 0.07),
      0 0 620px 230px rgba(184, 130, 80, 0.035),
      0 10px 30px rgba(0, 0, 0, 0.25);
  }
}

.offer-cta:hover {
  background: var(--amber-glow);
  color: #1A1A1E;
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow:
    0 0 90px 20px rgba(240, 205, 160, 0.28),
    0 0 280px 80px rgba(212, 160, 112, 0.18),
    0 0 500px 170px rgba(212, 160, 112, 0.09),
    0 0 720px 260px rgba(184, 130, 80, 0.045),
    0 16px 44px rgba(0, 0, 0, 0.3);
}

.offer-cta:active {
  transform: translateY(0);
  animation-play-state: paused;
}

.offer-cta:disabled,
.offer-cta[aria-disabled="true"] {
  cursor: default;
}

.offer-cta:disabled:hover,
.offer-cta[aria-disabled="true"]:hover {
  background: var(--amber);
  transform: none;
  animation-play-state: running;
  box-shadow:
    0 0 60px 10px rgba(232, 192, 144, 0.16),
    0 0 180px 48px rgba(212, 160, 112, 0.10),
    0 0 360px 120px rgba(212, 160, 112, 0.055),
    0 0 560px 200px rgba(184, 130, 80, 0.025),
    0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .offer-cta { animation: none; }
}

.offer-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.offer-cta:hover .offer-cta-arrow {
  transform: translateX(4px);
}

.offer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  margin: 28px 0 0;
  letter-spacing: 0.02em;
}

.offer-meta a {
  color: var(--text-dim);
  text-decoration: none;
}

.offer-meta a:hover {
  color: var(--amber);
}

.offer-details {
  margin: 18px auto 0;
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.035em;
  color: var(--text-faint);
}

.offer-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-faint);
  list-style: none;
}

.offer-details summary::-webkit-details-marker {
  display: none;
}

.offer-details summary::after {
  content: "+";
  color: var(--amber);
}

.offer-details[open] summary::after {
  content: "-";
}

.offer-details dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 18px;
  margin: 14px 0 0;
  text-align: left;
}

.offer-details dl div {
  display: contents;
}

.offer-details dt,
.offer-details dd {
  margin: 0;
}

.offer-details dt {
  color: rgba(212, 160, 112, 0.74);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-details dd {
  color: var(--text-faint);
}

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-orders {
    min-height: 32px;
    padding: 0 9px;
    font-size: 10px;
  }

  .nav-cta {
    padding: 7px 12px;
  }

  .offer-details dl {
    grid-template-columns: 1fr;
    gap: 3px;
    text-align: center;
  }

  .offer-details dd {
    margin-bottom: 8px;
  }
}


/* ═══════════════════════════════════════════
   FOOTER — signature, not a page
   ═══════════════════════════════════════════ */
#footer {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vh, 64px) 0 clamp(24px, 3vh, 36px);
  background: var(--bg-footer);
  color: var(--text);
}

.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
  text-align: center;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-brand-mark:hover { color: var(--amber); }
.footer-brand-mark:hover .brand-mark { color: var(--amber-glow); }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-top: 12px;
  margin-bottom: clamp(22px, 4vh, 40px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 460px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--text); }

.footer-links--primary a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(221, 219, 214, 0.68);
}

.footer-links--primary a:hover {
  color: var(--amber);
}

.footer-links--utility {
  gap: 12px;
  opacity: 0.72;
}

.footer-links--utility a {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(184, 178, 192, 0.32);
}

.footer-links--utility a:hover {
  color: rgba(221, 219, 214, 0.68);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(184, 178, 192, 0.26);
}

/* ═══════════════════════════════════════════
   UTILITY PAGES — legal / privacy
   ═══════════════════════════════════════════ */
.utility-page {
  min-height: 100vh;
  background: var(--bg-product);
}

.utility-page #nav {
  background: rgba(240, 237, 230, 0.92);
  border-bottom-color: rgba(26, 26, 30, 0.06);
}

.utility-main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--nav-height) + 64px) clamp(24px, 5vw, 48px) 80px;
  background: var(--bg-product);
}

.utility-inner {
  width: min(100%, 720px);
  margin: 0 auto;
}

.utility-inner h1 {
  font-family: var(--font-body);
  font-size: clamp(46px, 9vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #1A1A1E;
  margin: 0 0 40px;
}

.utility-inner h2 {
  max-width: 620px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: #1A1A1E;
  text-transform: uppercase;
}

.utility-inner p {
  max-width: 620px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #5A5660;
}

.utility-inner a {
  color: #9D6F42;
}

.utility-inner a:hover {
  color: #1A1A1E;
}

.legal-jump {
  padding-top: 4px;
}

.utility-section {
  max-width: 620px;
  margin-top: clamp(46px, 7vw, 72px);
  padding-top: clamp(28px, 4vw, 38px);
  border-top: 1px solid rgba(26, 26, 30, 0.1);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.utility-section p:last-child {
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════
   FEATURE GROUP — EDITORIAL (grain, borderless)
   ═══════════════════════════════════════════ */
.feature-group--editorial .fg-icons--bare {
  grid-template-columns: repeat(2, auto);
  gap: 28px 48px;
}

.feature-group--editorial .fg-icon-item {
  background: transparent;
  padding: 0;
  gap: 12px;
}

.feature-group--editorial .fg-icon-item canvas {
  width: 96px;
  height: 96px;
}

.feature-group--editorial .fg-icon-item span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}


/* ═══════════════════════════════════════════
   FEATURE GROUP — DARK (texture, full-bleed)
   ═══════════════════════════════════════════ */
.feature-group--dark {
  background: var(--bg-viz) !important;
  color: var(--text);
  padding: clamp(96px, 16vh, 200px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#texture-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  filter: blur(14px);
  opacity: 0.55;
}

.feature-group--dark .texture-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.feature-group--dark .section-label {
  color: var(--text-dim);
}

.feature-group--dark .fg-heading {
  color: var(--text);
  font-size: clamp(44px, 9vw, 140px);
  margin-bottom: 32px;
}

.feature-group--dark .fg-body--wide {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 2;
}

.feature-group--dark .fg-body em {
  color: var(--amber-glow);
}

/* Lead body: same size as body, slightly weightier as anchor sentence */
.fg-body--lead {
  font-size: 13px;
  color: #1A1A1E;
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.feature-group--dark .fg-body--lead {
  color: var(--text);
}

.fg-body--lead strong {
  color: var(--amber);
  font-weight: 400;
}

.feature-group--dark .fg-body--lead strong {
  color: var(--amber-glow);
}

.fg-body--small {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
}



/* ═══════════════════════════════════════════
   FEATURE GROUP — HARMONY (dot-grid voicings)
   ═══════════════════════════════════════════ */
.harm-viz-wrap {
  position: relative;
  width: 340px;
  aspect-ratio: 1 / 1;
  background: var(--bg-viz);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 12px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

#harm-viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.harm-viz-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
}

.harm-voicings {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.harm-voicings span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #8A6530;
  padding: 5px 10px;
  border: 1px solid rgba(138, 101, 48, 0.28);
  border-radius: 999px;
}


/* ═══════════════════════════════════════════
   ORIGIN — emotional close before buy
   ═══════════════════════════════════════════ */
#origin {
  position: relative;
  padding: clamp(140px, 20vh, 240px) 0 clamp(120px, 16vh, 200px);
  background: var(--bg-product);
  text-align: center;
  overflow: hidden;
}

/* Warm atmospheric field — like distant stage lights */
#origin::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1400px, 120vw);
  height: 520px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(232, 192, 144, 0.22) 0%,
      rgba(212, 160, 112, 0.12) 22%,
      rgba(212, 160, 112, 0.05) 42%,
      rgba(212, 160, 112, 0) 62%
    );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: origin-breath 11s ease-in-out infinite;
}

@keyframes origin-breath {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  #origin::before { animation: none; }
}

.origin-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.origin-lead {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #1A1A1E;
  margin-bottom: 32px;
  text-wrap: balance;
}

.origin-lead em {
  font-style: italic;
  color: var(--amber-dim);
}

.origin-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: #6A6678;
  letter-spacing: 0.02em;
  max-width: 440px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.showcase-device,
.fg-text,
.fg-icons,
.texture-inner,
.pitch-ladder,
.origin-inner,
.video-feature,
.offer-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fg-icons { transition-delay: 0.12s; }
.pitch-ladder { transition-delay: 0.12s; }

.showcase-device.visible,
.fg-text.visible,
.fg-icons.visible,
.texture-inner.visible,
.pitch-ladder.visible,
.origin-inner.visible,
.video-feature.visible,
.offer-inner.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-link { display: none; }

  .offer-cta {
    padding: 18px 40px;
    min-width: 240px;
    justify-content: center;
  }

  .fg-layout,
  .fg-layout--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fg-layout--reverse .fg-text { order: 1; }
  .fg-layout--reverse .fg-icons { order: 2; }

  .fg-icons {
    justify-content: flex-start;
  }

  .dive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-product {
    letter-spacing: 0.04em;
  }

  .fg-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .fg-icons--stack {
    grid-template-columns: 1fr;
  }

  .fg-icon-item {
    padding: 16px;
  }

  .dive-grid {
    grid-template-columns: 1fr;
  }
}
