/* ============================================================
   NOVO — Layout & section styles
   ============================================================ */

#root { display: block; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklch, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nova-line-soft);
}
.topbar-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: 12px;
}

/* ---------- Side nav ---------- */
.side-nav {
  position: fixed;
  left: max(20px, calc((100vw - var(--page-max))/2 + 8px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: none;
}
@media (min-width: 1280px) { .side-nav { display: block; } }
.side-nav ol { list-style: none; padding: 0; margin: 0; }
.side-nav li {
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 4px 0;
}
.side-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 6px 8px;
  color: var(--nova-faint);
  text-decoration: none;
  transition: color .2s;
  border-radius: 2px;
}
.side-nav a:hover { color: var(--surface-ink); }
.side-nav li.active a { color: var(--surface-ink); }
.side-nav li.active a .num::before {
  content: "→ ";
  margin-right: 0;
}
.side-nav .num { color: inherit; opacity: 0.6; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 320px;
  background: var(--surface-2);
  border: 1px solid var(--nova-line);
  z-index: 100;
  font-family: var(--font-body);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
[data-theme="dark"] .tweaks-panel { background: #1A1A1A; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nova-line);
}
.tweaks-close {
  border: 0; background: transparent; cursor: pointer; color: inherit;
  padding: 6px;
}
.tweaks-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 24px;
  max-height: 70vh; overflow-y: auto;
}
.tweak-row { display: flex; flex-direction: column; gap: 8px; }
.tweak-row input[type=range] { width: 100%; accent-color: var(--nova-champagne-deep); }
.tweak-seg {
  display: flex;
  border: 1px solid var(--nova-line);
  border-radius: 2px;
  overflow: hidden;
}
.tweak-seg.column { flex-direction: column; }
.seg-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--nova-line);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  color: var(--nova-muted);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.tweak-seg.column .seg-btn { border-right: 0; border-bottom: 1px solid var(--nova-line); align-items: flex-start; padding: 12px 14px; }
.tweak-seg.column .seg-btn:last-child { border-bottom: 0; }
.seg-btn:last-child { border-right: 0; }
.seg-btn.text { letter-spacing: 0.14em; text-transform: uppercase; }
.seg-btn.left { align-items: flex-start; }
.seg-btn.on {
  background: var(--surface-ink);
  color: var(--on-ink);
}

/* ---------- Hero ---------- */
.main { display: block; }
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--gutter) clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--nova-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-text .display {
  margin: 0;
  font-size: clamp(64px, 9vw, 168px);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--nova-line);
  font-size: 14px;
}
.hero-meta > div > div:first-child { margin-bottom: 6px; }
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 540px;
}
.hero-product-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, var(--nova-stone) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--surface-0));
  opacity: 0.5;
  z-index: 0;
}
[data-theme="dark"] .hero-product-bg {
  background: radial-gradient(ellipse at 50% 60%, rgba(216,199,170,0.08) 0%, transparent 60%);
}
.hero-visual > svg { position: relative; z-index: 1; }
.hero-caption {
  position: absolute;
  right: 0; bottom: 0;
  text-align: right;
  color: var(--nova-muted);
  z-index: 2;
}

