/* =========================================================
   SOULCRY WORSHIP
   Helvetica Neue · Black / White · Crimson Red
   Accents: Yellow (secondary on dark) · Blue (media only)
   ========================================================= */

:root {
  --black: #0c0c0c;
  --white: #f7f5f0;        /* warm off-white, like film paper */
  --paper: #efece4;        /* polaroid border tone */
  --red: #d6202b;          /* crimson — primary action / hover / active */
  --red-deep: #a4151f;
  --yellow: #ffc400;       /* secondary accent on dark surfaces */
  --blue: #1e4fd4;         /* media / YouTube only */
  --ink: #121212;
  --muted: #6b6b6b;
  --line: rgba(18, 18, 18, 0.14);

  --font: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--yellow); color: var(--black); }

/* ----------  Type  ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.display {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* ----------  Layout helpers  ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 130px); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================
   HEADER  ·  split half-left (brand) / half-right (nav)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header.on-hero {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(247, 245, 240, 0.18);
  color: var(--white);
  transition: background 0.32s ease, color 0.32s ease, border-color 0.32s ease,
    box-shadow 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* pinned solid bar once you scroll past the hero (desktop + mobile) */
.site-header.on-hero.is-solid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 28px rgba(12, 12, 12, 0.08);
  transform: translateY(0);
}
.site-header.on-hero.is-solid .primary-nav a {
  border-left-color: var(--line);
  color: var(--ink);
}
.site-header.on-hero.is-solid .primary-nav a:first-child { border-left: 0; }
.site-header.on-hero.is-solid .primary-nav a:hover {
  background: var(--red);
  color: var(--white);
}
.site-header.on-hero.is-solid .primary-nav a.active { color: var(--red); }

@keyframes header-slide-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.site-header.on-hero.is-solid {
  animation: header-slide-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px var(--gutter);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__logo {
  display: block;
  height: clamp(56px, 7vw, 76px);
  width: auto;
  object-fit: contain;
}
/* default / solid header: black lettering */
.brand__logo--light { display: none; }
.brand__logo--dark { display: block; }
/* transparent over hero: white lettering */
.site-header.on-hero:not(.is-solid) .brand__logo--light { display: block; }
.site-header.on-hero:not(.is-solid) .brand__logo--dark { display: none; }
/* hide header logo while the hero logo is still on screen */
.site-header.on-hero:not(.is-solid) .brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-header.on-hero .brand {
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.site-header.on-hero.is-solid .brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.brand .mark {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); flex: none;
}

.site-header .primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.primary-nav a {
  display: flex;
  align-items: center;
  padding: 0 clamp(14px, 2vw, 30px);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  border-left: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease;
}
.primary-nav a:first-child { border-left: 0; }
.site-header.on-hero .primary-nav a { border-left: 1px solid rgba(247,245,240,0.18); }
.site-header.on-hero .primary-nav a:first-child { border-left: 0; }

.primary-nav a:hover { background: var(--red); color: var(--white); }
.primary-nav a.active { color: var(--red); }
/* over the dark hero: keep nav light; crimson marks hover + active */
.site-header.on-hero:not(.is-solid) .primary-nav a:hover {
  background: var(--red);
  color: var(--white);
}
.site-header.on-hero:not(.is-solid) .primary-nav a.active {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--red);
}

/* socials live inside the nav but only show in the mobile overlay */
.nav-socials { display: none; }

/* mobile nav toggle — hamburger that morphs into an X */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: none; border: 0; cursor: pointer;
  padding: 0 var(--gutter);
  color: inherit;
  height: 100%;
  z-index: 70;
  position: relative;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 30px;
  height: 14px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.7,0,0.3,1), opacity 0.2s ease, top 0.32s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 11px; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

/* =========================================================
   HERO  ·  pre-roll video
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background: var(--black);
  overflow: hidden;
  cursor: pointer;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,12,12,0.45) 0%, rgba(12,12,12,0) 28%),
    linear-gradient(to top, rgba(12,12,12,0.72) 0%, rgba(12,12,12,0) 55%);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--gutter);
  padding-bottom: clamp(36px, 7vh, 72px);
  color: var(--white);
  max-width: min(100%, 54rem);
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--yellow);
}
.hero__title {
  color: var(--white);
  margin: 0;
  line-height: 0;
}
.hero__logo {
  display: block;
  width: clamp(14rem, 58vw, 42rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 374 / 149;
}
.hero__tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  max-width: none;
  font-size: clamp(0.68rem, 1.1vw, 0.8rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.92);
  line-height: 1.3;
  border: 0;
  padding: 0;
}
.hero__tagline::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.hero__enter {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero__enter .arrow {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero:hover .hero__enter .arrow { background: var(--white); color: var(--black); transform: translateX(4px); }

/* sound toggle */
.hero__sound {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 90px);
  z-index: 3;
  background: rgba(12,12,12,0.35);
  color: var(--white);
  border: 1.5px solid rgba(247,245,240,0.6);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, color 0.18s ease;
}
.hero__sound:hover { background: var(--white); color: var(--black); }

