/* ============================================================
   Infinite 22 Studios — shared styles
   Black, white, purple. Bold and editorial.
   ============================================================ */

:root {
  /* Foundation */
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --soft: #f4f4f2;

  /* Primary accent — Infinite 22 Green 80BE2B */
  --accent: #80BE2B;
  --accent-tint: #eef7e0;
  --accent-ink: #0a0a0a;      /* text color on top of accent */
  /* Secondary accent — Infinite 22 Deep Purple 1F113A */
  --accent-2: #1F113A;
  --accent-2-tint: #ece8f2;
  --accent-2-ink: #ffffff;    /* text color on top of accent-2 */

  /* Spacing (density token) */
  --density: 1;
  --pad-x: clamp(20px, calc(4vw * var(--density)), 80px);
  --section-y: clamp(64px, calc(120px * var(--density)), 160px);

  /* Type */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(.22,.9,.32,1);
  --page-transition: 420ms;
}

[data-theme="dark"] {
  --ink: #f5f5f3;
  --paper: #0a0a0a;
  --muted: #8c8c8c;
  --line: #202020;
  --soft: #111111;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.on-accent { color: var(--accent); }
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; transform: translateY(-2px);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 9vw, 148px); }
h2 { font-size: clamp(40px, 6vw, 88px); }
h3 { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em; }
h4 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.15; }

p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--f-mono); letter-spacing: 0.02em; }

/* ===== Layout ===== */
.wrap { padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }
.divider { height: 1px; background: var(--line); width: 100%; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

/* ===== Top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  /* Per client: top header is solid black so the white logo pops.
     Was a translucent paper plate which made the logo look caged. */
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav .nav-top {
  display: flex; align-items: center; gap: 12px;
}
.nav .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 600; letter-spacing: -0.02em; font-size: 18px;
  color: #fff;
}
.nav .nav-phone { display: none; }
/* Desktop: wrapper is a layout passthrough so brand/ul/right keep their existing
   space-between flex positions. On mobile it switches to a real flex column. */