/* ---------- Foundation ---------- */
.found-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
  margin-bottom: 64px;
}
@media (max-width: 980px) { .found-grid { grid-template-columns: repeat(2, 1fr); } }
.found-card {
  background: var(--surface-0);
  padding: 32px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.found-card.accent-card {
  background: var(--nova-paper);
  grid-column: span 2;
}
[data-theme="dark"] .found-card.accent-card { background: #1F1B14; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 980px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar { background: var(--surface-0); padding: 32px; min-height: 200px; }

.attributes { margin-top: 80px; }
.attr-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attr-chip {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  border: 1px solid var(--surface-ink);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- Logo section ---------- */
.logo-hero {
  background: var(--nova-paper);
  padding: clamp(48px, 8vw, 120px) 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  border: 1px solid var(--nova-line);
}
[data-theme="dark"] .logo-hero { background: #1F1B14; }
.logo-hero-mark { color: var(--surface-ink); }
.logo-hero-word {
  font-family: "Century Gothic", "URW Gothic", "Avant Garde", "ITC Avant Garde Gothic", "Futura", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 12vw, 200px);
  letter-spacing: 0.30em;
  line-height: 1;
  margin-left: 0.30em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 4px currentColor;
  paint-order: stroke fill;
}
.logo-hero-tag { font-size: clamp(20px, 2.4vw, 32px); color: var(--nova-muted); }

.logo-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 880px) { .logo-options { grid-template-columns: 1fr; } }
.logo-option {
  background: var(--surface-0);
  padding: 48px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
  transition: background .25s;
}
.logo-option.active { background: var(--nova-paper); }
[data-theme="dark"] .logo-option.active { background: #1F1B14; }
.logo-option-mark {
  width: 160px; height: 160px;
  border: 1px solid var(--nova-line);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
}
[data-theme="dark"] .logo-option-mark { background: #0D0D0D; }

.lockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 880px) { .lockup-grid { grid-template-columns: 1fr; } }
.lockup {
  background: var(--surface-0);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.lockup.inverse { background: var(--nova-black); color: var(--nova-warm-white); }
.lockup-art {
  flex: 1;
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
}

.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .usage-grid { grid-template-columns: 1fr; } }
.usage-do, .usage-dont {
  border: 1px solid var(--nova-line);
  padding: 28px;
}
.usage-do ul, .usage-dont ul { padding: 0; margin: 16px 0 0; list-style: none; }
.usage-do li, .usage-dont li {
  padding: 10px 0;
  border-bottom: 1px solid var(--nova-line-soft);
  font-size: 14px;
}
.usage-do .mono.caption { color: #2D6A47; }
.usage-dont .mono.caption { color: #A04A3C; }

/* ---------- Color section ---------- */
.color-grid-core {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 980px) { .color-grid-core { grid-template-columns: repeat(2, 1fr); } }
.swatch {
  position: relative;
  height: 280px;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #111;
}
.swatch.large { height: 360px; }
.swatch.on-dark { color: #F5F2EB; }
.swatch-meta { display: flex; flex-direction: column; gap: 4px; }
.swatch-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.swatch-hex { cursor: pointer; transition: opacity .15s; }
.swatch-hex:hover { opacity: 0.6; }
.swatch-note { margin-top: 8px; opacity: 0.65; font-size: 11px; }

.color-accent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 880px) { .color-accent { grid-template-columns: 1fr; } }
.accent-note {
  background: var(--surface-0);
  padding: 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.accent-intensity-demo { margin-top: 28px; }
.intensity-bar {
  height: 6px;
  background: var(--surface-1);
  border: 1px solid var(--nova-line-soft);
  margin-top: 8px;
}
.intensity-fill {
  height: 100%;
  background: var(--nova-champagne-deep);
  transition: width .25s var(--ease);
}

.colorways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 880px) { .colorways { grid-template-columns: 1fr; } }
.colorway {
  padding: 48px 32px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  min-height: 480px;
}
.colorway-meta { text-align: center; }

.ratio-bar {
  display: flex;
  height: 64px;
  border: 1px solid var(--nova-line);
}
.ratio-bar > span { display: block; }
.ratio-labels {
  display: grid;
  grid-template-columns: 55fr 25fr 10fr 7fr 3fr;
  gap: 0;
  margin-top: 12px;
  font-size: 10px;
}
.ratio-labels > span { padding-right: 8px; color: var(--nova-muted); }

/* ---------- Type section ---------- */
.type-specimen-hero {
  background: var(--surface-0);
  border: 1px solid var(--nova-line);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: end;
}
@media (max-width: 880px) { .type-specimen-hero { grid-template-columns: 1fr; } }
.type-big {
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-feature-settings: "ss01";
}
.type-alpha {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: var(--nova-muted);
}

.type-scale {
  border: 1px solid var(--nova-line);
}
.type-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--nova-line-soft);
  align-items: baseline;
}
.type-row:last-child { border-bottom: 0; }
.type-row-meta { display: flex; flex-direction: column; gap: 4px; }

.type-pairings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 980px) { .type-pairings { grid-template-columns: 1fr; } }
.type-pairing {
  background: var(--surface-0);
  padding: 32px;
  min-height: 280px;
  border-top: 3px solid transparent;
  transition: border-color .2s;
}
.type-pairing.active { border-top-color: var(--nova-champagne-deep); }

/* ---------- Voice ---------- */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); }
@media (max-width: 880px) { .voice-grid { grid-template-columns: 1fr; } }
.voice-col { background: var(--surface-0); padding: 40px; }
.voice-label.good { color: #2D6A47; }
.voice-label.bad  { color: #A04A3C; }
.voice-list { list-style: none; padding: 0; margin: 24px 0 0; }
.voice-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--nova-line-soft);
  font-size: 17px;
}
.voice-list li::before { content: "—  "; opacity: 0.4; }
.bad-list li { text-decoration: line-through; text-decoration-color: rgba(160, 74, 60, 0.4); color: var(--nova-muted); }