/* scroll cue — animated line that invites scrolling down */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 40px);
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  overflow: hidden;
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.hero__cue-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: cue-drop 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes cue-drop {
  0%   { transform: translateY(0); }
  100% { transform: translateY(200%); }
}

/* =========================================================
   MENU  ·  big index links (the "main menu")
   ========================================================= */
.menu-index { border-top: 1px solid var(--line); }

/* staggered entrance for menu rows as you scroll down from the hero */
.menu-index .menu-row.reveal { transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.menu-index .menu-row.reveal:nth-child(1) { transition-delay: 0.00s; }
.menu-index .menu-row.reveal:nth-child(2) { transition-delay: 0.08s; }
.menu-index .menu-row.reveal:nth-child(3) { transition-delay: 0.16s; }
.menu-index .menu-row.reveal:nth-child(4) { transition-delay: 0.24s; }
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 40px) var(--gutter);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}
.menu-row__no {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 52px;
  flex: none;
}
.menu-row__title {
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
  transition: transform 0.25s ease, color 0.2s ease;
}
.menu-row__meta {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.menu-row .arrow-lg {
  display: inline-grid;
  place-items: center;
  width: clamp(1.4rem, 4.5vw, 2.6rem);
  height: clamp(1.4rem, 4.5vw, 2.6rem);
  flex: none;
}
.menu-row .arrow-lg svg {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}
.menu-row:hover { background: var(--red); color: var(--white); }
.menu-row:hover .menu-row__title { color: var(--white); transform: translateX(10px); }
.menu-row:hover .menu-row__no,
.menu-row:hover .menu-row__meta { color: rgba(247,245,240,0.7); }
.menu-row:hover .arrow-lg svg { transform: translate(8px, -8px); }

/* =========================================================
   GENERIC PAGE HEADER (interior pages)
   ========================================================= */
.page-head {
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(28px, 4vw, 56px);
}
.page-head .display { margin-top: 14px; }
.page-head p.lead {
  max-width: 56ch;
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: #2a2a2a;
}

/* accent underline for headings */
.accent-bar {
  display: inline-block;
  width: 64px; height: 6px;
  background: var(--red);
  margin-bottom: 22px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  padding: 16px 26px;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* =========================================================
   MUSIC PAGE
   ========================================================= */
.release-list { border-top: 1px solid var(--line); }
.release {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.release:hover { padding-left: 12px; }
.release__no {
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.release__title {
  font-size: clamp(1.3rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.release__feat {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.release__links {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.tag-link {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; padding: 9px 14px; border: 1.5px solid var(--black);
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.tag-link:hover { background: var(--black); color: var(--white); }
.tag-link--yt:hover { background: var(--red); border-color: var(--red); }

/* =========================================================
   PARTNER / DONATE
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.card {
  border: 1.5px solid var(--black);
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
}
.card h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.card--yellow { background: var(--yellow); border-color: var(--black); }
.card--dark { background: var(--black); color: var(--white); border-color: var(--black); }

.figure-frame {
  border: 1.5px solid var(--black);
  background: var(--paper);
  padding: 14px 14px 44px;
  transform: rotate(-1.4deg);
}
.figure-frame img { filter: saturate(1.05) contrast(1.02); }
.figure-frame.tilt-r { transform: rotate(1.6deg); }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.tier {
  border: 1.5px solid var(--black);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.tier .amt { font-size: 2rem; font-weight: 700; }
.tier .lbl { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* =========================================================
   FORM (Booking)
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--ink);
}
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1.5px solid var(--black);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--yellow); }
.form-status.err { background: var(--red); color: var(--white); border-color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(46px, 7vw, 86px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-mark {
  font-size: clamp(2.4rem, 9vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.86;
}
.footer-mark em { font-style: normal; color: var(--red); }
.footer-logo {
  display: block;
  height: clamp(56px, 10vw, 96px);
  width: auto;
  object-fit: contain;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-nav a {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: rgba(247,245,240,0.75);
  transition: color 0.16s ease;
}
.footer-nav a:hover { color: var(--red); }

.socials { display: flex; gap: 14px; align-items: center; }
.socials a {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border: 1.5px solid rgba(247,245,240,0.4);
  border-radius: 50%;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.socials a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.socials svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(247,245,240,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.6);
  font-weight: 600;
}

/* =========================================================
   MISC
   ========================================================= */
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.bg-band {
  background: var(--black); color: var(--white);
}

/* Music page — releases + YouTube subscribe */
.music-releases {
  padding-bottom: clamp(28px, 4vw, 48px);
}
.yt-subscribe {
  background: var(--red);
  color: var(--white);
}
.yt-subscribe__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding-block: clamp(36px, 5.5vw, 64px);
}
.yt-subscribe__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(247, 245, 240, 0.85);
  margin-bottom: 10px;
}
.yt-subscribe__title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--white);
  margin: 0;
}
.yt-subscribe__lead {
  margin: 10px 0 0;
  max-width: 40ch;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.45;
  color: rgba(247, 245, 240, 0.88);
}
.yt-subscribe__cta {
  flex: none;
  white-space: nowrap;
  align-self: center;
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.yt-subscribe__cta:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.yt-subscribe__icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}
/* Keep footer visually separate from the crimson band above */
.yt-subscribe + .site-footer {
  border-top: 0;
}
.marquee-strip {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}
.marquee-strip .track {
  display: inline-block;
  animation: marquee 22s linear infinite;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.85rem;
}
.marquee-strip .track span { padding: 0 26px; }
.marquee-strip .track span::after { content: "✦"; padding-left: 26px; color: var(--yellow); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  /* guard against any accidental horizontal scroll */
  html, body { overflow-x: hidden; }

  /* ---- mobile: full-screen overlay menu ---- */
  .site-header { grid-template-columns: 1fr auto; align-items: center; }
  .nav-toggle { display: inline-flex; min-height: 44px; }

  /* header sits above the overlay; goes transparent + white while open */
  .site-header { z-index: 60; }
  /* brand must paint above the full-screen overlay (both live inside the header) */
  .site-header .brand { position: relative; z-index: 70; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header,
  body.menu-open .site-header.on-hero.is-solid {
    background: transparent;
    border-bottom-color: transparent;
    color: var(--white);
    box-shadow: none;
  }
  /* white logo over the dark mobile overlay */
  body.menu-open .brand__logo--light { display: block; }
  body.menu-open .brand__logo--dark { display: none; }
  body.menu-open .site-header.on-hero .brand {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    padding: calc(env(safe-area-inset-top, 0px) + 96px) 0 48px;
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.34s;
  }
  .site-header .primary-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1), visibility 0s;
  }

  /* full-bleed rows — same divider logic as the homepage menu, no boxed cells */
  .site-header .primary-nav > a,
  .site-header.on-hero .primary-nav > a {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(247,245,240,0.14);
    color: var(--white);
    padding: clamp(20px, 5vw, 28px) var(--gutter);
    justify-content: flex-start;
    align-items: center;
    gap: clamp(14px, 4vw, 22px);
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1), color 0.18s ease;
  }
  .site-header .primary-nav > a:first-child {
    border-top: 1px solid rgba(247,245,240,0.14);
  }
  .site-header .primary-nav > a::before {
    content: attr(data-no);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: rgba(247,245,240,0.45);
    flex: none;
    width: 34px;
  }
  .site-header .primary-nav.open > a { opacity: 1; transform: none; }
  .site-header .primary-nav.open > a:nth-child(1) { transition-delay: 0.10s; }
  .site-header .primary-nav.open > a:nth-child(2) { transition-delay: 0.17s; }
  .site-header .primary-nav.open > a:nth-child(3) { transition-delay: 0.24s; }
  .site-header .primary-nav.open > a:nth-child(4) { transition-delay: 0.31s; }
  .site-header .primary-nav > a:hover,
  .site-header .primary-nav > a:active,
  .site-header .primary-nav > a.active { color: var(--red); background: transparent; }

  /* socials pinned at the bottom of the overlay */
  .nav-socials { margin-top: auto; padding: 34px var(--gutter) 0; display: flex; gap: 14px; }
  .nav-socials a {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 1.5px solid rgba(247,245,240,0.4); border-radius: 50%; color: var(--white);
  }
  .nav-socials a:active,
  .nav-socials a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
  .nav-socials svg { width: 20px; height: 20px; }

  /* ---- long headings must wrap, never overflow ---- */
  h1, h2, h3,
  .display, .hero__title, .menu-row__title, .release__title, .footer-mark {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  /* ---- layout stacking ---- */
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; gap: 12px; }
  .tier { padding: 18px; }
  .yt-subscribe__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding-block: clamp(32px, 7vw, 48px);
  }

  .menu-row { padding-block: 22px; gap: 14px; }
  .menu-row__no { width: 34px; }
  .menu-row__meta { display: none; }

  .release { grid-template-columns: 30px 1fr; gap: 12px 16px; }
  .release:hover { padding-left: 0; }
  .release__links { grid-column: 2 / -1; justify-content: flex-start; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 14px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-bottom p { font-size: 0.68rem; }

  /* hero a touch tighter on phones */
  .hero { min-height: 480px; }

  /* larger, comfortable tap targets for buttons + tag links */
  .btn { padding: 16px 22px; }
  .tag-link { padding: 11px 14px; }
}

/* very small phones */
@media (max-width: 380px) {
  .hero__logo { width: min(92vw, 20rem); }
  .menu-row__title { font-size: 1.6rem; }
  .release__title { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
