/* ==========================================================================
   Bruce Ruffin — official memorial site
   Single stylesheet. Organised as: fonts → tokens → base → layout primitives
   → sections (in document order) → overlays → motion/a11y overrides.

   Design tokens below are the source of truth. If you change a colour or a
   type step, change it here — nothing in index.html carries a literal value.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted so the page makes no third-party request
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/young-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/young-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour */
  --ink: #17120e;
  --ink-raised: #221b15;
  --cream: #f4ecdc;
  --cream-deep: #e9dfc9;
  --newsprint: #f8f2e3;
  --vermilion: #a8321e;
  --vermilion-dark: #7e2010;
  --gold: #d9a441;

  /* Cream alphas, for use on ink backgrounds.
     NOTE: --cream-70 is the floor for small text on ink. The design originally
     used 0.4–0.5 in two places; both fail WCAG AA at 10–12px, so they were
     raised. Do not reintroduce values below 0.65 for text. */
  --cream-85: rgba(244, 236, 220, 0.85);
  --cream-78: rgba(244, 236, 220, 0.78);
  --cream-75: rgba(244, 236, 220, 0.75);
  --cream-70: rgba(244, 236, 220, 0.7);
  --cream-65: rgba(244, 236, 220, 0.65);
  --cream-45: rgba(244, 236, 220, 0.45); /* borders only */
  --cream-35: rgba(244, 236, 220, 0.35); /* borders only */
  --cream-20: rgba(244, 236, 220, 0.2); /* hairlines only */
  --cream-14: rgba(244, 236, 220, 0.14); /* hairlines only */

  /* Ink alphas, for use on cream backgrounds */
  --ink-85: rgba(23, 18, 14, 0.85);
  --ink-75: rgba(23, 18, 14, 0.75);
  --ink-65: rgba(23, 18, 14, 0.65);
  --ink-60: rgba(23, 18, 14, 0.6);
  --ink-55: rgba(23, 18, 14, 0.55);
  --ink-35: rgba(23, 18, 14, 0.35);
  --ink-20: rgba(23, 18, 14, 0.2);
  --ink-16: rgba(23, 18, 14, 0.16);

  /* Type */
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --size-hero: clamp(72px, 9.5vw, 148px);
  --size-h2: clamp(36px, 4.6vw, 64px);
  --size-h3: clamp(28px, 3vw, 40px);

  /* Spacing & shape */
  --gutter: 5vw;
  --section-y: clamp(88px, 12vh, 140px);
  --split-gap: clamp(36px, 6vw, 96px);

  /* Shadows */
  --shadow-sleeve: 8px 8px 0 var(--ink-16);
  --shadow-disc: 0 18px 34px rgba(23, 18, 14, 0.28);
  --shadow-lightbox: 0 40px 120px rgba(0, 0, 0, 0.6);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Anchor targets clear the top edge comfortably */
  scroll-padding-top: 24px;
  /* The rotated marquee overflows sideways. Clipping on body alone is not
     enough — the root element still reports the wider scroll width and a
     horizontal scrollbar appears — so clip here too. `clip` rather than
     `hidden`: `hidden` on the root would break `scroll-behavior: smooth`. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* The rotated marquee overflows horizontally; this is what contains it.
     Do not change to `hidden` — that would break position: sticky descendants
     and clamp the lightbox. */
  overflow-x: clip;
}

img {
  max-width: 100%;
}

a {
  color: var(--vermilion);
}

a:hover {
  color: var(--vermilion-dark);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Visible focus everywhere, including the vinyl discs and catalogue cards. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.on-ink :focus-visible {
  outline-color: var(--gold);
}

/* Screen-reader-only, but focusable (used by the skip link). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-y) var(--gutter);
}

.section--ink {
  background: var(--ink);
  color: var(--cream);
}

/* The numbered eyebrow + hairline rule that opens every section. */
.eyebrow-rule {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow-rule__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.section--ink .eyebrow-rule__label {
  color: var(--gold);
}

.eyebrow-rule::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--ink-20);
}

.section--ink .eyebrow-rule::after {
  border-top-color: var(--cream-20);
}

/* The uppercase wide-tracking meta style — the workhorse of the design. */
.meta {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 60px;
}

.section-head h2 {
  margin: 0;
  font-size: var(--size-h2);
  line-height: 1.05;
}

