/* ============================================================
   BEATRIFUL — beatriful.com
   The screening room. Dark by commitment, not by default.
   Held over from the measured luxury spec: no bold headings,
   letter-spacing 0.12em only on small-caps labels, accent in
   rules and marks — never filled buttons, never pure #000/#FFF,
   420ms for text / 1100ms for atmosphere.
   New in this cut: Cormorant Garamond display (self-hosted),
   full-bleed picture, the work wall.
   ============================================================ */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0d0c0a;
  --bg-raised: #14120f;
  --well: #080807;
  --ink: #ece6d8;
  --ink-muted: #9d9382;
  --hairline: rgba(236, 230, 216, 0.15);
  --hairline-soft: rgba(236, 230, 216, 0.08);
  --accent: #b4874c;
  --accent-lift: #cfa268;

  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --wrap: 78rem;
  --col: 62ch;
  --pad: clamp(1.375rem, 5vw, 3rem);
  --band: clamp(5.5rem, 13vw, 10rem);
}

/* ---------- reset / base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- type ---------- */

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

h1,
h2,
h3 {
  font-weight: 400; /* no bold headings, ever */
}

.display {
  font-family: var(--display);
  font-weight: 370; /* 2026-09-25: a touch heavier than the hairline 300 (variable font 300-500) */
  font-size: clamp(3.2rem, 9.5vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
}

.lede {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  max-width: 52ch;
}

p {
  max-width: var(--col);
}

p + p {
  margin-top: 1.25em;
}

.muted {
  color: var(--ink-muted);
}

/* ---------- structure ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band {
  padding-block: var(--band);
  border-top: 1px solid var(--hairline-soft);
}

.band > .wrap > .label {
  display: block;
  margin-bottom: 2.5rem;
}

.band h2 {
  margin-bottom: 1.75rem;
  max-width: 22ch;
}

/* ---------- header over picture ---------- */

.site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
}

.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem;
}

.site-head--page {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-word {
  font-family: var(--display);
  letter-spacing: 0.02em; /* 2026-09-26 00:07Z Chris: back to lowercase after seeing caps */
  font-weight: 500; /* 2026-09-25 Chris: wordmark read too faint; 500 is the face's heaviest real weight */
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* the fused seam of the name — "beat" carries the brass */
.wm-beat {
  color: var(--accent);
}

.beatmark {
  width: 24px;
  height: 15px;
  flex: none;
  color: var(--ink-muted);
}

.beatmark .acc {
  fill: var(--accent);
}

.head-nav {
  display: flex;
  gap: 2.25rem;
  align-items: baseline;
}

.head-link {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2em;
  transition: color 420ms ease, border-color 420ms ease;
}

.head-link:hover,
.head-link:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
}

.hero .head-link {
  color: rgba(236, 230, 216, 0.8);
}

.hero .head-link:hover,
.hero .head-link:focus-visible {
  color: var(--ink);
}

/* ---------- hero: the picture ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 36rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

/* the scrim: picture stays alive, words stay legible */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(13, 12, 10, 0.5) 0%,
      rgba(13, 12, 10, 0.08) 26%,
      rgba(13, 12, 10, 0.08) 48%,
      rgba(13, 12, 10, 0.78) 84%,
      var(--bg) 100%
    );
}

/* quiet film grain over the picture only */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(2.75rem, 7vh, 5.5rem);
}

.hero-content .label {
  display: block;
  margin-bottom: 1.75rem;
  color: rgba(236, 230, 216, 0.96); /* 2026-09-26 Chris: "A film studio in four trades … still faint" */
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.6);
}

