/* ─────────────────────────────────────────────────────────────
   Speaking Out | speakingoutthemovie.com
   Tokens first; everything below is driven from them.
   ───────────────────────────────────────────────────────────── */
:root {
  /* palette carried over from the Squarespace site */
  --char:  #13110B;   /* deepest umber black: hero, footer */
  --ink:   #282418;   /* primary dark ground */
  --paper: #EFEAE6;   /* light ground, light text */
  --ember: #E1B12C;   /* gold accent */
  --ash:   #787160;   /* taupe: resources and contact */
  --umber: #504107;   /* dark olive accent */

  --paper-dim: rgba(239, 234, 230, .66);
  --paper-faint: rgba(239, 234, 230, .3);
  --ink-dim: rgba(40, 36, 24, .68);
  --faint: rgba(239, 234, 230, .14);

  --f-display: "co-headline", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --dock-space: 92px;           /* clears the floating nav */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* smooth only after load, so deep links (/#press) jump straight to their section */
html.is-ready { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-ready { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--char); color: var(--paper);
  font: 400 clamp(16px, .35vw + 15px, 18px)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
/* sections receive focus after an in-page jump (so Tab continues from there); no ring on the whole section */
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ember); color: var(--ink); padding: 10px 16px; border-radius: 99px; text-decoration: none;
}
.skip:focus { top: 16px; }

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

.section-title {
  font: 700 clamp(26px, 2.2vw + 12px, 40px)/1.15 var(--f-display);
  letter-spacing: -.005em; margin-bottom: .7em;
}

/* buttons: the site's 300px pill */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 12px 24px;
  border-radius: 300px; text-decoration: none; font: 500 15px/1.2 var(--f-text);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn small { font-size: 12px; opacity: .7; font-weight: 400; }
.btn--gold { background: var(--ember); color: var(--ink); }
.btn--gold:hover { background: var(--paper); }
.btn--line { border: 1.5px solid var(--ember); color: var(--paper); }
.btn--line:hover { background: var(--ember); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

/* ───────── Hero ───────── */
.hero-wrap { position: relative; }
.hero-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 100vh; height: 100svh; pointer-events: none; visibility: hidden; }
.hero {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center; background: var(--char); isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(19,17,11,.7) 0%, rgba(19,17,11,0) 22%, rgba(19,17,11,0) 60%, rgba(19,17,11,.75) 100%),
    rgba(19,17,11, var(--hero-dim, .1));
}
.masthead {
  position: absolute; top: 0; left: 0; right: 0; padding: clamp(18px, 3vh, 30px) var(--gutter);
  display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; text-align: center;
}
.masthead__title { font: 700 clamp(22px, 1.6vw + 12px, 34px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.masthead__sub {
  font: 400 13px/1 var(--f-text); color: var(--ember); letter-spacing: .02em;
  padding-left: 14px; border-left: 1px solid var(--paper-faint);
}
.play {
  display: grid; justify-items: center; gap: 14px; text-decoration: none; color: var(--paper);
  margin-top: 6vh;
}
.play__ring {
  width: clamp(76px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(19,17,11,.35); color: var(--ember);
  border: 2px solid var(--ember); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), background-color .3s ease, color .3s ease;
}
.play__ring svg { width: 56%; height: auto; margin-left: 6%; }
.play__label { font: 500 14px/1 var(--f-text); letter-spacing: .02em; opacity: .9; }
.play:hover .play__ring, .play:focus-visible .play__ring { transform: scale(1.08); background: var(--ember); color: var(--ink); }
.play:focus-visible { outline: none; }
.play:focus-visible .play__ring { outline: 2px solid var(--paper); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .play__ring { animation: breathe 3.2s ease-in-out infinite; }
  @keyframes breathe { 50% { box-shadow: 0 0 0 14px rgba(225,177,44,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(225,177,44,.35); } }
}

/* ───────── Synopsis (rises over the hero) ───────── */
.synopsis {
  position: relative; z-index: 1; background: var(--paper); color: var(--ink);
  border-radius: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0 0;
  overflow: hidden; padding: clamp(72px, 12vh, 140px) 0 clamp(80px, 14vh, 160px);
}
.synopsis__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16;
  mix-blend-mode: multiply; pointer-events: none;
}
.synopsis__inner { position: relative; width: min(1080px, 100% - var(--gutter) * 2); margin-inline: auto; }
.kicker {
  font: 700 clamp(17px, .6vw + 13px, 22px)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.kicker__mark { box-shadow: inset 0 -.32em 0 var(--ember); }
.statement {
  font: 500 clamp(26px, 2.6vw + 12px, 50px)/1.16 var(--f-text); letter-spacing: -.012em;
  max-width: 24ch; text-wrap: balance; margin-bottom: clamp(48px, 8vh, 88px);
}
.synopsis__cols { display: grid; gap: 1.2em 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.synopsis__cols p { max-width: 60ch; color: var(--ink-dim); }

/* word ignition: words rest as ash and light up with scroll */
.js [data-fill] .w { transition: color .35s ease; }
.js .statement[data-fill] .w { color: rgba(40,36,24,.2); }
.js .logline[data-fill] .w { color: rgba(239,234,230,.26); }
.js [data-fill] .w.is-lit { color: currentColor; }
.js .statement[data-fill] .w.is-lit { color: var(--ink); }
.js .logline[data-fill] .w.is-lit { color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .js [data-fill] .w { color: inherit !important; transition: none; }
}

/* ───────── Stories ───────── */
.stories { background: var(--ink); }
.stories__intro {
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  padding: clamp(80px, 14vh, 150px) 0 clamp(56px, 9vh, 96px);
  display: grid; gap: 20px 64px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .stories__intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
  .stories__intro .section-title { margin: 0; font-size: clamp(40px, 4vw, 64px); }
}
.stories__intro p { color: var(--paper-dim); max-width: 46ch; }
.stories__index { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 12px; }
.stories__index a {
  display: inline-block; padding: 8px 18px; border-radius: 300px; border: 1px solid var(--faint);
  text-decoration: none; font: 700 15px/1.2 var(--f-display); transition: border-color .25s, color .25s;
}
.stories__index a:hover { border-color: var(--ember); color: var(--ember); }

.chapter { position: relative; background: var(--char); }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0;
}
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(var(--zoom, 1)); transform-origin: 50% 40%; will-change: transform;
}
.stage__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(19,17,11,.92) 0%, rgba(19,17,11,.55) 34%, rgba(19,17,11,0) 62%),
    rgba(19,17,11, var(--dim, 0));
}
.stage__text {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  padding-bottom: calc(var(--dock-space) + clamp(12px, 3vh, 36px));
  opacity: var(--text-fade, 1);
}
.stage__name {
  font: 700 clamp(64px, 11vw, 188px)/.86 var(--f-display); letter-spacing: -.035em;
  margin-bottom: clamp(14px, 2.4vh, 28px); color: var(--paper);
}
.logline {
  font: 500 clamp(19px, 1.1vw + 12px, 30px)/1.32 var(--f-text); letter-spacing: -.005em;
  max-width: 40ch; text-wrap: pretty;
}

