/* =====================================================================================
   HAMILTON: The First Flame · base.css
   Shared layout + components. Identical in all six packages; each direction's
   theme.css sets the tokens below and restyles components.
   ===================================================================================== */
:root {
  --bg: #0b0b0b; --bg-2: #141414; --surface: #1b1b1b; --line: rgba(255,255,255,.14);
  --text: #eee; --text-dim: #aaa; --accent: #c44a20; --accent-2: #f28a2e; --highlight: #c9a45d;
  --on-accent: #fff;
  --font-display: Georgia, serif; --font-body: Georgia, serif; --font-ui: system-ui, sans-serif;
  --display-weight: 400; --display-tracking: .02em; --display-case: none; --display-leading: 1.02;
  --eyebrow-tracking: .22em;
  --radius: 0px; --maxw: 1240px; --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.1,1);
  --section-pad: clamp(64px, 10vw, 140px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: clamp(16px, 1.05vw + 8px, 19px); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; font-family: var(--font-ui); }
.skip-link:focus { top: 12px; }
main { display: block; outline: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: var(--display-leading); }
.page-title { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.08; }
.h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.2; }
.eyebrow { font-family: var(--font-ui); font-size: .72rem; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--highlight); margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 46ch; }
.prose { max-width: 68ch; }
.prose p { color: var(--text); }
.note { font-family: var(--font-ui); font-size: .82rem; color: var(--text-dim); margin-top: 1.6em; max-width: 80ch; }
.note a { color: var(--highlight); }
.caption { font-family: var(--font-ui); font-size: .8rem; color: var(--text-dim); margin-top: .8em; }
.link { font-family: var(--font-ui); font-size: .85rem; letter-spacing: .06em; color: var(--highlight); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.flag { display: inline-block; font-family: var(--font-ui); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .25em .6em; border: 1px dashed currentColor; color: var(--highlight); opacity: .9; vertical-align: middle; white-space: normal; max-width: 100%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .9em 1.6em; font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; border-radius: var(--radius); transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--highlight); color: var(--highlight); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ---------- header / nav ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, body:not(.is-home) .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.brand__main { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .24em; font-weight: var(--display-weight); }
.brand__sub { font-family: var(--font-ui); font-size: .56rem; letter-spacing: .5em; text-transform: uppercase; color: var(--highlight); margin-top: 6px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 12px; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
.nav__link:hover, .nav__link[aria-current] { opacity: 1; color: var(--highlight); }
.nav__sub-toggle { width: 22px; height: 32px; margin-left: -8px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.nav__sub-toggle span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.nav__sub { list-style: none; margin: 0; padding: 12px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--bg-2); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s, visibility .25s; }
.nav__sub a { display: block; padding: 9px 20px; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .06em; text-decoration: none; color: var(--text); }
.nav__sub a:hover { color: var(--highlight); background: color-mix(in srgb, var(--text) 5%, transparent); }
@media (hover: hover) and (min-width: 1241px) { .has-sub:hover .nav__sub { opacity: 1; visibility: visible; transform: none; } }
.has-sub:focus-within .nav__sub, .has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__cta { min-height: 40px; padding: .7em 1.2em; font-size: .68rem; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 12px; width: 24px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .3s; content: ""; }
.nav-toggle__bars { top: 23px; } .nav-toggle__bars::before { top: -7px; left: 0; } .nav-toggle__bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; padding: 18px 0; font-size: .9rem; }
  .nav__sub-toggle { width: 48px; height: 48px; margin: 0; }
  .nav__sub { position: static; flex-basis: 100%; min-width: 0; border: 0; background: none; padding: 0 0 12px 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open .nav__sub { display: block; }
  .has-sub:focus-within:not(.is-open) .nav__sub { display: none; }
  .nav__cta { margin-top: 24px; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- page head ---------- */
.page-head { position: relative; padding: calc(var(--header-h) + clamp(56px, 10vw, 140px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.page-head--image { min-height: min(86vh, 820px); display: flex; align-items: flex-end; }
.page-head__media { position: absolute; inset: 0; z-index: -1; }
.page-head__img { width: 100%; height: 100%; object-fit: cover; }
.page-head__veil { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, color-mix(in srgb, var(--bg) 20%, transparent) 40%, var(--bg) 100%); }
.page-head__inner { position: relative; }
.page-head .lede { margin-top: 1.2em; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em; color: var(--text-dim); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--highlight); }
.review-banner { font-family: var(--font-ui); font-size: .85rem; color: var(--text-dim); max-width: 70ch; margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- subnav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 14px; white-space: nowrap; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--text-dim); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-pad); position: relative; }
.section + .section { padding-top: 0; }
.section__head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 60ch; }
.sub-head { margin: 64px 0 28px; }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.split--contact { align-items: start; }
.fill { display: block; width: 100%; height: auto; }
.framed { position: relative; }
.synopsis { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.45; max-width: 36ch; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- cards ---------- */
.cards { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cards--people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.cards--explore { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
a.card:hover { border-color: var(--highlight); }
.card__media { background: var(--bg-2); }
.card__img { display: block; width: 100%; height: auto; transition: filter .6s var(--ease); }
a.card:hover .card__img { filter: brightness(1.08); }
.card__body { padding: 22px 22px 26px; }
.card__kicker { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--highlight); margin-bottom: .7em; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-bottom: .45em; }
.card__meta { font-family: var(--font-ui); font-size: .78rem; color: var(--text-dim); margin-bottom: .8em; }
.card__text { font-size: .95rem; color: var(--text-dim); margin: 0; }
.card--logo { align-items: stretch; }
.cards--logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.logo-img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #080A0D; padding: 18px; }
.logo-tile .logo-img { aspect-ratio: 4/3; }

/* ---------- portraits ---------- */
.portrait { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); }
.portrait:has(.portrait__img) { aspect-ratio: auto; }
.portrait__img { display: block; width: 100%; height: auto; }
.portrait--empty { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--highlight) 18%, var(--bg-2)) 0%, var(--bg-2) 70%); }
.portrait__mono { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: .08em; color: var(--highlight); opacity: .75; }
.portrait__note { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--font-ui); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.portrait__light { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--accent-2) 35%, transparent) 0%, transparent 45%); mix-blend-mode: soft-light; }
[data-candle]:hover .portrait__light { opacity: 1; }

