/* ============================================================
   CoART Creative Labs, coart.css (v3, guided home)
   Type: Mona Sans + Mona Sans Mono (GitHub, OFL, self-hosted)
   Surfaces: paper for reading, night for watching, terracotta for action.
   ============================================================ */

@font-face {
  font-family: 'Mona Sans';
  src: url('/assets/fonts/mona-sans-vf-latin.woff2') format('woff2-variations'),
       url('/assets/fonts/mona-sans-vf-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mona Sans Mono';
  src: url('/assets/fonts/mona-sans-mono-vf-latin.woff2') format('woff2-variations'),
       url('/assets/fonts/mona-sans-mono-vf-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Piola Bungee';
  src: url('/assets/fonts/piola-bungee.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper:      #F6F3EE;
  --paper-2:    #EDE8E0;
  --rule:       #DCD5CA;
  --ink:        #151311;   /* 17:1 on paper */
  --ink-2:      #4A453F;   /* 8.7:1 body */
  --ink-3:      #6B655D;   /* 5.3:1 meta */

  --accent:     #B5481E;   /* 4.8:1 on paper; white on it 5.0:1 */
  --accent-2:   #96391A;

  --night:      #121110;
  --night-2:    #1C1A17;
  --night-rule: #2D2925;
  --on-night:   #EEE9E1;
  --on-night-2: #A9A297;   /* 7.6:1 */
  --accent-nt:  #E0703F;   /* 5.6:1 on night */

  --sans: 'Mona Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Mona Sans Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --wrap:    1320px;
  --gutter:  clamp(16px, 4vw, 48px);
  --strip-h: 34px;
  --nav-h:   64px;
  --chrome:  calc(var(--strip-h) + var(--nav-h));
  --sect:    clamp(80px, 11vw, 152px);
  --ease:    cubic-bezier(.22, 1, .36, 1);
}
html.is-scrolled { --chrome: var(--nav-h); }
@media (max-width: 767px) { :root { --strip-h: 30px; --nav-h: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .hero :focus-visible { outline-color: var(--accent-nt); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); font-size: .75rem; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.wide { font-stretch: 125%; }
.h-display {
  font-stretch: 125%; font-weight: 640; color: var(--ink);
  letter-spacing: -.035em; line-height: .98; text-wrap: balance;
}
.h-2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); }
.muted { color: var(--ink-3); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: .9375rem; line-height: 1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-glass { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(0,0,0,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--ink); border-color: #fff; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 560; font-size: .9375rem;
  color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s ease, gap .3s var(--ease);
}
.arrow-link:hover { color: var(--accent); gap: .75em; }
.night .arrow-link { color: var(--on-night); }
.night .arrow-link:hover { color: var(--accent-nt); }

/* ---------- Top chrome: strip + nav ---------- */
.site-top {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transform: translateY(0); transition: transform .45s var(--ease);
}
html.is-scrolled .site-top { transform: translateY(calc(var(--strip-h) * -1)); }

.strip {
  height: var(--strip-h); overflow: hidden; background: var(--accent); color: #FFF6F0;
  display: flex; align-items: center;
}
.strip-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-group { display: flex; flex: none; }
.strip-item { display: inline-flex; align-items: center; gap: 14px; padding-right: 44px; white-space: nowrap; }
.strip-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

.nav-shell {
  height: var(--nav-h); color: #fff; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
html.is-scrolled .nav-shell {
  color: var(--ink); border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.nav { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { font-stretch: 125%; font-weight: 760; font-size: 1.25rem; letter-spacing: -.03em; justify-self: start; }
.nav-links { display: none; gap: 30px; font-size: .9375rem; font-weight: 500; }
.nav-links a { position: relative; padding: 8px 0; opacity: .86; transition: opacity .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav-links { grid-column: 2; }
.lang { display: none; gap: 4px; }
.lang a { padding: 6px 4px; opacity: .6; transition: opacity .2s ease; }
.lang a:hover, .lang a[aria-current="true"] { opacity: 1; }
.lang a[aria-current="true"] { text-decoration: underline; text-underline-offset: 5px; pointer-events: none; }
.nav-cta { display: none; min-height: 40px; padding: 0 1.1rem; font-size: .875rem; color: inherit; border-color: currentColor; }
html.is-scrolled .nav-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
html.is-scrolled .nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.menu-btn { display: inline-flex; padding: 8px; margin-right: -8px; }
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-menu { display: none; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); max-height: calc(100dvh - var(--chrome)); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu nav { padding: 4px var(--gutter) 24px; }
.mobile-menu nav > a { display: block; font-stretch: 125%; font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mobile-menu .row { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.mobile-menu .lang { display: flex; }
html.menu-open .nav-shell { color: var(--ink); background: var(--paper); }

@media (min-width: 1024px) {
  .nav-links, .lang, .nav-cta { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 640px; height: 100svh;
  display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: brightness(1.12) saturate(1.05); }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,.5) 0%, rgba(10,9,8,0) 18%),
    linear-gradient(0deg, rgba(10,9,8,.78) 0%, rgba(10,9,8,.22) 38%, rgba(10,9,8,0) 60%),
    linear-gradient(90deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,0) 55%);
}
.hero-inner { width: 100%; padding-bottom: clamp(32px, 6vh, 72px); display: grid; gap: 28px; align-items: end; }
.hero-kicker { color: rgba(255,255,255,.82); margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 1rem + 6.2vw, 7.25rem); font-stretch: 125%; font-weight: 700; letter-spacing: -.045em; line-height: .92; color: #fff; }
.hero-sub { margin-top: 22px; max-width: 40ch; font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); line-height: 1.5; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-credit { color: rgba(255,255,255,.8); display: flex; flex-direction: column; gap: 4px; }
.hero-credit strong { color: #fff; font-weight: 560; font-size: 1rem; letter-spacing: -.005em; text-transform: none; font-family: var(--sans); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr auto; }
  .hero-credit { text-align: right; padding-bottom: 6px; }
}

/* ---------- Chapter guide (sticky, scrollspy + playhead) ---------- */
.guide {
  position: sticky; top: var(--chrome); z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: top .45s var(--ease);
}
.guide-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 52px; }
.guide-inner::-webkit-scrollbar { display: none; }
.guide-label { flex: none; color: var(--ink-3); margin-right: 14px; display: none; }
.guide a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--ink-3);
  transition: background-color .25s ease, color .25s ease;
}
.guide a .mono { font-size: .6875rem; }
.guide a:hover { color: var(--ink); }
.guide a.is-active { background: var(--ink); color: #fff; }
.playhead { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.playhead span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (min-width: 1024px) { .guide-label { display: inline; } }

/* ---------- Chapters ---------- */
.chapter { padding-block: var(--sect); position: relative; }
.ch-head { display: grid; gap: 18px 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.ch-num { color: var(--accent); }
.ch-head p.intro { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-3); max-width: 46ch; }
@media (min-width: 900px) {
  .ch-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .ch-head .ch-title { grid-column: 1; }
  .ch-head p.intro { grid-column: 2; justify-self: end; text-align: left; }
}

/* ---------- 01 Films (interactive index) ---------- */
.night { background: var(--night); color: var(--on-night-2); }
.night .h-display { color: var(--on-night); }
.night .ch-num { color: var(--accent-nt); }
.night .ch-head p.intro { color: var(--on-night-2); }

.film-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--night-rule);
  font-size: .875rem; font-weight: 500; color: var(--on-night-2); transition: all .2s ease;
}
.chip:hover { color: var(--on-night); border-color: var(--on-night-2); }
.chip[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }

.films { border-top: 1px solid var(--night-rule); }
.film-btn {
  width: 100%; text-align: left; display: grid; grid-template-columns: 3.75rem 1fr auto; align-items: center; gap: 4px 16px;
  padding: 20px 0; border-bottom: 1px solid var(--night-rule); position: relative;
}
.film-btn .yr { color: var(--on-night-2); }
.film-btn .ttl { font-stretch: 112%; font-weight: 600; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; color: var(--on-night-2); transition: color .25s ease, transform .35s var(--ease); }
.film-btn .meta { grid-column: 2; color: var(--on-night-2); font-size: .9375rem; }
.film-btn .kind { grid-column: 3; grid-row: 1; color: var(--on-night-2); }
.film-btn::before { content: ''; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 2px; background: var(--accent-nt); transform: scaleY(0); transition: transform .3s var(--ease); }
.film.is-active .film-btn .ttl, .film-btn:hover .ttl { color: var(--on-night); }
.film.is-active .film-btn .ttl { transform: translateX(6px); }
.film.is-active .film-btn::before { transform: scaleY(1); }

.film-panel { padding: 4px 0 28px; }
.js .film-panel { display: none; }
.js .film.is-active .film-panel { display: block; animation: fadeUp .5s var(--ease); }
.frame { position: relative; overflow: hidden; background: var(--night-2); border-radius: 6px; }
.film-panel .frame { aspect-ratio: 16 / 10; }
.film-panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }  /* trims baked-in letterbox bars */
.film-panel .cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--night-rule); color: var(--on-night); }
.status.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-nt); animation: pulse 2.4s ease-in-out infinite; }
.film-panel p.desc { margin-top: 14px; max-width: 56ch; color: var(--on-night-2); }
.films-foot { margin-top: 40px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }

@media (min-width: 1024px) {
  .film-btn { grid-template-columns: 4.5rem 1fr auto; }
  .films { display: grid; grid-template-columns: 5fr 7fr; column-gap: 56px; border-top: 0; }
  .film { display: contents; }
  .film-btn { grid-column: 1; }
  .film:first-child .film-btn { border-top: 1px solid var(--night-rule); }
  .film-panel { grid-column: 2; grid-row: 1 / span 6; align-self: start; padding: 0; }
  .js .film-panel { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
  .js .film.is-active .film-panel { visibility: visible; opacity: 1; pointer-events: auto; }
  .film[hidden] { display: none; }
}
.film[hidden] { display: none; }

/* ---------- 02 What we do ---------- */
.offer { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.offer a {
  display: grid; grid-template-columns: 3rem 1fr; gap: 6px 16px; padding: 28px 0; border-bottom: 1px solid var(--rule);
  transition: background-color .25s ease;
}
.offer .n { color: var(--accent); padding-top: 6px; }
.offer h3 { font-stretch: 112%; font-weight: 600; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.offer p { grid-column: 2; max-width: 44ch; }
.offer .go { grid-column: 2; margin-top: 10px; color: var(--ink-3); transition: color .2s ease; }
.offer a:hover .go { color: var(--accent); }
.offer a:hover h3 { color: var(--accent); }
@media (min-width: 900px) {
  .offer { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .offer a { grid-template-columns: 1fr; padding: 28px 24px 32px; border: 0; border-top: 1px solid var(--ink); }
  .offer a + a { border-left: 1px solid var(--rule); }
  .offer a:hover { background: var(--paper-2); }
  .offer p, .offer .go { grid-column: 1; }
  .offer .n { padding: 0 0 36px; }
}

/* ---------- 03 Who it's for (tabs) ---------- */
.for { background: var(--paper-2); }
.for-grid { display: grid; gap: 32px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper);
  font-weight: 500; font-size: .9375rem; color: var(--ink-2); text-align: left; transition: all .2s ease;
}
.tab:hover { border-color: var(--ink-3); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.panel { background: var(--paper); border-radius: 10px; padding: clamp(24px, 4vw, 48px); }
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 16px; }
.js .panel + .panel { margin-top: 0; }
.panel .who { color: var(--accent); }
.panel .say { margin-top: 14px; font-stretch: 112%; font-weight: 560; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.375rem); line-height: 1.15; letter-spacing: -.025em; color: var(--ink); max-width: 26ch; text-wrap: balance; }
.panel .help { margin-top: clamp(28px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 20px; }
.panel .help h4 { margin: 0; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.panel .help p { margin-top: 4px; font-size: .9375rem; }
.panel .act { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.panel.is-in { animation: fadeUp .45s var(--ease); }
@media (min-width: 900px) {
  .for-grid { grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
  .tabs { flex-direction: column; position: sticky; top: calc(var(--chrome) + 76px); }
  .tab { width: 100%; border-radius: 8px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; }
  .tab::after { content: '→'; opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
  .tab[aria-selected="true"]::after { opacity: 1; transform: none; }
  .panel .help { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 04 How it works (timeline with playhead) ---------- */
.steps { position: relative; display: grid; gap: 0; counter-reset: s; }
.steps::before, .steps::after { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; z-index: 1; padding: 0 0 36px 56px; }
.step .dot {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 2px solid var(--rule);
  font-family: var(--mono); font-size: .8125rem; color: var(--ink-3); transition: all .3s ease;
}
.step.is-on .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font-stretch: 112%; font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; padding-top: 2px; }
.step p { margin-top: 8px; max-width: 34ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .steps::before, .steps::after { left: 16px; right: 0; top: 15px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .step { padding: 56px 0 0; }
}

/* ---------- 05 Behind CoART ---------- */
.behind { border-top: 1px solid var(--rule); }
.behind-grid { display: grid; gap: 40px; align-items: center; }
.behind .frame { aspect-ratio: 4 / 5; border-radius: 8px; }
.behind .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.behind .role { margin-top: 12px; color: var(--ink-3); }
.behind p.bio { margin-top: 24px; max-width: 52ch; font-size: 1.125rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin: 36px 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.stats dt { font-stretch: 125%; font-weight: 640; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.stats dd { margin-top: 8px; color: var(--ink-3); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .behind-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* ---------- Closing call ---------- */
.call { background: var(--accent); color: #FFF6F0; }
.call .h-display { color: #fff; font-size: clamp(2.5rem, 1rem + 5.5vw, 6rem); }
.call p { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); max-width: 40ch; }
.call .act { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.call .btn-light:hover { background: var(--ink); color: #fff; }
.call .btn-glass { background: transparent; border-color: rgba(255,255,255,.6); }
.call .btn-glass:hover { background: #fff; color: var(--accent-2); }

/* ---------- Footer (cuervo-like: statement, rule, top-aligned columns) ---------- */
.site-footer { background: var(--paper); color: var(--ink); padding-top: clamp(72px, 10vw, 128px); }
.f-statement { text-align: center; font-stretch: 125%; font-weight: 300; font-size: clamp(1.75rem, 1rem + 3.2vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; }
.f-statement strong { font-weight: 760; display: block; }
.f-cols {
  margin-top: clamp(56px, 8vw, 96px); padding: 28px 0 40px; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; align-items: start;
}
.f-cols .mono { line-height: 1.75; color: var(--ink-2); }
.f-cols .mono b { display: block; color: var(--ink-3); font-weight: 400; margin-bottom: 6px; }
.f-cols a { display: block; width: fit-content; transition: color .2s ease; }
.f-cols a:hover { color: var(--accent); }
.f-logo { font-stretch: 125%; font-weight: 760; font-size: 1.5rem; letter-spacing: -.03em; grid-column: 1 / -1; }
.f-legal { grid-column: 1 / -1; }
.piola-credit {
  display: inline-flex !important; align-items: center; gap: 6px; margin-top: 6px;
  font-family: 'Piola Bungee', system-ui, sans-serif; font-size: 10px; letter-spacing: .02em; text-transform: uppercase;
}
.piola-credit svg { width: 15px; height: auto; flex: none; color: var(--ink); }
@media (min-width: 900px) {
  .f-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr 1.3fr; }
  .f-logo, .f-legal { grid-column: auto; }
  .f-legal { text-align: right; }
  .f-legal a { margin-left: auto; }
}

/* ---------- Reveal (content visible without JS) ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .film.is-active .film-panel, .panel.is-in { animation: none; }
  .status.live::before { animation: none; }
  .site-top, .guide { transition: none; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
body.inner .nav-shell {
  color: var(--ink); border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
body.inner .nav-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
body.inner .nav-cta:hover { background: var(--accent); border-color: var(--accent); }

/* Page head */
.page-head { padding-top: calc(var(--strip-h) + var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-head .kicker { color: var(--accent); margin-bottom: 20px; }
.page-head h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-size: clamp(2.3rem, .9rem + 6vw, 6.5rem); font-stretch: 125%; font-weight: 700; letter-spacing: -.045em; line-height: .95; color: var(--ink); max-width: 14ch; text-wrap: balance; }
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head .lead { margin-top: 28px; max-width: 46ch; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }

/* Split: image + text */
.split { display: grid; gap: 40px; align-items: start; }
.split .frame { aspect-ratio: 4 / 5; border-radius: 8px; }
.split .frame img { width: 100%; height: 100%; object-fit: cover; }
.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 62ch; font-size: 1.125rem; }
.prose h3 { font-stretch: 112%; font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; color: var(--ink); margin: 2em 0 .6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.pull {
  margin-top: 40px; padding-left: 24px; border-left: 3px solid var(--accent);
  font-stretch: 112%; font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); max-width: 30ch;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; }
  .split .sticky { position: sticky; top: calc(var(--chrome) + 76px); }
}

/* Generic card grid */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .25s ease, transform .3s var(--ease);
}
.for .card { background: var(--paper); border-color: transparent; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .n { color: var(--accent); }
.card h3 { font-stretch: 112%; font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.card .fine { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-3); }
@media (min-width: 640px) { .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.night .card { background: var(--night-2); border-color: var(--night-rule); }
.night .card h3 { color: var(--on-night); }
.night .card .fine { border-top-color: var(--night-rule); color: var(--on-night-2); }
.night .card .n { color: var(--accent-nt); }

/* People */
.person .frame { aspect-ratio: 1 / 1; border-radius: 8px; margin-bottom: 8px; }
.person .frame img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--paper-2); font-size: .8125rem; color: var(--ink-2); }
.person .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.card.join { background: var(--ink); color: var(--on-night-2); border-color: var(--ink); justify-content: flex-end; min-height: 320px; }
.card.join h3 { color: #fff; }
.card.join .btn { align-self: flex-start; margin-top: 12px; }

/* Band (night statement) */
.band { display: grid; gap: 24px; align-items: center; }
.band .say { font-stretch: 112%; font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; color: var(--on-night); max-width: 30ch; text-wrap: balance; }
.band .ch-num { color: var(--accent-nt); }
@media (min-width: 900px) { .band { grid-template-columns: 1fr 3fr; } }

/* Talks list */
.talks { border-top: 1px solid var(--rule); }
.talks li { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.talks strong { font-weight: 600; color: var(--ink); font-size: 1.125rem; }
@media (min-width: 900px) { .talks li { grid-template-columns: 5fr 7fr; } }

/* Stories */
.story { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--night-rule); scroll-margin-top: calc(var(--nav-h) + 64px); }
.story .frame { aspect-ratio: 16 / 9; border-radius: 8px; }
.story .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.story h2 { font-stretch: 125%; font-weight: 640; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.5rem); letter-spacing: -.04em; line-height: 1; color: var(--on-night); margin-top: 12px; }
.story .desc { margin-top: 18px; font-size: 1.125rem; max-width: 54ch; color: var(--on-night-2); }
.specs { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; padding-top: 20px; border-top: 1px solid var(--night-rule); }
.specs dt { color: var(--on-night-2); }
.specs dd { margin-top: 4px; color: var(--on-night); font-size: .9375rem; }
@media (min-width: 900px) {
  .story { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .story.flip .frame { order: 2; }
}
.group-title { display: grid; gap: 8px 24px; margin-bottom: clamp(16px, 3vw, 32px); padding-top: 20px; border-top: 1px solid var(--on-night); }
.group-title h2 { font-stretch: 125%; font-weight: 640; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); letter-spacing: -.03em; color: var(--on-night); }
.group-title p { color: var(--on-night-2); }
@media (min-width: 900px) { .group-title { grid-template-columns: 1fr 1fr; align-items: baseline; } }
.group + .group { margin-top: clamp(56px, 8vw, 104px); }
.group[hidden] { display: none; }

/* Contact page */
.contact-grid { display: grid; gap: 16px; }
.contact-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.contact-card .big { font-stretch: 112%; font-weight: 600; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -.025em; color: var(--ink); line-height: 1.1; word-break: break-word; transition: color .2s ease; }
.contact-card a.big:hover { color: var(--accent); }
.contact-card .btn { align-self: flex-start; margin-top: 6px; }
.contact-card .muted { color: var(--ink-3); }
.contact-card.dark { background: var(--ink); border-color: var(--ink); color: var(--on-night-2); }
.contact-card.dark .big { color: #fff; }
.contact-card.dark .muted { color: var(--on-night-2); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topics a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: all .2s ease; }
.topics a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.checklist { display: grid; gap: 10px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: translateY(-1px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } .contact-grid .span-2 { grid-column: 1 / -1; } }

/* Media kit */
.kit { display: grid; gap: 48px; align-items: start; }
.bio-block { padding-block: 28px; border-top: 1px solid var(--rule); }
.bio-block:first-child { border-top: 1px solid var(--ink); }
.bio-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.bio-head h2 { font-stretch: 112%; font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; color: var(--ink); }
.copy-btn { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); font-size: .8125rem; font-weight: 500; color: var(--ink-2); transition: all .2s ease; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.copy-btn.done { background: var(--ink); border-color: var(--ink); color: #fff; }
.facts { background: var(--paper-2); border-radius: 10px; padding: clamp(24px, 3vw, 32px); }
.facts h2 { font-stretch: 112%; font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: 16px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); padding-top: 3px; }
.facts dd { color: var(--ink); font-weight: 500; }
.facts .frame { margin-top: 20px; aspect-ratio: 16 / 9; border-radius: 6px; background: #fff; }
.facts .frame img { width: 100%; height: 100%; object-fit: contain; }
.facts .cap { margin-top: 10px; color: var(--ink-3); }
.facts .act { margin-top: 20px; display: grid; gap: 10px; }
.facts .act .btn { width: 100%; }
.soon { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px dashed var(--ink-3); color: var(--ink-3); font-size: .9375rem; }
@media (min-width: 1024px) { .kit { grid-template-columns: 7fr 4fr; gap: 72px; } .kit aside { position: sticky; top: calc(var(--chrome) + 24px); } }

/* Legal */
.legal { display: grid; gap: 40px; align-items: start; }
.toc { display: none; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--rule); color: var(--ink-3); font-size: .9375rem; transition: all .2s ease; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink-3); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.legal section { padding-block: 24px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 32px); }
.legal section:first-child { border-top: 1px solid var(--ink); }
.legal h2 { font-stretch: 112%; font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; }
.legal p { max-width: 64ch; }
.legal p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 3fr 9fr; gap: 72px; } .toc { display: block; position: sticky; top: calc(var(--chrome) + 32px); } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--night); color: var(--on-night-2); padding: calc(var(--strip-h) + var(--nav-h) + 40px) var(--gutter) 64px; }
.notfound svg { width: 160px; height: auto; margin: 0 auto 28px; }
.notfound .kicker { color: var(--accent-nt); }
.notfound h1 { margin-top: 16px; font-size: clamp(3rem, 1rem + 7vw, 7rem); font-stretch: 125%; font-weight: 700; letter-spacing: -.045em; line-height: .92; color: var(--on-night); }
.notfound h1 span { color: var(--accent-nt); }
.notfound p.lead { margin: 24px auto 0; max-width: 42ch; font-size: 1.125rem; }
.notfound .hero-actions { justify-content: center; }
.notfound .btn-glass { background: transparent; }