/* ── Cast: the actors who portray each storyline ── */
.cast {
  position: relative; z-index: 1;
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  padding: 70vh 0 clamp(80px, 16vh, 180px);
}
.cast__head { margin-bottom: 20px; }
.cast__title {
  font: 700 clamp(22px, 1.2vw + 12px, 30px)/1.15 var(--f-display); color: var(--ember);
  letter-spacing: -.005em;
}
.cast__note { margin-top: 6px; font-size: 15px; color: var(--paper-dim); }

/* every card shares one shape: portrait and credit on top, bio below */
.card {
  --photo: clamp(96px, 22vw, 136px);
  display: grid; column-gap: clamp(16px, 2vw, 24px);
  grid-template-columns: var(--photo) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto;
  grid-template-areas:
    "img  role"
    "img  name"
    "bio  bio"
    "more more";
  padding: clamp(18px, 2.2vw, 28px);
  background: rgba(40,36,24,.86); border: 1px solid var(--faint);
  border-radius: 22px; margin-bottom: 20px;
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transform-origin: 50% 0;
}
.card__body { display: contents; }
.card__img {
  grid-area: img; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: 14px; background: var(--ink);
}
.card__role { grid-area: role; align-self: end; font: 700 clamp(16px, .4vw + 13px, 19px)/1.2 var(--f-display); color: var(--ember); margin-bottom: 4px; }
.card__name { grid-area: name; font: 500 clamp(22px, 1vw + 15px, 30px)/1.12 var(--f-text); letter-spacing: -.01em; }
.card__bio { grid-area: bio; margin-top: clamp(16px, 2vh, 22px); font-size: 16px; line-height: 1.6; }
.card__bio p { color: var(--paper-dim); max-width: 62ch; }
.card__bio p + p { margin-top: .9em; }
.card__more {
  grid-area: more; justify-self: start;
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 1px solid var(--paper-faint); border-radius: 300px; padding: 9px 18px;
  font: 500 14px/1 var(--f-text); color: var(--paper); transition: border-color .25s, color .25s;
}
.card__more[hidden] { display: none; }
.card__more:hover { border-color: var(--ember); color: var(--ember); }
.card__more svg { transition: transform .3s var(--ease); }
.card.is-open .card__more svg { transform: rotate(180deg); }
/* collapsed: the same five-line window on every card, faded where it cuts */
.js .card:not(.is-open) .card__bio { height: 8em; overflow: hidden; position: relative; }
.js .card:not(.is-open) .card__bio.is-long::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em;
  background: linear-gradient(to bottom, rgba(36,32,22,0), rgb(36,32,22));
}