/* ---------- quote ---------- */
.quote { margin: clamp(40px, 6vw, 80px) 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.25; max-width: 28ch; margin: 0; }
.quote figcaption { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; color: var(--text-dim); margin-top: 1.2em; }

/* ---------- chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text-dim); cursor: pointer; border-radius: var(--radius); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--highlight); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-family: var(--font-ui); font-size: .72rem; padding: 4px 10px; border: 1px solid var(--line); text-decoration: none; color: var(--text-dim); border-radius: var(--radius); }
.tag:hover { color: var(--highlight); border-color: var(--highlight); }
.tag--figure { border-style: dashed; }

/* ---------- gallery ---------- */
.g-grid { columns: 3 280px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; }
.g-item[hidden] { display: none; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; }
.g-img { width: 100%; height: auto; min-height: 120px; transition: transform 1s var(--ease), filter .4s; }
.g-open:hover .g-img { filter: brightness(1.08); }
.g-item figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; font-family: var(--font-ui); font-size: .75rem; color: var(--text-dim); }
.g-tag { color: var(--highlight); white-space: nowrap; }
.gallery-strip { margin-top: 48px; }
.gallery-strip .g-grid { columns: 2 280px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; margin: auto; }
.lightbox__cap { text-align: center; font-family: var(--font-ui); font-size: .85rem; margin-top: 12px; }
.lightbox__close { position: fixed; top: 16px; right: 20px; width: 48px; height: 48px; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* ---------- story chapters ---------- */
.chapter { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 18vh 0 12vh; isolation: isolate; overflow: hidden; }
.chapter__media { position: absolute; inset: 0; z-index: -1; }
.chapter__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 45%, color-mix(in srgb, var(--bg) 20%, transparent) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.chapter__img { width: 100%; height: 100%; object-fit: contain; object-position: 100% 50%; }
.chapter__num { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--highlight); }
.chapter__title { font-size: clamp(2.6rem, 7vw, 6rem); margin: .2em 0 .4em; }
.chapter .lede { margin-bottom: 1.6em; }
.continue { text-align: center; } .continue .actions { justify-content: center; }