/* Pill buttons */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pill--gold {
  background: var(--gold);
  color: var(--ink);
  border: none;
}

.pill--gold:hover {
  transform: translateY(-2px);
  background: var(--cream);
  color: var(--ink);
}

.pill--ghost {
  color: var(--cream);
  border: 1.5px solid var(--cream-45);
  background: transparent;
}

.pill--ghost:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   5. Nav
   -------------------------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 3; /* above the hero's decorative layers */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.nav__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1.5px solid var(--cream-85);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
}

.nav__links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--cream-85);
  text-decoration: none;
  padding-bottom: 3px;
  /* Transparent border reserved so hover doesn't shift the row. */
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav__links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Mobile toggle — hidden until the five items would crowd (~560px). */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--cream-45);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav__toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 560px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    left: var(--gutter);
    z-index: 4;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px;
    background: var(--ink-raised);
    border: 1px solid var(--cream-20);
  }

  /* Collapsed state. `hidden` is toggled by js/main.js, which also keeps
     aria-expanded on the toggle in sync. */
  .nav__links[hidden] {
    display: none;
  }

  .nav__links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--cream-14);
  }

  .nav__links a:last-child {
    border-bottom: 1px solid transparent;
  }
}

/* --------------------------------------------------------------------------
   6. Hero — "duotone billboard"
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.hero__scene {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: min(82vh, 780px);
}

.hero__copy {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(28px, 4.5vw, 72px) clamp(48px, 7vh, 88px);
  animation: br-rise 0.9s var(--ease-out) both;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-65);
}

.hero__name {
  margin: 24px 0 0;
  font-size: var(--size-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--gold);
  will-change: transform;
}

.hero__name span {
  display: block;
}

.hero__dates,
.hero__genres {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-85);
}

.hero__dates {
  margin-top: 32px;
}

.hero__genres {
  margin-top: 12px;
}

.hero__genres .star {
  color: var(--gold);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 40px;
}

.hero__portrait {
  flex: 1 1 420px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  animation: br-rise 0.9s 0.12s var(--ease-out) both;
}

.hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transform: scale(1.06);
  will-change: transform;
  /* Deliberately short — the portrait should feel attached to the cursor. */
  transition: transform 0.12s linear;
}

/* Feathers the portrait's left edge into the ink panel. */
.hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 70px 0 70px -55px var(--ink);
  pointer-events: none;
}

/* On small phones the portrait column shouldn't eat the whole viewport. */
@media (max-width: 560px) {
  .hero__portrait {
    min-height: 340px;
  }
}

/* --------------------------------------------------------------------------
   7. Marquee band
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--vermilion);
  overflow: hidden;
  /* The rotation tucks under both neighbours; body's overflow-x: clip stops
     it producing a horizontal scrollbar. */
  transform: rotate(-1.2deg) scale(1.02);
  margin: -6px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: br-marquee 34s linear infinite;
}

.marquee__track span {
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--cream);
  padding: 16px 0 18px;
  white-space: pre;
}

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */

.about {
  padding: var(--section-y) var(--gutter) 40px;
}

.about h2 {
  margin: 0 0 56px;
  font-size: var(--size-h2);
  line-height: 1.05;
  max-width: 18ch;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about__prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-85);
  max-width: 62ch;
}

.about__prose p {
  margin: 0 0 22px;
}

.about__prose p:last-child {
  margin-bottom: 0;
}

.about__figure {
  margin: 0;
}

.about__figure img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  background: var(--cream-deep);
}

.about__figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* Timeline — the 1px gap *is* the rule, so tiles read as a hairline grid. */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--ink-20);
  border: 1px solid var(--ink-20);
  margin-top: clamp(56px, 8vh, 88px);
}

.timeline__tile {
  background: var(--cream);
  padding: 22px 20px 26px;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--vermilion);
  margin-bottom: 10px;
}

.timeline__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-75);
}

/* --------------------------------------------------------------------------
   9. Discography — vinyl 45s
   -------------------------------------------------------------------------- */

.singles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 36px 24px;
}

.single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

.disc {
  position: relative;
  width: min(205px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    #15100c 0 1.5px,
    var(--ink-raised) 1.5px 3.5px
  );
  box-shadow: var(--shadow-disc);
  transition: transform 0.35s var(--ease-out);
}

