/*
 * Premium layer — loaded after styles.css and chat.css.
 *
 * Everything here uses the site's own colour variables, so it follows the light and
 * dark themes without a second palette. Motion is limited to things that mean
 * something (a running band, a hand that waves when hovered) and is switched off
 * for anyone who asks their device for reduced motion.
 */

/* ------------------------------------------------------------------ *
 * The agent button: a robotic hand
 * ------------------------------------------------------------------ */

.agent-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center;
  width: 74px; height: 74px; padding: 0; gap: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #fff 45%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--bright), var(--accent) 62%, #4a0618 100%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 #ffffff40;
  cursor: pointer; color: #fff;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s;
}
.agent-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 38px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 #ffffff55; }
.agent-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.agent-fab .fab-hand { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 0; font-size: 0; }
.agent-fab .fab-hand svg { width: 46px; height: 46px; overflow: visible; filter: drop-shadow(0 2px 3px #0005); }

.rh-thumb rect, .rh-finger rect, .rh-palm { fill: #fff3ea; stroke: #5a0a1f; stroke-width: 1.1; }
.rh-cuff { fill: #d8b7a4; stroke: #5a0a1f; stroke-width: 1.1; }
.rh-joint { fill: var(--accent); stroke: #5a0a1f; stroke-width: .6; }
.rh-circuit { fill: none; stroke: #b88; stroke-width: 1; stroke-linecap: round; }
.rh-led { fill: #ffb27a; stroke: #5a0a1f; stroke-width: .8; }

.agent-fab .fab-ring {
  position: absolute; inset: -6px; width: auto; height: auto; border: 2px solid var(--bright);
  border-radius: 50%; opacity: 0; pointer-events: none; font-size: 0;
}

.agent-fab .fab-tip {
  position: absolute; right: 86px; top: 50%; transform: translate(8px, -50%);
  display: block; width: auto; height: auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.agent-fab:hover .fab-tip, .agent-fab:focus-visible .fab-tip, .agent-fab.tip-on .fab-tip { opacity: 1; transform: translate(0, -50%); }

@media (prefers-reduced-motion: no-preference) {
  .agent-fab .fab-ring { animation: fab-pulse 2.8s ease-out infinite; }
  .rh-led { animation: led-blink 1.8s ease-in-out infinite; }
  .agent-fab:hover .rh-f1 { animation: finger-wave .7s ease-in-out; transform-origin: 17px 36px; }
  .agent-fab:hover .rh-f2 { animation: finger-wave .7s .06s ease-in-out; transform-origin: 27px 36px; }
  .agent-fab:hover .rh-f3 { animation: finger-wave .7s .12s ease-in-out; transform-origin: 37px 36px; }
  .agent-fab:hover .rh-f4 { animation: finger-wave .7s .18s ease-in-out; transform-origin: 47px 36px; }
}
@keyframes fab-pulse { 0% { opacity: .65; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.32); } }
@keyframes led-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes finger-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(7deg); } }

/* ------------------------------------------------------------------ *
 * The running band
 * ------------------------------------------------------------------ */

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; flex-shrink: 0; }
.marquee li {
  display: flex; align-items: center; gap: 28px; padding: 17px 0 17px 28px;
  font: 700 11px ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--text); white-space: nowrap;
}
.marquee li::after { content: '◆'; font-size: 8px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee ul[aria-hidden='true'] { display: none; }
}

/* ------------------------------------------------------------------ *
 * Agent cards: a film or a photo, nothing mocked up
 * ------------------------------------------------------------------ */

.agent-card { display: flex; flex-direction: column; }
.agent-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden;
  background: #120708; color: #fff; cursor: pointer; text-align: left;
}
.agent-media video, .agent-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .3, 1); }
.agent-card:hover .agent-media video, .agent-card:hover .agent-media img { transform: scale(1.04); }