.hero-content .display {
  max-width: 11ch;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.hero-content .lede {
  margin-bottom: 2.75rem;
  color: rgba(236, 230, 216, 0.92);
}

.hero-cue {
  position: absolute;
  right: var(--pad);
  bottom: clamp(2.75rem, 7vh, 5.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-muted);
}

.hero-cue span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-cue::after {
  content: "";
  width: 1px;
  height: 3.25rem;
  background: linear-gradient(to bottom, var(--hairline), var(--accent));
}

@media (max-width: 700px) {
  .hero-cue {
    display: none;
  }
}

/* hero text arrives once, on load */
.js .hero-rise {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 720ms ease forwards;
}

.js .hero-rise:nth-child(2) { animation-delay: 120ms; }
.js .hero-rise:nth-child(3) { animation-delay: 240ms; }
.js .hero-rise:nth-child(4) { animation-delay: 360ms; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- call to action — bordered, never filled ---------- */

.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 1.05rem 2.3rem;
  transition: border-color 420ms ease, background-color 420ms ease;
}

.cta:hover,
.cta:focus-visible {
  border-color: var(--accent);
  background: rgba(180, 135, 76, 0.07);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cta-note {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- page hero (no picture) ---------- */

.page-hero {
  padding-block: clamp(7rem, 16vh, 10rem) clamp(3rem, 7vw, 5rem);
}

.page-hero .label {
  display: block;
  margin-bottom: 2rem;
}

.page-hero .display {
  font-size: clamp(2.9rem, 7.5vw, 5.5rem);
  max-width: 16ch;
  margin-bottom: 1.75rem;
}

.page-hero .lede {
  color: var(--ink-muted);
}

/* ---------- statement band ---------- */

.statement {
  padding-block: var(--band);
  border-top: 0;
}

.statement .wrap > p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  max-width: 34ch;
}

.statement .wrap > p em {
  font-style: italic;
  color: var(--accent-lift);
}

.statement .label {
  display: block;
  margin-bottom: 2.25rem;
}

/* ---------- the work wall ---------- */

.wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

@media (min-width: 760px) {
  .wall {
    grid-template-columns: 1fr 1fr;
  }

  .film--feature {
    grid-column: 1 / -1;
  }
}

.film {
  margin: 0;
}

.film-media {
  position: relative;
  aspect-ratio: 1280 / 648;
  background: var(--well);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--hairline-soft);
}

.film-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1100ms ease, opacity 420ms ease;
}

.film-media:hover img,
.film-media:focus-visible img {
  transform: scale(1.025);
}

.film-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--well);
}

/* the play mark: a brass rule that completes on approach */
.film-play {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.6rem 1.4rem 1.1rem;
  background: linear-gradient(transparent, rgba(8, 8, 7, 0.72));
  pointer-events: none;
}

.film-play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0.9;
  flex: none;
  transition: border-left-color 420ms ease;
}

.film-play span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 230, 216, 0.85);
}

.film-media:hover .film-play::before {
  border-left-color: var(--accent-lift);
}

.film figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.film-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
}

