@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --charcoal: #1c1c1c;
  --charcoal-soft: #262626;
  --red: #cd1301;
  --orange: #ff3600;
  --orange-light: #f96501;
  --gold: #d09d05;
  --white: #ffffff;
  --off-white: #f7f5f2;
  --ink: #111111;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }
html.scroll-locked { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* Slightly tighter tracking for all body copy/paragraphs; headline
     (--font-display) rules set their own tighter letter-spacing
     individually and aren't affected by this inherited value. */
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* No orphan words (a single word stranded alone on the last line) in
   any paragraph, site-wide — `pretty` costs more layout work than
   `balance` so browsers only apply it to shortish blocks of text, which
   is exactly the paragraph copy this site has; headlines already set
   their own text-wrap where needed and aren't affected by this. */
p { text-wrap: pretty; }

/* GSAP SplitText's `mask: 'lines'` wraps each split line in a generated
   wrapper (class is always `<linesClass>-mask`, so `.reveal-line-mask`
   here — see page-transitions.js) with an inline `overflow: clip`, which
   is what makes the "slide up from under a mask" reveal work. But a few
   headings (e.g. the homepage's "Under the Basils Umbrella") have a
   single word that's genuinely a little wider than its column at some
   font-size/viewport combos — before this animation existed that just
   spilled over visibly with no clipping, since nothing enforced
   overflow; once lines got masked, that same overflow started getting
   silently clipped (last letter cut off). `!important` is required to
   win over the inline style GSAP sets — restore the old "just spill
   over" behavior for the horizontal axis only, since collapsing the
   *vertical* axis to the line's own height is what the mask reveal
   actually depends on. */
.reveal-line-mask { overflow-x: visible !important; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.logo svg { width: 26px; height: 22px; }

.logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.main-nav a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline:hover { border-color: var(--white); }

.btn-accent {
  background: var(--orange);
  color: var(--white);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 68% 42%, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, transparent 2px, transparent 26px),
    radial-gradient(circle at 68% 42%, var(--orange-light) 0%, var(--orange) 32%, var(--red) 68%, #7a0d00 100%);
  color: var(--white);
  padding: 110px 0 90px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 920px;
}

.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 480px;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* ---------- About-basels strip (below the fold, home) ---------- */

.intro {
  background: var(--white);
  padding: 100px 0;
}

/* "Music worth showing up for." h2 removed entirely 2026-11-26 — `.intro-row`
   dropped from a 4-column grid (heading + 3 `.intro-col`s) to 3, matching
   the remaining `.intro-col`s one-for-one. `.intro h2` kept in case a
   heading is ever reintroduced here. */
.intro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
}

.intro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.intro-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

.intro-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.45);
  margin-bottom: 14px;
}

.intro-col p {
  font-size: 15px;
  line-height: 1.6;
  color: #3a3a3a;
  text-wrap: pretty;
}

.intro .link-arrow {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Projects ---------- */

.projects {
  background: var(--charcoal);
  color: var(--white);
  padding: 100px 0 110px;
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.projects-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.projects-head p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.project-card {
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--charcoal);
  padding: 32px 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.project-card:hover { background: var(--charcoal-soft); }

.project-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent, var(--orange));
  letter-spacing: 0.025em;
}

.project-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 8px;
}

.project-line {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent, var(--orange));
}

.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--orange));
}

.project-card:nth-child(5n+1) { --accent: #ff3600; }
.project-card:nth-child(5n+2) { --accent: #f96501; }
.project-card:nth-child(5n+3) { --accent: #d09d05; }
.project-card:nth-child(5n+4) { --accent: #ff3600; }
.project-card:nth-child(5n+5) { --accent: #f96501; }

/* ---------- Closing CTA ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--red), var(--orange) 55%, var(--gold));
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.cta-band p {
  margin-top: 18px;
  font-size: 16px;
  opacity: 0.92;
}

.cta-band .btn { margin-top: 32px; }

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

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-top .logo { color: var(--white); }

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: rgba(255,255,255,0.75);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- About page specific ---------- */

.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 90px 0 70px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
  max-width: 800px;
}

.page-hero p {
  margin-top: 22px;
  font-size: 18px;
  max-width: 480px;
  color: rgba(255,255,255,0.75);
}

.about-features {
  background: var(--white);
  padding: 40px 0 60px;
}

.about-feature-row {
  display: grid;
  grid-template-columns: 64px 280px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 44px 0;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.about-feature-row:last-child { border-bottom: 1px solid rgba(17,17,17,0.1); }

.about-feature-index {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.04em;
}

.about-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.1;
}

.about-feature-copy {
  font-size: 17px;
  line-height: 1.65;
  color: #3a3a3a;
  max-width: 560px;
}

@media (max-width: 760px) {
  .about-feature-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
}

.teaser {
  background: var(--charcoal);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.teaser h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px);
}

.teaser p {
  margin-top: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
}

.teaser .link-arrow {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.contact-band {
  background: var(--off-white);
  padding: 100px 0;
  text-align: center;
}

.contact-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 56px);
}

.contact-band .contact-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}

.contact-band .contact-links a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Legal pages (Privacy / Cookie Policy) ---------- */

.legal-section {
  background: var(--white);
  padding: 90px 0 110px;
}

.legal-content { max-width: 720px; margin: 0 auto; }

.legal-updated {
  font-size: 13px;
  color: #767676;
  margin-bottom: 44px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  margin: 44px 0 14px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3a;
}

.legal-content p + p { margin-top: 14px; }

.legal-content ul {
  margin: 10px 0 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content a { text-decoration: underline; }

.legal-content code {
  font-family: monospace;
  background: var(--off-white);
  padding: 2px 6px;
  font-size: 14px;
}

/* ---------- Contact page ---------- */

.contact-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 130px 0 120px;
}

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 56px;
}

.contact-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.contact-sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact-details {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}

.contact-details a {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.contact-details a:hover { border-color: var(--white); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--white);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn-white {
  align-self: center;
  margin-top: 10px;
  padding-left: 40px;
  padding-right: 40px;
}

.contact-success {
  text-align: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.contact-error {
  text-align: center;
  color: var(--orange-light);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .contact-section { padding: 100px 0 90px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 680px) {
  .main-nav { display: none; }
  .intro-columns { grid-template-columns: 1fr; gap: 32px; }
  .intro-row { grid-template-columns: 1fr; gap: 32px; }
  .blocks .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 80px 0 64px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 900px) and (min-width: 681px) {
  .intro-columns { grid-template-columns: repeat(2, 1fr); }
  .intro-row { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================== */
/* ---------- Home redesign (Figma: basils / home) ---------- */
/* ========================================================== */

.wrap-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }

.nav-caret { width: 12px; height: 12px; }

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

.hero-home {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 32px 32px 56px;
  background: var(--orange) center/cover no-repeat url('assets/home/hero-poster.jpg');
}

.hero-home-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--orange) 55%, var(--gold));
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

.hero-home-title-wrap {
  position: relative;
  z-index: 2;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 60px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* The nav itself stays transparent when the dropdown opens — its white
   fill now comes from the dropdown panel underneath, which extends all
   the way to the top of the viewport instead of starting below the nav
   (see .nav-dropdown-panel). One shared background growing from the
   top, not two independently-animated white fills stacked on top of
   each other. */

.hero-home-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  flex-shrink: 0;
}

/* The dropdown panel (.nav-dropdown-panel) is `position: fixed` with an
   explicit z-index (900), nested several levels deep inside this same
   row (burger > nav-group > nav-dropdown > panel). .site-nav is the
   nearest ancestor that actually establishes a stacking context (fixed
   position always does), so the panel's z-index is evaluated there —
   the *same* context the logo/links/burger live in. Without a z-index
   of their own, those default to z-index:auto and paint *below* any
   positive z-index in that context, i.e. underneath the panel's white
   background. Giving each of them a z-index above 900 keeps them
   visible on top of it, regardless of scroll/dropdown state. (Raising
   this on the row itself instead doesn't work — that would just create
   a new nested stacking context one level in, and the panel's z-index
   would still beat the logo/burger's implicit one inside it.) */
.nav-burger,
.hero-home-logo,
.hero-home-nav-group > a,
.nav-dropdown-trigger,
.hero-home-nav-group-right a {
  position: relative;
  z-index: 950;
}

.hero-home-title-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 0;
}

.hero-home-nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-home-nav-group a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.92;
}

.hero-home-nav-group a:hover { opacity: 1; }

.hero-home-nav-group-right { gap: 20px; }

.hero-home-nav-group a.btn-white { color: var(--ink); }

/* ---------- Projects nav dropdown (desktop) ---------- */