/* ---------- facts / themes / steps ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); padding-right: 24px; }
.facts dt { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--highlight); margin-bottom: 6px; }
.facts dd { margin: 0; }
.themes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.theme-item { border-top: 1px solid var(--highlight); padding-top: 22px; }
.theme-item p { color: var(--text-dim); margin-top: .6em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 32px 28px; }
.step__n { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--accent-2); margin-bottom: 14px; line-height: 1; }
.step p { color: var(--text-dim); margin-top: .6em; }
.crafts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crafts li { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; padding: 8px 14px; border: 1px solid var(--line); }

/* ---------- entries (history / contact) ---------- */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.entry { border-top: 1px solid var(--line); padding-top: 22px; }
.entry p { color: var(--text-dim); }
.entry .h3 { margin-bottom: .5em; }
.entry__date { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent-2); line-height: 1; margin-bottom: .4em; }
.doc-feature { margin-top: 64px; }
.doc-feature img { max-height: 80vh; object-fit: contain; background: var(--bg-2); }
.entries--routes { grid-template-columns: 1fr; gap: 0; }
.entries--routes .entry { padding: 22px 0; }
.entries--routes .entry p { margin-bottom: .6em; }
.contact-card { margin-top: 40px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.contact-card p { margin-bottom: .4em; }
.contact-card a { color: var(--highlight); }

/* ---------- forms ---------- */
.contact-form, .signup { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.field em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .7; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-family: var(--font-ui); font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-height: 50px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--highlight); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-ui); font-size: .88rem; color: var(--text-dim); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-msg { font-family: var(--font-ui); font-size: .9rem; color: var(--highlight); }
.contact-form .btn, .signup .btn { justify-self: start; }

/* ---------- misc ---------- */
.empty { padding: clamp(32px, 5vw, 56px); border: 1px dashed var(--line); text-align: center; }
.empty p:not(.h3) { color: var(--text-dim); }
.empty .btn { margin-top: 12px; }
.social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.social li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); }
.social__name { font-family: var(--font-display); font-size: 1.2rem; }
.download { border: 1px solid var(--line); padding: 40px; text-align: center; background: var(--surface); }
.download__icon { display: block; width: 44px; height: 56px; margin: 0 auto 18px; border: 1.5px solid var(--highlight); position: relative; }
.download__icon::after { content: ""; position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; border-right: 1.5px solid var(--highlight); border-bottom: 1.5px solid var(--highlight); transform: translateX(-50%) rotate(45deg); }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.video__poster { width: 100%; height: 100%; object-fit: contain; filter: saturate(.8) brightness(.75); }
.video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; }
.video__play::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 20px solid rgba(255,255,255,.9); border-block: 13px solid transparent; }
.video__status { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-ui); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.6); color: #fff; padding: 5px 9px; }
.video figcaption { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-top: 10px; }
button.video__frame { display: block; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer; }
button.video__frame[disabled] { cursor: default; }
.video:not(.is-ready) .video__play { opacity: .35; }
.video.is-ready .video__frame:hover .video__play, .video.is-ready .video__frame:focus-visible .video__play { background: rgba(0,0,0,.35); border-color: #fff; }
.video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.videos--single { grid-template-columns: 1fr; max-width: 1100px; }
.videos--inline { margin-block: clamp(32px, 5vw, 56px); max-width: 960px; }
.video--feature .video__play { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.video--feature .video__play::after { left: 37px; top: 29px; border-left-width: 26px; border-block-width: 17px; }
.post__media .video { width: 100%; }
/* coming-soon poster (keeps the image's own ratio) */
.coming { margin: 0; display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 1100px; }
@media (min-width: 900px) { .coming { grid-template-columns: 7fr 4fr; } }
.coming__media { position: relative; background: var(--bg-2); }
.coming__media img { display: block; width: 100%; height: auto; }
.coming__text .h3 { margin-bottom: .5em; } .coming__text p { color: var(--text-dim); }

/* news */
.posts { display: grid; gap: clamp(48px, 7vw, 96px); }
.post { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .post { grid-template-columns: 5fr 7fr; } }
.post__media { background: var(--bg-2); }
.post__title { margin-bottom: .6em; }
.post__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 18px; }
.post__images figure { margin: 0; }
.post__images img { display: block; width: 100%; height: auto; }
.post__images figcaption { font-family: var(--font-ui); font-size: .7rem; color: var(--text-dim); margin-top: 4px; }

/* profile */
.profile__head { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 900px) { .profile__head { grid-template-columns: 1fr 1fr; } }
.profile__portrait { align-self: center; padding: calc(var(--header-h) + 24px) 0 24px; }
.profile__portrait .portrait { aspect-ratio: auto; }
.profile__portrait .portrait--empty { min-height: 60vh; }
@media (max-width: 899px) { .profile__head { min-height: 0; } .profile__portrait { padding-bottom: 0; } .profile__intro { padding-top: 40px; } }
.profile__intro { padding: calc(var(--header-h) + 48px) var(--gutter) 64px; align-self: end; }
.profile__name { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-bottom: .3em; }
.profile__actor { font-family: var(--font-ui); font-size: .9rem; color: var(--text-dim); }
.profile__actor strong { color: var(--text); font-weight: 600; }
.profile__moments { margin-top: 48px; max-width: 68ch; }
.mini-tl { list-style: none; padding: 0; margin: 0 0 16px; }
.mini-tl li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-tl__date { display: inline-block; min-width: 110px; font-family: var(--font-ui); font-size: .78rem; color: var(--highlight); }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.rel-list a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); text-decoration: none; height: 100%; transition: border-color .3s; }
.rel-list a:hover { border-color: var(--highlight); }
.rel__label { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--highlight); }
.rel__name { font-family: var(--font-display); font-size: 1.25rem; }
.next-link { padding-block: 0 var(--section-pad); }
.next-link a { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; border-top: 1px solid var(--line); text-decoration: none; }

