/* Chips & Sips Film Production: site styles.
   Light is the default theme. Dark applies with <html data-theme="dark"> (switch in the header; theme.js).
   Zones marked .on-dark (hero, promise band, CTA, footer, player) stay dark in both themes, like a cinema screen.
   Brand colours: gold #F4C152, coral #F0716A, mint #BDE8D3, teal #7CC6B5, film-teal #1E4A47. */

@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FAF8F3;
  --bg-2: #F2EDE3;
  --surface: #FFFFFF;
  --surface-2: #F6F2EA;
  --line: rgba(20, 33, 32, .11);
  --line-2: rgba(20, 33, 32, .24);
  --text: #142120;
  --muted: #55625F;
  --faint: #717D7A;
  --accent: #8F5D0C;
  --accent-hover: #6E4706;
  --accent-soft: rgba(196, 140, 30, .13);
  --accent-line: rgba(143, 93, 12, .38);
  --btn-bg: #1E4A47;
  --btn-fg: #FAF8F3;
  --btn-hover: #153735;
  --header-bg: rgba(250, 248, 243, .88);
  --input-bg: #FFFFFF;
  --note-bg: rgba(124, 198, 181, .15);
  --note-line: rgba(30, 94, 88, .26);
  --note-edge: #1E5E58;
  --danger: #B5403A;
  --shadow-sm: 0 1px 2px rgba(20, 33, 32, .06), 0 4px 14px -6px rgba(20, 33, 32, .12);
  --shadow-lg: 0 2px 4px rgba(20, 33, 32, .05), 0 30px 60px -28px rgba(20, 33, 32, .35);

  --gold: #F4C152;
  --coral: #F0716A;
  --mint: #BDE8D3;
  --teal: #7CC6B5;
  --film: #1E4A47;
  --ink: #0B1514;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}
:root[data-theme="dark"], .on-dark {
  color-scheme: dark;
  --bg: #0B1514;
  --bg-2: #0F1D1C;
  --surface: #132524;
  --surface-2: #172D2C;
  --line: rgba(242, 236, 225, .12);
  --line-2: rgba(242, 236, 225, .24);
  --text: #F3EEE4;
  --muted: #A9B8B3;
  --faint: #82938E;
  --accent: #F4C152;
  --accent-hover: #FFD98A;
  --accent-soft: rgba(244, 193, 82, .13);
  --accent-line: rgba(244, 193, 82, .42);
  --btn-bg: #F4C152;
  --btn-fg: #0B1514;
  --btn-hover: #FFD27A;
  --header-bg: rgba(11, 21, 20, .84);
  --input-bg: #0B1514;
  --note-bg: rgba(124, 198, 181, .08);
  --note-line: rgba(124, 198, 181, .25);
  --note-edge: #7CC6B5;
  --danger: #F48B85;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .75);
}
.on-dark { color: var(--text); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.018em; text-wrap: balance; }
h1 em, h2 em, h3 em, .statement em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.4rem; letter-spacing: -.01em; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 60ch; }

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand img { width: 46px; height: 46px; }
.brand > span { font-family: var(--serif); font-size: 1.32rem; line-height: 1.05; letter-spacing: -.005em; white-space: nowrap; }
.brand .amp { color: var(--accent); font-style: italic; }
.brand small { display: block; font-family: var(--sans); font-size: .58rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; padding: 10px 14px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; color: var(--btn-fg); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--text); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .bars { display: none; }

@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav .btn { margin: 18px 0 0; border-bottom: 0; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .96rem; letter-spacing: .005em; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn.arrow::after { content: "→"; transition: transform .2s; }
.btn.arrow:hover::after { transform: translateX(4px); }
.btn.secondary, .btn.teal { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.secondary:hover, .btn.teal:hover { border-color: var(--text); color: var(--text); background: var(--accent-soft); }
.btn.small { padding: 10px 18px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.text-link::after { content: "→"; color: var(--accent); transition: transform .2s; }
.text-link:hover { color: var(--accent); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Hero (always dark, over a film still) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: slowzoom 24s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 12, 12, .92) 0%, rgba(6, 12, 12, .72) 38%, rgba(6, 12, 12, .12) 72%),
    linear-gradient(0deg, rgba(6, 12, 12, .9) 0%, transparent 42%);
}
.hero-body { padding: clamp(110px, 16vh, 170px) 0 clamp(40px, 7vh, 72px); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1; margin-bottom: 26px; max-width: 12ch; }
.hero .lead { margin: 0 0 36px; max-width: 46ch; color: #C9D3CF; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-now { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.hero-now:hover { color: var(--accent); }
.hero-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(240, 113, 106, .7); animation: pulse 2.4s infinite; }
.hero-now b { color: var(--accent); font-weight: 600; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240, 113, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 113, 106, 0); } }
.hero-facts { border-top: 1px solid var(--line-2); background: rgba(6, 12, 12, .45); backdrop-filter: blur(10px); }
.hero-facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 22px 28px 24px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 2px; }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(0deg, rgba(6,12,12,.95) 0%, rgba(6,12,12,.75) 55%, rgba(6,12,12,.25) 100%); }
  .hero-facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 14px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 56px; }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 56px); }
