/* ==========================================================================
   Matthew Browning Music
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --ink: #0b0a09;
  --ink-2: #13110f;
  --ink-3: #1c1916;
  --bone: #f2eadf;
  --sand: #c7b69d;
  --muted: #94897b;
  --ember: #ff8a4c;
  --ember-deep: #e2581f;
  --line: rgb(242 234 223 / 0.14);
  --line-strong: rgb(242 234 223 / 0.28);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --section: clamp(5rem, 11vw, 10rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

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

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

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--bone);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus { translate: 0 0; }

.js .nojs-only { display: none; }

.wrap {
  width: min(100% - var(--gutter) * 2, 82rem);
  margin-inline: auto;
}

.section { padding-block: var(--section); }

/* ---------- Type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow span { color: var(--ember); font-variant-numeric: tabular-nums; }
.eyebrow span::after {
  content: "";
  display: inline-block;
  width: 2.5rem; height: 1px;
  margin-left: 0.9em;
  vertical-align: middle;
  background: var(--line-strong);
}

.display {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--sand); }
.display--xl { font-size: clamp(3rem, 1.2rem + 8vw, 8rem); }

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
  text-wrap: pretty;
}

.fine { font-size: 0.8125rem; color: var(--muted); }

.text-link {
  display: inline-flex;
  gap: 0.4em;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.3em;
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Signature mark ---------- */
.signature {
  display: block;
  aspect-ratio: 2683 / 722;
  background: linear-gradient(100deg, var(--bone) 20%, var(--sand));
  -webkit-mask: url("../assets/img/signature.webp") center / contain no-repeat;
  mask: url("../assets/img/signature.webp") center / contain no-repeat;
}
.signature--sm { width: 9.5rem; }
.signature--hero { width: min(100%, 46rem); }
.signature--footer { width: min(70vw, 16rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:hover { background: var(--ember); }
.btn--ghost { border-color: var(--line-strong); background: rgb(11 10 9 / 0.25); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--bone); background: rgb(242 234 223 / 0.1); }
.btn--small { min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: 0.75rem; border-color: var(--line-strong); }
.btn--small:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn__price { padding-left: 0.7em; border-left: 1px solid rgb(11 10 9 / 0.3); }

.round-btn {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(11 10 9 / 0.4);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.round-btn svg { width: 1.25rem; height: 1.25rem; }
.round-btn:hover:not(:disabled) { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.round-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(11 10 9 / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.brand { display: block; text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem); }
.site-nav ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.site-nav ul a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--ember);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.35s var(--ease);
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current]::after { scale: 1 1; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  background: none;
  border: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 1.5rem; height: 0.6rem; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: translate 0.3s var(--ease), rotate 0.3s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { translate: 0 0.26rem; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { translate: 0 -0.26rem; rotate: -45deg; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    background: rgb(11 10 9 / 0.96);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .site-nav ul { flex-direction: column; gap: 0.5rem; }
  .site-nav ul a {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.2;
  }
  .site-nav .btn--small { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 0.875rem; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(3.5rem, 9vh, 6.5rem);
  overflow: clip;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #2a2622; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, rgb(11 10 9 / 0.78) 28%, rgb(11 10 9 / 0.3) 64%, rgb(11 10 9 / 0.55) 100%),
    radial-gradient(110% 90% at 0% 100%, rgb(11 10 9 / 0.7), transparent 65%);
}
.hero__content { max-width: 60rem; }
.hero .eyebrow { color: var(--bone); }
.hero__title { filter: drop-shadow(0 2px 24px rgb(11 10 9 / 0.45)); }
.hero__title { margin-top: 1.5rem; }
.hero__tagline {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 22ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }

.hero__toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 9vh, 6.5rem);
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(11 10 9 / 0.35);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s, color 0.25s;
}
.hero__toggle:hover { background: var(--bone); color: var(--ink); }
.hero__toggle svg { width: 1.1rem; height: 1.1rem; }
.hero__toggle .icon-play,
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }
html:not(.js) .hero__toggle { display: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: 1px; height: 2.75rem;
  translate: -50% 0;
  overflow: hidden;
  background: var(--line);
}
.hero__scroll span { position: absolute; inset: 0; background: var(--bone); translate: 0 -100%; }

/* ---------- Listen ---------- */
.listen__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.listen__intro .lede { margin-top: 1.5rem; color: var(--sand); max-width: 24ch; }

.platforms { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.platforms a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  min-height: 4.5rem;
  padding-inline: 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.3s, padding 0.35s var(--ease);
}
.platforms a:hover { background: rgb(242 234 223 / 0.05); padding-inline: 1rem; }
.platforms__icon { display: flex; align-items: center; height: 1.75rem; }
.platforms__icon img { width: auto; height: 100%; border-radius: 6px; }
.platforms__icon--wide img { height: auto; width: 3.4rem; border-radius: 0; }
.platforms__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -0.01em;
}
.arrow { color: var(--muted); transition: color 0.25s, translate 0.35s var(--ease); }
.platforms a:hover .arrow { color: var(--ember); translate: 0.2rem -0.2rem; }

.listen__player {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  border-radius: var(--radius);
  background: var(--ink-3);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
  overflow: hidden;
}
.listen__player iframe { width: 100%; border: 0; border-radius: var(--radius); }

