/* Self-hosted fonts (latin subsets from Google Fonts), so first render
   does not wait on a third-party stylesheet. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
}

/* ------------------------------------------------------------------
   Alex Pfeffer — music reel
   Palette pulled from the portrait: ink, teal smoke, brass rim light.
------------------------------------------------------------------ */

:root {
  --ink: #07090b;
  --smoke: #10171a;
  --smoke-2: #182225;
  --haze: #2c5254;
  --bone: #eae4d6;
  --bone-70: rgba(234, 228, 214, 0.7);
  --bone-muted: rgba(234, 228, 214, 0.64);
  --bone-12: rgba(234, 228, 214, 0.12);
  --brass: #c9a24a;
  --brass-bright: #e2bf68;
  --brass-20: rgba(201, 162, 74, 0.2);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --content-gutter: max(var(--gutter), calc((100% - 88rem) / 2));
  --measure: 34rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scroll-padding-bottom: 6rem;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--brass); color: var(--ink);
  text-decoration: none; z-index: 100;
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.section-lede {
  color: var(--bone-70);
  max-width: var(--measure);
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 9, 11, 0.85), rgba(7, 9, 11, 0));
  pointer-events: none;
  transition: background-color 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 11, 0.97);
  border-bottom-color: var(--bone-12);
}
.nav > * { pointer-events: auto; }

.nav__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav__links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--bone-70); }
.nav__links a:hover { color: var(--bone); }
.nav__cta {
  color: var(--brass) !important;
  border-bottom: 1px solid var(--brass-20);
  padding-bottom: 2px;
}
.nav__cta:hover { border-color: var(--brass); }

@media (max-width: 40rem) {
  .nav__links { gap: 1rem; }
  .nav__links a:not(.nav__cta):not(.nav__listen) { display: none; }
}

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

.hero {
  position: relative;
  min-height: min(100svh, 64rem);
  display: grid;
  align-items: center;
  padding: 7rem var(--gutter) 5rem;
  overflow: hidden;
  isolation: isolate;
}

/* The photo is landscape: subject on the right, open teal backdrop on the
   left. It fills the whole hero and the copy sits in that open space. */
.hero__portrait {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 100% 35%;
  /* settle the bottom edge into the page's ink */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  opacity: 1;
}
/* a little extra depth behind the copy so the headline stays crisp */
.hero__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7, 9, 11, 0.45) 0%, rgba(7, 9, 11, 0.15) 45%, transparent 65%);
}

.hero__copy {
  max-width: min(55vw, 54rem);
  position: relative;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.3vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.hero__line {
  display: block;

}

.hero__sub {
  max-width: var(--measure);
  font-size: 1.125rem;
  color: var(--bone-70);
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero__proof {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--bone-muted);
}

@media (max-width: 56rem) {
  .hero {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 2.5rem;
    align-items: end;
  }
  .hero__portrait {
    position: relative;
    inset: auto;
    height: 88vw;
    max-height: 38rem;
    margin: 0 calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) * 2);
  }
  .hero__portrait img {
    /* crop to the subject; the empty backdrop on the left is not needed here */
    object-position: 80% 0%;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 40%);
    mask-image: linear-gradient(to top, transparent 0%, #000 40%);
  }
  .hero__portrait::after { display: none; }
  .hero__copy { margin-top: -4rem; max-width: 38rem; }
  .hero__title { font-size: clamp(2.65rem, 6.8vw, 3.8rem); }
  .hero__line { display: inline; }
  .hero__sub { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero__proof { font-size: 0.875rem; }
}

@media (max-width: 40rem) {
  .hero__portrait {
    margin-top: 5.25rem;
    height: max(13rem, calc(88vw - 5.25rem));
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn--brass {
  background: var(--brass);
  color: var(--ink);
}
.btn--brass:hover { background: var(--brass-bright); }

.btn--ghost {
  border-color: var(--bone-12);
  color: var(--bone);
  background: rgba(7, 9, 11, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--bone-muted); }

.btn__icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
}
.is-playing .btn__icon {
  width: 9px; height: 10px;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

/* ---------- Reel / player ---------- */

.reel {
  padding: 3rem var(--content-gutter) 4rem;
}
.reel__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 1.75rem;
}
.reel__head .section-title { margin: 0 0 0.6rem; }
.reel__head .section-lede { max-width: 48rem; }

.player {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr);
  background: var(--smoke);
  border: 1px solid var(--bone-12);
  border-radius: 1rem;
  overflow: hidden;
}

.player__stage {
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--bone-12);
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(44, 82, 84, 0.35), transparent 70%),
    var(--smoke);
}