.voice-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 880px) { .voice-rules { grid-template-columns: 1fr; } }
.voice-rule { background: var(--surface-0); padding: 32px; }

.pull-quote {
  padding: 80px 0;
  border-top: 1px solid var(--nova-line);
  border-bottom: 1px solid var(--nova-line);
}

/* ---------- Product ---------- */
.product-anatomy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
}
@media (max-width: 980px) { .product-anatomy { grid-template-columns: 1fr; } }
.product-anatomy-visual {
  background: var(--nova-paper);
  padding: 64px;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .product-anatomy-visual { background: #1F1B14; }
.product-anatomy-specs { background: var(--surface-0); padding: 48px; }

.spec-list { margin: 16px 0 0; }
.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--nova-line-soft);
  align-items: baseline;
}
.spec-row dt { color: var(--nova-muted); }
.spec-row dd { margin: 0; font-size: 16px; }

.claims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); }
@media (max-width: 880px) { .claims-grid { grid-template-columns: 1fr; } }
.claims-col { background: var(--surface-0); padding: 32px; }

/* ---------- Listing images ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-card { display: flex; flex-direction: column; gap: 12px; }
.listing-meta { display: flex; align-items: center; justify-content: space-between; }
.listing-frame {
  aspect-ratio: 1;
  background: #FFFFFF;
  border: 1px solid var(--nova-line);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .listing-frame { background: #FAF8F3; }

.listing-main-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF;
}

.listing-lifestyle {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #E8E2D4 0%, #DFD6C4 100%);
}
.lifestyle-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 250, 240, 0.6), transparent 50%),
    linear-gradient(180deg, #EAE2D2 0%, #D9CEB7 100%);
}
.lifestyle-counter {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(217, 215, 210, 0.5), rgba(191, 195, 199, 0.7));
}
.lifestyle-product {
  position: absolute;
  bottom: 18%; left: 30%;
  z-index: 2;
}
.lifestyle-glass {
  position: absolute;
  bottom: 22%; right: 22%;
  z-index: 2;
}
.glass-shape {
  width: 60px; height: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(216,199,170,0.4) 60%, rgba(216,199,170,0.6) 100%);
  border-radius: 4px 4px 30px 30px;
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
}
.glass-shape::before {
  content: ""; position: absolute; bottom: 8px; left: 8px; right: 8px;
  height: 50%; background: rgba(216,199,170,0.5);
  border-radius: 0 0 24px 24px;
}
.lifestyle-citrus {
  position: absolute; bottom: 38%; right: 30%;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F0D666, #C9A33E);
}
.lifestyle-headline {
  position: absolute;
  top: 32px; left: 32px; right: 32px;
}

.listing-feature-2col {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FAF8F3;
}
.feature-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.feature-col:last-child { border-right: 0; }
.listing-headline-bottom {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
}

.listing-detail {
  position: absolute; inset: 0;
  background: #FAF8F3;
}
.detail-hero {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.detail-callout { position: absolute; }
.detail-callout.top { top: 12%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.detail-callout.side { right: 8%; top: 30%; display: flex; align-items: center; }
.callout-line { width: 1px; height: 32px; background: #111; }
.detail-callout.side .callout-line { width: 32px; height: 1px; }
.callout-box {
  background: #FFFFFF;
  border: 1px solid var(--nova-line);
  padding: 12px 14px;
  min-width: 120px;
}
.detail-callout.top .callout-box { margin-top: 8px; }
.detail-callout.side .callout-box { margin-left: 0; }

.listing-system {
  position: absolute; inset: 0;
  background: #F2EFE6;
  display: flex; align-items: center; justify-content: center;
}
.system-visual { position: relative; }

.listing-bottle {
  position: absolute; inset: 0;
  background: #F5F2EB;
}
.bottle-display {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; padding: 32px;
}
.bottle-spec { color: #111; }

.listing-table {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2A2A2C 0%, #1C1C1E 100%);
  color: #F5F2EB;
}
.table-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(216,199,170,0.15) 30%, rgba(216,199,170,0.25));
}
.table-scene {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 24px; padding: 32px;
}
.glass-row { display: flex; gap: 12px; align-items: flex-end; padding-bottom: 32px; }
.wine-glass {
  width: 28px; height: 70px;
  background: linear-gradient(180deg, rgba(216,199,170,0.6), rgba(216,199,170,0.2));
  border-radius: 14px 14px 0 0;
  position: relative;
}
.wine-glass::after {
  content: "";
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 16px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.15);
  border-top: 0;
}
.wine-glass.tall { height: 90px; }
.wine-glass.big { width: 50px; height: 120px; }
.listing-table .listing-headline-bottom { color: #F5F2EB; }

/* ---------- A+ Modules ---------- */
.aplus-module { margin-bottom: 64px; }
.aplus-label {
  display: flex; justify-content: space-between;
  margin-bottom: 12px;
}
.aplus-hero {
  background: var(--nova-warm-white);
  border: 1px solid var(--nova-line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 480px;
  padding: 48px;
  gap: 48px;
}
.aplus-hero-text { color: #111; }
[data-theme="dark"] .aplus-hero { background: var(--nova-warm-white); color: #111; }
.aplus-hero-visual { display: flex; justify-content: center; }

@media (max-width: 880px) { .aplus-hero { grid-template-columns: 1fr; min-height: auto; padding: 32px; } }

.aplus-story {
  border: 1px solid var(--nova-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
@media (max-width: 880px) { .aplus-story { grid-template-columns: 1fr; } }
.aplus-story-visual {
  background: #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; position: relative; overflow: hidden;
}
.story-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(216,199,170,0.18), transparent 60%);
}
.aplus-story-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; background: var(--surface-0); }

.aplus-features {
  border: 1px solid var(--nova-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--nova-line);
  gap: 1px;
  min-height: 380px;
}
@media (max-width: 880px) { .aplus-features { grid-template-columns: repeat(2, 1fr); } }
.aplus-feature-card {
  background: var(--surface-0);
  padding: 36px 28px;
  display: flex; flex-direction: column;
}
.aplus-feature-icon {
  margin-top: 16px;
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--surface-ink);
}
[data-theme="dark"] .aplus-feature-icon svg path,
[data-theme="dark"] .aplus-feature-icon svg rect,
[data-theme="dark"] .aplus-feature-icon svg circle,
[data-theme="dark"] .aplus-feature-icon svg line,
[data-theme="dark"] .aplus-feature-icon svg text { stroke: var(--nova-warm-white); fill: var(--nova-warm-white); }

.aplus-lifestyle {
  border: 1px solid var(--nova-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}
@media (max-width: 880px) { .aplus-lifestyle { grid-template-columns: 1fr; } }
.aplus-lifestyle-visual {
  background: #E8E2D4;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.lifestyle-bg-2 {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #F4ECDC 0%, #D9CEB7 80%);
}
.lifestyle-scene-2 {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 24px; padding: 32px;
}
.aplus-lifestyle-text {
  background: var(--surface-0);
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
}

/* ---------- Storefront ---------- */
.storefront-frame {
  border: 1px solid var(--nova-line);
  background: var(--surface-2);
  overflow: hidden;
}
.browser-chrome {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: #ECE7DA;
  border-bottom: 1px solid var(--nova-line);
}
[data-theme="dark"] .browser-chrome { background: #1A1A1A; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,0.18);
}
.browser-url {
  background: #F5F2EB;
  padding: 4px 12px;
  border-radius: 4px;
  flex: 1; max-width: 360px;
}
[data-theme="dark"] .browser-url { background: #0D0D0D; color: #F5F2EB; }

.storefront-page { background: var(--nova-warm-white); color: #111; }
[data-theme="dark"] .storefront-page { background: var(--nova-warm-white); }
.sf-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sf-nav-links { display: flex; gap: 24px; color: rgba(0,0,0,0.7); }
.sf-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 64px 48px;
  gap: 48px;
}
@media (max-width: 880px) { .sf-hero { grid-template-columns: 1fr; padding: 32px; } }
.sf-hero-visual { display: flex; justify-content: center; }
.sf-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 48px 48px;
}
@media (max-width: 880px) { .sf-tiles { grid-template-columns: 1fr; padding: 0 32px 32px; } }
.sf-tile { display: flex; flex-direction: column; gap: 16px; }
.sf-tile-visual {
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
}
.sf-tile-text { padding: 0; }
.sf-quote {
  padding: 80px 48px;
  background: #111;
  color: #F5F2EB;
}

/* ---------- Packaging ---------- */
.dieline-wrap {
  background: var(--surface-1);
  padding: 32px;
  border: 1px solid var(--nova-line);
  overflow-x: auto;
}
.dieline-sheet { min-width: 900px; }

.box3d-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
  min-height: 540px;
}
@media (max-width: 980px) { .box3d-wrap { grid-template-columns: 1fr; } }
.box3d-stage {
  background: linear-gradient(180deg, var(--nova-paper) 0%, var(--nova-stone) 100%);
  perspective: 1400px;
  display: flex; align-items: center; justify-content: center;
  padding: 64px;
  min-height: 480px;
}
[data-theme="dark"] .box3d-stage { background: linear-gradient(180deg, #1F1B14, #16140F); }
.box3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(-32deg);
  width: 220px;
  height: 380px;
  animation: box-float 8s ease-in-out infinite alternate;
}
@keyframes box-float {
  from { transform: rotateX(-12deg) rotateY(-32deg); }
  to { transform: rotateX(-12deg) rotateY(-26deg); }
}
.box-face {
  position: absolute;
  background: #F5F2EB;
  color: #111;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.04);
}
.box-front {
  width: 220px; height: 380px;
  padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center;
  transform: translateZ(60px);
  text-align: center;
}
.box-side {
  width: 120px; height: 380px;
  padding: 28px 18px;
  transform: rotateY(90deg) translateZ(160px);
  background: #EFEBE1;
}
.box-top {
  width: 220px; height: 120px;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  transform: rotateX(90deg) translateZ(60px) translateY(-60px);
  background: #ECE7DA;
}
.box-logo { color: #111; }

.box3d-meta {
  background: var(--surface-0);
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
}

.qsc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 880px) { .qsc-grid { grid-template-columns: 1fr; } }
.qsc-card {
  background: var(--surface-0);
  border: 1px solid var(--nova-line);
  aspect-ratio: 105 / 148;
  padding: 36px;
  display: flex; flex-direction: column;
  min-height: 380px;
}
.qsc-steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.qsc-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nova-line-soft);
  font-size: 15px;
  align-items: baseline;
}