/* display:flex (not the default block) turns the trigger button into a
   true flex item instead of an inline-level box sitting in its own
   anonymous line box — that line box was sized by this element's font
   (16px, never overridden) rather than the button's own 15px, which is
   what was nudging the trigger a couple pixels below its sibling <a>
   links (those are direct flex children of .hero-home-nav-group, so
   they never went through an extra inline-formatting layer like this). */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.92;
  cursor: pointer;
  /* Belt-and-suspenders alongside the .nav-dropdown fix above: strip
     native <button> chrome so this never picks up its own baseline/box
     metrics distinct from a plain <a>. */
  appearance: none;
  -webkit-appearance: none;
  line-height: normal;
}

.nav-dropdown-trigger:hover { opacity: 1; }

/* Small accent dot that appears to the left of "Projects" while the
   dropdown is open — matches the active-trigger indicator in the
   massivemusic.com reference nav. Width is fixed at all times (not
   animated) and only opacity fades — animating width made the dot take
   up real layout space as it grew, nudging "Projects" and the caret to
   the right while it appeared instead of a clean in-place fade. */
.nav-dropdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-dot,
.nav-dropdown:hover .nav-dropdown-dot {
  opacity: 1;
}

.nav-dropdown-caret {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-caret,
.nav-dropdown:hover .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--ink);
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 900;
}

.nav-dropdown.is-open .nav-dropdown-panel,
.nav-dropdown:hover .nav-dropdown-panel {
  grid-template-rows: 1fr;
}

.nav-dropdown-panel-inner {
  overflow: hidden;
  min-height: 0;
}

/* Padding lives on this nested element rather than directly on
   .nav-dropdown-panel-inner (the grid item) — padding on a box isn't
   clipped by that same box's own overflow:hidden (only content is), so
   padding placed directly on the grid item would keep contributing to
   its min-content height even while collapsed, leaving a visible strip
   at rest instead of truly collapsing to 0.
   padding-top also absorbs the nav's 60px height, since the panel itself
   now starts at the very top of the viewport (behind the nav) rather
   than below it — this keeps the actual link grid positioned under the
   nav instead of overlapped by it. */
.nav-dropdown-panel-inner .wrap-wide { padding-top: 108px; padding-bottom: 48px; }

.nav-dropdown-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.nav-dropdown-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  /* Grows to fill an equal share of the row instead of just sitting at
     its own content width — without this, items bunched together at
     their natural text width with uneven gaps rather than spanning the
     panel evenly. */
  flex: 1 1 0;
  /* Padding + a matching negative margin gives the hover background room
     to show without pushing neighboring items apart — the item's outer
     box (and so the grid's spacing/alignment) stays exactly the same as
     without this padding. Square corners (no border-radius), matching
     the reference's hover fill. */
  padding: 10px 14px;
  margin: -10px -14px;
  background-color: transparent;
  opacity: 0;
  transform: translateY(10px);
  /* background-color is listed in every one of this element's `transition`
     declarations (closed, open, below) so it's never dropped from
     transition-property by a more specific rule overwriting the
     shorthand — and always paired with its own 0s delay, so the per-item
     entrance stagger (transition-delay, set below) can never also delay
     the hover fill: transition-delay applies positionally to whichever
     property shares its index in transition-property. */
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.12s ease;
}

.nav-dropdown.is-open .nav-dropdown-grid a,
.nav-dropdown:hover .nav-dropdown-grid a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.12s ease;
}

/* Hover/focus highlight on the individual item, matching the light grey
   fill shown on the hovered row in the massivemusic.com reference. */
.nav-dropdown-grid a:hover,
.nav-dropdown-grid a:focus-visible {
  background-color: var(--off-white);
}

/* Items cascade in one after another once the panel's grown, rather
   than all fading in together — each starts slightly later than the
   last, matching the staggered-entrance feel of the massivemusic.com
   reference nav. Delay values are positional or match transition's
   (opacity, transform, background-color) order above — background-color
   always gets 0s so hover/focus response is never delayed by this
   item's entrance, no matter how far into it the pointer arrives. */
.nav-dropdown.is-open .nav-dropdown-grid a:nth-child(1),
.nav-dropdown:hover .nav-dropdown-grid a:nth-child(1) { transition-delay: 0.2s, 0.2s, 0s; }
.nav-dropdown.is-open .nav-dropdown-grid a:nth-child(2),
.nav-dropdown:hover .nav-dropdown-grid a:nth-child(2) { transition-delay: 0.24s, 0.24s, 0s; }
.nav-dropdown.is-open .nav-dropdown-grid a:nth-child(3),
.nav-dropdown:hover .nav-dropdown-grid a:nth-child(3) { transition-delay: 0.28s, 0.28s, 0s; }
.nav-dropdown.is-open .nav-dropdown-grid a:nth-child(4),
.nav-dropdown:hover .nav-dropdown-grid a:nth-child(4) { transition-delay: 0.32s, 0.32s, 0s; }
.nav-dropdown.is-open .nav-dropdown-grid a:nth-child(5),
.nav-dropdown:hover .nav-dropdown-grid a:nth-child(5) { transition-delay: 0.36s, 0.36s, 0s; }

.nav-dropdown-grid strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-grid span {
  font-size: 13px;
  color: #767676;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  z-index: 890;
}

.nav-scrim.is-active,
[data-barba="wrapper"]:has(.nav-dropdown:hover) .nav-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

@media (max-width: 680px) {
  .nav-dropdown { display: none; }
}

/* ---------- Mobile burger + full-screen menu ---------- */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  justify-self: start;
  color: var(--white);
  transition: color 0.25s ease;
}

.site-nav.scrolled .nav-burger,
.site-nav:has(.nav-dropdown.is-open) .nav-burger,
.site-nav:has(.nav-dropdown:hover) .nav-burger { color: var(--ink); }

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav.menu-open {
  background: var(--ink) !important;
  box-shadow: none;
}

.site-nav.menu-open .nav-burger,
.site-nav.menu-open .hero-home-logo,
.site-nav.menu-open .hero-home-nav-group a { color: var(--white); }

.site-nav.menu-open .hero-home-nav-group a.btn-white { color: var(--ink); }

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.is-open { clip-path: inset(0 0 0 0); pointer-events: all; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

.mobile-menu-panels {
  position: relative;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  padding: 0 32px;
}

/* Both panels sit side by side in normal flow (not absolutely
   positioned), so the track's height is naturally the taller of the
   two — sliding it with transform instead of showing/hiding the panels
   independently avoids the shorter panel's flow height clipping the
   taller one, which `overflow: hidden` on the panels wrapper would
   otherwise do. */
.mobile-menu-track {
  display: flex;
  width: 200%;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.is-projects-open .mobile-menu-track {
  transform: translateX(-50%);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 50%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-menu-main { opacity: 1; }
.mobile-menu.is-projects-open .mobile-menu-sub { opacity: 1; transition-delay: 0.15s; }
.mobile-menu.is-projects-open .mobile-menu-main { opacity: 0; }

.mobile-menu-links a,
.mobile-menu-trigger {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.4;
  color: var(--white);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 18px 0;
  cursor: pointer;
}

.mobile-menu-links a:last-child,
.mobile-menu-sub a:last-child { border-bottom: none; }

.mobile-menu-trigger-arrow {
  width: 16px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Pinned to the top of the overlay (below the 60px fixed navbar),
   independent of .mobile-menu's own internal scroll (position:fixed, not
   a descendant of the scrolling/sliding panels) — only ever visible
   while the projects sub-panel is open. */
.mobile-menu-back {
  position: fixed;
  top: 76px;
  left: 32px;
  z-index: 999;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  font-size: clamp(15px, 4vw, 18px);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-menu.is-projects-open .mobile-menu-back {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-back svg { width: 14px; height: 10px; }

@media (min-width: 681px) {
  .nav-burger, .mobile-menu { display: none !important; }
}

@media (max-width: 680px) {
  .nav-burger { display: flex; }
}

.hero-home-logo {
  display: inline-flex;
  align-items: center;
}

/* Logo: wordmark collapses into the wave icon on scroll */
.hero-home-logo {
  position: relative;
  width: 110px;
  height: 30px;
  justify-content: center;
  color: var(--white);
  transition: color 0.25s ease;
}

.hero-home-logo svg {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.logo-word { width: 110px; height: 18px; }
.logo-icon { width: 36px; height: 30px; }

.logo-letter {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  /* returning: wait for the icon to un-draw, inner letters first */
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + (2 - var(--d)) * 0.05s),
    opacity 0.35s ease calc(0.15s + (2 - var(--d)) * 0.05s);
}

.logo-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 20.715;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.2s cubic-bezier(0.55, 0, 0.75, 0);
}

.site-nav.scrolled .hero-home-logo,
.site-nav:has(.nav-dropdown.is-open) .hero-home-logo,
.site-nav:has(.nav-dropdown:hover) .hero-home-logo { color: var(--ink); }

.site-nav.scrolled .logo-letter {
  transform: translateX(calc(var(--dx) * 1px)) scale(0.15, 0.6);
  opacity: 0;
  /* collapsing: outer letters first */
  transition:
    transform 0.45s cubic-bezier(0.64, 0, 0.78, 0) calc(var(--d) * 0.05s),
    opacity 0.3s ease calc(0.1s + var(--d) * 0.05s);
}

.site-nav.scrolled .logo-icon path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.33, 0, 0.2, 1) 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .logo-letter,
  .site-nav.scrolled .logo-letter { transform: none; transition: opacity 0.2s ease; }
  .logo-icon path,
  .site-nav.scrolled .logo-icon path { transition: none; }
}

/* ---------- Page transition loader (Barba + logo line animation) ---------- */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  /* Idle/default: hidden, top-anchored (a zero-height sliver pinned at the
     very top) — this is also the resting value a reveal animates back to.
     The cover/reveal animations themselves are driven entirely by the Web
     Animations API in page-transitions.js (overlay.animate(...), explicit
     keyframes each time), not a CSS `transition` reacting to this value
     changing — both phases need to sweep bottom-to-top independently,
     which means the cover phase has to *start* from a different hidden
     shape (bottom-anchored) than this idle one (top-anchored); doing that
     via transition:none + forced reflow + retarget reproducibly froze the
     animation on its first frame, hence Web Animations instead. */
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.page-transition.is-active { pointer-events: all; }

.page-transition .logo {
  --w: min(140px, 40vw);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.667);
}

.page-transition .logo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  aspect-ratio: 263 / 221;
}