.player__now-label {
  font-size: 0.8125rem;
  color: var(--bone-muted);
  margin-bottom: 0.35rem;
}
.player__now-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
}
.player__now-meta {
  color: var(--bone-70);
  margin-top: 0.4rem;
}

.wave {
  position: relative;
  height: 7.5rem;
}
.wave__canvas {
  width: 100%; height: 100%;
}
.wave__seek {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wave__seek:focus-visible { opacity: 1; }
.wave--unavailable .wave__seek { opacity: 1; accent-color: var(--brass); }
.wave--unavailable .wave__seek::-webkit-slider-thumb { background: var(--brass); }
.wave__seek:focus-visible::-webkit-slider-thumb { background: var(--brass-bright); }
.wave__seek::-webkit-slider-runnable-track { background: transparent; }
.wave__seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 3px; height: 100%;
  background: transparent;
}

.transport {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.transport > button { flex-shrink: 0; }
.transport__btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--bone-12);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.transport__btn:hover { border-color: var(--bone-muted); }
.transport__btn svg {
  width: 1.1rem; height: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round;
}
.transport__btn svg path { fill: currentColor; }

.transport__play {
  position: relative;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  border: 0;
  background: var(--brass);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  isolation: isolate;
  transition: background-color 0.2s;
}
.transport__play:hover { background: var(--brass-bright); }
.transport__play svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.transport__play .icon-pause { display: none; }
.is-playing .transport__play .icon-play { display: none; }
.is-playing .transport__play .icon-pause { display: block; }
.transport__play .icon-play { margin-left: 3px; }


.transport__time {
  white-space: nowrap;
  margin-left: 0.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--bone-70);
}
.transport__slash { margin: 0 0.35rem; color: var(--bone-muted); }

.transport__vol {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--bone-muted);
}
.transport__vol svg {
  width: 1.1rem; height: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round;
}
.transport__vol input {
  width: 6rem;
  accent-color: var(--brass);
}

.tracks {
  display: flex;
  flex-direction: column;
  counter-reset: track;
}
.track { display: flex; flex: 1; counter-increment: track; border-bottom: 1px solid var(--bone-12); }
.track:last-child { border-bottom: 0; }
.track__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  grid-template-areas:
    "state title dur"
    "state meta  dur";
  column-gap: 1rem;
  align-items: center;
  align-content: center;
  text-align: left;
  padding: 1.25rem 1.75rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.track__btn:hover { background: var(--smoke-2); }
.track.is-active .track__btn { background: var(--smoke-2); }
.track.is-active .track__title { color: var(--brass-bright); }
.track__btn:focus-visible { outline-offset: -4px; }

.track__state {
  grid-area: state;
  width: 1.5rem;
  color: var(--bone-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
}
.track__state::before { content: counter(track, decimal-leading-zero); }
.track.is-active .track__state { color: var(--brass); }
.track.is-active.is-playing .track__state::before {
  content: "";
  display: block;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--brass);
}

.track__title {
  grid-area: title;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.1;
}
.track__meta {
  grid-area: meta;
  font-size: 0.875rem;
  color: var(--bone-muted);
  margin-top: 0.15rem;
}
.track__dur {
  grid-area: dur;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--bone-muted);
}

.reel__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--bone-muted);
}

@media (max-width: 56rem) {
  .player { grid-template-columns: 1fr; }
  .player__stage { border-right: 0; border-bottom: 1px solid var(--bone-12); padding: 1.5rem 1.25rem; }
  .transport__vol { display: none; }
  .track__btn { padding: 1rem 1.25rem; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: 3rem var(--gutter);
  padding: 6rem var(--content-gutter);
  border-top: 1px solid var(--bone-12);
}
.about__text p + p { margin-top: 1.1rem; }
.about__text > p { max-width: var(--measure); color: var(--bone-70); }
.about__lead {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  color: var(--bone) !important;
  margin-bottom: 1.5rem !important;
  max-width: 24em !important;
}

.about__facts {
  margin: 0;
  align-self: end;
  border-top: 1px solid var(--bone-12);
}
.about__facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bone-12);
}
.about__facts dt { color: var(--bone-muted); font-size: 0.9375rem; }
.about__facts dd { margin: 0; }

@media (max-width: 56rem) {
  .about { grid-template-columns: 1fr; padding-block: 4rem; }
}

/* ---------- Work / credits ---------- */

.work {
  padding: 6rem var(--content-gutter);
  border-top: 1px solid var(--bone-12);
  background:
    radial-gradient(70% 50% at 100% 100%, rgba(44, 82, 84, 0.25), transparent 70%),
    var(--ink);
}
.work__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: 2rem var(--gutter);
  align-items: end;
}
.work__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1.02;
  margin: 0;
}
.work__big {
  font-size: 2.1em;
  line-height: 0.9;
  color: var(--brass);
  display: inline-block;
  vertical-align: -0.02em;
  margin-right: 0.1em;
}
.work__lede { color: var(--bone-70); max-width: var(--measure); }