.film--feature .film-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.film-trade {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.work-note {
  color: var(--ink-muted);
}

/* quiet tiles: work shown on request */
.work-quiet {
  border: 1px solid var(--hairline-soft);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  min-height: 11rem;
}

.work-quiet .label {
  color: var(--accent);
}

.work-quiet p {
  color: var(--ink-muted);
}

/* the four-way cut doorway */
.work-quad {
  border: 1px solid var(--hairline-soft);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  min-height: 11rem;
  transition: border-color 420ms ease;
}

.work-quad:hover,
.work-quad:focus-visible {
  border-color: var(--accent);
}

.work-quad .label {
  color: var(--accent);
}

.work-quad p {
  color: var(--ink-muted);
}

.work-quad .quad-go {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- editorial rows ---------- */

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 3.5rem;
  padding-block: 3rem;
  border-top: 1px solid var(--hairline);
}

.row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.row-side .label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.row-side h3 {
  max-width: 14ch;
}

@media (min-width: 760px) {
  .row {
    grid-template-columns: 17rem minmax(0, 1fr);
  }
}

/* ---------- the method: five stations ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.step {
  padding: 2rem 1.5rem 2.25rem 0;
}

.step-no {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .step + .step {
    border-left: 1px solid var(--hairline-soft);
    padding-left: 1.5rem;
  }
}

@media (max-width: 899px) {
  .step + .step {
    border-top: 1px solid var(--hairline-soft);
  }
}

/* ---------- pledge ---------- */

.pledge-list {
  list-style: none;
  margin-block: 2rem 2.25rem;
  max-width: var(--col);
}

.pledge-list li {
  padding: 0.9rem 0 0.9rem 2rem;
  border-top: 1px solid var(--hairline-soft);
  position: relative;
}

.pledge-list li:last-child {
  border-bottom: 1px solid var(--hairline-soft);
}

.pledge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 1.1rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- pull quote ---------- */

.pull {
  border-left: 1px solid var(--accent);
  padding-left: 1.75rem;
  margin-block: 2.5rem;
  max-width: 40ch;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
}

/* ---------- interstitial: open at 2 a.m. ---------- */

.nocturne {
  background: var(--bg-raised);
}

.nocturne h2 {
  max-width: 26ch;
}

.nocturne p {
  max-width: 58ch;
}

/* ---------- closing ---------- */

.closing .display {
  font-size: clamp(2.9rem, 7.5vw, 5.5rem);
  max-width: 14ch;
  margin-bottom: 1.75rem;
}

.closing .lede {
  margin-bottom: 3rem;
  color: var(--ink-muted);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem 3rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-links {
  display: flex;
  gap: 2.25rem;
}

.foot-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2em;
  transition: color 420ms ease, border-color 420ms ease;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---------- reveal on scroll ----------
   Progressive enhancement: everything is visible without JS.
   420ms — the pace of text a person must actually read. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .steps .step:nth-child(2) { transition-delay: 60ms; }
.js .steps .step:nth-child(3) { transition-delay: 120ms; }
.js .steps .step:nth-child(4) { transition-delay: 180ms; }
.js .steps .step:nth-child(5) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .hero-rise {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .film-media img {
    transition: none;
  }
}

/* 2026-09-25 Chris: "top left corner … so much busy-ness of the videos behind the words, they need a bit more emphasis" —
   a soft dark halo lifts the wordmark and the hero words off the moving picture without changing the type. */
.brand-word { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 14px rgba(0,0,0,.55), 0 0 32px rgba(0,0,0,.35); }
.hero-content .display, .hero-content .lede { text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.5), 0 0 40px rgba(0,0,0,.35); }

/* 2026-09-26 Chris: "BEAT is less noticeable than RIFUL" — in the header the brass half gets the lifted brass and a warm glow,
   the rest of the name steps back a little, so the seam reads beat-first. */
.brand-word { color: rgba(236, 230, 216, 0.82); }
.brand-word .wm-beat { color: var(--accent-lift); text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 12px rgba(207,162,104,.45), 0 0 26px rgba(0,0,0,.45); }

/* 2026-09-26 00:09Z Chris: people read it "Bee-At-Tri-ful" — BEAT in caps, riful lowercase: BEATriful. */
.brand-word .wm-beat { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }

/* 2026-09-26 00:10Z Chris: no mixed case — the whole header wordmark in caps, BEAT still brass-first: BEATRIFUL. */
.brand-word { text-transform: uppercase; letter-spacing: 0.06em; }

/* 2026-09-26 00:10Z Chris: "maybe we gotta put a black bar behind the BEAT" */
.brand-word .wm-beat { background: rgba(8,8,8,.78); padding: 0.04em 0.16em 0.02em 0.14em; margin-right: 0.06em; border-radius: 3px; text-shadow: none; }

/* 2026-09-26 00:13Z Chris: "the black box around all of it including the wavelength bars to the left" — one dark plate behind
   the whole brand (bars + BEATRIFUL); the pill behind BEAT alone comes off. */
.brand { background: rgba(8,8,8,.8); padding: 0.42rem 0.8rem 0.4rem 0.7rem; border-radius: 4px; }
.brand-word .wm-beat { background: none; padding: 0; margin-right: 0; border-radius: 0; }
.beatmark { color: rgba(236,230,216,.85); }

/* 2026-09-26 00:15Z Chris: "one try all lowercase" — the plate stays, the name goes back to beatriful in lowercase, beat brass-first. */
.brand-word, .brand-word .wm-beat { text-transform: none; letter-spacing: 0.02em; }

/* 2026-09-26 00:16Z Chris: "ok back all caps" — final: BEATRIFUL caps on the dark plate. */
.brand-word, .brand-word .wm-beat { text-transform: uppercase; letter-spacing: 0.06em; }

/* 2026-10-01 21:15Z Chris: "make the word BEAT on the hero area have a white shadow behind it that kind of throbs" — a white glow that
   lands like a kick and decays, one pulse every two beats of 122 BPM (0.984 s). Steady: the hero film is muted, there is no audio to follow. */
@keyframes beatThrob {
  0%, 100% { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 8px rgba(255,255,255,.10), 0 0 22px rgba(255,255,255,0), 0 0 46px rgba(255,255,255,0); }
  10% { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 8px rgba(255,255,255,1), 0 0 22px rgba(255,255,255,.8), 0 0 46px rgba(255,255,255,.5); }
  60% { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 8px rgba(255,255,255,.22), 0 0 22px rgba(255,255,255,.08), 0 0 46px rgba(255,255,255,0); }
}
.hero .wm-beat { animation: beatThrob 0.984s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero .wm-beat { animation: none; text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 10px rgba(255,255,255,.45), 0 0 26px rgba(255,255,255,.2); }
}

/* 2026-10-01 Chris: "put a session link on our homepage too" — four header links; on a phone the row wraps under the wordmark instead of
   running off the right edge. */
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 0.7rem; }
  .head-nav { width: 100%; flex-wrap: wrap; gap: 0.5rem 1.15rem; }
  .head-link { white-space: nowrap; }
  .foot-links { flex-wrap: wrap; row-gap: 0.5rem; }   /* four footer links wrap instead of pushing the page wider than the phone */
}