/* ---------- Social ---------- */
.ad-lines { display: flex; flex-direction: column; gap: 1px; background: var(--nova-line); border: 1px solid var(--nova-line); }
.ad-line {
  background: var(--surface-0);
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .social-grid { grid-template-columns: 1fr; } }
.social-card.wide { grid-column: span 3; }
@media (max-width: 880px) { .social-card.wide { grid-column: auto; } }
.social-card { display: flex; flex-direction: column; gap: 12px; }
.social-format {
  font-family: var(--font-mono); font-size: 11px; color: var(--nova-muted);
  letter-spacing: 0.08em;
}
.social-frame {
  position: relative;
  border: 1px solid var(--nova-line);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px;
}
.social-frame.square { aspect-ratio: 1; }
.social-frame.story { aspect-ratio: 9/16; }
.social-frame.banner { aspect-ratio: 1.91/1; }
.social-frame.black { background: #111; color: #F5F2EB; }
.social-frame.warm { background: #F5F2EB; color: #111; }

.social-corner {
  display: flex; align-items: center; gap: 8px;
  position: absolute; top: 16px; left: 16px;
}
.social-corner.dark { color: #111; }

.social-frame .nova-product, .social-frame > svg {
  margin: auto;
}
.social-headline { margin-top: auto; }
.story-hero { margin-top: 32px; padding: 0 4px; }
.story-cta { margin-top: auto; align-self: flex-start; }

.social-frame.banner { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; padding: 32px 48px; gap: 32px; }
.banner-text { display: flex; flex-direction: column; }
.banner-visual { display: flex; justify-content: center; }

.retargeting {
  background: var(--nova-paper);
  border: 1px solid var(--nova-line);
  padding: 48px;
}
[data-theme="dark"] .retargeting { background: #1F1B14; }

/* ---------- Components ---------- */
.comp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--nova-line);
}
@media (max-width: 880px) { .comp-row { grid-template-columns: 1fr; } }
.comp-row:last-child { border-bottom: 0; }
.comp-stack { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.comp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .comp-card-grid { grid-template-columns: 1fr; } }
.card-demo {
  background: var(--surface-0);
  border: 1px solid var(--nova-line);
  padding: 24px;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.card-demo.product {
  align-items: flex-start;
}
.card-demo-product-visual {
  width: 100%; height: 160px;
  background: var(--nova-paper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
[data-theme="dark"] .card-demo-product-visual { background: #1F1B14; }
.card-demo.accent {
  background: var(--nova-paper);
  border: 0;
}
[data-theme="dark"] .card-demo.accent { background: #1F1B14; }

.comp-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.form-field {
  display: flex; flex-direction: column; gap: 6px;
}
.form-field input, .form-field select {
  padding: 12px 14px;
  border: 1px solid var(--nova-line);
  background: var(--surface-2);
  color: var(--surface-ink);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 0;
}
.form-field input:focus, .form-field select:focus {
  outline: 1px solid var(--surface-ink);
  outline-offset: -1px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--nova-line);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nova-line-soft);
  font-size: 15px;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nova-muted);
  font-weight: 500;
}
.spec-table td.muted { color: var(--nova-faint); }
.spec-table.compare td:nth-child(2),
.spec-table.compare td:nth-child(3) { text-align: center; width: 22%; }

/* ---------- Footer ---------- */
.page-footer {
  border-top: 1px solid var(--nova-line);
  padding: 80px var(--gutter) 32px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--nova-line-soft);
  color: var(--nova-faint);
}

/* ---------- Type pairing-specific overrides ---------- */
[data-type="grotesk"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
}
[data-type="editorial"] .h1, [data-type="editorial"] .h2 {
  font-style: normal;
}

/* ---------- Print / scrollbar tidy ---------- */
@media (max-width: 1280px) {
  .main { padding-left: 0; }
}

/* ============================================================
   07 · CMF / MATERIALS
   ============================================================ */
.cmf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 16px;
}
@media (min-width: 980px) {
  .cmf-grid { grid-template-columns: 1fr; }
}
.cmf-card {
  border: 1px solid var(--nova-line);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 2.4fr;
}
@media (max-width: 880px) {
  .cmf-card { grid-template-columns: 1fr; }
}
.cmf-card-head {
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-right: 1px solid var(--nova-line);
}
.cmf-card-head-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmf-card-head-r {
  background: rgba(255,255,255,0.5);
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.cmf-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 4px;
}
.cmf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}
.cmf-table tr { border-bottom: 1px solid var(--nova-line-soft); }
.cmf-table tr:last-child { border-bottom: 0; }
.cmf-table td { padding: 16px 20px; vertical-align: top; }
.cmf-td-label {
  width: 42%;
  border-right: 1px solid var(--nova-line-soft);
}
.cmf-part-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--surface-ink);
}
.cmf-part-sub {
  color: var(--nova-muted);
  margin-top: 4px;
}
.cmf-td-mat {
  width: 28%;
  font-weight: 500;
  border-right: 1px solid var(--nova-line-soft);
}
.cmf-td-fin {
  color: var(--nova-muted);
}

