/* ==========================================================================
   NUHNA — Visual system matched to reference (yummy-baths-remain.freebuff.dev)
   Warm paper background, near-black ink, hairline dividers, pill controls,
   rounded cards, soft top-left glow. System sans throughout.
   ========================================================================== */

:root {
  --bg: #F1F0EC;
  --bg-elevated: #FBFAF8;
  --bg-panel: #FBFAF8;
  --bg-subtle: rgba(0, 0, 0, 0.035);
  --bg-hover: rgba(0, 0, 0, 0.055);

  --fg: #1C1E20;
  --fg-secondary: #4C4F52;
  --fg-muted: #6E7173;

  --gold: #1C1E20;
  --gold-bright: #1C1E20;
  --cyan: #4C4F52;
  --copper: #1C1E20;

  --border: rgba(0, 0, 0, 0.12);
  --border-gold: rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.9);

  --status-live: #2F6B4F;
  --radius-card: 16px;
  --radius-pill: 999px;

  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-w: 1360px;
  --header-h: 68px;
  --player-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  padding-bottom: calc(var(--player-h) + 32px);
  overflow-x: hidden;
  position: relative;
}

/* Very subtle paper grain / scan structure from the reference */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.016) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 20% 0%, rgba(0,0,0,0.9) 0%, transparent 80%);
}

/* Soft top-left cool glow like the reference hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 65% at 8% -6%, rgba(126, 155, 178, 0.30) 0%, rgba(241, 240, 236, 0) 62%),
    radial-gradient(80% 50% at 92% 4%, rgba(178, 160, 132, 0.16) 0%, rgba(241, 240, 236, 0) 60%);
}

#cosmosCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

main, header, footer, aside { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }

@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes slowOrbit { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes reverseOrbit { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes eqBounce { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* Typography */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-muted);
  display: inline-block;
  animation: pulseDot 2.6s infinite ease-in-out;
}

.mono { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }

.serif-italic { font-family: var(--font-sans); font-style: normal; font-weight: 500; color: var(--fg-muted); }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--header-h);
}
@media (max-width: 768px) { .section { padding: 64px 0 72px; } }

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
}
.section-header::after { display: none; }

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--fg);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.section-subtitle {
  max-width: 520px;
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Pill buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  font-size: 0.86rem;
  font-weight: 400;
  font-family: var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  overflow: visible;
  clip-path: none;
  background: none;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  box-shadow: none;
  font-weight: 500;
}
.btn-primary:hover { background: #34383B; border-color: #34383B; transform: none; box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
}
.btn-outline:hover { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.35); color: var(--fg); transform: none; box-shadow: none; }

.btn-ghost {
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--fg-secondary);
  padding: 8px 16px;
  font-size: 0.82rem;
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(0, 0, 0, 0.3); color: var(--fg); background: rgba(0, 0, 0, 0.04); box-shadow: none; }

.btn-sm { padding: 8px 15px; font-size: 0.8rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(241, 240, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark { display: flex; align-items: center; gap: 14px; }

.brand-sigil {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.5);
}
.brand-sigil::before { content: '◍'; color: var(--fg); font-size: 0.72rem; animation: none; }

.brand-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
@media (max-width: 1399px) { .brand-tag { display: none; } }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg-muted);
  transition: color 0.2s ease;
  padding: 0;
  white-space: nowrap;
}
.main-nav a::after { display: none; }
.main-nav a:hover { color: var(--fg); text-shadow: none; }
@media (max-width: 1240px) { .main-nav { display: none; } }

.header-actions { display: flex; align-items: center; gap: 10px; }

.config-btn-short { display: none; }
@media (max-width: 780px) {
  .header-inner { padding: 0 20px; gap: 12px; }
  .config-btn-label { display: none; }
  .config-btn-short { display: inline; }
}
@media (max-width: 420px) {
  .header-actions { gap: 8px; }
  .cart-trigger { padding: 8px 12px; }
  .brand-mark { gap: 10px; }
}
@media (max-width: 360px) {
  .cart-label { display: none; }
  .cart-trigger { padding: 8px 10px; }
  .brand-name { letter-spacing: 0.18em; }
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease;
  clip-path: none;
}
.cart-trigger:hover { background: #34383B; border-color: #34383B; box-shadow: none; }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
}

/* Hero */
.hero-section {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--fg);
}

