/* ================================================
   David Bruce Music — styles.css
   Mobile-first. Vanilla CSS. Custom properties for design tokens.
   Palette pulled from Dave's own footage: night room, amber lamp,
   the orange heart he signs off with, and the rainbow his window
   crystal throws across the wall.
   ================================================ */

/* ---- Fonts (self-hosted, SIL OFL) ---- */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Design Tokens ---- */

:root {
  /* Colors */
  --color-bg: #0f0c10;
  --color-surface: #171217;
  --color-surface-2: #211920;
  --color-plum: #3a1731;
  --color-primary: #f2873a;      /* the orange heart */
  --color-primary-soft: #ffbf73; /* lamplight */
  --color-candle: #fbe7c6;
  --color-text: #f5e9d7;
  --color-text-muted: rgba(245, 233, 215, 0.72);
  --color-text-faint: rgba(245, 233, 215, 0.5);
  --color-border: rgba(245, 233, 215, 0.12);
  --prism: linear-gradient(90deg, #f2873a 0%, #ffcf6b 22%, #9fdcae 46%, #8fb8f2 70%, #c4a4f2 100%);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(5rem, 12vw, 9rem);

  /* Typography */
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text-sm: 0.9rem;
  --text-base: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --text-h3: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --text-h2: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
  --text-h1: clamp(2.7rem, 1.6rem + 5.2vw, 5.6rem);

  /* Effects */
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-slow: cubic-bezier(0.45, 0, 0.2, 1);
  --dur: 220ms;
  --dur-slow: 900ms;
  --maxw: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 68px;
}

/* ---- Reset / Base ---- */

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

html {
  font-family: var(--font-body);
  font-size: 100%;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--text-base);
  background: var(--color-bg);
  overflow-x: hidden;
}

main {
  flex: 1;
}

img, svg, iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--color-primary-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--color-candle);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); font-weight: 350; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

em {
  font-style: italic;
}

p {
  max-width: 62ch;
  text-wrap: pretty;
}

ul[role='list'] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ---- Accessibility helpers ---- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: 200;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  position: relative;
  padding: var(--space-2xl) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
}

.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 1px;
  background: var(--prism);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-head h2 + p {
  margin-top: var(--space-sm);
}

.prism-rule {
  height: 1px;
  border: 0;
  background: var(--prism);
  opacity: 0.55;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.8em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #1a0f0a;
  box-shadow: 0 8px 30px rgba(242, 135, 58, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-soft);
  color: #1a0f0a;
  box-shadow: 0 10px 36px rgba(255, 191, 115, 0.35);
}

.btn-ghost {
  background: rgba(245, 233, 215, 0.04);
  border-color: rgba(245, 233, 215, 0.28);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-primary-soft);
  color: var(--color-candle);
  background: rgba(245, 233, 215, 0.08);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
}

/* ---- Header / Nav ---- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease),
    backdrop-filter var(--dur-slow) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(15, 12, 16, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--color-border);
}

/* no backdrop-filter while the menu is open: it would trap the fixed menu inside the header */
.site-header.menu-open {
  background: var(--color-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--color-border);
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--color-candle);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }

.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-sm) clamp(1rem, 4vw, 2rem) var(--space-lg);
  background: var(--color-bg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}