/* ---------- About ---------- */
.about { background: linear-gradient(to bottom, var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__media { position: relative; padding-bottom: clamp(3rem, 9vw, 8rem); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about__photo--main { aspect-ratio: 5 / 4; }
.about__photo--inset {
  position: absolute;
  right: clamp(-2.5rem, -3vw, -1rem);
  bottom: 0;
  width: 38%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  box-shadow: 0 0 0 0.5rem var(--ink-2), 0 40px 60px -20px rgb(0 0 0 / 0.7);
}
.about__text .lede { margin-top: 2rem; }
.about__text p:not(.eyebrow, .lede) { margin-top: 1.25rem; color: var(--sand); max-width: 58ch; }

.facts { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 0.25em; }
.facts dd { font-size: 0.9375rem; }

/* ---------- Press ---------- */
.press { position: relative; isolation: isolate; overflow: clip; }
.press::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/img/texture-1600.webp") center / cover;
  opacity: 0.09;
  filter: grayscale(1) contrast(1.4);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.press__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.rail-controls { display: flex; gap: 0.6rem; }
html:not(.js) .rail-controls { display: none; }

.rail {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - 82rem) / 2);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
  padding-inline: max(var(--gutter), (100vw - 82rem) / 2);
}
.quote {
  flex: none;
  width: min(84vw, 34rem);
  scroll-snap-align: start;
}
.quote figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(19 17 15 / 0.75);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s;
}
.quote figure:hover { border-color: var(--line-strong); }
.quote blockquote::before {
  content: "“";
  display: block;
  height: 0.55em;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--ember);
}
.quote blockquote p {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  font-variation-settings: "opsz" 24;
  color: var(--sand);
  text-wrap: pretty;
}
.quote mark { background: none; color: var(--bone); font-style: italic; font-weight: 400; }
.quote figcaption { display: grid; gap: 0.15rem; margin-top: auto; padding-top: 2rem; }
.quote__author { font-weight: 600; }
.quote__source { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.quote .text-link { align-self: flex-start; margin-top: 1.5rem; }

/* ---------- Album ---------- */
.album__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.album__art { position: relative; }
.album__art::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(226 88 31 / 0.35), transparent);
  filter: blur(40px);
}
.album__art img { border-radius: var(--radius); box-shadow: 0 50px 90px -40px rgb(0 0 0 / 0.9); }
.album__text .display { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem); }
.album__text .lede { margin-top: 1.75rem; color: var(--sand); max-width: 30ch; }
.album__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }

/* ---------- Gallery ---------- */
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.tabs {
  display: inline-flex;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
html:not(.js) .tabs { display: none; }
.tabs button {
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  transition: background-color 0.25s, color 0.25s;
}
.tabs button span { margin-left: 0.4em; font-size: 0.6875rem; opacity: 0.6; }
.tabs button[aria-selected="true"] { background: var(--bone); color: var(--ink); }

.shots { columns: 3 18rem; column-gap: clamp(0.6rem, 1.2vw, 1rem); }
.shot {
  position: relative;
  display: block;
  margin-bottom: clamp(0.6rem, 1.2vw, 1rem);
  break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-3);
}
.shot img {
  width: 100%;
  transition: scale 0.8s var(--ease), filter 0.5s;
}
.shot:hover img, .shot:focus-visible img { scale: 1.04; filter: brightness(1.08); }
.js .shots.is-collapsed .shot:nth-child(n + 13) { display: none; }
[hidden] { display: none !important; }

.gallery__subhead { margin: 3rem 0 1.5rem; font-family: var(--font-display); font-weight: 300; font-size: 2rem; }
.gallery__more { display: flex; justify-content: center; margin-top: 2.5rem; }
html:not(.js) .gallery__more { display: none; }

/* ---------- Closing ---------- */
.closing {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 56rem);
  padding-block: clamp(4rem, 9vw, 7rem);
  isolation: isolate;
  overflow: clip;
}
.closing__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--ink) 0%, rgb(11 10 9 / 0.1) 28%, rgb(11 10 9 / 0.55) 62%, var(--ink) 100%);
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem 2.5rem; border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.75rem; }
.site-footer__links a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand);
  transition: color 0.25s;
}
.site-footer__links a:hover { color: var(--ember); }
.site-footer .fine { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(11 10 9 / 0.96);
  color: var(--bone);
}
.lightbox::backdrop { background: var(--ink); }
.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(0.75rem, 2.5vw, 2rem);
  animation: fade 0.3s ease-out;
}
.lightbox__figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.9rem; height: 100%; min-height: 0; padding-block: 3.5rem 0; }
.lightbox__figure img {
  width: 100%; height: 100%;
  min-height: 0;
  object-fit: contain;
}
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--sand);
}
.lightbox__count { flex: none; font-variant-numeric: tabular-nums; color: var(--muted); }
.lightbox__close { position: absolute; top: clamp(0.75rem, 2.5vw, 2rem); right: clamp(0.75rem, 2.5vw, 2rem); z-index: 1; }

@keyframes fade { from { opacity: 0; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise 1.1s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: 0.12s; }
  .hero__content > :nth-child(3) { animation-delay: 0.24s; }
  .hero__content > :nth-child(4) { animation-delay: 0.36s; }
  .hero__scroll span { animation: drip 2.4s var(--ease) infinite; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .hero__video {
      animation: drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .closing__bg {
      animation: drift-in linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 2rem; } }
@keyframes drip { 0% { translate: 0 -100%; } 60%, 100% { translate: 0 100%; } }
@keyframes drift { to { scale: 1.12; translate: 0 6%; } }
@keyframes drift-in { from { scale: 1.15; } to { scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .listen__grid, .about__grid, .album__grid { grid-template-columns: minmax(0, 1fr); }
  .listen__player { position: static; }
  .about__photo--inset { right: 0; }
  .press__head { align-items: end; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 3.5rem; z-index: 1; }
  .lightbox__prev { left: 0.75rem; }
  .lightbox__next { right: 0.75rem; }
  .lightbox__figure { padding-block: 3.5rem 4rem; }
}

@media (max-width: 560px) {
  .shots { columns: 2; }
  .hero__actions .btn { flex: 1 1 auto; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding-inline: 0.6rem; }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
}