.page-transition .logo-icon path { stroke-dashoffset: 1; }

.page-transition.is-active .logo-icon path {
  animation: basils-line-loop 1.4s ease-in-out infinite;
}

@keyframes basils-line-loop {
  0% { stroke-dashoffset: 1; }
  45%, 55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition.is-active .logo-icon path { animation: none; stroke-dashoffset: 0; }
}

.site-nav.scrolled .hero-home-nav-group a,
.site-nav.scrolled .nav-dropdown-trigger,
.site-nav:has(.nav-dropdown.is-open) .hero-home-nav-group a,
.site-nav:has(.nav-dropdown.is-open) .nav-dropdown-trigger,
.site-nav:has(.nav-dropdown:hover) .hero-home-nav-group a,
.site-nav:has(.nav-dropdown:hover) .nav-dropdown-trigger {
  color: var(--ink);
}

.site-nav.scrolled .hero-home-nav-group a.btn-white {
  background: var(--ink);
  color: var(--white);
}

.site-nav.scrolled .nav-caret,
.site-nav:has(.nav-dropdown.is-open) .nav-caret,
.site-nav:has(.nav-dropdown:hover) .nav-caret {
  filter: invert(1);
}

/* Project pages: the hero is a contained image on a light page
   background, never a full-bleed dark/colorful backdrop behind the nav
   — so the default white-text-over-dark-hero scheme is invisible here
   even before scrolling. Forces the same ink color the rest of the site
   only gets once .scrolled kicks in, regardless of scroll position. */
.site-nav.site-nav-dark .hero-home-logo,
.site-nav.site-nav-dark .hero-home-nav-group a:not(.btn-white),
.site-nav.site-nav-dark .nav-dropdown-trigger,
.site-nav.site-nav-dark .nav-burger {
  color: var(--ink);
}

.hero-home-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  font-size: clamp(48px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

/* ---------- Upcoming events (dark) ---------- */

.events {
  background: #121212;
  color: var(--white);
  padding: 100px 0 110px;
}

.events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.events h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  max-width: 620px;
}

.events-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.events-nav[hidden] { display: none; }

.events-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.events-arrow:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.events-arrow.swiper-button-disabled { opacity: 0.3; cursor: default; }
.events-arrow.swiper-button-disabled:hover { background: transparent; border-color: rgba(255,255,255,0.3); }

.events-swiper { overflow: visible; }

.events-swiper .swiper-slide { height: auto; }

.events { overflow-x: hidden; }

.event-card {
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card-featured { border-color: var(--white); }

.event-card-media {
  position: relative;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 60px;
}

.event-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.event-card-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin-top: auto;
}

.event-card-meta span:last-child {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .events-arrow { width: 44px; height: 44px; }
  .event-card-body { padding: 22px; gap: 18px; }
  .event-card-body h3 { font-size: 24px; }
}

/* ---------- Under the Basils Umbrella ---------- */

.umbrella {
  background: var(--white);
  padding: 110px 0 120px;
}

.umbrella h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

/* Down to 3 projects (Jazz Tribute, Robinson, Listening Bar) as of
   2026-11-26, after Podcast moved to the top-level nav and Gorgeouz Beats
   was removed from the lineup entirely — the old 5-card layout was two
   separate grids (`umbrella-grid-a`/`-b`) with hand-placed column/row spans
   built specifically for a 2-card + 3-card split. That split no longer
   maps to anything, so it collapsed into one even `umbrella-grid` (heading
   + N equal cards in a row on desktop) instead of patching the old spans
   down to a now-arbitrary count. **Jazz Tribute card pulled again, same
   day, "for now"** (temporary — page itself and its nav/footer links are
   untouched, just the homepage card) — down to 2 cards, so
   `grid-template-columns` dropped from `repeat(4, 1fr)` to `repeat(3, 1fr)`
   (heading + 2 cards). Bump this back up whenever a card is added back. */
.umbrella-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.umbrella-head {
  grid-column: 1;
  align-self: start;
}

.umbrella-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.umbrella-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.umbrella-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.umbrella-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.umbrella-card-media:hover .umbrella-shader-canvas,
.umbrella-card-media:focus-within .umbrella-shader-canvas {
  opacity: 1;
}

.umbrella-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
}

.umbrella-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #3a3a3a;
  min-height: 67.5px;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .umbrella-grid { grid-template-columns: 1fr 1fr; }
  .umbrella-head { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .umbrella-grid { grid-template-columns: 1fr; }
}

/* ---------- Let's make some noise CTA + footer (shared video) ---------- */

.noise-footer-wrap {
  position: relative;
  overflow: hidden;
  background: var(--orange) center/cover no-repeat url('assets/home/footer-poster.jpg');
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.noise-footer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.noise-footer-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ee4601;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

/* Sponsorship-page-only recolor, added 2026-11-12, per explicit request
   to match this event's green branding (the hero headline/lineup's
   #84ff00) — scoped to .sponsorship-footer (added only to this page's
   .noise-footer-wrap) rather than changing the shared rule above, which
   stays the brand red/orange/gold tint on the other 15 public pages.
   Same video, same motion — only the tint changed. Also switched blend
   mode from `overlay` to `hue`: the footer's source footage is already
   warm/orange-toned, and `overlay` combines both layers' luminance,
   which took a green overlay color toward a muddy yellow instead of
   reading as green (confirmed visually, not assumed). `mix-blend-mode:
   hue` takes the overlay's hue only, keeping the backdrop video's own
   luminance/saturation (i.e. its motion/contrast) intact — a true
   recolor rather than a mix of both hues. */
.noise-footer-wrap.sponsorship-footer::after {
  background: linear-gradient(135deg, #0f2e00, #84ff00 60%, #d4ff9e);
  mix-blend-mode: hue;
}

.noise-footer-wrap .noise-cta,
.noise-footer-wrap .site-footer-v2 {
  position: relative;
  z-index: 2;
}

.noise-cta {
  padding: 110px 0;
  text-align: center;
}

.noise-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1;
}

.noise-sub {
  margin-top: 18px;
  font-size: 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.noise-cta .btn { margin-top: 32px; }

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

.site-footer-v2 {
  background: #f1f1ef;
  color: var(--ink);
  padding: 56px 0 32px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-v2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 360px;
  max-width: 460px;
}

.newsletter-form {
  display: flex;
  height: 48px;
  border: 1px solid var(--ink);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
}

.newsletter-form input::placeholder { color: rgba(17,17,17,0.6); }

.newsletter-form button {
  width: 94px;
  border: none;
  background: var(--ink);
  color: #f1f1ef;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}

.newsletter-consent input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

.newsletter-success {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.newsletter-error {
  font-size: 12px;
  font-weight: 600;
  color: #c21807;
}

.footer-v2-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  flex: 2 1 480px;
  justify-content: flex-end;
}

.footer-v2-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 150px;
}

.footer-v2-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-v2-col a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.85;
}

.footer-v2-col a:hover { opacity: 1; }

.footer-v2-col span {
  display: block;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.85;
}

.footer-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.footer-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(34,34,34,0.18);
  font-size: 12px;
  color: rgba(17,17,17,0.6);
  flex-wrap: wrap;
}