.section-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-row .section-head { margin: 0; }

/* studio statement */
.studio { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.18; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
.studio-copy p { color: var(--muted); margin: 0 0 28px; }
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pillars .n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.05rem; padding-top: 2px; }
.pillars strong { font-weight: 600; }
.pillars p { grid-column: 2; margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }

/* featured series */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-media { position: relative; padding: 0 0 12% 0; }
.feature-media .main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.feature-media .inset { position: absolute; right: -4%; bottom: 0; width: 46%; border-radius: var(--r); overflow: hidden; border: 6px solid var(--bg-2); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .stamp { position: absolute; left: -14px; top: -14px; z-index: 1; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.feature h2 { margin-bottom: 18px; }
.feature .lead { margin: 0 0 28px; }
.spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0 0 32px; border-block: 1px solid var(--line-2); }
.spec div { padding: 16px 28px 16px 0; }
.spec div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.spec dt { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.feature .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-media .inset { right: 0; } .feature-media .stamp { left: 12px; top: 12px; } }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr 1fr; } .spec div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* slate (poster cards) */
.slate { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.poster-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  background: var(--ink); color: var(--text); box-shadow: var(--shadow-sm);
}
.poster-card:hover { color: var(--text); }
.poster-card img { position: absolute; inset: 0 0 auto 0; z-index: -2; width: 100%; height: 60%; object-fit: cover; object-position: 50% 22%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.poster-card:hover img { transform: scale(1.05); }
.poster-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0B1514 0%, #0B1514 40%, rgba(11,21,20,.7) 52%, rgba(11,21,20,0) 72%); }
.poster-card .pc-body { padding: clamp(20px, 2.4vw, 30px); }
.poster-card .tag { display: block; margin-bottom: 10px; }
.poster-card h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin: 0 0 8px; }
.poster-card p { margin: 0 0 16px; color: #C4CFCB; font-size: .95rem; }
.poster-card .go { font-size: .9rem; font-weight: 600; color: var(--accent); }
.poster-card .go::after { content: " →"; display: inline-block; transition: transform .2s; }
.poster-card:hover .go::after { transform: translateX(4px); }
.poster-card.plain { background: linear-gradient(160deg, #1E4A47, #0E2221); justify-content: space-between; }
.poster-card.plain::before { background: radial-gradient(90% 60% at 100% 0%, rgba(244,193,82,.22), transparent 70%); }
.poster-card .pc-top { padding: clamp(20px, 2.4vw, 30px); font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; color: var(--accent); }
@media (max-width: 900px) { .slate { grid-template-columns: 1fr 1fr; } .slate > :last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .slate { grid-template-columns: 1fr; } .slate > :last-child { aspect-ratio: 4 / 5; } }

.tag { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.tag.coral { color: var(--danger); }
.tag.yellow { color: var(--muted); }

/* how it works */
.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how .section-head { position: sticky; top: 120px; margin: 0; }
.how .section-head .btn { margin-top: 12px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line-2); }
.step { counter-increment: step; display: grid; grid-template-columns: clamp(64px, 9vw, 110px) 1fr; gap: 8px 20px; padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: .9; color: var(--accent); grid-row: span 2; }
.step h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .how .section-head { position: static; } }

/* promise band (always dark) */
.promise { background: radial-gradient(70% 90% at 85% 10%, rgba(244,193,82,.14), transparent 60%), linear-gradient(160deg, #173C3A, #0B1B1A 70%); }
.promise .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.promise blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.promise blockquote em { font-style: italic; color: var(--accent); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; }
.ticks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); color: #D5DDD9; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 900px) { .promise .wrap { grid-template-columns: 1fr; } }

/* latest videos on home */
#latest[hidden] { display: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { margin: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* closing CTA (always dark, over a still) */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); text-align: center; }
.closing img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 100% at 50% 50%, rgba(6,12,12,.72), rgba(6,12,12,.94)); }
.closing h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 16ch; margin-inline: auto; }
.closing .lead { margin: 0 auto 34px; color: #C9D3CF; }
.closing .ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.closing .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }

