*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.4;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--bg-primary);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-title);
  letter-spacing: 0;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a,
.nav button {
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover,
.nav button:hover,
.nav a[aria-current="page"],
.nav .nav__contact {
  color: var(--text);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav-toggle span {
  top: 21px;
}
.nav-toggle span::before {
  top: -7px;
  left: 0;
}
.nav-toggle span::after {
  top: 7px;
  left: 0;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a,
  .nav button {
    padding: 12px 0;
    text-align: left;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--fs-button);
  line-height: 1.3;
  color: var(--text);
  border: 1px solid transparent;
  transition:
    filter 0.2s,
    border-color 0.2s;
}
.btn--primary {
  background: var(--accent-strong);
}
.btn--primary:hover {
  filter: brightness(1.15);
}
.btn--outline {
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--text-muted);
}
.btn--muted {
  color: var(--text-muted);
}

/* ---------- Section headings ---------- */
.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--border);
}
.section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.section__head {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section__head h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
}
.section__head p {
  font-size: var(--fs-sub);
  color: var(--text-muted);
}

/* ---------- Track card (audio player row) ---------- */
.track-list {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}
.track__play {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--bg-primary);
  display: grid;
  place-items: center;
}
.track__play svg {
  width: 12px;
  height: 12px;
}
.track__play .icon-pause {
  display: none;
}
.track.is-playing .icon-play {
  display: none;
}
.track.is-playing .icon-pause {
  display: block;
}
.track__meta {
  flex: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.track__title {
  font-size: var(--fs-body);
}
.track__sub {
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.track__bar {
  flex: 1 1 0;
  min-width: 40px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.track__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
}
.track__time {
  flex: none;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .track {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .track__meta {
    flex: 1 1 calc(100% - 100px);
  }
  .track__bar {
    order: 4;
    flex-basis: calc(100% - 60px);
  }
  .track__time {
    order: 3;
    margin-left: auto;
  }
  .track-list {
    gap: 16px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--section-y);
  background: var(--bg-primary);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-inline: clamp(0px, 1.5vw, 28px);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.site-footer__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h3);
}
.site-footer__tag {
  font-size: var(--fs-title);
  color: var(--text-muted);
  margin-top: 8px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  padding-bottom: 6px;
}
.site-footer__links a:hover {
  color: var(--accent);
}
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .site-footer__links {
    align-items: flex-start;
  }
  .site-footer__tag {
    font-size: var(--fs-sub);
  }
}

/* ---------- Hero image + gradient overlay ----------
   Reusable on every page: wrap an <img> in .media-fade and tune the two
   variables per image. --fade-v runs top-to-bottom, --fade-h left-to-right;
   each goes dark at the edges and light around the subject.        */
.media-fade {
  position: absolute;
  overflow: hidden;
}
.media-fade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--fade-v), var(--fade-h);
}

/* ---------- Inner-page hero (shorter, text bottom-left) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 65vh, 704px);
  padding-block: 64px 68px;
}
.page-hero .media-fade {
  inset: 0;
  z-index: -1;
}
.page-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-hero__eyebrow {
  font-size: var(--fs-sub);
  color: var(--text-muted);
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.85;
  margin-top: 8px;
}
.page-hero__lede {
  font-size: var(--fs-sub);
  color: var(--text-muted);
  max-width: 572px;
}
.btn {
  gap: 4px;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
html.is-locked {
  overflow: hidden;
}

/* ---------- Lightbox (gallery + film clips) ---------- */
.lightbox {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  background: rgba(15, 15, 15, 0.96);
  color: var(--text);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(39, 39, 41, 0.7);
  transition: background .2s, color .2s;
}
.lightbox__btn:hover { background: #272729; color: var(--accent); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }

/* ---------- Contact card (popup on every page, full-screen on contact.html) ---------- */
.contact-dialog {
  padding: 0;
  margin: auto;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-primary);
  width: min(450px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.contact-dialog[open] {
  animation: dialog-in 0.2s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open] {
    animation: none;
  }
}

.contact-card {
  position: relative;
}
.contact-card__close {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text);
  border-radius: 50%;
}
.contact-card__close svg {
  width: 32px;
  height: 32px;
}
.contact-card__close:hover {
  color: var(--accent);
}

.contact-card__banner {
  position: relative;
  height: 220px;
  margin-bottom: -80px;
  overflow: hidden;
  background: var(--bg-primary);
}
.contact-card__media {
  width: 100%;
  height: 100%;
  --fade-v: linear-gradient(
    180deg,
    #0f0f0f 0%,
    rgba(15, 15, 15, 0.1) 40%,
    #0f0f0f 100%
  );
  --fade-h: linear-gradient(
    90deg,
    #0f0f0f 0%,
    rgba(15, 15, 15, 0.9) 15.4%,
    rgba(15, 15, 15, 0.6) 26.9%,
    rgba(15, 15, 15, 0.2) 49%,
    rgba(15, 15, 15, 0.7) 71.6%,
    rgba(15, 15, 15, 0.95) 84.1%,
    #0f0f0f 100%
  );
}

.contact-card__body {
  position: relative;
  z-index: 1;
  padding: 8px 24px;
}
.contact-card__id {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border-secondary);
}
.contact-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: 1.2;
}
.contact-card__role {
  font-size: var(--fs-small);
  color: var(--accent);
  text-transform: uppercase;
}
.contact-card__tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border-secondary);
}
.contact-row:last-of-type {
  border-bottom: 0;
}
.contact-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-row__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-transform: uppercase;
}
.contact-row__value {
  font-size: var(--fs-body);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-row__value:hover {
  color: var(--accent);
}
.contact-copy {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  min-width: 3.4rem;
  text-align: center;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.contact-copy:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.contact-actions {
  display: flex;
  gap: 16px;
  padding-block: 16px;
}
.contact-actions .btn {
  flex: 1 1 0;
  height: 46px;
  border-radius: 4px;
  padding-inline: 12px;
}
.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}
.contact-qr img {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 8px;
}
.contact-qr p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.contact-fullscreen {
  display: block;
  padding-block: 16px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-position: from-font;
}
.contact-fullscreen:hover {
  color: var(--text);
}

.contact-page {
  min-height: 100dvh;
  background: var(--bg-primary);
}
.contact-page noscript {
  display: block;
  padding: 48px var(--gutter);
  text-align: center;
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}