/* Sits between the brand mark and the copyright line (space-between on
   the parent, three children, naturally centers this one between the
   other two) instead of its own labeled footer column. */
.footer-v2-legal {
  display: flex;
  gap: 20px;
}

.footer-v2-legal a:hover { color: var(--ink); }

.footer-v2-brand img { width: 36px; height: auto; display: block; }

/* ---------- Home responsive ---------- */

@media (max-width: 680px) {
  .hero-home-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .hero-home-nav-group { display: none; }
  .hero-home-nav-group-right {
    display: flex;
    justify-self: end;
  }
  .hero-home-nav-group-right a:not(.btn-white) { display: none; }
  .hero-home-nav-group-right .btn-sm { padding: 7px 14px; font-size: 12px; }
  .hero-home-logo { justify-self: center; }
  .hero-home-title-wrap { align-items: center; padding: 0; }
  .footer-v2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: none;
    width: 100%;
  }
  .footer-v2-bottom { flex-direction: column; align-items: flex-start; }
  .noise-footer-wrap { padding: 12px; }
  .noise-footer-wrap .wrap { padding: 0 20px; }
}

/* ========================================================== */
/* ---------- Event template page ---------- */
/* ========================================================== */

.event-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
}

/* ---------- Event hero ---------- */

.event-hero {
  background: #121212;
  color: var(--white);
  padding: 140px 0 120px;
}

.event-hero-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.event-hero-media {
  flex: 1 1 46%;
  aspect-ratio: 765 / 792;
  overflow: hidden;
}

.event-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero-info {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.event-hero-info h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.event-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-meta-cell .label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.event-meta-cell .value {
  font-size: 22px;
  font-weight: 500;
}

.event-desc {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  text-wrap: pretty;
}

.event-tickets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-tickets-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-row {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ticket-info h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 12px;
}

.ticket-info p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}

.ticket-qty {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qty-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.qty-value { font-size: 20px; min-width: 16px; text-align: center; }

.event-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.event-total {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.event-total span:first-child { color: rgba(255,255,255,0.6); }

/* ---------- The night ---------- */

.event-night {
  background: var(--white);
  padding: 110px 0;
}

.event-night-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.event-night-cols {
  display: flex;
  gap: 90px;
  flex-wrap: wrap;
}

.event-col-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.order-row {
  display: flex;
  gap: 28px;
  align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 16px 0;
  font-size: 17px;
}

.order-row .time { font-weight: 700; width: 56px; flex-shrink: 0; }

.event-getting-there { max-width: 420px; }

.venue-row {
  font-size: 17px;
  line-height: 1.5;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.venue-note {
  font-size: 16px;
  line-height: 1.5;
  color: #3a3a3a;
  padding: 16px 0;
  text-wrap: pretty;
}

/* ---------- On stage ---------- */

.event-stage {
  background: #f1f1ef;
  padding: 110px 0;
}

.event-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.event-stage-head p {
  font-size: 17px;
  line-height: 1.5;
  max-width: 440px;
  color: #3a3a3a;
}

.event-artists {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.artist-card { display: flex; flex-direction: column; gap: 16px; }

.artist-media {
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: #ddd;
}

.artist-media img { width: 100%; height: 100%; object-fit: cover; }

.artist-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
}

.artist-card p { font-size: 16px; color: #666; }

.artist-visit {
  display: inline-block;
  align-self: flex-start;
  margin-top: -6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.artist-visit:hover { opacity: 0.7; }

/* ---------- From past nights ---------- */

.event-gallery {
  background: var(--white);
  padding: 110px 0;
}

.event-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.event-gallery-head p {
  font-size: 18px;
  margin-top: 10px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 16px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  break-inside: avoid;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.gallery-grid img:hover { opacity: 0.85; }

/* Caps a gallery to roughly 4 rows at the default 3-column desktop
   layout (12 images) — opt-in via this modifier class rather than a
   blanket rule on `.gallery-grid` itself, so the 3-image event-detail
   galleries elsewhere are unaffected. The hidden images stay in the
   DOM (just `display:none`, not removed), so `initEventGallery`'s
   `.gallery-grid img` query in page-transitions.js still picks them
   up — clicking any visible photo still lets the lightbox's next/prev
   cycle through all of them, not just the first 12. */
.gallery-grid-capped img:nth-child(n+13) { display: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.92);
  padding: 32px;
}

.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(1200px, 90vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1080px) {
  .event-hero-grid { flex-direction: column; }
  .event-hero-media { width: 100%; aspect-ratio: 16/11; }
  .event-artists { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 680px) {
  .event-hero { padding: 110px 0 80px; }
  .event-night, .event-stage, .event-gallery { padding: 70px 0; }
  .event-artists { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 1; }
  .event-meta-row { gap: 28px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ---------- Event back link + all-events grid ---------- */

.event-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}

.event-back:hover { color: var(--white); }

.event-back svg { width: 16px; height: 16px; display: block; }

.event-grid-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (max-width: 560px) {
  .event-grid-all { grid-template-columns: 1fr; }
}

/* ---------- Events: loading + empty states (homepage + /events) ---------- */

.events-loading {
  font-size: 15px;
  color: #767676;
  padding: 40px 0;
}

.events .events-loading { color: rgba(255,255,255,0.6); }

.event-grid-all .events-empty { grid-column: 1 / -1; }

.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 72px 24px;
  color: #3a3a3a;
}

.events-empty svg { color: var(--orange); }

.events-empty h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
}

.events-empty p {
  font-size: 15px;
  color: #767676;
  max-width: 360px;
}

.events-empty-dark {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}

.events-empty-dark p { color: rgba(255,255,255,0.6); }

/* ========================================================== */
/* ---------- Project template page ---------- */
/* ========================================================== */

.project-hero { padding: 96px 0 0; }

.project-hero-media-wrap {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: rgba(17,17,17,0.04);
}

.project-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content { padding: 56px 0 64px; }

.project-cta { margin-top: 32px; }

.project-content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  width: 100%;
  text-wrap: pretty;
}

.project-eyebrow {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin-top: 20px;
}

.project-summary {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.4;
  font-weight: 500;
  width: 100%;
  text-wrap: pretty;
}

.project-social {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.project-social a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.project-social a:hover { opacity: 0.7; }

.project-episodes { padding: 0 0 64px; }

.project-episodes h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  flex: 1 1 100%;
}

/* Episode cards: `.wrap` is now an explicit flex row (added 2026-11-23) —
   previously `.episode-card` was `display: inline-block`, which only had a
   gap between cards because of the HTML whitespace between elements (not a
   real, reliable gap) and left cards baseline-aligned, so a 2nd card with a
   taller/shorter description visibly sat at a different vertical position
   than the 1st. `gap: 32px` on the row is a real, explicit gap; `h2` is
   forced onto its own row via `flex: 1 1 100%` so it doesn't become a flex
   item alongside the cards. Each `.episode-card` is itself a flex column
   stretched to the row's height (flex's own default `align-items: stretch`,
   not overridden), with `.episode-links` pinned to the bottom of that
   column via `margin-top: auto` — so the YouTube/Spotify links line up
   along the same bottom edge across cards regardless of description
   length, and each card's cover photo stays pinned to the top. */
.project-episodes .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.episode-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 420px;
  max-width: 420px;
}

.episode-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.episode-links {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 12px;
}

.episode-links a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.episode-links a:hover { opacity: 0.7; }

.episode-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.episode-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.episode-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.episode-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.episode-play svg { width: 20px; height: 20px; margin-left: 2px; }

.episode-card h4 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
}

.episode-card p {
  margin-top: 8px;
  font-size: 15px;
  color: #666;
}

.episode-card:hover .episode-card-media img { transform: scale(1.05); }
.episode-card:hover .episode-card-media::after { opacity: 1; }
.episode-card:hover .episode-play { transform: scale(1.1); background: var(--red); }

@media (max-width: 680px) {
  .project-hero { padding: 80px 0 0; }
  .project-content { padding: 40px 0 48px; }
  .episode-card { flex-basis: 100%; max-width: none; }
}

/* ---------- Project detail: extended content sections ----------
   Unlike the hero/title/summary above (fetched from Supabase so every
   project's page shares one data-driven template), these sections are
   static, hand-written per project — only Robinson has real long-form
   content to show yet. Add the same markup to another project's page
   once it has its own real copy; don't invent placeholder content for
   the other 4 just to reuse these classes. */

/* No bottom padding — the Ray image (on mobile, reordered to sit last)
   should land flush against the section's bottom edge, not float above
   a gap; on desktop this also lets the pillars section below sit flush
   right after instead of leaving a white strip between the two. */
.project-feature { background: var(--white); padding: 90px 0 0; }

.project-feature-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
  align-items: center;
}

.project-feature-tags {
  align-self: start;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.project-feature-media {
  max-width: 520px;
  width: 100%;
  aspect-ratio: 621 / 639;
  overflow: hidden;
  justify-self: center;
}

/* The source cutout (ray.png) has transparent margin above/below the
   face baked into the file itself, so a centered object-fit:cover would
   crop that empty margin in evenly rather than removing it.
   object-position anchored toward the top crops the extra space off
   the bottom instead, so the face reaches the bottom edge with nothing
   empty left beneath it — at any aspect ratio, including mobile's. */
.project-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* .project-feature-copy p (below) also matches this element — it's a
   <p> inside .project-feature-copy — and its selector has higher
   specificity (class+type vs. this rule's class alone), so it was
   silently winning and overriding this color/size. Scoping the
   selector to both classes together fixes that without relying on
   source order. */
.project-feature-copy p.project-feature-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.01em;
  color: #fc0001;
  margin-bottom: 16px;
}

.project-feature-copy {
  max-width: 420px;
  justify-self: end;
}

.project-feature-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: #3a3a3a;
}

.pillars-section {
  background: #fc0001;
  color: var(--white);
  padding: 100px 0 0;
}

.pillars-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 60px;
}