.nav .nav-drawer-body { display: contents; }
.nav .brand .logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  /* Logo PNG is white-on-black — now sitting on a black plate so the mark
     reads as one continuous black field with the nav bar around it. */
}
.nav .brand .brand-tag {
  font-size: 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff;
}
/* Drawer-open state (light card on dark scrim): keep it strong */
.nav.open .brand .brand-tag { color: var(--ink); font-weight: 700; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav ul a { color: rgba(255,255,255,0.55); transition: color 160ms var(--ease); position: relative; }
.nav ul a:hover, .nav ul a.active { color: #fff; }
.nav ul a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1.5px; background: var(--accent);
}
/* Per client: Distribution link highlights purple (not lime green) on hover
   and as the active state — matches the studios "Standard" purple identity. */
.nav ul a[href="distribution.html"]:hover,
.nav ul a[href="distribution.html"].active { color: #A876EE; }
.nav ul a[href="distribution.html"].active::after { background: #A876EE; }
.nav .right { display: flex; align-items: center; gap: 16px; }
/* Ghost button (Book a session) needs to read on the now-black nav bar */
.nav .right .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.nav .right .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-2-ink); }
.btn .arr { transition: transform 220ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Accent-treatment variations (tweak) */
[data-accent="gradient"] .btn.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}
[data-accent="outlined"] .btn.accent {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
[data-accent="outlined"] .btn.accent:hover { background: var(--accent); color: var(--accent-ink); }

/* ===== Shared editorial "band" treatments — used by distribution + publishing
   to keep their black-and-purple color rhythm perfectly aligned. Distribution
   still owns its distribution-specific grids inline (.d-stats, .d-features,
   .releases) — only the band/hero backgrounds live here so both pages can
   truly reuse the same classes. ===== */
.d-hero {
  background: var(--ink); color: var(--paper);
  padding: clamp(100px, 14vh, 160px) var(--pad-x) clamp(80px, 10vh, 120px);
  position: relative; overflow: hidden;
}
.d-hero .eyebrow { color: var(--accent); }
.d-hero h1 { font-size: clamp(56px, 10vw, 160px); letter-spacing: -0.04em; line-height: 0.9; max-width: 20ch; margin-top: 26px; }
.d-hero h1 em { font-style: normal; color: var(--accent); }
.d-hero .lede { margin-top: 38px; max-width: 64ch; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,0.78); }
.d-hero .cta-row { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Purple band that wraps a section — deep-purple ground, white text,
   green (--accent) as the on-band accent color. */
.purple-band { background: var(--accent-2); color: #fff; }
.purple-band .eyebrow { color: rgba(255,255,255,0.65); }
.purple-band .eyebrow.on-accent { color: var(--accent); }
.purple-band h2 { color: #fff; }
.purple-band > section > p,
.purple-band p:not(.release p):not(.credits) { color: rgba(255,255,255,0.78); }
.purple-band .release .artist { color: rgba(255,255,255,0.65); }
.purple-band .release .title   { color: #fff; }
.purple-band .release .art     { background: rgba(255,255,255,0.05); }
.purple-band .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.purple-band .btn.ghost:hover { background: #fff; color: var(--accent-2); }

/* Big CTA band — hero-scale purple slab with a soft green radial glow. */
.apply-band {
  position: relative; overflow: hidden;
  background: var(--accent-2); color: #fff;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  text-align: center;
}
.apply-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(128, 190, 43, 0.22), transparent 55%);
  pointer-events: none;
}
.apply-band > * { position: relative; }
.apply-band .eyebrow { color: rgba(255,255,255,0.7); justify-content: center; display: inline-flex; }
.apply-band h2 { font-size: clamp(48px, 8vw, 120px); margin-top: 22px; max-width: 18ch; margin-inline: auto; line-height: 0.92; }
.apply-band h2 em { font-style: normal; color: var(--accent); }
.apply-band p { margin: 30px auto 0; max-width: 52ch; font-size: 18px; opacity: 0.85; line-height: 1.6; }
.apply-band .btn.accent { margin-top: 40px; }
.apply-band .micro { margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ===== Sticky booking CTA (rail) ===== */
.book-rail {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(31,17,58,0.35);
  cursor: pointer;
  border: none;
  transition: transform 220ms var(--ease);
}
.book-rail:hover { transform: translateY(-3px); }
.book-rail .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(31,17,58,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  width: min(420px, calc(100vw - 40px));
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform 560ms cubic-bezier(.16,1,.3,1),
              opacity 320ms ease;
}
.cookie-banner.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie-card .cookie-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}
.cookie-card p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 16px;
}
.cookie-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  font-size: 10px;
  padding: 12px 18px;
}
.cookie-actions .btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--paper);
}
.cookie-actions .btn.ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie-card { padding: 20px 18px 16px; }
}