/* ---------- timeline ---------- */
.tl { position: relative; }
.tl__rail { position: absolute; left: 150px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--progress, 0) * 100%); background: linear-gradient(var(--highlight), var(--accent-2)); box-shadow: 0 0 14px var(--accent-2); }
.tl__list { list-style: none; margin: 0; padding: 0; }
.tl__item { display: grid; grid-template-columns: 126px 48px 1fr; align-items: start; padding: 22px 0; }
.tl__item[hidden] { display: none; }
.tl__date { font-family: var(--font-display); font-size: 1.35rem; text-align: right; line-height: 1.2; padding-top: 2px; }
.tl__node { justify-self: center; width: 13px; height: 13px; border-radius: 50%; margin-top: 9px; background: var(--bg); border: 2px solid var(--highlight); position: relative; z-index: 1; }
.tl--life .tl__node { background: var(--accent-2); border-color: var(--accent-2); }
.tl--context .tl__node { border-color: var(--text-dim); }
.tl__kind { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .5em; }
.tl__place { color: var(--highlight); text-decoration: none; }
.tl__title { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.2; margin-bottom: .4em; }
.tl__body p:not(.tl__kind) { color: var(--text-dim); max-width: 62ch; margin: 0; }
@media (max-width: 640px) {
  .tl__rail { left: 6px; }
  .tl__item { grid-template-columns: 14px 1fr; column-gap: 18px; }
  .tl__node { grid-row: 1 / span 2; grid-column: 1; margin-top: 6px; }
  .tl__date { grid-column: 2; text-align: left; font-size: 1.1rem; }
  .tl__body { grid-column: 2; }
}