/* Bottle spec block */
.cmf-bottle {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 48px;
  align-items: start;
  border: 1px solid var(--nova-line);
  padding: 40px;
  background: var(--nova-paper);
}
[data-theme="dark"] .cmf-bottle { background: #1A1815; }
@media (max-width: 880px) { .cmf-bottle { grid-template-columns: 1fr; padding: 24px; } }
.cmf-bottle-visual {
  position: relative;
  display: flex;
  justify-content: center;
  background: var(--surface-0);
  padding: 24px 12px;
  border: 1px solid var(--nova-line-soft);
}
.cmf-bottle-callouts span {
  position: absolute;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--nova-muted);
  text-transform: uppercase;
}
.cmf-bottle-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}
@media (max-width: 720px) { .cmf-bottle-meta { grid-template-columns: 1fr; } }
.cmf-bottle-block { display: flex; flex-direction: column; }
.cmf-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--surface-ink);
}
.cmf-bullets li {
  padding: 6px 0;
  border-bottom: 1px solid var(--nova-line-soft);
}
.cmf-bullets li:last-child { border-bottom: 0; }
.cmf-tagline { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--nova-line-soft); margin-top: 4px; }

/* Print color guide */
.cmf-print-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nova-line);
  border: 1px solid var(--nova-line);
  margin-top: 16px;
}
@media (max-width: 880px) { .cmf-print-grid { grid-template-columns: 1fr; } }
.cmf-print-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmf-print-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cmf-print-sample {
  margin-top: 12px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Shared parts strip */
.cmf-shared {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 880px) { .cmf-shared { grid-template-columns: 1fr; } }
.cmf-shared-card {
  border: 1px solid var(--nova-line);
  padding: 28px;
  background: var(--surface-0);
}