.work__stats {
  display: flex;
  gap: 3rem;
  margin: 3rem 0 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bone-12);
}
.work__stats li { display: flex; flex-direction: column; }
.work__stats strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
}
.work__stats span { color: var(--bone-muted); font-size: 0.9375rem; margin-top: 0.3rem; }

.credits {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65em 1.25em;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.25;
  color: var(--bone-70);
  max-width: 78rem;
}
.credits li { white-space: nowrap; }
.credits__lg { font-size: 1.45em; color: var(--bone); }
.credits__xl { font-size: 2em; color: var(--bone); line-height: 1; }


@media (max-width: 56rem) {
  .work { padding-block: 4rem; }
  .work__head { grid-template-columns: 1fr; }
  .work__stats { gap: 2rem; flex-wrap: wrap; }
  .credits li { white-space: normal; }
  .credits { font-size: clamp(1.125rem, 2.4vw, 1.5rem); }
  .credits__xl { font-size: 1.8em; }
  .about__facts > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.4fr);
  gap: 3rem var(--gutter);
  padding: 6rem var(--content-gutter);
  border-top: 1px solid var(--bone-12);
}
.contact__lead { color: var(--bone-70); max-width: 28rem; }
.contact__email { margin-top: 1rem; color: var(--bone-70); }
.contact__email a, .form__status a { color: var(--brass-bright); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.reel__context { margin-top: 0.5rem; max-width: 48rem; color: var(--bone-muted); font-size: 0.9375rem; }
.contact__list {
  margin-top: 2rem;
  border-top: 1px solid var(--bone-12);
}
.contact__list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bone-12);
  color: var(--bone-70);
}

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field__label { font-size: 0.9375rem; color: var(--bone-70); }
.field__input {
  width: 100%;
  font: inherit;
  color: var(--bone);
  background: var(--smoke);
  border: 1px solid var(--bone-12);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}