.nav-menu a {
  display: block;
  padding: 0.7rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.nav-menu a:hover {
  color: var(--color-primary-soft);
}

.nav-menu .nav-cta {
  margin-top: var(--space-sm);
}

.nav-menu .nav-cta a {
  display: inline-flex;
  color: #1a0f0a;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75em 1.4em;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--space-xl)) 0 clamp(3rem, 9vh, 6rem);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 30%;
  filter: brightness(0.62) saturate(0.95) sepia(0.12);
  transform: scale(1.04);
  animation: hero-drift 28s var(--ease-slow) infinite alternate;
}

.hero::before {
  /* night falls over the room: plum at the top, deep night at the base */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 15% 100%, rgba(15, 12, 16, 0.96) 20%, rgba(15, 12, 16, 0) 70%),
    linear-gradient(180deg, rgba(58, 23, 49, 0.55) 0%, rgba(15, 12, 16, 0.15) 35%, rgba(15, 12, 16, 0.92) 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  left: -10vmax;
  bottom: -14vmax;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 135, 58, 0.3) 0%, rgba(242, 135, 58, 0) 62%);
  animation: breathe 11s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  max-width: 46rem;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 em {
  color: var(--color-primary-soft);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.hero .lede {
  margin-bottom: var(--space-lg);
  color: rgba(245, 233, 215, 0.84);
}

.hero-scroll {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(3rem, 9vh, 6rem);
  display: none;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 56px;
  margin: 0.8rem auto 0;
  background: linear-gradient(var(--color-text-faint), transparent);
}

@keyframes breathe {
  0%, 100% { transform: scale(0.88); opacity: 0.7; }
  45% { transform: scale(1.08); opacity: 1; }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

/* ---- The busy (notifications falling quiet) ---- */

.busy {
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(58, 23, 49, 0.45), transparent 70%),
    var(--color-bg);
}

.busy-quote {
  max-width: 22ch;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.12;
  text-align: center;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  text-wrap: balance;
}

.busy-quote em {
  color: var(--color-primary-soft);
}

.busy-cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.busy-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 50rem;
  margin: 0 auto;
}

.busy-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: opacity 1.4s var(--ease-slow), filter 1.4s var(--ease-slow), transform 1.4s var(--ease-slow);
}

.busy-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 10px rgba(229, 72, 77, 0.7);
}

.busy-list:not(.is-quiet) li {
  animation: buzz 2.6s ease-in-out infinite;
}

.busy-list li:nth-child(3n + 2) { animation-delay: -0.9s; }
.busy-list li:nth-child(3n + 3) { animation-delay: -1.7s; }

.busy-list.is-quiet li {
  opacity: 0.1;
  filter: blur(5px);
  transform: translateY(6px) scale(0.97);
}

/* stagger the hush, one notification at a time */
.busy-list.is-quiet li:nth-child(1) { transition-delay: 0s; }
.busy-list.is-quiet li:nth-child(2) { transition-delay: 0.25s; }
.busy-list.is-quiet li:nth-child(3) { transition-delay: 0.5s; }
.busy-list.is-quiet li:nth-child(4) { transition-delay: 0.75s; }
.busy-list.is-quiet li:nth-child(5) { transition-delay: 1s; }
.busy-list.is-quiet li:nth-child(6) { transition-delay: 1.25s; }
.busy-list.is-quiet li:nth-child(7) { transition-delay: 1.5s; }
.busy-list.is-quiet li:nth-child(8) { transition-delay: 1.75s; }
.busy-list.is-quiet li:nth-child(9) { transition-delay: 2s; }
.busy-list.is-quiet li:nth-child(10) { transition-delay: 2.25s; }
.busy-list.is-quiet li:nth-child(11) { transition-delay: 2.5s; }
.busy-list.is-quiet li:nth-child(12) { transition-delay: 2.75s; }

.busy-after {
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h3);
  color: var(--color-candle);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s var(--ease-slow) 3.1s, transform 1.6s var(--ease-slow) 3.1s;
}

.busy-list.is-quiet + .busy-after {
  opacity: 1;
  transform: none;
}

.busy-after a {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  display: inline-block;
  margin-top: var(--space-sm);
}

@keyframes buzz {
  0%, 82%, 100% { transform: translateX(0); }
  85% { transform: translateX(-2px); }
  88% { transform: translateX(2px); }
  91% { transform: translateX(-1px); }
}

/* ---- Video facades ---- */

.clip {
  margin: 0;
}

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.video--tall {
  aspect-ratio: 9 / 16;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-slow), filter var(--dur) var(--ease);
  filter: brightness(0.85);
}

.video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 12, 16, 0.55));
  pointer-events: none;
}

.video__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 12, 16, 0.45);
  border: 1px solid rgba(245, 233, 215, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.video__play::before {
  content: '';
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--color-candle);
}

.video:hover img,
.video:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1);
}

.video:hover .video__play,
.video:focus-visible .video__play {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.06);
}