.cta-band { padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 60px); background: var(--bg-2); border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); pointer-events: none; }
.page-hero.wrap { width: 100%; padding-inline: max(var(--gutter), (100% - var(--max)) / 2); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin-bottom: 18px; position: relative; z-index: 1; }
.page-hero .lead { margin: 0; position: relative; z-index: 1; }
.page-hero p:has(.btn) { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; z-index: 1; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--faint); margin-bottom: 26px; position: relative; z-index: 1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span::before { content: "/"; margin-right: 10px; color: var(--line-2); }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.side { position: sticky; top: 108px; display: grid; gap: 18px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); }
.side-card.tint { background: var(--bg-2); box-shadow: none; }
.side-card h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.side-card ol, .side-card ul { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.side-card li { position: relative; padding: 10px 0 10px 34px; font-size: .93rem; color: var(--muted); border-top: 1px solid var(--line); }
.side-card li:first-child { border-top: 0; padding-top: 0; }
.side-card ol li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent-line); color: var(--accent); font-size: .75rem; font-weight: 600; display: grid; place-items: center; }
.side-card ol li:first-child::before { top: 0; }
.side-card ul li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.side-card ul li:first-child::before { top: 7px; }
.side-card p { margin: 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } .side { position: static; } }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 28px; border-bottom: 1px solid var(--line-2); }
.tab { font: inherit; font-weight: 500; font-size: .98rem; cursor: pointer; padding: 13px 18px; margin-bottom: -1px; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; }
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-card[hidden] { display: none; }
.note { display: flex; gap: 14px; align-items: flex-start; background: var(--note-bg); border: 1px solid var(--note-line); border-left: 3px solid var(--note-edge); border-radius: var(--r-sm); padding: 15px 18px; margin-bottom: 28px; font-size: .95rem; }
.note.warn { background: var(--accent-soft); border-color: var(--accent-line); border-left-color: var(--accent); }
.note .ico { display: none; }
.note p { margin: 0; }