.single:hover .disc,
.single:focus-visible .disc {
  transform: rotate(14deg) translateY(-8px);
}

/* The label is a flex column: title → spindle hole → 45 RPM.
   The hole belongs in this flow. Absolutely centring it lands it on top of
   the title and reads as a printing blemish. */
.disc__label {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 47%;
  height: 47%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 6px;
}

.disc__title {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.1;
}

.disc__hole {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
}

.disc__rpm {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Label colourways */
.disc__label--cream {
  background: var(--cream);
  color: var(--ink);
}

.disc__label--gold {
  background: var(--gold);
  color: var(--ink);
}

.disc__label--vermilion {
  background: var(--vermilion);
  color: var(--cream);
}

.disc__label--denim {
  background: #33415e;
  color: var(--cream);
}

.single__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.single__credit {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-65);
}

.single__badge {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
}

/* --------------------------------------------------------------------------
   10. Discography — catalogue
   -------------------------------------------------------------------------- */

.catalogue-heading {
  margin: clamp(80px, 10vh, 110px) 0 36px;
  font-size: var(--size-h3);
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.release {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.release:hover,
.release:focus-visible {
  transform: translateY(-6px);
}

.release__art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-sleeve);
  background: var(--cream-deep);
}

/* Fallback sleeve for catalogue entries with no artwork yet. This is how the
   estate adds a future release before a scan arrives — see README. */
.release__art--typographic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1;
  padding: 20px 22px 22px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow-sleeve);
}

.release__art--typographic .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.release__art--typographic .title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--vermilion);
}

.release__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.release__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.release__title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
}

.release__year {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

.release__kind {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   11. "Beyond the solo years" panel
   -------------------------------------------------------------------------- */

.groups {
  margin-top: clamp(80px, 10vh, 110px);
  background: var(--ink);
  color: var(--cream);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.groups__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.groups h3 {
  margin: 0 0 18px;
  font-size: var(--size-h3);
  line-height: 1.1;
}

.groups p {
  margin: 0 0 34px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-78);
  max-width: 48ch;
}

.groups p:last-child {
  margin-bottom: 0;
}

.tracklist {
  display: flex;
  flex-direction: column;
}

.tracklist a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px;
  border-top: 1px solid var(--cream-20);
  text-decoration: none;
  color: var(--cream);
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.tracklist a:hover,
.tracklist a:focus-visible {
  padding-left: 14px;
  color: var(--gold);
}

.tracklist__title {
  font-family: var(--font-display);
  font-size: 20px;
}

.tracklist__role {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: right;
}

.tracklist a.tracklist--more {
  border-bottom: 1px solid var(--cream-20);
  color: var(--cream-75);
  font-size: 14px;
}

.tracklist a.tracklist--more span {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   12. Media rail
   -------------------------------------------------------------------------- */

.media {
  padding: 0 0 var(--section-y);
}

.media__head,
.media__eyebrow-wrap {
  margin-left: var(--gutter);
  margin-right: var(--gutter);
}

.media__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
}

.media__head h2 {
  margin: 0 0 10px;
  font-size: var(--size-h2);
  line-height: 1.05;
}

.media__arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--ink-55);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.arrow-btn:hover {
  background: var(--cream-deep);
}

.rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 6px var(--gutter) 28px;
  scroll-snap-type: x mandatory;
}

.rail__item {
  flex: none;
  scroll-snap-align: start;
}

.rail__item--photo {
  width: 340px;
}

.rail__item--clipping {
  width: 320px;
}

.rail__frame {
  position: relative;
  width: 100%;
  height: 430px;
}

/* Clippings sit on a newsprint mat, slightly rotated, as if laid on a desk.
   The rotation is set per-card by an inline custom property in index.html. */
.rail__item--clipping .rail__frame {
  background: var(--newsprint);
  border: 1px solid var(--ink-35);
  padding: 12px;
  transform: rotate(var(--tilt, 0deg));
}

.rail__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cream-deep);
}

.rail__zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(23, 18, 14, 0.78);
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.rail__item--clipping .rail__zoom {
  top: 20px;
  left: 20px;
}

.rail__zoom:hover {
  background: var(--vermilion);
}

.rail__caption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* --------------------------------------------------------------------------
   13. Watch
   -------------------------------------------------------------------------- */