.video:hover .video__play::before,
.video:focus-visible .video__play::before {
  border-left-color: #1a0f0a;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video-frame--tall {
  aspect-ratio: 9 / 16;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.clip figcaption {
  margin-top: 0.7rem;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text-muted);
}

.clip figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
}

/* ---- Reset (take 3 minutes) ---- */

.reset {
  overflow: hidden; /* keeps the prism glow from widening the page */
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.reset-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.reset-video {
  width: min(100%, 360px);
  margin: 0 auto;
  position: relative;
}

.reset-video::before {
  /* the crystal's rainbow, cast behind the clip */
  content: '';
  position: absolute;
  inset: 12% -18% 8% -18%;
  z-index: -1;
  background: var(--prism);
  filter: blur(60px);
  opacity: 0.28;
  border-radius: 50%;
}

.steps {
  display: grid;
  gap: 0.9rem;
  margin: var(--space-md) 0 var(--space-lg);
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  color: var(--color-text-muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 191, 115, 0.5);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-primary-soft);
  transform: translateY(0.35rem);
}

.reset-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ---- Sacred Sound Journey ---- */

.journey {
  background:
    radial-gradient(70% 55% at 85% 30%, rgba(242, 135, 58, 0.13), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(58, 23, 49, 0.6), transparent 70%),
    var(--color-surface);
}

.journey-grid {
  display: grid;
  gap: var(--space-xl);
}

.journey h2 {
  margin-bottom: 0.4rem;
}

.journey-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h3);
  color: var(--color-primary-soft);
  margin-bottom: var(--space-md);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.journey-copy p + p {
  margin-top: var(--space-sm);
}

.journey-copy p {
  color: var(--color-text-muted);
}

.journey-card {
  margin-top: var(--space-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 191, 115, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 12, 16, 0.55);
  box-shadow: var(--shadow);
}

.journey-details {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.journey-details div {
  display: grid;
  gap: 0.15rem;
}

.journey-details dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.journey-details dd {
  font-size: 1.08rem;
  color: var(--color-text);
}

.journey-details dd small {
  display: block;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.journey-details a {
  color: inherit;
}

.journey-media {
  position: relative;
  margin: 0;
}

.journey-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.journey-media figcaption {
  margin-top: 0.7rem;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ---- Live on YouTube ---- */

.live-card {
  position: relative;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border: 1px solid rgba(255, 191, 115, 0.22);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(229, 72, 77, 0.14), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(58, 23, 49, 0.75), transparent 70%),
    var(--color-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.live-card .lede {
  margin-top: var(--space-sm);
}

.live-card .steps {
  margin-bottom: var(--space-lg);
}

.eyebrow--live::before {
  display: none;
}

.live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 12px rgba(229, 72, 77, 0.8);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(229, 72, 77, 0.7);
  animation: live-ping 2.4s ease-out infinite;
}

@keyframes live-ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

.shorts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 240px);
  gap: var(--space-sm);
  margin: var(--space-lg) calc(-1 * clamp(1rem, 4vw, 2rem)) 0;
  padding: 0 clamp(1rem, 4vw, 2rem) var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 233, 215, 0.25) transparent;
  list-style: none;
}

.shorts > li {
  scroll-snap-align: start;
}

.subhead + .shorts {
  margin-top: 0;
}


/* ---- Listen ---- */

.listen {
  background: var(--color-bg);
}

.album {
  display: grid;
  gap: var(--space-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(242, 135, 58, 0.16), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(58, 23, 49, 0.7), transparent 70%),
    var(--color-surface);
  overflow: hidden;
}

.album-art {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 320px);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 191, 115, 0.95) 0 9%, rgba(242, 135, 58, 0.55) 10% 13%, transparent 14%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 191, 115, 0.16) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 50%, #2a1824, #120d12 72%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.album-art span {
  position: absolute;
  bottom: 1rem;
  left: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--color-candle);
}

.album h3 {
  font-size: var(--text-h2);
}

.album-meta {
  margin: 0.3rem 0 var(--space-md);
  color: var(--color-primary-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
}

.album p {
  color: var(--color-text-muted);
}

.tracklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-md) 0 var(--space-lg);
  list-style: none;
}