/* ---------- map ---------- */
.map { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .map { grid-template-columns: 1fr 340px; } }
.map__svg { width: 100%; height: auto; display: block; background: var(--bg-2); border: 1px solid var(--line); }
.map__sea-fill { fill: var(--bg-2); }
.map__grid { stroke: var(--line); stroke-width: 1; fill: none; stroke-dasharray: 2 6; }
.map__land { fill: color-mix(in srgb, var(--text) 8%, var(--bg-2)); stroke: color-mix(in srgb, var(--text) 30%, transparent); stroke-width: 1.2; }
.map__sea { font-family: var(--font-ui); font-size: 13px; letter-spacing: .5em; fill: var(--text-dim); opacity: .6; }
.map__route { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map.is-in .map__route { transition: stroke-dashoffset 6s var(--ease); stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .map__route { stroke-dashoffset: 0; } }
.no-js .map__route { stroke-dashoffset: 0; }
.map__place { cursor: pointer; outline: none; }
.map__dot { fill: var(--highlight); stroke: var(--bg); stroke-width: 2; }
.map__halo { fill: var(--accent-2); opacity: 0; transition: opacity .3s; }
.map__place:hover .map__halo, .map__place:focus-visible .map__halo, .map__place.is-active .map__halo { opacity: .35; }
.map__label { font-family: var(--font-ui); font-size: 15px; fill: var(--text); letter-spacing: .06em; paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.map__compass circle { fill: none; stroke: var(--line); } .map__compass path { fill: var(--highlight); opacity: .7; } .map__compass text { font-family: var(--font-display); font-size: 16px; fill: var(--highlight); }
.map-panel { position: relative; }
.map-card { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.map-card p:not(.eyebrow) { color: var(--text-dim); }
.map-card .h3 { margin-bottom: .5em; }

/* ---------- constellation ---------- */
.constellation { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1000px) { .constellation { grid-template-columns: 1fr 340px; align-items: center; } }
.constellation__stage { position: relative; aspect-ratio: 16/11; min-height: 420px; }
@media (max-width: 640px) { .constellation__stage { aspect-ratio: 3/4; } }
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation__lines line { stroke: var(--highlight); stroke-width: 1; opacity: .45; transition: opacity .6s; }
.constellation__nodes { position: absolute; inset: 0; }
.c-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; text-align: center; width: 150px; transition: left .9s var(--ease), top .9s var(--ease), opacity .6s; }
.c-node__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--highlight); transition: all .5s; margin-bottom: 6px; }
.c-node__name { font-family: var(--font-display); font-size: 1rem; line-height: 1.15; }
.c-node__role { font-family: var(--font-ui); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--highlight); }
.c-node.is-center .c-node__dot { width: 22px; height: 22px; background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 24px var(--accent-2); }
.c-node.is-center .c-node__name { font-size: 1.35rem; }
.c-node.is-far { opacity: .35; }
.c-node:hover .c-node__dot, .c-node:focus-visible .c-node__dot { background: var(--highlight); }
@media (max-width: 640px) { .c-node { width: 96px; } .c-node__name { font-size: .8rem; } .c-node__role { font-size: .5rem; letter-spacing: .12em; } .c-node.is-center .c-node__name { font-size: 1rem; } }
.constellation__panel { padding: 28px; border: 1px solid var(--line); background: var(--surface); min-height: 220px; }
.constellation__panel p:not(.eyebrow) { color: var(--text-dim); }
.constellation__panel .h3 { margin-bottom: .4em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 32px; background: var(--bg); }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__line { font-family: var(--font-display); font-size: 1.25rem; max-width: 26ch; margin-top: 24px; color: var(--text-dim); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a { font-family: var(--font-ui); font-size: .85rem; text-decoration: none; color: var(--text-dim); }
.site-footer__links a:hover { color: var(--highlight); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: .7rem; letter-spacing: .1em; color: var(--text-dim); }
.site-footer__base p { margin: 0; }

/* ---------- home: shared helpers ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.hero__title { font-size: clamp(3.2rem, 11vw, 10rem); line-height: .92; }
.hero__sub { display: block; font-size: .32em; letter-spacing: .45em; margin-top: .45em; }
.hero__line { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.8rem); margin: 1.6em auto 0; max-width: 32ch; }
.hero__kicker { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--text-dim); margin-top: 2.2em; }
.hero .actions { justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--font-ui); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--text-dim), transparent); }
.heritage { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .heritage { grid-template-columns: 1fr 1fr; } }
.heritage__media { overflow: hidden; }
.heritage__media img { width: 100%; height: auto; }
.news-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.follow-band { text-align: center; }
.follow-band .h2 { max-width: 20ch; margin-inline: auto; }
.follow-band .actions { justify-content: center; }

@media print { .site-header, .subnav, .site-footer, .scroll-cue { display: none; } body { background: #fff; color: #000; } }

/* ---------- REV-06 additions ---------- */
.social--stack { grid-template-columns: 1fr; }
.social__link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
.social li:has(.social__link) { border-color: color-mix(in srgb, var(--accent-2, #F28A2E) 45%, var(--line)); }
.social__go { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--highlight); }
.social__link:hover .social__go, .social__link:focus-visible .social__go { text-decoration: underline; }
.follow-art { margin: 0; }
.follow-art img { display: block; width: 100%; height: auto; }
.site-footer__social { margin: 14px 0 0; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__social a { color: var(--highlight); text-decoration: none; }
.site-footer__social a:hover, .site-footer__social a:focus-visible { text-decoration: underline; }

/* cast page */
.section__intro { color: var(--text-dim); max-width: 60ch; margin: .4em 0 0; }
.cast-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.8vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.cast-card { margin: 0; scroll-margin-top: calc(var(--header-h) + 70px); }
.cast-card__link { display: flex; flex-direction: column; height: 100%; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .3s, transform .4s var(--ease); }
div.cast-card__link { cursor: default; }
a.cast-card__link:hover, button.cast-card__link:hover, .cast-card__link:focus-visible { border-color: color-mix(in srgb, var(--highlight) 60%, var(--line)); transform: translateY(-2px); }
.cast-card__portrait { aspect-ratio: auto; }
.cast-card__portrait.portrait--empty { aspect-ratio: 1 / 1; }
.cast-card__portrait .portrait__mono { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.cast-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cast-card__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; margin: 0; }
.cast-card__role { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .06em; color: var(--highlight); margin: 0; }
.cast-card__role--tbc { color: var(--text-dim); font-style: italic; }
.cast-card__more { margin-top: auto; padding-top: 10px; font-family: var(--font-ui); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
#leads .cast-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.card__portrait--square { aspect-ratio: 1 / 1; }
.downloads { display: grid; gap: 14px; }
a.download--link { text-decoration: none; color: inherit; transition: border-color .3s; }
a.download--link:hover, a.download--link:focus-visible { border-color: var(--highlight); }
.downloads__alt { margin: 0; }
a.download--link { display: block; }

/* prompt to picture */
.prompt__frames { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: 20px; }
.prompt__frame { margin: 0; }
.prompt__frame img { display: block; width: 100%; height: auto; }
.prompt__frame .g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.prompt__frame figcaption { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }
.prompt__frame--final figcaption { color: var(--highlight); }
.prompt__text { border: 1px solid var(--line); background: var(--surface); padding: 0 20px; }
.prompt__text summary { cursor: pointer; padding: 16px 0; font-family: var(--font-ui); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--highlight); }
.prompt__text .prose { padding-bottom: 18px; }
.prompt__label { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--highlight); margin: 1.4em 0 .4em; }
@media (max-width: 559px) {
  .cast-grid, #leads .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cast-card__body { padding: 10px 12px 14px; }
  .cast-card__name { font-size: 1rem; }
  .cast-card__role { font-size: .68rem; }
  .cast-card__more { font-size: .58rem; letter-spacing: .12em; }
}

/* REV-08: people (Filmmakers page) */
.people { display: grid; gap: clamp(48px, 7vw, 96px); }
.person { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .person { grid-template-columns: minmax(200px, 4fr) 8fr; } }
.person__photo { max-width: 360px; }
.person__photo img { display: block; width: 100%; height: auto; }
.person__name { margin-bottom: .2em; }
.person__title { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--highlight); margin: 0 0 1.2em; }
.person__role { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: -.8em 0 1.2em; }
.people--leadership { margin-top: clamp(40px, 6vw, 72px); }

/* REV-09: long-form text pages (Privacy) */
.prose--doc h2 { margin: 2.2em 0 .6em; font-size: 1.3rem; color: var(--highlight); }
.prose--doc h2:first-of-type { margin-top: 1.6em; }
.prose--doc .lede-note { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
/* REV-09: Explore cards share one picture shape (3:2) so the row lines up */
.cards--explore .card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.cards--explore .card__img { width: 100%; height: 100%; object-fit: cover; }
/* REV-09: Film header art shows its full top edge */
.page-head__img--top { object-position: 68% top; }
/* REV-10: mobile menu fills the screen on every page (the header's blur
   effect was trapping the open menu inside the header bar) */
@media (max-width: 1240px) {
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); transition: none; }
}
/* REV-10: top menu with Follow the Film as a link and Co-Producer Opportunities as the button */
.nav__link, .nav__cta { white-space: nowrap; }
@media (min-width: 1241px) and (max-width: 1499px) {
  .site-header__inner { gap: 16px; }
  .nav { gap: 14px; }
  .nav__list { gap: 0; }
  .nav__link { padding: 10px 8px; letter-spacing: .12em; font-size: .66rem; }
  .nav__cta { padding: .7em 1em; font-size: .62rem; letter-spacing: .1em; }
}
