/* ============================================================
   Ben Brenner — benbrenner.com
   Design tokens, dark-first with light theme override.
   ============================================================ */

:root {
  --bg:        #0b0e14;
  --bg-soft:   #121722;
  --bg-card:   #141a26;
  --surface:   #1a2130;
  --text:      #e8ecf4;
  --text-dim:  #9aa6bd;
  --text-mut:  #6c7891;
  --border:    #232c3d;
  --border-hi: #2f3a50;
  --brand:     #ffb84d;
  --brand-2:   #ff8a3d;
  --ring:      rgba(255,184,77,0.5);
  --shadow:    0 18px 50px -20px rgba(0,0,0,0.7);
  --radius:    18px;
  --maxw:      1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg:        #f7f8fb;
  --bg-soft:   #ffffff;
  --bg-card:   #ffffff;
  --surface:   #f0f2f7;
  --text:      #131824;
  --text-dim:  #52607a;
  --text-mut:  #7c889e;
  --border:    #e3e7ef;
  --border-hi: #d3d9e6;
  --brand:     #e07a17;
  --brand-2:   #d9631a;
  --ring:      rgba(224,122,23,0.4);
  --shadow:    0 18px 44px -22px rgba(20,30,60,0.28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
a { color: inherit; }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #1a1204; padding: .6rem 1rem;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 650; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; font-size: .82rem; font-weight: 800; letter-spacing: .02em;
  color: #1a1204; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.brand-name { font-size: 1rem; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim); cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--border-hi); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 55% at 22% 12%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%),
    radial-gradient(46% 50% at 82% 8%, color-mix(in srgb, #8b5cf6 22%, transparent), transparent 60%),
    radial-gradient(40% 46% at 60% 90%, color-mix(in srgb, #12b981 16%, transparent), transparent 60%);
  filter: blur(8px); opacity: .9; z-index: 0; pointer-events: none;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .1;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow {
  display: inline-block; margin: 0 0 1.1rem; padding: .35rem .8rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); border-radius: 999px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; }
.accent-word { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-dim); margin: 1.4rem 0 1.1rem; max-width: 620px; }
.hero-copy { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.08rem); margin: 0 0 2rem; max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.4rem; border-radius: 11px; font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #1a1204; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 26px -12px var(--ring); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px var(--ring); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-hi); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 2.8rem 0 0; padding: 0; }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); }
.hero-stats dd { margin: .2rem 0 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats .dd-text { font-size: 1.5rem; }

/* ---------- Section shared ---------- */
.section-head { margin-bottom: 2.6rem; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-sub { color: var(--text-dim); margin: .5rem 0 0; font-size: 1.05rem; }
.work { padding: clamp(3rem, 8vh, 5.5rem) 0; }

/* ---------- Subpage header (shared: /apps/, /work/, /writing/) ---------- */
.page-hero { position: relative; padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(2rem, 5vh, 3rem); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-dim); margin: 1.2rem 0 0; max-width: 640px; }
.page-hero .hero-actions { margin-top: 1.8rem; }

/* ---------- Proof strip (homepage) ---------- */
.proof-strip { padding: clamp(2rem, 5vh, 3rem) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
.proof { }
.proof-num { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.proof-label { color: var(--text-dim); font-size: .9rem; margin-top: .35rem; }
@media (max-width: 720px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Three parallel blocks (homepage: org / wild / before) ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tri-block {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tri-block:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow); }
.tri-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.tri-block h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.tri-block p { color: var(--text-dim); font-size: .96rem; margin: 0 0 1.3rem; }
.tri-link {
  margin-top: auto; align-self: flex-start; font-weight: 650; font-size: .95rem;
  color: var(--accent); text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 1px; transition: border-color .2s;
}
.tri-link:hover { border-bottom-color: var(--accent); }
@media (max-width: 860px) { .tri { grid-template-columns: 1fr; } }

/* ---------- Placeholder token (visible, never a fabricated number) ---------- */
.ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 6px; padding: 0 .35em; white-space: nowrap;
}

/* ---------- Feature grid (/work/: what I do) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.feature h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.feature p { color: var(--text-dim); font-size: .95rem; margin: 0; }
.feature .feature-mark {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem;
  border-radius: 11px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  font-weight: 800;
}

/* ---------- Steps (/work/: how I operate) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; counter-increment: step;
}
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px; font-weight: 800; font-size: .95rem;
  color: #1a1204; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--text-dim); font-size: .94rem; margin: 0; }

/* ---------- Outcome tiles (/work/: outcomes) ---------- */
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.outcome {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; text-align: left;
}
.outcome .outcome-metric { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: .5rem; }
.outcome p { color: var(--text-dim); font-size: .94rem; margin: 0; }
.outcome-note { color: var(--text-mut); font-size: .88rem; margin-top: 1.4rem; }

@media (max-width: 860px) {
  .feature-grid, .outcome-grid { grid-template-columns: 1fr; }
}

/* ---------- Post list (/writing/) ---------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.post {
  display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem .2rem; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: padding-left .2s, background .2s;
}
.post:hover { padding-left: .6rem; }
.post-date { color: var(--text-mut); font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
.post-title { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.post:hover .post-title { color: var(--brand); }
.post-arrow { color: var(--text-mut); transition: color .2s, transform .2s; }
.post:hover .post-arrow { color: var(--brand); transform: translateX(2px); }
.writing-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr auto; }
  .post-date { grid-column: 1 / -1; order: 2; }
}

/* ---------- Single writing post (D1-backed article) ---------- */
.article-title { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.article-meta { color: var(--text-mut); font-size: .92rem; margin: 1rem 0 0; }
.article-meta time { letter-spacing: .02em; }
.back-link { text-decoration: none; color: var(--brand); font-weight: 600; }
.article-cats { margin: 1.1rem 0 0; }

.article { max-width: 720px; }
.article-body { color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.25rem; color: var(--text-dim); }
.article-body h2 { font-size: 1.5rem; margin: 2.4rem 0 .9rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 .7rem; }
.article-body h4 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.article-body a { color: var(--brand); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); overflow-wrap: anywhere; }
.article-body a:hover { border-bottom-color: var(--brand); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.4rem; color: var(--text-dim); }
.article-body li { margin: .35rem 0; }
.article-body img { height: auto; border-radius: 12px; border: 1px solid var(--border); }
.article-body figure { margin: 1.6rem 0; }
.article-body figure img { display: block; }
.article-body blockquote {
  margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem;
  border-left: 3px solid var(--brand-2); color: var(--text-dim);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: .1em .35em;
}
.article-body pre {
  margin: 0 0 1.4rem; padding: 1rem 1.1rem; overflow-x: auto;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; font-size: .88rem; line-height: 1.55;
}
.article-body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.article-body iframe { max-width: 100%; }

.article-source { max-width: 720px; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--text-mut); font-size: .92rem; }
.article-source a { color: var(--brand); text-decoration: none; }
.article-source a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow); }
.card-media {
  display: block; position: relative; aspect-ratio: 400 / 210; overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.card-media .viz { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-ring { fill: none; stroke: var(--accent); stroke-opacity: .35; stroke-width: 1.4; }
.viz-cross { stroke: var(--accent); stroke-opacity: .2; stroke-width: 1.2; }
.viz-line { fill: var(--accent); }
.viz-dim { opacity: .35; }

.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-topline { display: flex; align-items: center; gap: .8rem; margin-bottom: .35rem; }
.card-topline h3 { font-size: 1.3rem; }
.chip {
  margin-left: auto; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); white-space: nowrap;
}
.card-tag { color: var(--accent); font-weight: 600; font-size: .92rem; margin: 0 0 .7rem; }
.card-body p { color: var(--text-dim); margin: 0 0 1rem; font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.tags li {
  font-size: .78rem; color: var(--text-mut); padding: .28rem .65rem;
  border: 1px solid var(--border-hi); border-radius: 8px; background: var(--surface);
}
.card-link {
  margin-top: auto; align-self: flex-start; font-weight: 650; font-size: .95rem;
  color: var(--accent); text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 1px; transition: border-color .2s;
}
.card-link:hover { border-bottom-color: var(--accent); }

.media-breakdown { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: auto; font-size: .86rem; color: var(--text-mut); }
.media-breakdown b { color: var(--text); font-weight: 700; }
.card-media-static { cursor: default; }

/* ---------- SVG animations ---------- */
.radar-arm { transform-origin: 0 0; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.wave rect { animation: bounce 1.4s ease-in-out infinite; transform-origin: center; }
.wave rect:nth-child(odd) { animation-delay: .2s; }
.wave rect:nth-child(3n) { animation-delay: .45s; }
@keyframes bounce { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.geo-lights circle { animation: twinkle 3s ease-in-out infinite; }
.geo-lights circle:nth-child(even) { animation-delay: 1.1s; }
.geo-lights circle:nth-child(3n) { animation-delay: 1.8s; }
@keyframes twinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .radar-arm, .wave rect, .geo-lights circle { animation: none; }
}

/* ---------- About ---------- */
.about { padding: clamp(3rem, 8vh, 5.5rem) 0; border-top: 1px solid var(--border); background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.about-lead { font-size: 1.2rem; color: var(--text); margin: 1.2rem 0; font-weight: 500; }
.about p { color: var(--text-dim); }
.about a { color: var(--brand); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.about a:hover { border-bottom-color: var(--brand); }
.about-side {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; position: sticky; top: 90px;
}
.about-side h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text); }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.stack li { font-size: .92rem; color: var(--text-dim); padding-left: 1.2rem; position: relative; }
.stack li::before { content: "▸"; position: absolute; left: 0; color: var(--brand); }

/* ---------- Film archive teaser ---------- */
.film-teaser { padding: clamp(3rem, 8vh, 5.5rem) 0; border-top: 1px solid var(--border); }
.film-teaser-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.film-teaser h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .8rem; }
.film-teaser p { color: var(--text-dim); margin: 0 0 1.6rem; max-width: 560px; }
.film-eyebrow {
  color: #ff5a5f; background: color-mix(in srgb, #ff5a5f 12%, transparent);
  border-color: color-mix(in srgb, #ff5a5f 28%, transparent); margin-bottom: 1rem;
}
:root[data-theme="light"] .film-eyebrow { color: #e23b41; }
.film-btn { background: linear-gradient(135deg, #ff5a5f, #ff8a3d); box-shadow: 0 10px 26px -12px rgba(255,90,95,.5); }
.film-btn:hover { box-shadow: 0 14px 30px -10px rgba(255,90,95,.55); }
.film-teaser-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.film-teaser-list li { border-bottom: 1px solid var(--border); }
.film-teaser-list li:last-child { border-bottom: none; }
.film-teaser-list a {
  display: block; padding: .8rem .2rem; text-decoration: none; color: var(--text-dim);
  font-weight: 550; font-size: .98rem; transition: color .2s, padding .2s;
}
.film-teaser-list a:hover { color: #ff5a5f; padding-left: .5rem; }
:root[data-theme="light"] .film-teaser-list a:hover { color: #e23b41; }

/* ---------- Contact ---------- */
.contact { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.contact-inner { text-align: center; max-width: 640px; margin-inline: auto; }
.contact p { color: var(--text-dim); font-size: 1.1rem; margin: 1rem 0 2rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 1.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-mut); font-size: .9rem; }
.to-top { text-decoration: none; color: var(--text-dim); }
.to-top:hover { color: var(--brand); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-side { position: static; }
  .film-teaser-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 1.6rem; }
  .hero-stats dd { font-size: 1.5rem; }
}