.pillars-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pillars-head-copy { max-width: 440px; }

.pillars-head-copy p {
  font-size: 17px;
  line-height: 1.6;
}

.pillars-head-copy p + p { margin-top: 16px; }

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

.pillar {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  text-transform: uppercase;
}

.pillar-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pillar strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
}

/* "Who it's for" — plain static section (the earlier scroll-scrubbed
   version was tried and dropped the same day; see git history if that
   ever needs resurrecting, but it's not wired up anymore — removed
   initAudienceScrollAnim() and its call/cleanup hook from
   page-transitions.js entirely rather than leaving dead code around). */

.audience-section { background: var(--off-white); padding: 120px 0; }

.audience-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.01em;
  margin-bottom: 100px;
}

.audience-grid {
  display: flex;
  gap: 60px;
}

.audience-col { flex: 1 1 0; }

.audience-col strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.audience-col p {
  font-size: 15px;
  line-height: 1.5;
  color: #3a3a3a;
}

@media (max-width: 680px) {
  .audience-section { padding: 80px 0; }
  .audience-title { margin-bottom: 48px; }
  .audience-grid { flex-direction: column; gap: 32px; }
}

.vision-mission-section { background: var(--white); }

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

.vm-card {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px;
  color: var(--white);
}

.vm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.vm-card h3,
.vm-card p { position: relative; }

.vm-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.01em;
}

.vm-card p {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 680px) {
  /* Image moves to the very bottom of the stack on mobile (tags, then
     copy, then the photo last) instead of sitting in source order
     between them — order values below, not a markup change. */
  .project-feature-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .project-feature-tags { order: 1; }
  .project-feature-copy { order: 2; justify-self: center; }
  .project-feature-media { order: 3; }
  .pillars-head { flex-direction: column; gap: 24px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { aspect-ratio: 16 / 10; }
  .vm-grid { grid-template-columns: 1fr; }
}

/* ---------- Jazz Tribute: gallery / upcoming / newsletter ----------
   Same spirit as Robinson's extended sections above — static, hand-
   written per project, only added where there's real content to show.
   Jazz Tribute reuses the event-detail page's existing `.event-gallery`/
   `.gallery-grid`/`.lightbox` masonry+lightbox (see "Event template
   page" above) for its own past-events gallery rather than duplicating
   that CSS/JS. */

.project-upcoming { background: var(--off-white); padding: 96px 0; }

.project-upcoming-head { margin-bottom: 48px; }

.project-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-upcoming-card {
  border: 1px dashed rgba(17,17,17,0.25);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 220px;
}

.project-upcoming-badge {
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 40px;
  padding: 4px 14px;
}

.project-upcoming-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
}

.project-upcoming-card p { font-size: 15px; color: #3a3a3a; }

@media (max-width: 680px) {
  .project-upcoming-grid { grid-template-columns: 1fr; }
}

/* ---------- Sponsorship landing page ---------- */

.sponsorship-portfolio h2,
.sponsorship-event h2,
.sponsorship-lineup h2,
.sponsorship-package h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.sponsorship-section-intro {
  max-width: 640px;
  margin-top: 16px;
  margin-bottom: 48px;
  font-size: 17px;
  color: #3a3a3a;
  text-wrap: pretty;
}

.sponsorship-portfolio { background: var(--white); padding: 110px 0; overflow: hidden; }

/* Redesigned 2026-11-12 as a Swiper slider ("make who we are with
   slider, 3.5 per view, with nice arrows") — was a plain 3-column CSS
   grid (.sponsorship-portfolio-grid, now unused and removed, along with
   its two responsive media-query overrides). Head row (title+intro on
   the left, arrows on the right) mirrors the homepage's own
   .events-head/.events-nav pattern — see initSponsorship in
   page-transitions.js for the Swiper config. */
.sponsorship-portfolio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.portfolio-nav { display: flex; gap: 12px; flex-shrink: 0; }

/* Same circular-icon-button shape as the homepage's .events-arrow, but
   an ink-on-white variant — .events-arrow is white-on-dark, built for
   the hero's video background, and would be invisible against this
   section's plain white background. */
.portfolio-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,0.2);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.portfolio-arrow:hover { background: rgba(17,17,17,0.06); border-color: rgba(17,17,17,0.35); }

.portfolio-arrow.swiper-button-disabled { opacity: 0.3; cursor: default; }
.portfolio-arrow.swiper-button-disabled:hover { background: transparent; border-color: rgba(17,17,17,0.2); }

.portfolio-swiper { overflow: visible; margin-top: 48px; }

.portfolio-swiper .swiper-slide { height: auto; }

/* Cards with a CTA link are <a> tags (not <div>s) so the whole card is
   clickable, not just a separate link line — reset the anchor's
   default underline/color here. */
.sponsorship-portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sponsorship-portfolio-media { aspect-ratio: 4 / 3; overflow: hidden; }

.sponsorship-portfolio-media img { width: 100%; height: 100%; object-fit: cover; }

.sponsorship-portfolio-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1;
}

.sponsorship-portfolio-card p { font-size: 15px; color: #3a3a3a; }

.portfolio-learn-more {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: -4px;
  transition: opacity 0.2s ease;
}

.sponsorship-portfolio-card:hover .portfolio-learn-more { opacity: 0.7; }

/* Recolored 2026-11-12, per explicit request ("make all background
   green, and all text's with black, remove the image") — was a dark
   #121212 band (reusing the event-detail page's .event-hero treatment)
   with a venue photo split alongside the facts; became solid brand
   green with black text and no photo. **The photo + split layout came
   back the same day** ("bring back the event photo, basically bring
   back event layout but do not change the color") — explicitly the
   layout only, not the color: still `#84ff00`/black, just the venue
   photo and the two-column grid restored. */
.sponsorship-event { background: #84ff00; color: var(--ink); padding: 110px 0; }

.sponsorship-event-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.sponsorship-event-media {
  flex: 1 1 46%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sponsorship-event-media img { width: 100%; height: 100%; object-fit: cover; }

.sponsorship-event-info { flex: 1 1 54%; min-width: 0; }

.sponsorship-event h2 { margin-bottom: 48px; }

/* .event-meta-cell .label/.value default to white-on-dark (shared with
   the event-detail page's own dark .event-hero) — overridden to black
   here, scoped to this page only. */
.sponsorship-event .event-meta-cell .label { color: rgba(0, 0, 0, 0.6); }
.sponsorship-event .event-meta-cell .value { color: var(--ink); }

/* .event-meta-row is `display: flex; flex-wrap: wrap` on the shared
   base rule — fine for the event-detail page's 4 cells (one row,
   wraps only on narrow viewports), but 5 cells here wrap unevenly
   (3 + 2, with no guarantee the 2nd-row cells line up under the
   correct 1st-row column — it depends on each cell's own content
   width, not a fixed column count). Switched to CSS Grid, scoped to
   this page only, so columns actually align: 3 columns means Duration
   sits under Format and Audience under Location, deterministically,
   regardless of label/value text length. */
.sponsorship-event .event-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 32px;
}
/* **Date cell removed, 2026-11-23** ("House & Basils" event postponed
   indefinitely) — the `.event-meta-row` now has 4 cells (Format,
   Location, Duration, Total audience), not 5; the 3-column grid above
   still applies (3 + 1 wrap on the last row) since nothing asked for
   a layout change, just the date itself gone from `sponsorship.html`. */


/* .link-arrow has no styling of its own outside of .teaser — .page-hero
   isn't a .teaser, so it needs the same look scoped here (white, since
   .page-hero is the dark charcoal band). */
.page-hero .link-arrow {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* .sponsorship-hero is a modifier on top of .page-hero (not a
   replacement) — keeps the shared h1/p/.link-arrow text styling, only
   overrides background/sizing, so /about's own .page-hero is
   untouched. A real crowd photo background + taller band + dark
   overlay, replacing the plain charcoal fill. Redesigned 2026-11-12
   against Figma node 782:2531 — content is centered (was left-aligned)
   and the overlay became a top-to-bottom gradient (was a flat 0.55
   wash), matching that design exactly. */
.page-hero.sponsorship-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 140px 0;
  background: #000 center/cover no-repeat url('/assets/sponsorship/hero-crowd.jpg');
  overflow: hidden;
}

.page-hero.sponsorship-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8));
  z-index: 0;
}