/* ===== Marquee ticker ===== */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  padding: 22px 0;
}
.marquee.invert { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.marquee-logos { padding: 18px 0; background: var(--paper); }
.marquee-logos .marquee-track { animation-duration: 36s; }
.marquee-logo { height: 46px; display: inline-flex; align-items: center; flex-shrink: 0; }
.marquee-logo img {
  height: 100%; width: auto; object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.7;
  transition: opacity 200ms var(--ease), filter 200ms var(--ease);
}
.marquee-logos:hover .marquee-logo img { opacity: 1; filter: none; }
[data-theme="dark"] .marquee-logos { background: var(--paper); }
@media (max-width: 640px) {
  .marquee-logo { height: 34px; }
  .marquee-logos .marquee-track { gap: 40px; }
}
.marquee-track {
  display: flex; gap: 64px;
  animation: slide 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 32px;
}
.marquee-item .star {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Striped placeholder (for client-supplied imagery) ===== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, oklch(92% 0.01 280) 0 12px, oklch(88% 0.01 280) 12px 24px);
  display: grid; place-items: center;
  color: oklch(40% 0.04 280);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph .label {
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--ink);
  color: var(--ink);
}
[data-theme="dark"] .ph {
  background:
    repeating-linear-gradient(135deg, oklch(18% 0.01 280) 0 12px, oklch(14% 0.01 280) 12px 24px);
  color: oklch(60% 0.04 280);
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, oklch(20% 0.03 295) 0 12px, oklch(16% 0.03 295) 12px 24px);
  color: oklch(70% 0.06 295);
}
.ph.accent {
  background:
    repeating-linear-gradient(135deg, var(--accent-2) 0 12px, #2b1a55 12px 24px);
  color: #fff;
}

/* ===== Audio preview card ===== */
.track {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  transition: background 200ms var(--ease);
  cursor: pointer;
}
.track:last-child { border-bottom: 1px solid var(--line); }
.track:hover { background: var(--soft); }
.track:hover .play { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.track .play {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  transition: all 200ms var(--ease);
  background: var(--paper);
  color: var(--ink);
}
.track .title {
  font-family: var(--f-display); font-size: 22px;
  letter-spacing: -0.01em; font-weight: 500;
}
.track .artist { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.track .wave {
  width: 180px; height: 26px;
  display: flex; align-items: center; gap: 2px;
}
.track .wave span {
  width: 2px; background: var(--muted);
  border-radius: 1px;
  transition: background 200ms var(--ease), height 200ms var(--ease);
}
.track:hover .wave span { background: var(--accent); }
.track .duration { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 100px var(--pad-x) 40px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .footer { background: #0a0a0a; border-top: 1px solid var(--line); }
.footer .giga {
  font-family: var(--f-display);
  font-size: clamp(80px, 16vw, 260px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.85;
  margin: 0;
}
.footer .giga em { font-style: normal; color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-grid h5 {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 15px;
  color: #fff;
  padding: 4px 0;
  transition: color 160ms var(--ease);
}
.footer-grid a:hover { color: var(--accent); }
/* Distribution + Publishing Admin share the purple identity here — not the green accent */
.footer-grid a[href="distribution.html"]:hover,
.footer-grid a[href="publishing.html"]:hover { color: #A876EE; }
.footer .legal {
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.footer .legal a:hover { color: var(--accent); }

/* ===== Modal (booking) ===== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 260ms var(--ease);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 640px;
  background: var(--paper); color: var(--ink);
  border-radius: 18px;
  padding: 48px;
  border: 1px solid var(--line);
  transform: translateY(20px) scale(0.98);
  transition: transform 320ms var(--ease);
  max-height: 92vh; overflow: auto;
}
.modal-scrim.open .modal { transform: translateY(0) scale(1); }
.modal h3 { margin-bottom: 10px; }
.modal .close {
  position: absolute; right: 30px; top: 30px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center;
}
.modal .close:hover { background: var(--ink); color: var(--paper); }
.form-row { display: grid; gap: 8px; margin-top: 18px; }
.form-row label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--f-body); font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper); color: var(--ink);
  transition: border-color 160ms var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-row.split { grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.split > div { display: grid; gap: 8px; }

/* ===== Tweaks panel ===== */
.tweaks {
  position: fixed; right: 20px; top: 90px; z-index: 70;
  width: 280px;
  padding: 20px; border-radius: 16px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  display: none;
  font-family: var(--f-body);
  max-height: 80vh; overflow: auto;
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; margin: 0 0 16px; color: var(--muted);
  font-weight: 500;
}
.tweaks .row { margin-bottom: 18px; }
.tweaks label {
  display: block;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 8px; color: var(--muted);
}
.tweaks input[type="range"] {
  width: 100%; accent-color: var(--accent);
}
.tweaks .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .pill {
  flex: 1; min-width: 0;
  padding: 7px 10px; font-size: 11px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 8px; text-align: center;
  font-family: var(--f-mono); letter-spacing: 0.08em;
}
.tweaks .pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== Page transition ===== */
.page-enter {
  animation: pageEnter var(--page-transition) var(--ease) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile menu toggle ===== */
.nav .menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav .menu-toggle span,
.nav .menu-toggle span::before,
.nav .menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}
.nav .menu-toggle span { position: relative; }
.nav .menu-toggle span::before,
.nav .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.nav .menu-toggle span::before { top: -5px; }
.nav .menu-toggle span::after  { top:  5px; }
.nav.open .menu-toggle span { background: transparent; }
.nav.open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* Closed-state nav: stays sticky at the same height regardless of open/close.
     The drawer body is rendered but positioned ABSOLUTELY so it overlays page
     content instead of pushing it down. Only color/border transitions happen
     on .nav itself; .nav's box doesn't grow. */
  .nav {
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 200;
    padding-bottom: 0;
    overflow: visible;
    transition:
      background-color 380ms cubic-bezier(.16,1,.3,1),
      color 380ms ease;
  }
  .nav .nav-top {
    flex: 1 1 100%;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid transparent;
    transition: border-color 360ms ease;
  }
  .nav.open .nav-top { border-bottom-color: rgba(255,255,255,0.14); }
  .nav .menu-toggle { display: inline-flex; }

  /* Drawer-body wrapper: absolutely positioned so it floats over page content.
     Smoothly extends down from the bottom edge of nav-top. */
  .nav .nav-drawer-body {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    color: #fff;
    padding: 0 var(--pad-x);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 70px rgba(0,0,0,0);
    transition:
      max-height 520ms cubic-bezier(.16,1,.3,1),
      opacity 320ms ease,
      padding 480ms cubic-bezier(.16,1,.3,1),
      box-shadow 380ms ease;
  }
  .nav.open .nav-drawer-body {
    max-height: 720px;
    opacity: 1;
    padding: 14px var(--pad-x) 22px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.55);
    transition:
      max-height 560ms cubic-bezier(.16,1,.3,1),
      opacity 380ms ease 120ms,
      padding 480ms cubic-bezier(.16,1,.3,1),
      box-shadow 380ms ease;
  }

  /* OPEN state — nav-top darkens; drawer body has its own dark bg */
  .nav.open {
    background: var(--ink);
    color: #fff;
  }
  .nav.open .brand .brand-tag { color: #fff; }
  .nav .brand .brand-tag { transition: color 320ms ease; }

  /* Menu-toggle X — transparent on dark drawer, smooth fade */
  .nav .menu-toggle {
    transition: background-color 320ms ease, border-color 320ms ease, color 320ms ease;
  }
  .nav.open .menu-toggle {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
  }

  /* Menu items — always styled, only revealed via wrapper height/opacity */
  .nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
  }
  .nav ul li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .nav ul li a {
    display: block;
    padding: 18px 4px;
    font-family: var(--f-display);
    font-size: 20px;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #fff;
    font-weight: 700;
  }
  .nav ul a.active { color: var(--accent); }
  .nav ul a.active::after { display: none; }

  /* Phone row with circular icon */
  .nav .nav-phone {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
  }
  .nav .nav-phone-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid; place-items: center;
    flex-shrink: 0;
  }

  /* Book a session CTA below the list */
  .nav .right {
    display: flex;
    width: 100%;
    margin-top: 22px;
  }
  .nav .right .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
  }
  .nav.open .right .btn:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }

  .grid-12 { grid-template-columns: 1fr; }
  .grid-12 > [style*="grid-column"] { grid-column: 1 / -1 !important; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .legal { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer .legal > div:last-child { flex-wrap: wrap; gap: 16px !important; }

  .track { grid-template-columns: 48px 1fr auto; gap: 14px; padding: 16px 4px; }
  .track .wave { display: none; }
  .track .title { font-size: 18px; }

  /* Inline section-header flex rows stack */
  section [style*="justify-content: space-between"][style*="align-items: end"],
  section [style*="justify-content: space-between"][style*="align-items: baseline"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  /* Inline 3-col grids stack */
  section [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Hero */
  .hero::before { display: none; }
  .hero .inner { padding-block: clamp(80px, 12vh, 140px) clamp(60px, 8vh, 100px); }
  .hero .meta-row { flex-wrap: wrap; gap: 10px; font-size: 10px; }
  .hero .meta-row > div { flex: 1 0 auto; }
  .hero-title { font-size: clamp(48px, 12vw, 96px) !important; line-height: 0.92 !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { align-items: flex-start; }
  .hero-actions .stats { width: 100%; min-width: 0; }
  .hero-actions .cta-row { flex-wrap: wrap; }
  .hero .vu { display: none; }

  /* Sections — tighter rhythm */
  .section { padding-block: clamp(56px, 9vw, 96px); }

  /* Services list */
  .services-list > div { grid-template-columns: 40px 1fr !important; gap: 14px !important; padding: 22px 0 !important; }
  .services-list > div:hover { padding-left: 0 !important; }
  .services-list .blurb,
  .services-list .go { grid-column: 2 !important; }
  .services-list .go { text-align: left !important; padding-top: 4px; }

  /* Studios */
  .studios-grid { grid-template-columns: 1fr !important; gap: 20px !important; margin-top: 40px !important; }
  .studio-card { padding: 20px; gap: 18px; }
  .studio-card .ph { height: 240px; }
  .studio-card .spec-list li { flex-direction: column; gap: 4px; align-items: flex-start; }
  .studio-card .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Process */
  .process { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .process > div { padding: 22px; min-height: 220px; }
  .process .num { font-size: 52px; }

  /* Posts */
  .posts { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Book rail */
  .book-rail { padding: 12px 16px; font-size: 10px; right: 14px; bottom: 14px; letter-spacing: 0.16em; }

  /* Modal */
  .modal { padding: 28px 22px; border-radius: 14px; }
  .modal .close { right: 14px; top: 14px; }
  .form-row.split { grid-template-columns: 1fr; gap: 16px; }

  /* Buttons */
  .btn { padding: 12px 18px; }

  /* Tweaks panel */
  .tweaks { left: 14px; right: 14px; width: auto; top: 80px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  h1 { font-size: clamp(42px, 11vw, 72px); }
  h2 { font-size: clamp(32px, 8vw, 56px); }
  h3 { font-size: clamp(22px, 6vw, 32px); }

  .hero-title { font-size: clamp(44px, 13vw, 72px) !important; }
  .hero-title br { display: initial; }

  .process { grid-template-columns: 1fr; }
  .process > div { min-height: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; padding-top: 32px; }
  .footer { padding-top: 72px; }

  .marquee-item { font-size: 24px; gap: 20px; }
  .marquee-track { gap: 36px; }

  /* Quote: tighter */
  section [style*="font-family: var(--f-display)"][style*="clamp(36px"] {
    font-size: clamp(26px, 7vw, 44px) !important;
    line-height: 1.1 !important;
  }

  /* Closing CTA */
  section[style*="text-align: center"][style*="padding-block: 160px"] {
    padding-block: 90px !important;
  }

  .studio-card .ph { height: 180px; }

  /* Stacked action rows (closing CTA) */
  section [style*="display: inline-flex"][style*="gap: 14px"] {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
  section [style*="display: inline-flex"][style*="gap: 14px"] .btn {
    justify-content: center; width: 100%;
  }
}

@media (max-width: 400px) {
  .hero-title { font-size: 40px !important; }
  .hero-actions .stats { grid-template-columns: 1fr; }
  .btn { font-size: 10px; padding: 12px 16px; letter-spacing: 0.16em; }
  .track { grid-template-columns: 40px 1fr auto; padding: 14px 2px; }
  .track .play { width: 38px; height: 38px; }
  .track .title { font-size: 16px; }
  .track .artist { font-size: 10px; }
}

@media (hover: none) {
  .services-list > div:hover { padding-left: 0; }
  .studio-card:hover { transform: none; }
  .track:hover { background: transparent; }
}