/* desktop: the cast column runs to the right; the storyline stays legible, dimmed, on the left */
@media (min-width: 900px) {
  .cast > .cast__head, .cast > .card { width: min(600px, 50%); margin-left: auto; }
  .stage__name { font-size: clamp(64px, 8.5vw, 150px); }
  .logline { max-width: min(36ch, 44%); }
}
/* stacked deck: only where a collapsed card fits the viewport */
@media (min-width: 900px) and (min-height: 640px) {
  /* the heading pins as a column header; cards land just beneath it */
  .js .cast { --head-top: 4vh; --head-h: 96px; }
  .js .cast__head { position: sticky; top: var(--head-top); min-height: var(--head-h); margin-bottom: 0; }
  .js .card { position: sticky; top: calc(var(--head-top) + var(--head-h)); will-change: transform; }
  .js .card.is-open { position: relative; top: auto; }
}

/* ───────── Team ───────── */
.team { background: var(--ink); padding: clamp(80px, 14vh, 150px) 0 0; }
.team__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.team__rail { display: none; }

/* bios: every member's story in normal flow */
.bio { max-width: 64ch; }
.bio + .bio { margin-top: 64px; }
.bio__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: end; margin-bottom: 22px; }
.bio__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 14px; }
.bio__name { font: 700 clamp(24px, 1.4vw + 16px, 40px)/1.1 var(--f-display); letter-spacing: -.01em; }
.bio__name span { display: block; font: 400 16px/1.4 var(--f-text); color: var(--ember); margin-top: 8px; letter-spacing: 0; }
.bio p { color: var(--paper-dim); }
.bio p + p { margin-top: .9em; }
.bio__link a { color: var(--ember); }