.hero-sublead {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--fg-secondary);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--border);
  border-left: none;
  background: none;
  backdrop-filter: none;
}
@media (max-width: 1100px) { .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hero-specs { grid-template-columns: 1fr; } }

.spec-cell {
  padding: 20px 0 22px 0;
  border-right: none;
  border-bottom: none;
  position: relative;
  transition: none;
}
.spec-cell:hover { background-color: transparent; }

.spec-term {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  margin-bottom: 6px;
}

.spec-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* Featured card */
.featured-card {
  background: linear-gradient(180deg, #FDFCFA 0%, #F7F6F3 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.featured-card::before, .featured-card::after { display: none; }

.featured-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  padding-bottom: 0;
}

.featured-art-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 45%, #4A3A2C 0%, #2A2119 55%, #17130F 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-genre-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(250, 249, 246, 0.92);
  color: var(--fg);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.featured-art-svg { width: 100%; height: 100%; display: block; }
.orbit-ring-slow { transform-origin: 300px 187.5px; animation: slowOrbit 60s linear infinite; }
.orbit-ring-reverse { transform-origin: 300px 187.5px; animation: reverseOrbit 90s linear infinite; }

.featured-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: auto;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.featured-play-btn:hover { background: rgba(255, 255, 255, 0.34); transform: translate(-50%, -50%) scale(1.04); box-shadow: none; }

.cymatic-visualizer-strip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
}
.eq-bar {
  width: 2px;
  height: 14px;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: bottom;
  transform: scaleY(0.28);
  transition: transform 0.15s ease;
}
body.audio-active .eq-bar { animation: eqBounce 0.85s infinite ease-in-out; }
body.audio-active .eq-bar:nth-child(2) { animation-delay: 0.14s; }
body.audio-active .eq-bar:nth-child(3) { animation-delay: 0.28s; }
body.audio-active .eq-bar:nth-child(4) { animation-delay: 0.09s; }
body.audio-active .eq-bar:nth-child(5) { animation-delay: 0.22s; }
body.audio-active .eq-bar:nth-child(6) { animation-delay: 0.36s; }

.featured-meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.featured-title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.featured-price { font-family: var(--font-sans); font-size: 13px; color: var(--fg-secondary); }
.featured-price strong { font-weight: 500; color: var(--fg); }

.featured-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 0;
  border-top: none;
}
.featured-actions .btn { width: 100%; border-radius: 8px; }
.featured-actions .btn-outline { border-radius: 8px; }

/* Ticker */
.ticker-strip {
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
  animation: marqueeScroll 46s linear infinite;
}
.ticker-sep { color: var(--fg-muted); text-shadow: none; }

/* Soundee workspace */
.soundee-workspace {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: none;
  box-shadow: none;
  overflow: hidden;
}

.soundee-toolbar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.soundee-tabs { display: inline-flex; gap: 8px; border: none; background: none; }

.soundee-tab {
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.soundee-tab:last-child { border-right: 1px solid var(--border); }
.soundee-tab:hover { color: var(--fg); background: rgba(0, 0, 0, 0.04); }
.soundee-tab.active {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.45);
  color: var(--fg);
  font-weight: 400;
  box-shadow: none;
}

.soundee-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1; justify-content: flex-end; }

.soundee-search { position: relative; min-width: 220px; flex: 0 1 280px; }
.soundee-search input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  color: var(--fg);
  font-size: 13px;
  transition: border-color 0.2s ease;
}
.soundee-search input::placeholder { color: var(--fg-muted); }
.soundee-search input:focus { outline: none; border-color: rgba(0, 0, 0, 0.4); box-shadow: none; }

.soundee-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  color: var(--fg-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.soundee-select:focus { outline: none; border-color: rgba(0, 0, 0, 0.4); }

.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-pill); background: rgba(255,255,255,0.6); overflow: hidden; }
.view-btn { padding: 8px 14px; font-family: var(--font-sans); font-size: 12px; text-transform: none; color: var(--fg-muted); background: none; }
.view-btn.active { background: rgba(0, 0, 0, 0.10); color: var(--fg); font-weight: 400; }

.soundee-promo-bar {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.035);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-secondary);
  letter-spacing: normal;
}

.soundee-table-head {
  display: grid;
  grid-template-columns: 56px 1.8fr 95px 125px 115px 1.1fr 190px;
  gap: 16px;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  background: transparent;
}