.field__input::placeholder { color: var(--bone-muted); }
.field__input:hover { border-color: var(--bone-muted); }
.field__input:focus { border-color: var(--brass); }
select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-muted) 50%),
                    linear-gradient(135deg, var(--bone-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
select.field__input option { background: var(--smoke); }
textarea.field__input { resize: vertical; min-height: 8rem; }

.form__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}
.form__status { color: var(--bone-70); }
.form__status.is-error { color: #e0a0a0; }
.form__status.is-ok { color: var(--brass-bright); }

@media (max-width: 56rem) {
  .contact { grid-template-columns: 1fr; padding-block: 4rem; }
  .form__row { grid-template-columns: 1fr; }
}

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

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 2rem var(--content-gutter) 2.5rem;
  border-top: 1px solid var(--bone-12);
  font-size: 0.875rem;
  color: var(--bone-muted);
}

/* ---------- Motion preferences ---------- */

@media (max-width: 25rem) {
  .transport { gap: 0.5rem; }
  .transport__time { font-size: 0.875rem; margin-left: auto; }
  .track__btn { column-gap: 0.65rem; }
  .hero__actions { gap: 0.75rem; }
  .hero__actions .btn { padding-inline: 1.1rem; }
  .work__stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__portrait img, .hero__line, .hero__sub, .hero__actions, .hero__proof {
    transition: none;
    opacity: 1; transform: none;
  }
  .track.is-active.is-playing .track__state::before { animation: none; }
}
/* ---------- Listening experience ---------- */
.player__stage { justify-content: space-between; }
.player__now { min-height: 7rem; }
.player__status { margin-top: 0.75rem; color: var(--brass-bright); }
.player__status:empty { display: none; }
.nav__links a { position: relative; transition: color 180ms; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.nav__links a[aria-current="location"] { color: var(--brass-bright); }
.nav__links a[aria-current="location"]::after { transform: scaleX(1); }
.track__title { transition: color 180ms; }
.credits-disclosure { margin-top: 2rem; }
.credits-disclosure summary { display: flex; align-items: center; gap: 0.75rem; width: fit-content; min-height: 2.75rem; color: var(--brass-bright); font-size: 0.9375rem; cursor: pointer; list-style: none; }
.credits-disclosure summary::-webkit-details-marker { display: none; }
.credits-disclosure summary:hover { color: var(--bone); }
.credits-disclosure summary svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 200ms; }
.credits-disclosure[open] summary svg { transform: rotate(180deg); }
.credits--additional { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--bone-12); }
.mini-player { position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem var(--content-gutter) calc(0.85rem + env(safe-area-inset-bottom)); background: var(--smoke); border-top: 1px solid var(--bone-12); transform: translateY(100%); visibility: hidden; transition: transform 250ms var(--ease), visibility 250ms; }
.mini-player.is-visible { transform: translateY(0); visibility: visible; }
.mini-player__track { min-width: 0; flex: 1; display: flex; flex-direction: column; text-decoration: none; }
.mini-player__label { color: var(--bone-muted); font-size: 0.75rem; }
.mini-player__title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player__track:hover { color: var(--brass-bright); }
.mini-player__time { color: var(--bone-70); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mini-player__toggle { flex-shrink: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--brass); color: var(--ink); cursor: pointer; }
.mini-player__toggle:hover { background: var(--brass-bright); }
.mini-player__toggle svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.mini-icon-pause, .is-playing .mini-icon-play { display: none; }
.is-playing .mini-icon-pause { display: block; }
.mini-player__progress { position: absolute; inset: -1px 0 auto; height: 2px; overflow: hidden; }
.mini-player__progress span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.has-mini-player { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
@media (max-width: 40rem) {
  .mini-player { gap: 0.75rem; }
  .mini-player__time { display: none; }
  .mini-player__title { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- Network logo ticker ---------- */
.network-ticker { padding: 1rem var(--gutter) 1.75rem; color: var(--bone-70); }
.network-ticker__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; margin-bottom: 0.5rem; font-size: 0.875rem; }
.network-ticker__pause { min-height: 2.75rem; padding: 0.25rem 0; border: 0; background: none; color: var(--brass-bright); font-size: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.network-ticker__pause:hover { color: var(--bone); }
.network-ticker__viewport { min-width: 0; overflow-x: auto; mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.network-ticker.is-ready .network-ticker__viewport { overflow-x: hidden; }
.network-ticker__lane { display: flex; width: max-content; }
.network-ticker__group { display: flex; align-items: center; gap: 3.5rem; padding-inline: 1.75rem; flex-shrink: 0; }
.network-ticker__group li { display: grid; place-items: center; width: 8rem; height: 3rem; flex-shrink: 0; }
.network-logo { display: block; width: 8rem; height: 2.4rem; background: currentColor; mask: var(--logo) center / contain no-repeat; }
.network-logo--compact { width: 4.5rem; height: 2.75rem; }
.network-ticker.is-ready .network-ticker__lane { animation: network-drift var(--ticker-duration, 170s) linear infinite; }
@keyframes network-drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.network-ticker:is(:hover, :focus-within, .is-offscreen, .is-paused) .network-ticker__lane { animation-play-state: paused; }
@media (max-width: 40rem) {
  .network-ticker { padding: 1.25rem var(--gutter); gap: 0.5rem; }
  .network-ticker__group { gap: 2.5rem; padding-inline: 1.25rem; }
  .network-ticker__group li { width: 6.5rem; }
  .network-logo { width: 6.5rem; height: 2rem; }
  .network-logo--compact { width: 3.5rem; height: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .network-ticker .network-ticker__viewport,
  .network-ticker.is-ready .network-ticker__viewport { overflow-x: auto; mask-image: none; }
  .network-ticker__pause { display: none; }
  .network-ticker__lane { animation: none !important; transform: none; }
  .network-ticker__group[aria-hidden="true"] { display: none; }
}

/* ---------- Progressive enhancement: visible content is the default ---------- */
.hero__portrait picture { display: block; height: 100%; }

.count { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- Nav: soft scrolled state ---------- */
.nav { background: none; border-bottom: 0; }
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -0.6rem 0;           /* a short soft edge below the bar */
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(7, 9, 11, 0.94) 0%,
    rgba(7, 9, 11, 0.94) 82%,
    rgba(7, 9, 11, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav.is-scrolled { background: none; border-bottom: 0; }
.nav.is-scrolled::before { opacity: 1; }
@media (max-width: 56rem) {
  .nav::before { opacity: 1; }
}

/* ---------- Footer links and legal page ---------- */
.foot__links { display: flex; gap: 1.5rem; }
.foot__links a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--bone-12); }
.foot__links a:hover { color: var(--bone); border-color: var(--bone-muted); }

.legal {
  max-width: 44rem;
  padding: 8rem var(--content-gutter) 5rem;
}
.legal__section + .legal__section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--bone-12);
}
.legal .section-title { margin-bottom: 0.5rem; }
.legal__note { color: var(--bone-muted); font-size: 0.9375rem; margin-bottom: 2rem; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 2rem 0 0.5rem;
}
.legal p, .legal li { color: var(--bone-70); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal li { margin: 0.35rem 0; }
.legal a { color: var(--brass-bright); text-decoration: none; border-bottom: 1px solid var(--brass-20); }
.legal a:hover { border-color: var(--brass-bright); }