/* Subtitle bumped up to match the title's own display treatment (just
   smaller/lighter weight), not the smaller plain-paragraph size shared
   with /about's .page-hero p. */
.page-hero.sponsorship-hero p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 36px);
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
}

/* A flex item with no explicit width shrinks to fit its content (here,
   the title text) instead of filling out to .wrap's own `max-width:
   1440px` — so .wrap's `margin: 0 auto` had no leftover space left to
   center *that* shrunk box with, even though the box's content
   (h1/p/a) is naturally left-aligned inside it. Net effect: the whole
   title block drifted toward the flex container's left edge instead of
   sitting inside a 1440px-wide, centered container like every other
   section's .wrap. Forcing `width: 100%` makes it actually claim full
   width first (then get capped back down to max-width: 1440px same as
   always), which gives `margin: auto` real leftover space to center
   that capped box with, at exactly the same left/right edges as the
   sections below. Content itself is now centered (text-align +
   flex/align-items), matching the Figma redesign's centered hero —
   the earlier left-aligned treatment was deliberate at the time but is
   superseded by this redesign. */
.page-hero.sponsorship-hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 6vw, 80px);
}

/* The hero's neon "HOUSE & BASILS" headline is the exact artwork from
   Figma's own layer (node 782:2536, "Layer_1") — 12 flattened vector
   letters whose strokes are genuinely curved/bowed (as if printed on a
   glowing drum viewed face-on), with the first and last letters also
   carrying a Gaussian blur + fill-to-transparent gradient that
   dissolves them into the dark background. An earlier pass tried to
   approximate this on live text with per-letter CSS 3D transforms
   (rotateY/translateZ) — per explicit feedback that result read as
   "far away from what I expected", so this instead reassembles Figma's
   own 12 letter paths into one static file,
   `assets/sponsorship/house-and-basils.svg` (built from the raw SVGs
   Figma's MCP server exports per letter — each letter's own viewBox/
   size + the "Vector" node's metadata x/y/width/height from Figma
   determined its placement; ids were namespaced per letter to avoid
   `<linearGradient>`/`<filter>` id collisions once combined into one
   document). It's referenced as a plain `<img>`, not inlined, so it
   doesn't need to be re-synced if Figma's layer ever changes — just
   regenerate the file the same way. */
.page-hero.sponsorship-hero .sponsorship-glow-title {
  max-width: none;
  width: 100%;
}

/* A plain <img> never wraps the way split text could — it just scales
   as one unbroken unit, which is also what keeps mobile matching the
   single-line desktop artwork instead of breaking across two lines. */
.page-hero.sponsorship-hero .sponsorship-glow-title img {
  display: block;
  width: 100%;
  height: auto;
}

.page-hero.sponsorship-hero .btn {
  margin-top: 4px;
}

@media (max-width: 680px) {
  .page-hero.sponsorship-hero { min-height: 70vh; padding: 110px 0; }
}

/* Redesigned 2026-11-12 against Figma node 814:1736 — was a plain
   5-column .event-artists grid (still shared with the event-detail
   page's own lineup section, untouched there); this page's version is
   now a Swiper "coverflow" row instead (see initSponsorship in
   page-transitions.js), so it no longer uses .sponsorship-artists/
   .event-artists at all. .artist-card/.artist-media/.artist-visit
   (below, shared with event-detail) are still reused unchanged inside
   each slide. */
.sponsorship-lineup { background: #efefef; padding: 110px 0; overflow: hidden; }

.sponsorship-lineup h2 { margin-bottom: 48px; }

/* Houses the curved-lens WebGL carousel (assets/js/curved-lens-
   carousel.js) plus the decorative zigzag band behind it (.lineup-bg)
   — Figma's own layer here (node 814:2418, "Group 8") is a cluster of
   6 jagged vector shapes threaded behind/between the lineup photos;
   the Figma MCP session that could fetch that exact asset closed
   mid-task (its per-asset localhost URLs expire with the session, and
   re-opening it needs the basils file to be Figma desktop's active tab
   again, which wasn't available this session), so this is a hand-built
   equivalent zigzag ribbon (plain inline SVG, .lineup-bg below) in the
   same brand green as the hero headline rather than a recreation of
   Figma's exact path data. Swap the inline <svg> for the real exported
   asset if node 814:2418 is ever re-fetched — the positioning/layering
   (absolute, centered, behind the carousel) won't need to change
   either way. */
.lineup-stage { position: relative; padding: 40px 0 70px; }

.lineup-bg {
  position: absolute;
  top: 22%;
  bottom: 20%;
  left: 0;
  width: 100%;
  fill: #84ff00;
  z-index: 0;
  pointer-events: none;
}

/* Deliberately no background/border-radius here, unlike a typical
   "card" container — per explicit feedback ("no wrapped on
   background... preserve background of original website"), the stage
   stays fully transparent so .lineup-bg (and the section's own
   #efefef background) show through underneath it, rather than reading
   as a separate panel sitting on top of the page. */
.lineup-lens-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Mobile (<=760px) fallback — plain stacked artist cards, no carousel at
   all (initSponsorship never mounts basilsMountCurvedCarousel below this
   width either, so there's no WebGL context running underneath this).
   Reuses .artist-card/.artist-media/.artist-visit, same as the lineup's
   original pre-carousel markup. */
.lineup-lens-mobile {
  display: none;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .lineup-lens-stage { display: none; }
  .lineup-lens-mobile { display: flex; }
}

/* For the 2 lineup artists without a confirmed official photo yet —
   a plain initial on a solid block, same spirit as the rest of the
   site's bold typographic treatment, rather than guessing a photo of
   the wrong person from a web search. Swap for a real photo once the
   user sends one; markup/sizing stays the same either way. */
.artist-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.artist-media-placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--white);
}

.sponsorship-package { background: var(--white); padding: 110px 0; }

.sponsorship-package h2 { margin-bottom: 48px; }

.sponsorship-package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1080px) {
  .sponsorship-package-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsorship-event-grid { flex-direction: column; }
  .sponsorship-event-media { width: 100%; aspect-ratio: 16 / 10; }
}