.soundee-row {
  display: grid;
  grid-template-columns: 56px 1.8fr 95px 125px 115px 1.1fr 190px;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.soundee-row:last-child { border-bottom: none; }
.soundee-row:hover { background: rgba(0, 0, 0, 0.03); }
.soundee-row.is-playing { background: rgba(0, 0, 0, 0.05); box-shadow: none; }

@media (max-width: 1024px) {
  .soundee-table-head { display: none; }
  .soundee-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 14px 18px; }
  .soundee-row .soundee-col-bpm,
  .soundee-row .soundee-col-key,
  .soundee-row .soundee-col-hz,
  .soundee-row .soundee-col-tags { display: none !important; }
}

.row-play-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  color: var(--fg);
  font-size: 0.7rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.row-play-btn:hover, .soundee-row.is-playing .row-play-btn {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  box-shadow: none;
}

.row-title-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }

.row-thumb {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(150deg, #3D3126 0%, #241D16 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.row-title-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}

.row-sub-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-secondary);
  background: rgba(255, 255, 255, 0.55);
}
.tag-pill-cyan { border-color: var(--border); color: var(--fg-secondary); background: rgba(255, 255, 255, 0.55); }

.row-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.fav-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fav-btn:hover, .fav-btn.active { border-color: rgba(0, 0, 0, 0.4); color: var(--fg); box-shadow: none; }

.add-license-btn {
  padding: 6px 14px;
  border: 1px solid var(--fg);
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  clip-path: none;
}
.add-license-btn:hover { background: #34383B; color: var(--bg); box-shadow: none; }

/* Grid view */
.soundee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 28px 24px; border-top: none; }
@media (max-width: 960px) { .soundee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .soundee-grid { grid-template-columns: 1fr; } }

.beat-card {
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  transition: none;
}
.beat-card:hover { background: transparent; }

/* Productions */
.productions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 980px) { .productions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .productions-grid { grid-template-columns: 1fr; } }

.prod-card {
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  transition: none;
}
.prod-card:hover { transform: none; border-color: transparent; box-shadow: none; }

.prod-meta-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}

.prod-title { font-family: var(--font-sans); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-top: 10px; color: var(--fg); }
.prod-credits { font-family: var(--font-sans); font-size: 13px; color: var(--fg-muted); margin-top: 4px; }
.prod-story { font-size: 14px; color: var(--fg-secondary); line-height: 1.62; }

.prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Soundscapes */
.soundscape-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .soundscape-split { grid-template-columns: 1fr; } }

.ritual-checklist { margin: 28px 0; border-top: 1px solid var(--border); }
.ritual-checklist li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-secondary);
}

.soundscape-cards-stack {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #FDFCFA 0%, #F7F6F3 100%);
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.soundscape-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background-color 0.2s ease;
}
.soundscape-item:hover { background: rgba(0, 0, 0, 0.03); }
.soundscape-item:last-child { border-bottom: none; }

.resonance-tuner-box {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hz-pills-row { display: flex; flex-wrap: wrap; gap: 8px; }

.hz-drone-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg-secondary);
  background: rgba(255, 255, 255, 0.6);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hz-drone-btn:hover, .hz-drone-btn.active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
}

/* Tiers */
.tiers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1120px) { .tiers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiers-grid { grid-template-columns: 1fr; } }

.tier-card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F7F4 100%);
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tier-card:hover { transform: none; border-color: rgba(0, 0, 0, 0.3); box-shadow: none; }

.tier-card.featured-tier { background: var(--fg); border-color: var(--fg); box-shadow: none; color: var(--bg); }
.tier-card.featured-tier .tier-name,
.tier-card.featured-tier .tier-price { color: var(--bg); }
.tier-card.featured-tier .tier-desc,
.tier-card.featured-tier .tier-spec-list li { color: rgba(241, 240, 236, 0.72); }
.tier-card.featured-tier .tier-spec-list { border-top-color: rgba(255, 255, 255, 0.16); }
.tier-card.featured-tier .tier-spec-list li { border-bottom-color: rgba(255, 255, 255, 0.16); }

.tier-name { font-family: var(--font-sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-muted); }
.tier-price { font-family: var(--font-sans); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin: 12px 0 8px; }
.tier-desc { font-size: 13px; color: var(--fg-secondary); line-height: 1.6; }
.tier-spec-list { margin-top: 18px; border-top: 1px solid var(--border); }
.tier-spec-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F7F4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s ease;
}
.service-card:hover { border-color: rgba(0, 0, 0, 0.3); transform: none; box-shadow: none; }