/* desktop: pinned portrait rail on the left, bios scroll on the right */
@media (min-width: 900px) {
  .team__grid {
    grid-template-columns: minmax(0, clamp(260px, 28vw, 380px)) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 110px); align-items: start;
  }
  .team__rail {
    position: sticky; top: 6vh; display: flex; flex-direction: column; gap: 10px;
    height: calc(100vh - 6vh - var(--dock-space) - 8px); height: calc(100svh - 6vh - var(--dock-space) - 8px);
    max-height: 820px;
  }
  .person {
    position: relative; display: block; flex: 1 1 0; min-height: 64px; overflow: hidden;
    border-radius: 16px; text-decoration: none; color: var(--paper); background: var(--char);
    transition: flex-grow .7s var(--ease);
  }
  .person[aria-current="true"] { flex-grow: 4.4; }
  .person img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%;
    filter: grayscale(1) brightness(.5); transition: filter .6s ease, transform .9s var(--ease);
  }
  .person:hover img { filter: grayscale(.4) brightness(.72); }
  .person[aria-current="true"] img { filter: none; }
  .person::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px var(--faint); transition: box-shadow .4s ease;
    background: linear-gradient(to top, rgba(19,17,11,.85), rgba(19,17,11,0) 55%);
  }
  .person[aria-current="true"]::after { box-shadow: inset 0 0 0 2px var(--ember); }
  .person__text { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
  .person__name { font: 700 clamp(16px, .6vw + 11px, 21px)/1.15 var(--f-display); }
  .person__role { font-size: 13px; color: var(--paper-dim); }
  .person[aria-current="true"] .person__name { color: var(--ember); }
  .person:focus-visible { outline-offset: 3px; }

  .bio__head { display: block; }
  .bio__photo { display: none; }
  .bio { scroll-margin-top: 6vh; padding-bottom: 14vh; }
  .bio + .bio { margin-top: 0; padding-top: 4vh; border-top: 1px solid var(--faint); }
  .bio:last-child { min-height: calc(100vh - 6vh - var(--dock-space)); padding-bottom: 0; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .person, .person img { transition: none; }
}

/* crew strip */
.crew { padding-top: clamp(80px, 14vh, 140px); }
.crew__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.crew__ctrl { display: flex; gap: 8px; margin-bottom: 1em; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--faint); transition: border-color .25s, color .25s;
}
.arrow:hover { border-color: var(--ember); color: var(--ember); }
.arrow:disabled { opacity: .3; cursor: default; border-color: var(--faint); color: inherit; }
.strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 max(var(--gutter), (100% - var(--max)) / 2) 12px; scroll-padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--ash) transparent;
}
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip figure { width: auto; }
.strip img { height: clamp(260px, 46vh, 460px); width: auto; border-radius: 14px; object-fit: cover; }
.strip figcaption { max-width: 34ch; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--paper-dim); }

/* billing block: poster credit vernacular */
.billing {
  width: min(1000px, 100% - var(--gutter) * 2); margin-inline: auto; text-align: center;
  padding: clamp(80px, 14vh, 140px) 0 clamp(80px, 12vh, 120px);
  font-family: var(--f-display); text-transform: uppercase; line-height: 1.5;
}
.billing p { margin-bottom: 1.1em; font-size: clamp(13px, .6vw + 10px, 17px); }
.billing i { font-style: normal; font-weight: 400; font-size: .72em; letter-spacing: .08em; color: var(--paper-dim); margin: 0 .35em; }
.billing b { font-weight: 700; letter-spacing: .04em; }
.logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; }
.logos img { width: clamp(110px, 12vw, 160px); height: auto; }