.field { margin-bottom: 24px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field .hint { display: block; font-size: .88rem; color: var(--faint); margin: -4px 0 10px; font-weight: 400; }
.opt { font-weight: 400; color: var(--faint); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
  appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
select option { background: var(--surface); color: var(--text); }
textarea { min-height: 240px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.counter { text-align: right; font-size: .8rem; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger); font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .92rem; color: var(--muted); cursor: pointer; transition: all .15s; }
.choice:hover span { color: var(--text); border-color: var(--muted); }
.choice input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--btn-bg); flex: none; }
.check label { font-weight: 400; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { margin: 8px 0 20px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-error { color: var(--danger); font-weight: 500; margin: 0; font-size: .95rem; }
p.hint { font-size: .88rem; color: var(--faint); margin: -8px 0 22px; }

.success { padding: 10px 0; }
.success .big { display: none; }
.success h2 { margin: 0 0 10px; }
.success p { color: var(--muted); }
.ref { display: inline-block; font-family: var(--mono); font-size: 1.35rem; letter-spacing: .12em; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 10px 20px; margin: 6px 0 20px; }

/* ---------- Prose pages ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(72px, 9vw, 120px); }
.toc { position: sticky; top: 108px; font-size: .92rem; }
.toc h2 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Footer (always dark) ---------- */
.site-footer { background: #081110; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.footer-top p { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.015em; color: var(--text); margin: 0; max-width: 18ch; }
.footer-top p em { font-style: italic; color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand, .site-footer .brand:hover { color: var(--text); margin-bottom: 18px; }
.site-footer h3 { font-family: var(--sans); color: var(--text); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-grid > div:first-child p { max-width: 34ch; margin: 0 0 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Admin ---------- */
.admin { padding: 40px 0 80px; }
.admin .form-card { max-width: 520px; margin-inline: auto; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 24px; }
.admin-bar .field { margin: 0; }
.admin-bar input, .admin-bar select { min-width: 180px; }
.sub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.sub header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.sub .refc { font-family: var(--mono); letter-spacing: .08em; color: var(--accent); }
.sub .when { color: var(--faint); font-size: .88rem; }
.sub dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: .95rem; }
.sub dt { color: var(--muted); }
.sub dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sub .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sub .tools select { width: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Catalog ---------- */
.catalog { padding-bottom: clamp(72px, 9vw, 120px); }
.catalog-bar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
#series-filter { gap: 4px; border-bottom: 1px solid var(--line-2); }
.chip { font: inherit; font-weight: 500; font-size: .88rem; cursor: pointer; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.big { font-size: .98rem; padding: 13px 18px; border: 0; border-radius: 0; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.chip.big:first-child { padding-left: 0; }
.chip.big[aria-pressed="true"] { background: none; color: var(--text); border-bottom-color: var(--accent); }
.search input { min-width: 280px; border-radius: 999px; padding: 10px 18px; }
@media (max-width: 600px) { .search, .search input { width: 100%; min-width: 0; } }
.catalog-status { color: var(--faint); font-size: .9rem; margin: 0 0 18px; min-height: 1.6em; }
.catalog-note { color: var(--faint); font-size: .85rem; margin-top: 48px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 28px; }
.video-card { font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; padding: 0; background: none; border: 0; display: flex; flex-direction: column; }
.video-card:hover { color: inherit; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; background: rgba(8,17,16,.55); border: 1px solid rgba(243,238,228,.7); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; scale: .9; transition: opacity .25s, scale .25s; }
.video-card:hover .play, .video-card:focus-visible .play { opacity: 1; scale: 1; }
.video-card .play::after { content: ""; border-left: 14px solid #F3EEE4; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.badge { position: absolute; left: 10px; top: 10px; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: rgba(8,17,16,.78); color: #F3EEE4; backdrop-filter: blur(4px); }
.badge.gold { background: var(--gold); color: var(--ink); }
.vbody { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.vbody h3 { margin: 0; font-size: 1.2rem; transition: color .15s; }
.video-card:hover .vbody h3 { color: var(--accent); }
.vbody p { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.vdate { font-size: .82rem; color: var(--faint); }

.catalog-empty { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.catalog-empty[hidden] { display: none; }
.catalog-empty .big { display: none; }
.catalog-empty .ce-media { min-height: 300px; background: var(--ink); }
.catalog-empty .ce-media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-empty .ce-body { padding: clamp(28px, 5vw, 56px); align-self: center; }
.catalog-empty h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.catalog-empty p { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 760px) { .catalog-empty { grid-template-columns: 1fr; } .catalog-empty .ce-media { min-height: 200px; aspect-ratio: 16 / 9; } }

.player { width: min(1000px, 100% - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); color: var(--text); overflow: hidden; box-shadow: var(--shadow-lg); }
.player.is-short { width: min(520px, 100% - 24px); }
.player::backdrop { background: rgba(3, 7, 7, .88); backdrop-filter: blur(4px); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame.is-short { --h: min(66vh, 640px); aspect-ratio: auto; height: var(--h); width: calc(var(--h) * 9 / 16); max-width: 100%; margin-inline: auto; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-info { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 18px 22px 20px; }
.player-info h2 { font-size: 1.35rem; margin: 0 0 4px; }
.player-info p { margin: 0; color: var(--muted); font-size: .92rem; }
.player-actions { display: flex; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* small-screen polish */
.hero-now { flex-wrap: wrap; row-gap: 4px; }
.hero-now b { white-space: nowrap; }
@media (max-width: 520px) { .hero-now { letter-spacing: .14em; font-size: .72rem; } .brand img { width: 40px; height: 40px; } .brand > span { font-size: 1.2rem; } }

/* Buttons keep their own text colour inside the nav and footer (link colours there must not override them) */
.nav a.btn, .nav a.btn:hover, .site-footer a.btn, .site-footer a.btn:hover { color: var(--btn-fg); }
.site-footer a.btn.secondary, .site-footer a.btn.secondary:hover { color: var(--text); }