.media-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px;
  background: #000a; backdrop-filter: blur(6px); color: #fff; font: 700 9px ui-monospace, monospace; letter-spacing: .16em;
}
.media-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px;
  transform: translate(-50%, -50%); border: 1px solid #ffffff88; border-radius: 50%; background: #0007; backdrop-filter: blur(6px);
  font-size: 18px; padding-left: 3px; transition: transform .25s, background .25s;
}
.agent-media:hover .media-play, .agent-media:focus-visible .media-play { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.agent-media:focus-visible { outline: 3px solid var(--bright); outline-offset: -3px; }

/* A poster drawn in CSS for a product that has no film or photo yet. */
.poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, #3a0b17, transparent 70%),
    linear-gradient(160deg, #1d0a0d, #0d0405);
}
.poster::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.poster small { position: relative; font: 700 9px ui-monospace, monospace; letter-spacing: .2em; color: #ffb9c6; }
.poster b { position: relative; font-size: 24px; font-weight: 750; letter-spacing: -.04em; line-height: 1.05; color: #fff; }
.poster i { position: relative; font-style: normal; font-size: 12px; color: #ffffffb0; }

.card-actions { gap: 12px; }
.card-note { font: 9px ui-monospace, monospace; letter-spacing: .08em; color: var(--muted); }
.agent-card .buy-button { display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--accent); border-color: var(--accent); color: #fff; }
.agent-card .buy-button:hover { background: var(--bright); }
.agent-card .buy-button span { margin: 0; }

/* The dialog that opens from a card */
.product-media { padding: 0; overflow: hidden; background: #0d0405; }
.product-media video { display: block; width: 100%; max-height: 62vh; background: #000; }
.photo-strip { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo-strip img { flex: 0 0 100%; width: 100%; max-height: 62vh; object-fit: contain; scroll-snap-align: center; background: #000; }
.product-media .poster { position: relative; min-height: 260px; width: 100%; }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 36px 30px; }
.product-cta p { max-width: 460px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * Trust sections
 * ------------------------------------------------------------------ */

.why-section { padding: 90px 0; background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.why-grid article {
  position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.why-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.why-grid article:nth-child(4), .why-grid article:nth-child(5) { grid-column: span 1; }
.why-grid span { font: 700 11px ui-monospace, monospace; letter-spacing: .18em; color: var(--accent); }
.why-grid h3 { margin: 14px 0 10px; font-size: 20px; letter-spacing: -.04em; line-height: 1.2; }
.why-grid p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.standard-section { padding: 100px 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.standard-head p:last-child { margin-top: 22px; max-width: 460px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.standard-head h2 { margin-bottom: 4px; }
.pillars { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: pillar; border-top: 1px solid var(--line); }
.pillars li {
  counter-increment: pillar; display: grid; grid-template-columns: 54px 1fr; gap: 4px 12px; padding: 22px 6px;
  border-bottom: 1px solid var(--line); transition: padding-left .25s, background .25s;
}
.pillars li::before { content: '0' counter(pillar); grid-row: span 2; font: 700 12px ui-monospace, monospace; letter-spacing: .14em; color: var(--accent); padding-top: 5px; }
.pillars li:hover { padding-left: 16px; background: var(--surface); }
.pillars b { font-size: 21px; letter-spacing: -.04em; }
.pillars p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * The founder
 * ------------------------------------------------------------------ */

.founder-section { padding: 90px 0 100px; }
.founder-inner { max-width: none; gap: 70px; grid-template-columns: 340px 1fr; align-items: start; }
.founder-inner figure img { height: 430px; object-position: center 18%; box-shadow: var(--shadow); }
.founder-copy h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 14px; }
.founder-role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 700 11px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.founder-role i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.founder-hook { margin: 24px 0 18px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.04em; line-height: 1.2; padding-left: 18px; border-left: 3px solid var(--accent); }
.founder-copy > p:not(.founder-role):not(.founder-hook):not(.eyebrow) { max-width: 620px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.founder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 0; }
.founder-stats div { padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.founder-stats dt { font-size: 30px; font-weight: 750; letter-spacing: -.05em; color: var(--accent); }
.founder-stats dd { margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.skill-chips li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--bg); }

.founder-note {
  margin-top: 70px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(160deg, var(--surface), var(--surface2));
}
.founder-note h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 750; letter-spacing: -.05em; line-height: 1.1; max-width: 900px; }
.founder-note h3 em { display: block; margin-top: 10px; font-size: .5em; font-style: normal; font-weight: 600; letter-spacing: -.02em; color: var(--muted); }
.note-body { columns: 2; column-gap: 56px; margin-top: 30px; }
.note-body p { break-inside: avoid; margin-bottom: 16px; font-size: 14px; line-height: 1.85; color: var(--text); }
.note-body strong { color: var(--accent); }
.note-question { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; font-weight: 750; letter-spacing: -.02em; }
.note-sign { margin-top: 18px; font-size: 12px; color: var(--muted); }
.note-sign b { display: block; color: var(--text); font-size: 15px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.contact-chip i { font-style: normal; color: var(--accent); transition: color .2s; }
.contact-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.contact-chip:hover i { color: #fff; }
.final-cta .contact-row { margin-top: 24px; }

/* ------------------------------------------------------------------ *
 * Narrow screens
 * ------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .standard-section { grid-template-columns: 1fr; gap: 34px; padding-block: 70px; }
  .founder-inner { grid-template-columns: 1fr; gap: 34px; }
  .founder-inner figure { max-width: 380px; }
  .founder-inner figure img { height: 380px; }
  .note-body { columns: 1; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-section { padding: 64px 0; }
  .founder-stats { grid-template-columns: 1fr; }
  .agent-fab { right: 14px; bottom: 14px; width: 66px; height: 66px; }
  .agent-fab .fab-hand, .agent-fab .fab-hand svg { width: 40px; height: 40px; }
  .agent-fab .fab-tip { display: none; }
  .product-cta { padding: 18px 20px 24px; }
  .marquee li { padding-block: 14px; }
}

/* The running band sits below the status strip, with room so the strip never covers it. */
.status-strip + .marquee { margin-top: 34px; }

/* ================================================================== *
 * Retro-bold layer
 *
 * Typography and surfaces after the Dribbble "retro UI" direction: a heavy
 * grotesque for headings, a mono for labels, thick dark outlines with offset
 * shadows. Colour stays inside the brand: burgundy, cream, ink and a little gold.
 * Fonts are self-hosted (the site's CSP allows font-src 'self' only).
 * ================================================================== */
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-display-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --retro-font: 'Poppins', Arial, Helvetica, sans-serif;
  --retro-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --retro-mono: 'Poppins', Arial, sans-serif;
  --ink: #1e1210;
  --sand: #f1dfcf;
  --stone: #e6d2c1;
  --gold: #c9a46a;
  --outline: 1px solid color-mix(in srgb, var(--ink) 78%, transparent);
  --pop: 0 14px 34px -18px rgba(60, 20, 20, .38);
}
[data-theme=dark] { --ink: #fff2e7; --pop: 0 14px 34px -18px #000; --outline: 1px solid #fff2e744; }

body { font-family: var(--retro-font); }
/* Hero: the new display face for the headline; everything else inherits the body face. */
.hero h1 { font-family: var(--retro-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.06; }

/* Headings below the hero */
.catalogue h2, .why-section h2, .standard-section h2, .founder-section h2, .founder-note h3,
.faq-section h2, .final-cta h2, .process h2, .about h2, .tech h2, section:not(.hero) h2 {
  font-family: var(--retro-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08;
}
.agent-card h3, .why-grid h3, .pillars b, .step-panel h3 { font-family: var(--retro-font); font-weight: 700; letter-spacing: -.03em; }

/* Labels */
.eyebrow, .card-category, .media-tag, .card-note, .why-grid span, .founder-role, .status-strip small,
.marquee li, .catalogue-note, .result-count { font-family: var(--retro-mono); }
.marquee li { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }

/* Cards: thick outline, offset shadow */
.agent-card { border: var(--outline); border-radius: 16px; box-shadow: var(--pop); transition: transform .15s, box-shadow .15s; }
.agent-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(60, 20, 20, .45); }
.agent-card .agent-media { border-bottom: var(--outline); }
.agent-card .buy-button { border: 1px solid transparent; }
.agent-card .buy-button:hover { transform: translateY(-1px); }
.media-tag { background: #1e1210; color: #fff2e7; border: 2px solid #1e1210; }

.why-grid article { border: var(--outline); border-radius: 16px; box-shadow: var(--pop); background: var(--bg); }
.why-grid article:hover { transform: translateY(-4px); }
.why-grid span { color: var(--ink); }
.why-grid p { color: color-mix(in srgb, var(--ink) 72%, transparent); }

.marquee { border-block: 0; background: #1e1210; color: #f6e7d8; }
.marquee li { color: #f6e7d8; }
.marquee li::after { color: var(--gold); }
.marquee li strong { color: var(--gold); font-weight: 700; }
.status-strip { border: var(--outline); box-shadow: var(--pop); }

/* Numbers, as bright blocks */
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.proof { border: var(--outline); border-radius: 16px; box-shadow: var(--pop); padding: 22px 22px 24px; display: grid; gap: 8px; color: #1e1210; }
.proof b { font-family: var(--retro-display); font-weight: 500; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -.04em; line-height: 1; }
.proof span { font: 700 12px/1.45 var(--retro-mono); }
.proof b { color: var(--accent); }
.proof { background: var(--surface); color: var(--ink); }
.proof.ink { background: #1e1210; color: #f6e7d8; }
.proof.ink b { color: var(--gold); }
[data-theme=dark] .proof { background: var(--surface); }
[data-theme=dark] .proof.ink { background: #f6e7d8; color: #1e1210; }
[data-theme=dark] .proof.ink b { color: var(--accent); }

.pillars li:hover { background: var(--surface); }
.founder-inner figure img { border: var(--outline); box-shadow: var(--pop); }
.founder-stats { grid-template-columns: repeat(2, 1fr); }
.founder-stats div:first-child { background: #1e1210; }
.founder-stats div:first-child dt { color: var(--gold); }
.founder-stats div:first-child dd { color: #f6e7d8; }
.founder-stats div { border: var(--outline); border-radius: 14px; box-shadow: var(--pop); }
.founder-stats dt { font-family: var(--retro-display); font-weight: 500; }

.founder-note { border: var(--outline); box-shadow: var(--pop); }
.contact-chip { border: var(--outline); font-weight: 600; }

@media (max-width: 860px) { .proof-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proof-row { grid-template-columns: 1fr; } .founder-stats { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .agent-card, .why-grid article { transition: none; } }

/* Slide flow on cards without a film yet */
.poster.deck { overflow: hidden; }
.poster.deck .slide { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; opacity: 0; transform: translateX(18px); transition: opacity .55s ease, transform .55s ease; }
.poster.deck .slide.is-on { opacity: 1; transform: none; }
.poster.deck .slide b { font-family: var(--retro-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.deck-bar { position: absolute; left: 24px; right: 24px; bottom: 12px; height: 2px; background: #ffffff30; border-radius: 2px; overflow: hidden; }
.deck-bar i { display: block; height: 100%; width: var(--progress, 20%); background: #c9a46a; transition: width .55s ease; }
.product-media .poster.deck { min-height: 260px; }
@media (prefers-reduced-motion: reduce) { .poster.deck .slide { transition: none; } }

/* ---------- Flow ---------- */
.js-flow .rv { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2,.7,.2,1) var(--rv, 0ms), transform .75s cubic-bezier(.2,.7,.2,1) var(--rv, 0ms); }
.js-flow .rv.out-up:not(.in) { transform: translateY(-24px); }
.js-flow .rv.in { opacity: 1; transform: none; }
.js-flow .agent-card.rv.in:hover { transform: translateY(-4px); transition-delay: 0ms; }
.portfolio-link { margin-top: 24px; }

/* The founder's photo is square, so it is shown whole instead of cropped into a tall box. */
.founder-inner figure img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }

/* Robotic hand: an occasional wave, and a grip when pressed */
@keyframes finger-grip { 40% { transform: scaleY(.7); } 100% { transform: none; } }
@keyframes fab-burst { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .agent-fab.is-wave .rh-f1 { animation: finger-wave .7s ease-in-out 2; transform-origin: 17px 36px; }
  .agent-fab.is-wave .rh-f2 { animation: finger-wave .7s .08s ease-in-out 2; transform-origin: 27px 36px; }
  .agent-fab.is-wave .rh-f3 { animation: finger-wave .7s .16s ease-in-out 2; transform-origin: 37px 36px; }
  .agent-fab.is-wave .rh-f4 { animation: finger-wave .7s .24s ease-in-out 2; transform-origin: 47px 36px; }
  .agent-fab.is-press .rh-finger { animation: finger-grip .55s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
  .agent-fab.is-press::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); animation: fab-burst .6s ease-out forwards; pointer-events: none; }
}

/* Mission */
.hero h1 { font-size: clamp(34px, 4.1vw, 58px); max-width: 780px; }
.hero.scene-ready h1 { font-size: clamp(34px, 4.1vw, 58px); }
@media (max-width: 560px) { .hero.scene-ready h1, .hero h1 { font-size: clamp(28px, 7.6vw, 40px); } }
.mission { padding: 110px 0; text-align: center; background: #1e1210; color: #f6e7d8; position: relative; overflow: hidden; }
.mission::before { content: ''; position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 68%); opacity: .55; pointer-events: none; }
.mission .wrap { position: relative; }
.mission .eyebrow { color: #c9a46a; }
.mission-line { font-family: var(--retro-display); font-weight: 500; font-size: clamp(28px, 4.4vw, 62px); line-height: 1.15; letter-spacing: -.02em; max-width: 980px; margin: 0 auto; }
.mission-line em { color: #c9a46a; font-style: italic; }
.standard-head h2 { font-size: clamp(28px, 3.4vw, 46px); }
.mission-line, .hero h1, .standard-head h2, .pf-hero h1 { text-wrap: balance; }
.mission-line { font-size: clamp(26px, 3.7vw, 54px); max-width: 1020px; }
.mission-line br { display: block; }
.founder-tag{font:600 11px var(--retro-font);letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin:0 0 14px}
.founder-goal{font:italic 500 18px/1.5 var(--retro-display);color:var(--ink);margin-top:14px!important}
.founder-hook em{font-style:italic}

/* Film viewer: opens over the page only when a play button is pressed. */
.film-viewer { width: min(1080px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 16px; background: #000; overflow: visible; }
.film-viewer::backdrop { background: rgba(10, 4, 5, .82); backdrop-filter: blur(6px); }
.film-viewer[open] { animation: film-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes film-in { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.film-stage { aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; overflow: hidden; background: #000; }
.film-stage iframe, .film-stage video { width: 100%; height: 100%; border: 0; display: block; }
.film-close { position: absolute; right: 0; top: -46px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff66; background: #0008; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.film-close:hover { background: var(--accent); }
.film-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #1e1210; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; }
.film-poster .media-play { color: #fff; }
.film-poster:hover .media-play { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }


/* Smoothness: sections below the first screen are not laid out or painted until they are near. */
#about, #technology, #seal, .founder-section, #standard, #mission, footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
img { decoding: async; }
@media (max-width: 860px) {
  /* Blurring what is behind a panel is one of the costliest things a phone paints. */
  .nav { background: var(--bg) !important; }
  .nav, .dialog-card, dialog, .agent-fab, .chat-panel, .contact-dialog { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .film-viewer::backdrop { backdrop-filter: none; }
}