/* Blueprint */
.blueprint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
@media (max-width: 980px) { .blueprint-grid { grid-template-columns: 1fr; } }

.blueprint-step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F7F4 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.2s ease;
}
.blueprint-step:hover { border-color: rgba(0, 0, 0, 0.3); transform: none; }

.step-num {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0;
  border: none;
  color: var(--fg-muted);
  background: none;
  align-self: flex-start;
}

.step-title { font-family: var(--font-sans); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.step-body { font-size: 14px; color: var(--fg-secondary); line-height: 1.62; }
.step-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
  border-top: none;
  border-left: none;
  background: none;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-cell { padding: 0; border-right: none; border-bottom: none; }
.process-cell h3 { font-family: var(--font-sans); }
.process-cell .mono { font-family: var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted) !important; }

/* About / Commission */
.two-col-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col-split { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 0; }
.faq-question {
  width: 100%;
  padding: 22px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.faq-answer { padding-bottom: 22px; color: var(--fg-secondary); font-size: 14px; line-height: 1.65; max-width: 820px; }

/* Forms */
.minimal-form {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F7F4 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--fg);
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.field-input::placeholder { color: var(--fg-muted); }
.field-input:focus { outline: none; border-color: rgba(0, 0, 0, 0.4); box-shadow: none; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 30, 32, 0.34);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none !important; }

.modal-panel {
  background: #FBFAF8;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.license-option-grid { display: grid; gap: 10px; margin-bottom: 20px; }

.license-choice {
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.license-choice:hover { border-color: rgba(0, 0, 0, 0.35); }
.license-choice.selected { border-color: var(--fg); background: rgba(0, 0, 0, 0.05); box-shadow: none; }

/* Player bar */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-h);
  background: rgba(241, 240, 236, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: none;
  z-index: 60;
}

.player-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1.1fr;
  align-items: center;
  gap: 20px;
}
@media (max-width: 860px) { .player-inner { grid-template-columns: 1fr auto; } .player-center { display: none; } }

.player-track-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-center { display: block; }
.player-scrubber-wrap { display: flex; align-items: center; gap: 12px; width: 100%; }

.scrubber-bar {
  flex: 1;
  height: 3px;
  background: rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.scrubber-fill { height: 100%; background: var(--fg); box-shadow: none; width: 0%; border-radius: var(--radius-pill); }

/* Footer */
.site-footer { padding: 72px 0 56px; background: transparent; border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-links li { margin-bottom: 10px; font-size: 14px; color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); }

/* Journal index */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
@media (max-width: 860px) { .journal-grid { grid-template-columns: 1fr; gap: 28px; } }

.journal-card {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.journal-card:hover { opacity: 0.72; }
.journal-card:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 6px;
}

.journal-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}

.journal-card-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.22;
  color: var(--fg);
}

.journal-card-dek {
  font-size: 14px;
  line-height: 1.62;
  color: var(--fg-secondary);
  max-width: 62ch;
}

.journal-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}
.journal-card-read { color: var(--fg); font-weight: 500; }

/* Journal article reader */
.article-panel { max-width: 780px; }

.article-header {
  align-items: flex-start;
  padding-bottom: 22px;
}

.article-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.15;
  margin: 10px 0 12px;
  color: var(--fg);
}

.article-dek {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-secondary);
  max-width: 64ch;
}

.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.article-body {
  font-size: 16px;
  line-height: 1.72;
  color: var(--fg-secondary);
}
.article-body p { margin: 0 0 18px; max-width: 68ch; }
.article-body p:first-child { color: var(--fg); }

.article-h {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 34px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-list {
  margin: 0 0 22px;
  padding: 0;
  max-width: 68ch;
}
.article-list li {
  position: relative;
  padding: 0 0 12px 22px;
  font-size: 15.5px;
  line-height: 1.65;
}
.article-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
}

.article-quote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--fg);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--fg);
  max-width: 58ch;
}

.article-refs {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.article-refs-head {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.article-refs-list { padding-left: 20px; list-style: decimal; }
.article-refs-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-bottom: 9px;
  max-width: 68ch;
}
.article-refs-list a { text-decoration: underline; text-underline-offset: 2px; }
.article-refs-list a:hover { color: var(--fg); }

.article-refs-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  max-width: 68ch;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 18px);
  right: 24px;
  z-index: 90;
  background: var(--fg);
  color: var(--bg);
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: normal;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.toast[hidden] { display: none !important; }