.tracklist li {
  padding: 0.35em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.album-footnote {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 var(--space-md);
}

.subhead h3 {
  font-size: var(--text-h3);
}

.subhead p {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* phones: a swipeable row; tablet+: a grid */
.clip-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 320px);
  gap: var(--space-md);
  margin: 0 calc(-1 * clamp(1rem, 4vw, 2rem));
  padding: 0 clamp(1rem, 4vw, 2rem) var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 233, 215, 0.25) transparent;
  list-style: none;
}

.clip-grid > li {
  scroll-snap-align: start;
}

/* ---- Story ---- */

.story {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(58, 23, 49, 0.55), transparent 70%),
    var(--color-surface);
}

.story-grid {
  display: grid;
  gap: var(--space-lg);
}

.story-portrait {
  margin: 0;
  width: min(100%, 420px);
}

.story-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-copy {
  min-width: 0; /* lets the swipeable clip row scroll instead of widening the grid */
}

.story-copy h2 {
  margin-bottom: var(--space-md);
}

.story-copy p {
  color: var(--color-text-muted);
}

.story-copy p + p {
  margin-top: var(--space-sm);
}

.story-copy .story-lead {
  font-size: var(--text-lg);
  color: var(--color-text);
}

.facts {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.facts li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.facts li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--color-primary);
}

.facts strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---- Connect ---- */

.connect {
  background:
    radial-gradient(70% 60% at 50% 110%, rgba(242, 135, 58, 0.18), transparent 70%),
    var(--color-bg);
}

.connect-grid {
  display: grid;
  gap: var(--space-xl);
}

.form-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(23, 18, 23, 0.85);
}

.form-card h3 {
  margin-bottom: 0.4rem;
}

.form-card > p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space-sm);
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75em 0.95em;
  border: 1px solid rgba(245, 233, 215, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(15, 12, 16, 0.7);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem; /* 16px+ prevents iOS zoom */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
    linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5em;
}

.field select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(255, 191, 115, 0.18);
}

.inline-form {
  display: grid;
  gap: var(--space-xs);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.5em;
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-primary-soft);
}

.form-status.is-error {
  color: #ff9b8f;
}

.connect-aside {
  display: grid;
  gap: var(--space-lg);
  align-content: start;
}

.connect-aside .form-card {
  background: rgba(23, 18, 23, 0.6);
}

/* ---- Footer ---- */

.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h3);
  color: var(--color-candle);
  max-width: 28ch;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer-credit {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.footer-credit a {
  color: inherit;
}

/* ---- Simple pages (thanks / 404) ---- */

.simple-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-xl);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(242, 135, 58, 0.18), transparent 70%),
    radial-gradient(70% 60% at 50% 0%, rgba(58, 23, 49, 0.6), transparent 70%),
    var(--color-bg);
}

.simple-page h1 {
  margin-bottom: var(--space-md);
}

.simple-page p {
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
}

.simple-page .btn-row {
  justify-content: center;
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---- Tablet+ ---- */

@media (min-width: 700px) {
  .reset-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
  }

  .journey-details {
    grid-template-columns: 1fr 1fr;
  }

  .shorts {
    grid-auto-columns: 230px;
  }

  .clip-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .album {
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: center;
  }

  .story-grid {
    grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
    align-items: start;
    gap: var(--space-xl);
  }

  .story-portrait {
    position: sticky;
    top: calc(var(--header-h) + var(--space-lg));
  }

  .inline-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .inline-form .field {
    margin-bottom: 0;
  }
}

/* ---- Desktop ---- */

@media (min-width: 1000px) {
  :root {
    --header-h: 76px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a {
    padding: 0.4rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-muted);
  }

  .nav-menu .nav-cta {
    margin: 0 0 0 0.5rem;
  }

  .nav-menu .nav-cta a {
    padding: 0.6em 1.2em;
    min-height: 0;
  }

  .hero-scroll {
    display: block;
  }

  .journey-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .shorts {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-columns: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .clip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clip-grid--pair {
    grid-template-columns: repeat(2, 1fr);
  }

  .connect-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