.watch {
  padding: var(--section-y) var(--gutter) clamp(72px, 10vh, 110px);
}

.watch .section-head {
  margin-bottom: 52px;
}

.watch .meta {
  color: var(--cream-70);
  font-size: 12px;
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.video-row--wide {
  margin-bottom: 30px;
}

.video--wide {
  flex: 1 1 440px;
  min-width: 0;
}

.video--reel {
  flex: 0 1 300px;
  min-width: 240px;
}

.video__well {
  position: relative;
  background: var(--ink-raised);
  border: 1px solid var(--cream-14);
}

.video--wide .video__well {
  aspect-ratio: 16 / 9;
}

.video--reel .video__well {
  aspect-ratio: 9 / 16;
}

/* Every player is injected into the well as an absolutely positioned iframe,
   so video always plays inline — nothing opens a new window. */
.video__well iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ink-raised);
}

/* Click-to-play facade. Used for YouTube *and* Instagram so no third-party
   player (or its cookies) loads until the visitor asks for it. */
.video__facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 14, 0.22);
}

.video__play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--cream);
  font-size: 22px;
  padding-left: 5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.video__facade:hover .video__play {
  transform: scale(1.08);
}

/* Reels have no fetchable poster, so the facade shows a labelled panel. */
.video__facade--reel {
  flex-direction: column;
  gap: 14px;
  background: var(--ink-raised);
}

.video__facade--reel .video__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-70);
  line-height: 1.8;
  padding: 0 20px;
  text-align: center;
}

.video__caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.video__caption .title {
  color: var(--cream-85);
}

.video__caption .platform {
  color: var(--gold);
}

/* Empty slot — renders a dashed placeholder rather than collapsing. */
.video__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed var(--cream-35);
  color: var(--cream-70);
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--ink);
  color: var(--cream);
  padding: 0 var(--gutter) var(--section-y);
}

.contact__inner {
  border-top: 1px solid var(--cream-20);
  padding-top: clamp(64px, 9vh, 100px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--split-gap);
  align-items: start;
}

.contact__eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.contact h2 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.05;
}

.contact__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-75);
  max-width: 42ch;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cream-35);
  color: var(--cream);
  font-size: 16px;
  font-family: var(--font-body);
  padding: 6px 0 12px;
  outline: none;
  transition: border-color 0.25s ease;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--cream-45);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}

/* Keyboard focus gets the ring too, not just the border colour change. */
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Inline validation messages */
.field__error {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0a08c; /* lightened vermilion — AA on ink */
}

.field__error:empty {
  display: none;
}

/* Honeypot. Hidden from people and assistive tech; bots fill it in. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form__note {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Confirmation and error panels share one visual language. */
.panel {
  border: 1px solid rgba(217, 164, 65, 0.5);
  padding: 48px 36px;
  text-align: center;
}

.panel--error {
  border-color: rgba(240, 160, 140, 0.5);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--gold);
}

.panel--error .panel__title {
  color: #f0a08c;
}

.panel__body {
  font-size: 15px;
  color: var(--cream-75);
  line-height: 1.7;
}

.panel__retry {
  margin-top: 24px;
  background: transparent;
  border: 1.5px solid var(--cream-45);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.panel__retry:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--vermilion);
  color: var(--cream);
  padding: 34px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer__mark {
  font-family: var(--font-display);
  font-size: 18px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Vermilion is a mid-tone, so faded cream loses contrast fast against it —
   0.7 cream measures 3.55:1, below AA. Footer text stays at full cream. */
.site-footer__links a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__copyright {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   16. Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 18, 14, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: var(--shadow-lightbox);
  background: var(--ink-raised);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 236, 220, 0.6);
  background: transparent;
  color: var(--cream);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.lightbox__close:hover {
  background: rgba(244, 236, 220, 0.12);
}

/* --------------------------------------------------------------------------
   17. Motion
   -------------------------------------------------------------------------- */

@keyframes br-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes br-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Respect the OS setting: no entry animation, no marquee scroll, no parallax.
   js/main.js checks the same query before binding the mousemove listener. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__copy,
  .hero__portrait {
    animation: none;
  }

  .marquee__track {
    animation: none;
    /* Without the scroll, show the list from the start rather than mid-loop. */
    width: auto;
  }

  .marquee__track span:nth-child(2) {
    display: none;
  }

  .hero__portrait img {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