@media (max-width: 680px) {
  .sponsorship-portfolio, .sponsorship-event, .sponsorship-lineup, .sponsorship-package { padding: 70px 0; }
  .sponsorship-package-grid { grid-template-columns: 1fr; }
  .sponsorship-portfolio-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* 3 columns (set above for desktop alignment) are too cramped at
     this width — "December 25" and other values clipped past the
     viewport edge, confirmed via screenshot. 2 columns gives each cell
     enough room to wrap normally instead of overflowing. */
  .sponsorship-event .event-meta-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Letter-flip hover (nav + small text links) ----------
   Markup is built by assets/js/flip-links.js, not hand-authored per
   page — see that file for the exact selector list it wraps. Deliberately
   no display/layout overrides on the host <a> itself (nav links are
   inline-flex, mobile menu links are a flex row with justify-content:
   space-between for the trigger's arrow icon) — only the inner .flip-link
   span this script inserts gets position/overflow, so every host's
   existing layout and color/font are untouched; this is purely additive
   hover behavior.
   Every rule below is scoped under `.flip-link-host` (the class added to
   the host <a>) rather than written as a bare `.flip-link-row`/
   `.flip-link-letter` — this isn't just organization, it's load-bearing:
   several existing components style *any* `span` inside them generically
   (e.g. `.footer-v2-col span { display: block; ... }`), which otherwise
   outranks a bare `.flip-link-letter { display: inline-block }` on
   specificity alone (class+element beats a single class, regardless of
   which rule comes later in the file) and silently stacked every letter
   vertically in the footer link grid. Scoping under `.flip-link-host`
   gives these rules a two-class compound specificity that safely beats
   any single-class-plus-element pattern like that, anywhere on the site,
   without needing `!important`. */
.flip-link-host .flip-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.flip-link-host .flip-link-row {
  display: block;
  white-space: nowrap;
}

.flip-link-host .flip-link-row-bottom {
  position: absolute;
  inset: 0;
}

.flip-link-host .flip-link-letter {
  display: inline-block;
  transition: transform 0.3s ease;
}

.flip-link-host .flip-link-row-bottom .flip-link-letter { transform: translateY(110%); }

.flip-link-host:hover .flip-link-row-top .flip-link-letter { transform: translateY(-110%); }
.flip-link-host:hover .flip-link-row-bottom .flip-link-letter { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .flip-link-letter { transition: none; }
}

/* ========================================================== */
/* ---------- Admin panel ---------- */
/* ========================================================== */

.admin-body [hidden] { display: none !important; }

.admin-body {
  background: var(--off-white);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(17,17,17,0.1);
  background: var(--white);
}

.admin-logo {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.admin-logo span { color: #767676; font-weight: 700; }

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

.admin-auth h1,
.admin-panel-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 32px;
}

.admin-auth { max-width: 360px; margin: 48px auto 0; }

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form input[type="time"],
.admin-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid rgba(17,17,17,0.2);
  background: var(--white);
}

.admin-form textarea { resize: vertical; }

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-form-row-tight { grid-template-columns: 1fr 1fr; align-items: end; }

.admin-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.admin-checkbox input { width: 16px; height: 16px; }

.btn-ink {
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  align-self: flex-start;
}

.btn-ink:hover { opacity: 0.85; }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(17,17,17,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-error {
  color: #c21807;
  font-size: 13px;
  font-weight: 500;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(17,17,17,0.1);
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 4px;
  margin-right: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #767676;
  cursor: pointer;
}

.admin-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.admin-events-head {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.4fr) 100px minmax(160px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #767676;
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  margin-bottom: 8px;
  font-size: 14px;
}

.admin-bulk-actions { display: flex; gap: 20px; }
.admin-bulk-actions .btn-link { color: var(--white); }
.admin-bulk-actions .admin-danger { color: #ff9b8a; }

.admin-events-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(17,17,17,0.1);
  border: 1px solid rgba(17,17,17,0.1);
}

.admin-event-row {
  background: var(--white);
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.4fr) 100px minmax(160px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
}

.admin-event-row-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.admin-event-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-event-row-meta {
  font-size: 13px;
  color: #767676;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 60px;
}

.admin-badge-draft { background: #767676; }
.admin-badge-featured { margin-left: 6px; }

.admin-event-row-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-self: end; }

@media (max-width: 760px) {
  .admin-events-head { display: none; }
  .admin-event-row {
    grid-template-columns: 24px 1fr;
    grid-template-areas:
      "check main"
      "check status"
      "check meta"
      "check actions";
  }
  .admin-event-row input[type="checkbox"] { grid-area: check; align-self: start; }
  .admin-event-row-main { grid-area: main; }
  .admin-event-row-status { grid-area: status; }
  .admin-event-row-meta { grid-area: meta; white-space: normal; }
  .admin-event-row-actions { grid-area: actions; justify-self: start; }
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
}

.admin-danger { color: #c21807; }

.admin-loading { color: #767676; font-size: 14px; }

.admin-form-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.admin-form-wrap h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 8px;
}

.admin-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.admin-note {
  margin-top: 40px;
  font-size: 13px;
  color: #767676;
  max-width: 480px;
}

@media (max-width: 680px) {
  .admin-form-row,
  .admin-form-row-tight { grid-template-columns: 1fr; }
}

/* ---------- Admin: repeatable field groups ---------- */

.admin-repeater-section {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.admin-repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-repeater-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.admin-repeater {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-repeater-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-repeater-row input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid rgba(17,17,17,0.2);
  background: var(--white);
  min-width: 0;
}

.admin-repeater-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,0.2);
  background: var(--white);
  color: #c21807;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.admin-repeater-remove:hover { background: rgba(194,24,7,0.08); }

/* ---------- Admin: schedule (date/time pickers) ---------- */

.admin-schedule-section {
  padding: 16px;
  border: 1px solid rgba(17,17,17,0.1);
  background: rgba(17,17,17,0.02);
}

.admin-schedule-head {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #767676;
  margin-bottom: 12px;
}

.admin-schedule-section .admin-form-row { gap: 16px; }

/* ---------- Admin: image upload (hero + repeater) ---------- */

.admin-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-image-field { display: flex; flex-direction: column; gap: 10px; }

.admin-field-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #767676;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .admin-image-row { grid-template-columns: 1fr; }
}

.admin-image-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-image-preview {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.15);
  background: var(--white);
}

.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; }

.admin-image-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,17,17,0.04);
}

.admin-image-placeholder { font-size: 12px; color: #999; text-align: center; padding: 8px; }

.admin-image-upload-controls { display: flex; flex-direction: column; gap: 8px; }

.admin-upload-btn { cursor: pointer; }

.admin-upload-btn-small { font-size: 13px; }

.admin-upload-status { font-size: 13px; color: #767676; }

.admin-repeater-image-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-repeater-image-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.15);
  background: var(--white);
}

.admin-repeater-image-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-repeater-image-thumb-empty { background: rgba(17,17,17,0.04); }

/* ---------- Admin: gallery multi-upload ---------- */

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.admin-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,0.15);
  background: var(--white);
}

.admin-gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

.admin-gallery-tile-uploading img { opacity: 0.4; }

.admin-gallery-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(17,17,17,0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: admin-spin 0.7s linear infinite;
}

@keyframes admin-spin { to { transform: rotate(360deg); } }

.admin-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(17,17,17,0.7);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.admin-gallery-error {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: #c21807;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 4px;
}

/* ---------- Admin: form + live preview layout ---------- */

.admin-form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.admin-form-layout .admin-form { flex: 1; min-width: 0; }

.admin-preview-pane {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

.admin-preview-pane h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #767676;
  margin-bottom: 12px;
}

.admin-preview-card-wrap {
  background: #121212;
  padding: 24px;
}

.admin-preview-card-wrap .event-card { pointer-events: none; }

.admin-preview-media-empty { background: linear-gradient(135deg, var(--red), var(--orange) 55%, var(--gold)); }

.admin-preview-note {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 900px) {
  .admin-form-layout { flex-direction: column; }
  .admin-preview-pane { width: 100%; position: static; }
}