/* ───────── Festivals ───────── */
.festivals { background: var(--ember); color: var(--ink); padding: clamp(80px, 14vh, 140px) 0; }
.festivals__grid { display: grid; gap: 40px clamp(32px, 6vw, 96px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .festivals__grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.festivals__poster { width: min(360px, 100%); border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(40,36,24,.55); }
.festivals .section-title { font-size: clamp(32px, 3vw + 12px, 56px); }
.screenings { display: grid; gap: 28px; }
.screening {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center;
  padding-top: 28px; border-top: 1.5px solid rgba(40,36,24,.25);
}
.screening__laurel { width: clamp(110px, 12vw, 150px); }
.screening__kind { font: 700 13px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--umber); }
.screening__fest { font: 500 clamp(22px, 1.4vw + 14px, 32px)/1.15 var(--f-text); letter-spacing: -.01em; margin: 6px 0 10px; }
.screening__when { font: 700 clamp(16px, .6vw + 12px, 20px)/1.3 var(--f-display); }
.screening__where a { color: var(--ink); text-underline-offset: 3px; }
.screening__status {
  display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 300px;
  font-size: 13px; border: 1px solid rgba(40,36,24,.4);
}
@media (max-width: 520px) { .screening { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Voices ───────── */
.voices { background: var(--paper); color: var(--ink); padding: clamp(80px, 14vh, 140px) 0; }
.voices__q {
  font: 500 clamp(24px, 1.8vw + 12px, 40px)/1.2 var(--f-text); letter-spacing: -.01em;
  max-width: 30ch; margin-bottom: clamp(40px, 7vh, 72px); text-wrap: balance;
}
.voices__list { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.voice { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; border-top: 3px solid var(--ember); }
.voice blockquote { font-size: 16px; line-height: 1.65; color: var(--ink-dim); }
.voice figcaption { margin-top: auto; font-size: 14px; color: var(--ink-dim); }
.voice figcaption b { display: block; font: 700 17px/1.3 var(--f-display); color: var(--ink); }

/* ───────── Press ───────── */
.press { background: var(--char); padding: clamp(80px, 14vh, 140px) 0; }
.press__kit { display: grid; gap: 32px 56px; align-items: center; grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(64px, 10vh, 110px); }
@media (min-width: 820px) { .press__kit { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.press__kit img { border-radius: 14px; }
.press__kit p { color: var(--paper-dim); max-width: 44ch; margin-bottom: 24px; }
.press__sub { font: 700 clamp(20px, 1vw + 14px, 28px)/1.2 var(--f-display); margin-bottom: 22px; scroll-margin-top: 24px; }
.stills { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.stills a { display: block; border-radius: 10px; overflow: hidden; background: var(--ink); }
.stills img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.stills a:hover img { transform: scale(1.04); }
.stills a:focus-visible { outline-offset: 2px; }
.press__credit { margin-top: 18px; font-size: 13px; color: var(--paper-dim); }

/* ───────── Resources & contact ───────── */
.contact { background: var(--ash); color: var(--paper); padding: clamp(80px, 14vh, 140px) 0 clamp(64px, 10vh, 110px); }
.contact__grid { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 80px; } }
.resources {
  background: var(--ink); border-radius: 22px; padding: clamp(26px, 3.4vw, 48px);
  box-shadow: 0 30px 60px -30px rgba(19,17,11,.6);
}
.resources > p { color: var(--paper-dim); max-width: 58ch; }
.resources__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.resources__list a {
  display: grid; gap: 12px; align-content: start; justify-items: center; text-align: center; text-decoration: none;
  padding: 18px 10px; border-radius: 14px; border: 1px solid var(--faint); height: 100%;
  font-size: 13px; line-height: 1.35; color: var(--paper-dim); transition: border-color .25s, color .25s;
}
.resources__list a:hover { border-color: var(--ember); color: var(--paper); }
.resources__list img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.reach .section-title { font-size: clamp(22px, 1vw + 16px, 30px); }
@media (max-width: 480px) { .resources__list { grid-template-columns: minmax(0, 1fr); } .resources__list a { grid-template-columns: 90px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; } }

/* ───────── Footer ───────── */
.site-foot { background: var(--char); padding-top: clamp(56px, 10vh, 96px); }
.site-foot__mark {
  text-align: center; font: 700 clamp(30px, 3vw + 14px, 56px)/1 var(--f-display);
  text-transform: uppercase; letter-spacing: .06em; color: var(--ember); margin-bottom: clamp(40px, 7vh, 64px);
}

/* ───────── ATG branding footer (shared house block) ─────────
   Portable: set the three --atg-foot-* tokens per site; nothing else changes. */
.atg-foot {
  --atg-foot-fg: var(--paper, #fff);
  --atg-foot-muted: rgba(255, 255, 255, .69);
  --atg-foot-line: var(--faint, rgba(255, 255, 255, .14));
  text-align: center; color: var(--atg-foot-fg);
  border-top: 1px solid var(--atg-foot-line);
  padding: clamp(36px, 6vh, 56px) 16px calc(clamp(28px, 5vh, 44px) + var(--dock-space, 0px));
  transition: padding .5s ease;
}
.atg-foot__copy { margin: 0; font-size: clamp(15px, 1vw + 8px, 18px); font-weight: 500; }
.atg-foot__credit {
  margin: 2.25vh 0 0; font-family: system-ui, sans-serif; font-size: 90%; font-weight: 400;
  text-transform: lowercase; color: #eee;
}
.atg-foot__brand { display: inline-block; margin-left: .14rem; text-transform: lowercase; }
.atg-foot__brand a { color: var(--atg-foot-fg); text-decoration: none; }
.atg-foot__brand a:hover { text-decoration: underline; text-underline-offset: 3px; }
.atg-foot__brand::after {
  /* external-link mark as a masked SVG so it takes the text colour; swap to FA ("\f14c") on sites that load the kit */
  content: ""; display: inline-block; width: .74em; height: .74em; margin-left: .3rem; vertical-align: -.04em;
  background-color: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-8.5 8.5'/%3E%3Cpath d='M19 14.5V19a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 4 19V7a1.5 1.5 0 0 1 1.5-1.5H10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.atg-foot__brand b { font-weight: 700; }
.atg-foot__tag-link { display: inline-block; margin-top: 1.5vh; border-radius: 50%; }
.atg-foot__tag {
  display: inline-block; vertical-align: middle; border-radius: 50%;
  filter: grayscale(100%); transform: scale(1);
  transition: filter 1s ease-in-out, transform 1s ease-in-out;
}
.atg-foot__tag-link:hover .atg-foot__tag,
.atg-foot__tag-link:focus-visible .atg-foot__tag { filter: grayscale(0%); transform: scale(1.25); }
.atg-foot__tag-link:focus-visible { outline: 2px solid var(--atg-foot-fg); outline-offset: 6px; }

/* ───────── Floating dock nav ───────── */
.dock {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%); max-width: calc(100vw - 24px);
  background: rgba(19,17,11,.62); border: 1.5px solid var(--ember); border-radius: 300px;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.6);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock__track { position: relative; display: flex; gap: 2px; padding: 5px; width: max-content; }
.dock a {
  position: relative; z-index: 1; display: block; padding: 10px 16px; border-radius: 300px;
  font: 700 14px/1 var(--f-display); text-decoration: none; color: var(--paper); white-space: nowrap;
  transition: color .3s ease;
}
.dock a:hover { color: var(--ember); }
.dock a[aria-current="true"] { color: var(--ink); }
.dock a:focus-visible { outline-offset: -2px; }
.dock__pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 300px; background: var(--ember);
  transform: translateX(var(--x, 5px)); width: var(--w, 0px);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .dock__pill { transition: none; } }
@media (max-width: 520px) { .dock a { padding: 10px 12px; font-size: 13px; } }

/* ───────── Dialog viewers ───────── */
.viewer {
  border: 0; padding: 0; background: transparent; color: var(--paper);
  width: min(1200px, 100vw - 32px); max-width: none; max-height: none; overflow: visible;
}
.viewer::backdrop { background: rgba(19,17,11,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.viewer__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 80vh; background: #000; border-radius: 12px; overflow: hidden; }
.viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer__close {
  position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--ink); border: 1px solid var(--faint);
}
.viewer__close:hover { border-color: var(--ember); color: var(--ember); }
.viewer__still img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; background: #000; }
.viewer__still figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--paper-dim); }
.viewer__still a { color: var(--ember); }
.viewer__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: rgba(40,36,24,.85); border: 1px solid var(--faint);
}
.viewer__nav:hover { border-color: var(--ember); color: var(--ember); }
.viewer__nav--prev { left: 10px; }
.viewer__nav--next { right: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: viewerIn .35s var(--ease); }
  @keyframes viewerIn { from { opacity: 0; transform: scale(.97); } }
}
body:has(dialog[open]) { overflow: hidden; }