/* /music — playlist card grid, added 2026-11-15, several iterations
   (gradient-only placeholders, then icon CTAs) superseded 2026-11-18 by
   a real Figma design (file N2vgNPh278nUizSjnopMgK, node 843:1729 —
   "implement it, each card with their own visuals"). Each card is a
   square tile (`.music-playlist-art-<slug>` sets that playlist's own
   gradient, lifted directly from the Figma fill on each of the 8
   instances) holding: the uppercase title, a 3-photo collage, and a
   white "Open Playlist" pill — matching Figma's own always-visible
   button rather than reviving the earlier hover-only icon CTA (that
   was explicitly a placeholder "for now" before this real design
   existed, see prior git history if that reasoning is ever needed).
   **Collage**: Figma's 3 images (`image29` centered on top, `image30`/
   `image31` tilted trapezoid shapes peeking out left/right behind it)
   turned out to be pre-warped PNGs with real alpha-channel trapezoid
   edges, not plain rectangles rotated by CSS — confirmed via `sips -g
   hasAlpha` on the downloaded originals (side images: yes; center:
   no). So the "tilt" here is baked into the image assets themselves,
   not a CSS transform — `.music-playlist-photo-left`/`-right` are
   plain absolutely-positioned `<img>`s, sized/positioned as percentages
   derived directly from Figma's own pixel values relative to its
   652×532 collage box (e.g. the left image's `top: 76.09px` of a
   532px-tall box → `14%`), which is why `.music-playlist-collage`
   fixes `aspect-ratio: 652 / 532` — those percentages only reproduce
   the design accurately at that exact aspect ratio. Several playlists
   (Funk/Rock/Blues/Jazz) had a 4th, *hidden* image in Figma's own
   layer tree (a leftover duplicate/crop sitting fully behind the
   opaque, full-cover `image32` that's actually visible) — confirmed by
   comparing pixel dimensions of the two candidate center images against
   the rendered screenshot before picking the right one, rather than
   guessing from layer order; the unused ones were never downloaded
   into the final asset set.
   **Assets**: downloaded from the Figma desktop MCP's temporary
   `localhost:3845` URLs (expire once the session closes — re-fetch via
   `get_design_context` on the relevant node if these ever need
   replacing) into `assets/music/collage/<slug>-{left,right,center}`.
   Side images stay PNG-with-alpha source but are shipped as `.webp`
   (`cwebp -q 80`, preserves the transparency, ~1/10th the file size of
   the source PNGs — 8.7MB → 1.8MB across all 16 side images); center
   images are opaque so they ship as plain `.jpg` (`sips -s format jpeg
   -s formatOptions 80 -Z 900`, matching this repo's established photo-
   compression convention elsewhere).
   **Title font**: Figma's own layer uses "Big Shoulders Display", but
   this project's `--font-display` variable actually resolves to
   Manrope (see the `/sponsorship` entry above for why) — reused as-is
   rather than loading a second display typeface for one page, same
   reasoning as every other Figma-to-code pass on this site adapting to
   the project's real tokens instead of pixel-matching the source font.
   **Real bug hit and fixed while tuning sizing**: `.music-playlist-art`
   initially had `aspect-ratio: 1 / 1` (a guess, since Figma's card
   happens to be nearly square — 768×757) — but that 757px height in
   Figma isn't an independently-constrained square, it's just
   whatever height the content (title + 2 gaps + 532px-tall collage +
   button) naturally adds up to. Forcing a true 1:1 square here fixed
   the card's height independently of its content, and once the collage
   was widened to fix the "side photos too inset" issue above, the
   collage's own height grew with it (same `aspect-ratio: 652/532`) past
   what the forced-square card had room for — confirmed via
   `getBoundingClientRect()` showing the title's own top edge sitting
   *above* its parent's top edge, clipped off by the card's
   `overflow: hidden`, not a scroll/viewport illusion. Fixed by dropping
   `aspect-ratio: 1/1` entirely and letting the card's height be
   content-driven (matching what Figma's card actually is), rather than
   fighting that mismatch with more padding/gap trimming.
   **Real bug found and fixed 2026-11-18, per the user reporting
   "images are broken"**: the collage's left/right images were swapped
   for all 8 cards — `imgImage30` (Figma's `left: 276px` box, i.e. the
   **right**-peeking photo) had been downloaded into each card's
   `-left.webp` file, and `imgImage31` (`left: -1px`, the **left**-
   peeking photo) into `-right.webp`, backwards from the JSX captured
   during the original design-context fetch. Each side image is a
   pre-warped trapezoid photo where the subject sits in the half of
   the frame that stays visible once the center photo overlaps the
   rest (~66% of the side image's own width, by Figma's own
   measurements) — swapped into the wrong slot, the subject ends up
   entirely in the *hidden* (overlapped) half, leaving only a sliver of
   plain background visible, or nothing at all if that image's visible
   half happens to be fully transparent (confirmed directly by viewing
   the downloaded files: `retro-left.webp`, pre-fix, had its visible
   left portion fully transparent with the subject only in the
   now-hidden right half). Fixed by swapping the two files' names back
   for all 8 playlists — no CSS or markup change needed, confirming the
   positioning math itself was already correct.
   **Jazz's center photo swapped to Ray Charles, same day, per explicit
   request** ("chnage jazz with ray charles") — `jazz-center.jpg` is now
   a copy of `blues-center.jpg` (the same Ray Charles photo also used
   for Blues), overwriting the Frank Sinatra photo Figma's own Jazz
   card actually uses. Deliberately diverges from the Figma source on
   this one card, per explicit instruction, not a design-fidelity bug.
   **CTA pill shrunk and relabeled "Listen", same day, per explicit
   request** ("make button smaller, and change cta text to listen") —
   `.music-playlist-cta` font-size `16px→13px`, padding `10px 20px→6px
   16px`; every card's button text changed from "Open Playlist" to
   "Listen".
   **Blues' center photo changed off Ray Charles too, same day, per
   explicit follow-up** ("blues, use onther inage not a ray") — since
   Jazz now also uses Ray Charles (above), Blues needed a different
   photo so the two cards wouldn't duplicate the same artist.
   `blues-center.jpg` is now a cropped/compressed B.B. King photo
   (Wikimedia Commons, public domain, `commons/a/a7/Bbking.jpg`) — not
   a Figma asset at all, since every other candidate image already
   downloaded for this card (the hidden-layer duplicate, the left/right
   side photos) was already in use elsewhere on the card.
   **Hip Hop's center photo (Eminem) had its head cropped off, same
   day, per explicit report** — the source photo is a tall portrait
   (568×900) but `.music-playlist-photo-center`'s box is nearly square,
   so `object-fit: cover` scaled it to match the box's width and cropped
   the overflow evenly off the top *and* bottom, cutting into the head.
   Fixed at the source instead of patching with `object-position`:
   recropped the original to a 568×568 square anchored near the top
   (20px down from the original top edge) so the full head/shoulders
   stay in frame, trading off the lower body that wasn't adding
   anything (same treatment as the Blues/B.B. King crop above).
   **All 8 center photos converted from JPEG to WebP and downsized,
   2026-11-19, per a "loading takes a while" report**: `*-center.jpg`
   files were still the raw 900×900 JPEGs (128–245KB each, ~1.5MB of
   the page's ~1.9MB image weight) despite rendering at well under
   450px wide in `.music-playlist-photo-center`'s box — the side
   collage images (`*-left.webp`/`*-right.webp`) were already WebP and
   small (16–56KB) from the original Figma-asset pipeline, so the
   centers (added/replaced individually afterward via plain JPEG
   saves — Jazz/Blues/Hip Hop swaps above) were the one part of this
   page that never got the same treatment. Re-exported each via
   `cwebp -q 82 -resize 700 0`, deleted the old `.jpg` files, and
   updated every `<img src>` in `music.html` to the new `.webp` path.
   Collage folder total: 1.9MB → 844KB. **This fix sat on `staging`
   un-promoted for two days — the user's next "playlists images are
   loading heavily" report (2026-11-21) turned out to be production
   still serving the original heavy JPEGs, not a regression.** While
   fixing that, also downsized the side collage images
   (`*-left.webp`/`*-right.webp`): these were already WebP from the
   original Figma-asset pipeline but still at their native 800×800,
   roughly 2.2x their ~360px rendered width — re-exported each via
   `cwebp -q 82 -resize 450 0`, same filenames in place. Collage folder
   total: 844KB → 600KB. */
.music-playlists { padding: 40px 0 100px; }

.music-playlists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.music-playlist-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 24px);
  padding: 20px 12px;
  text-align: center;
  overflow: hidden;
}

.music-playlist-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1;
  color: #fff;
}

.music-playlist-art-rb { background: linear-gradient(180deg, #f237a2, #74266f); }
.music-playlist-art-retro { background: linear-gradient(180deg, #fdc96f, #e15764); }
.music-playlist-art-hiphop { background: linear-gradient(180deg, #c479f3, #462467); }
.music-playlist-art-funk { background: linear-gradient(180deg, #c4f480, #358763); }
.music-playlist-art-house { background: linear-gradient(164.79deg, #f8d574 7.4%, #e28a7a 48.3%, #a34e9c 89.19%); }
.music-playlist-art-rock { background: linear-gradient(180deg, #f35940, #5e2034); }
.music-playlist-art-blues { background: linear-gradient(180deg, #bbe4ef, #415e98); }
.music-playlist-art-jazz { background: linear-gradient(180deg, #f8cd35, #9d5019); }

.music-playlist-collage {
  position: relative;
  width: 96%;
  aspect-ratio: 652 / 532;
}

.music-playlist-photo { position: absolute; }

.music-playlist-photo-left { left: 0; top: 14%; width: 58%; height: 71%; z-index: 1; }
.music-playlist-photo-right { left: 42%; top: 14%; width: 58%; height: 71%; z-index: 1; }

.music-playlist-photo-center {
  left: 19%;
  top: 10%;
  width: 65%;
  height: 80%;
  z-index: 2;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* Two destinations per playlist card (added 2026-11-24) — each card's
   single Spotify "Listen" pill became a `.music-playlist-ctas` row of two
   pills ("Spotify" / "Apple Music") once the same 8 playlists were mirrored
   to the Basils Apple Music account. `.music-playlist-cta` itself is
   unchanged, just reused twice per card. */
.music-playlist-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.music-playlist-cta {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 99999px;
  transition: opacity 0.2s ease;
}

.music-playlist-cta:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .music-playlists-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .music-playlists-grid { grid-template-columns: 1fr; gap: 28px; }
}

