/* SmarterCoders — navy, warm ivory, and teal */
:root {
  --navy-950: #08111d; --navy-900: #0c1726; --navy-850: #101d2f; --navy-800: #15253a;
  --paper: #f7f5f0; --paper-2: #efece5; --white: #fff;
  --teal: #5fc4b3; --teal-deep: #1d7a6d; --brass: #c8a86b;
  --ink: #eef2f6; --muted: #9aabbe; --faint: #8b9bb0; --line: rgba(214, 226, 240, .11); --accent: var(--teal); --accent-text: var(--teal);
  --serif: "Instrument Serif", Georgia, serif; --sans: Inter, system-ui, sans-serif;
  --radius: 12px; --radius-sm: 6px; --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--navy-950); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h3, h4 { font-weight: 500; letter-spacing: -.03em; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 5px; }
.wrap { width: min(1248px, calc(100% - 80px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-title { max-width: 24ch; font-size: clamp(2.5rem, 4.5vw, 4.2rem); line-height: 1.04; }
.section-title em { color: var(--accent-text); font-weight: 400; }
.eyebrow, .card-tech { color: var(--accent-text); font-size: .69rem; font-weight: 600; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: none; }
.section-lede { max-width: 58ch; color: var(--muted); font-size: 1.04rem; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 30; padding: 10px 18px; background: var(--teal); color: var(--navy-950); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 14px 22px; background: var(--teal); border: 1px solid var(--teal); border-radius: var(--radius-sm); color: #06201b; font-size: .86rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .2s, transform .2s; }
.btn:hover { background: #7ad3c4; transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .8rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #ffffff10; }
.nav { position: sticky; top: 0; z-index: 10; background: rgba(8, 17, 29, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 1.04rem; font-weight: 500; letter-spacing: -.04em; }
.brand svg { width: 32px; height: 32px; color: var(--navy-800); }
.brand b { color: var(--teal); font-weight: 500; }
.links { display: flex; align-items: center; gap: 28px; }
.links > a:not(.btn) { color: #b3bfce; font-size: .79rem; text-decoration: none; }
.links > a:not(.btn):hover { color: var(--teal); }
.menu-toggle { display: none; padding: 8px 12px; min-height: 44px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; }
.menu-toggle span { margin-left: 14px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 80% 30%, rgba(95, 196, 179, .08), transparent 60%); padding-top: 80px; }
.hero > .wrap { position: relative; z-index: 1; }
/* Decorative movement stays behind the content and never intercepts input. */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: hero-drift 28s ease-in-out infinite alternate; }
.aurora i:first-child { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; top: -18%; right: -8%; background: radial-gradient(circle, rgba(95, 196, 179, .28), transparent 65%); }
.aurora i:last-child { width: 38vw; height: 38vw; max-width: 600px; max-height: 600px; bottom: -30%; left: 18%; background: radial-gradient(circle, rgba(94, 120, 200, .22), transparent 65%); animation-duration: 36s; animation-delay: -12s; }
.network { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 90% at 72% 45%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 75% 90% at 72% 45%, #000 30%, transparent 80%); }
@keyframes hero-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.08); } 100% { transform: translate(5%, -4%) scale(.96); } }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 64px; padding-bottom: 76px; }
.hero h1 { font-size: clamp(3.6rem, 6.3vw, 6rem); line-height: .98; margin-bottom: 30px; letter-spacing: -.035em; }
.hero h1 span { color: var(--teal); font-style: italic; }
.hero .lede { max-width: 44ch; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }
.system-visual { min-width: 0; position: relative; border: 1px solid rgba(214, 226, 240, .13); border-radius: 12px; background: linear-gradient(145deg,var(--navy-850),#08111d); box-shadow: 0 32px 80px #0003; }
.visual-bar { display: flex; align-items: center; gap: 8px; font-size: .55rem; font-weight: 500; letter-spacing: .11em; }
.visual-bar { padding: 18px 22px; border-bottom: 1px solid var(--line); color: #b7c7d9; }
.system-map { padding: 30px 28px 22px; background: radial-gradient(rgba(95, 196, 179, .08) 1px, transparent 1px) 0 0/18px 18px; }
.domain-node { display: flex; align-items: center; gap: 16px; width: fit-content; margin: 0 auto; padding: 17px 22px; border: 1px solid rgba(95, 196, 179, .4); border-radius: 7px; background: var(--navy-800); }
.node-symbol { color: var(--teal); font-size: 2rem; }
.domain-node small, .domain-node strong, .domain-node div > span { display: block; }
.domain-node small { font-size: .51rem; letter-spacing: .12em; color: #b7c7d9; }
.domain-node strong { font-size: .9rem; font-weight: 500; margin: 3px 0; }
.domain-node div > span { font-size: .67rem; color: var(--muted); }
.connector { height: 48px; position: relative; width: 1px; margin: 0 auto; background: var(--teal-deep); }
.connector > span { position: absolute; top: 15px; left: 10px; width: 145px; font-size: .48rem; color: #a8bbce; letter-spacing: .09em; }
.workload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.workload-grid > div { padding: 20px 12px; border: 1px solid rgba(214, 226, 240, .16); border-radius: 7px; background: var(--navy-900); text-align: center; }
.mini-icon { display: block; color: var(--teal); font-size: 1.3rem; margin-bottom: 8px; }
.workload-grid strong { display: block; font-size: .84rem; font-weight: 500; }
.workload-grid small { display: block; color: var(--muted); font-size: .65rem; margin-top: 3px; }
.connector-split { height: 32px; }
.foundation { border: 1px solid rgba(95, 196, 179, .55); border-radius: 7px; background: rgba(95, 196, 179, .06); padding: 18px; }
.foundation-title { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.foundation-title strong { font-size: .82rem; font-weight: 500; color: var(--teal); }
.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.region-grid > span { display: flex; align-items: center; gap: 6px; padding: 10px 8px; border: 1px dashed rgba(95, 196, 179, .45); border-radius: 4px; font-size: .59rem; color: #c9d4e0; }
.region-grid i { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; flex: none; }
.foundation p { margin: 12px 0 0; font-size: .62rem; color: var(--muted); text-align: center; }
.provider-line { display: flex; justify-content: center; gap: 18px; margin-top: 20px; color: #c9d4e0; font-size: .62rem; }
.system-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .69rem; }
.proof-strip { display: grid; grid-template-columns: 1fr 2.5fr; align-items: center; gap: 50px; padding-block: 32px; border-top: 1px solid var(--line); }
.proof-strip > p { margin: 0; color: var(--muted); font-size: .82rem; }
.proof-strip > p strong { color: var(--ink); font-weight: 400; }
.proof { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; padding: 0; list-style: none; gap: 22px; }
.proof li { display: flex; gap: 14px; align-items: center; }
.proof strong { font: 400 2.3rem/1 var(--serif); color: var(--teal); }
.proof span { font-size: .68rem; line-height: 1.6; max-width: 17ch; color: #aebdd0; }
#start, #services, #story, #process, #experience { --ink: #14202e; --muted: #56616f; --faint: #687887; --line: #e0dcd3; --accent-text: var(--teal-deep); color: var(--ink); background: var(--paper); }

.card-cta:hover { text-decoration: underline; text-underline-offset: 5px; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); column-gap: 40px; row-gap: 42px; margin-top: 48px; }
.card { display: flex; flex-direction: column; border-top: 1px solid #c7cfd4; padding: 24px 0 0; }
.card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; max-width: 20ch; margin-top: 8px; }
.card > p { color: var(--muted); font-size: .87rem; }
.results { list-style: none; padding: 0; margin: 6px 0 20px; }
.results li { font-size: .74rem; padding: 6px 0 6px 20px; position: relative; }
.results li::before { content: "↗"; position: absolute; left: 0; color: var(--accent-text); }
.card-cta { align-self: start; display: inline-block; font-size: .76rem; font-weight: 600; color: var(--accent-text); text-decoration: none; margin-top: auto; }
.packages { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.packages-head { grid-column: 1/-1; margin-bottom: 28px; }
.packages-head .eyebrow { grid-column: 1/-1; margin-bottom: 12px; }
.packages-head h3 { font: 400 2.4rem/1.1 var(--serif); }
.packages-head > p { max-width: 58ch; color: var(--muted); font-size: 1.04rem; }
.package { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 32, 46, .04); }
.package-time { font-size: .65rem; color: var(--accent-text); margin-bottom: 18px; }
.package h4 { font-size: 1.05rem; }
.package > p:not(.package-time) { color: var(--muted); font-size: .82rem; }
.package ul { padding-left: 16px; font-size: .74rem; color: var(--muted); line-height: 2; margin: 0 0 20px; }
.security-section { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 0% 40%, rgba(95, 196, 179, .07), transparent 70%), var(--navy-950); }
/* Radar rings and a slow sweep sit behind the security content. */
.security-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 12% 70%, transparent 0 46px, rgba(95, 196, 179, .07) 46px 47px); -webkit-mask-image: radial-gradient(circle at 12% 70%, #000 10%, transparent 55%); mask-image: radial-gradient(circle at 12% 70%, #000 10%, transparent 55%); }
.security-section::after { content: ""; position: absolute; left: 12%; top: 70%; width: 60vmax; height: 60vmax; pointer-events: none; border-radius: 50%; background: conic-gradient(from 0deg, rgba(95, 196, 179, .12), transparent 18%); transform: translate(-50%, -50%); animation: security-sweep 14s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%); mask-image: radial-gradient(circle, #000 0, transparent 60%); }
.security-section > .wrap { position: relative; z-index: 1; }
@keyframes security-sweep { to { transform: translate(-50%, -50%) rotate(1turn); } }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.security-copy > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.assurance { margin-top: 26px; border: 1px solid rgba(95, 196, 179, .3); border-radius: var(--radius); padding: 26px 28px; background: rgba(95, 196, 179, .05); }
.assurance h3 { color: var(--teal); font: 400 1.7rem var(--serif); }
.assurance ul { list-style: none; padding: 0; margin: 0; }
.assurance li { position: relative; padding: 6px 0 6px 20px; font-size: .8rem; color: #c9d4e0; }
.assurance li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); }
.trust-model article { border-top: 1px solid var(--line); padding: 26px 0; }
.trust-model h3 { font-size: 1.05rem; }
.trust-model p { color: var(--muted); font-size: .83rem; margin: 0; }
#story, #services, #experience { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; list-style: none; margin: 48px 0 0; padding: 0; }
.steps li { position: relative; border-top: 1px solid #d2cdc2; padding-top: 26px; }
.steps li::before { content: ""; width: 7px; height: 7px; background: var(--accent-text); position: absolute; top: -4px; left: 0; }
.num { display: block; color: var(--accent-text); font-size: .75rem; margin-bottom: 20px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .82rem; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.exp-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.tags li { padding: 5px 10px; border: 1px solid var(--line); font-size: .66rem; border-radius: 4px; }
#contact { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(95, 196, 179, .08), transparent 70%), var(--navy-900); }
#contact > .wrap { position: relative; z-index: 1; }
#contact .aurora i:first-child { top: auto; bottom: -35%; right: -10%; }
#contact .aurora i:last-child { bottom: auto; top: -30%; left: -12%; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.contact-grid > div > p:not(.eyebrow) { max-width: 44ch; color: var(--muted); font-size: .93rem; }
.checks { padding: 0; margin-top: 30px; list-style: none; }
.checks li { font-size: .85rem; padding: 12px 0; border-top: 1px solid var(--line); }
.checks li::before { content: "✓"; color: var(--teal); margin-right: 12px; }
.form { display: grid; gap: 20px; min-width: 0; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-850); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .76rem; color: #c9d4e0; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid rgba(214, 226, 240, .16); border-radius: 5px; background: #08111d; color: var(--ink); font-size: 1rem; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: #f5a49f; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; margin: 0; font-size: .85rem; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #f5a49f; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: .69rem; color: var(--faint); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer a { text-underline-offset: 4px; }
@keyframes slide-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1440px) { .hero { padding-top: 96px; } }
@media (max-width: 1100px) {
  .hero-grid { gap: 36px; } .links { gap: 19px; } .hero h1 { font-size: 5rem; }
  .security-grid, .contact-grid, .exp-grid { gap: 48px; }
  .cards { column-gap: 28px; } .proof-strip { gap: 28px; }
}
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); } .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero h1 { font-size: 4rem; } .hero .eyebrow { font-size: .6rem; } .hero .lede { font-size: .93rem; }
  .system-map { padding: 24px 16px 18px; } .visual-bar { padding: 16px; }
  .foundation { padding: 14px; } .provider-line { gap: 12px; font-size: .55rem; }
  .region-grid { gap: 6px; } .region-grid > span { font-size: .5rem; padding: 9px 5px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .proof-strip { grid-template-columns: 1fr 3fr; gap: 20px; } .proof { gap: 12px; } .proof li { gap: 9px; }

  .package { padding: 20px; } .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 86px; } .wrap { width: calc(100% - 40px); } .section { padding: 68px 0; }
  .nav-inner { min-height: 68px; flex-wrap: wrap; gap: 0; padding-block: 12px; }
  .brand { font-size: .96rem; } .brand svg { width: 28px; height: 28px; }
  .menu-toggle { display: block; } .menu-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(45deg); }
  .links { width: 100%; display: flex; flex-wrap: wrap; padding-top: 18px; gap: 16px; }
  .nav-ready .links { display: none; }
  .nav-ready .links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 16px 4px; }
  .links > a:not(.btn) { padding: 12px 0; font-size: .9rem; }
  .links .btn { margin-top: 10px; }
  .hero { padding-top: 48px; } .hero-grid { grid-template-columns: 1fr; gap: 42px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(3.7rem,11vw,5.5rem); } .hero .eyebrow { font-size: .62rem; }
  .hero .lede { max-width: 48ch; font-size: 1rem; }
  .cta-row { gap: 18px; } .cta-row .btn { font-size: .8rem; padding-inline: 16px; }
  .system-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .system-map { padding: 24px; }
  .region-grid > span { font-size: .6rem; padding: 9px; } .provider-line { font-size: .62rem; }
  .proof-strip { display: block; padding-block: 26px; } .proof-strip > p { margin-bottom: 20px; } .proof-strip > p br { display: none; }
  .proof { gap: 16px; } .proof li { display: block; } .proof strong { display: block; margin-bottom: 9px; } .proof span { display: block; font-size: .65rem; }
  .security-grid, .contact-grid, .exp-grid { grid-template-columns: 1fr; gap: 36px; }
  .packages { grid-template-columns: 1fr; }
  .packages-head { display: block; } .package { padding: 26px; } .package ul { columns: 2; column-gap: 28px; }
  .package li { break-inside: avoid; } .footer-inner { gap: 18px 24px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; gap: 32px; } .card h3 { max-width: none; }
  .card > p { max-width: 42ch; }
  .system-map { padding-inline: 16px; } .region-grid > span { font-size: .51rem; padding-inline: 6px; }
  .foundation-title strong { font-size: .75rem; }
  .steps { gap: 24px; } .steps p { font-size: .78rem; } .form { padding: 24px; } .form .row { grid-template-columns: 1fr; }
  .package ul { columns: 1; } .provider-line { gap: 12px; font-size: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .security-section::after, .aurora i { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- the story film ---------- */

.story-feature { position: relative; isolation: isolate; width: min(1400px, calc(100vw - 80px)); margin-left: 50%; transform: translateX(-50%); }
.story-feature::before { content: ""; position: absolute; z-index: -1; inset: 80px 5% 22px; pointer-events: none; background: radial-gradient(ellipse at 50% 52%, rgba(95, 196, 179, .13), transparent 66%); filter: blur(18px); }
.story-intro { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: auto auto; align-items: end; gap: 8px 88px; max-width: 1180px; margin: 0 auto 38px; }
.story-intro .eyebrow { grid-column: 1; margin-bottom: 10px; }
.story-intro h2 { grid-column: 1; max-width: 14ch; margin: 0; font-size: clamp(3rem, 4.5vw, 4.6rem); line-height: 1; }
.story-intro > p { grid-column: 2; grid-row: 1 / 3; align-self: end; max-width: 40ch; margin: 0 0 5px; color: #465463; font-size: 1.04rem; line-height: 1.75; }
.film { --ink: #eef2f6; --muted: #9aabbe; --faint: #8b9bb0; --line: rgba(214, 226, 240, .11); width: 100%; max-width: 1180px; min-width: 0; margin-inline: auto; color: var(--ink); }
.film-frame { width: 100%; overflow: hidden; border: 1px solid rgba(214, 226, 240, .14); border-radius: 14px; background: var(--navy-950); box-shadow: 0 28px 70px rgba(8, 17, 29, .22); }

.film-progress { display: flex; gap: 6px; padding: 12px 16px; }
.film-progress button { flex: 1; position: relative; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.film-progress button::before, .film-progress i { position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 3px; }
.film-progress button::before { content: ""; background: rgba(214, 226, 240, .18); }
.film-progress i { background: var(--teal); transform: scaleX(0); transform-origin: left; }
.film-progress .done i { transform: scaleX(1); }
.film-progress .active i { animation: film-fill var(--scene-ms, 7500ms) linear forwards; }
@keyframes film-fill { to { transform: scaleX(1); } }

.film-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.film-scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s var(--ease); }
.film-scene.is-active { opacity: 1; z-index: 1; }
.film-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.film-scene figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 36px 30px; background: linear-gradient(transparent, rgba(6, 12, 22, .88) 55%); }
.film-scene figcaption strong { display: block; font: 400 clamp(1.5rem, 3vw, 2.5rem)/1.1 var(--serif); color: #fff; }
.film-scene figcaption span { display: block; max-width: 52ch; margin-top: 8px; color: #c9d4e0; font-size: clamp(.86rem, 1.4vw, 1.02rem); }
.film-scene figcaption > * { opacity: 0; transform: translateY(10px); }
.film-scene.is-active figcaption > * { animation: film-caption .8s var(--ease) forwards; }
.film-scene.is-active figcaption strong { animation-delay: .5s; }
.film-scene.is-active figcaption span { animation-delay: .9s; }
@keyframes film-caption { to { opacity: 1; transform: none; } }

.film.is-paused .film-progress i, .film.is-paused figcaption > *,
.film.is-waiting .film-progress i, .film.is-waiting figcaption > * { animation-play-state: paused; }

/* Nothing plays until the visitor asks; this sits over the poster until then. */
.film-start { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: radial-gradient(ellipse at center, rgba(8, 17, 29, .45), rgba(8, 17, 29, .1) 70%); color: #fff; font-size: .95rem; font-weight: 500; cursor: pointer; }
.film-start svg { width: 88px; height: 88px; padding: 26px 24px 26px 30px; border-radius: 50%; background: var(--teal); fill: #06201b; box-shadow: 0 18px 50px rgba(8, 17, 29, .45); transition: transform .2s var(--ease), background .2s; }
.film-start span { text-shadow: 0 1px 12px rgba(8, 17, 29, .8); }
.film-start:hover svg { background: #7ad3c4; transform: scale(1.06); }
.film-start:active svg { transform: scale(.97); }
.film-start:focus-visible { outline-offset: -6px; }
.film.has-started .film-start { display: none; }
.film:not(.has-started) .film-scene figcaption { display: none; }
.film-end { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; background: rgba(8, 17, 29, .78); backdrop-filter: blur(4px); animation: slide-enter .6s var(--ease) both; }
.film-end h2 { max-width: 18ch; font-size: clamp(1.8rem, 3.6vw, 3rem); }
.film-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.film-controls { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.film-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.film-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.film-toggle .i-play, .film.is-paused .film-toggle .i-pause { display: none; }
.film.is-paused .film-toggle .i-play { display: block; }
.film-count { color: var(--faint); font-size: .82rem; font-variant-numeric: tabular-nums; }
.film-hint { margin-left: auto; color: var(--faint); font-size: .72rem; }
.film-toggle:hover { border-color: rgba(214, 226, 240, .45); color: var(--ink); }

@media (max-width: 900px) {
  .story-feature { width: 100%; margin-left: 0; transform: none; }
  .story-feature::before { inset-inline: 0; }
  .story-intro { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; margin-bottom: 30px; }
  .story-intro .eyebrow { grid-column: 1; margin-bottom: 18px; }
  .story-intro h2 { max-width: 14ch; }
  .story-intro > p { grid-column: 1; grid-row: auto; max-width: 48ch; margin: 20px 0 0; }
}
@media (max-width: 700px) {
  .story-intro h2 { font-size: clamp(2.7rem, 12vw, 3.8rem); }
  .film-frame { border-radius: 10px; }
  .film-scene figcaption { padding: 40px 16px 12px; }
  .film-scene figcaption span { display: none; }
  .film-hint { display: none; }
  .film-start svg { width: 68px; height: 68px; padding: 20px 18px 20px 23px; }
}
.film-mute { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.film-mute:hover { border-color: rgba(214, 226, 240, .45); }
.film-mute svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.film-mute path:first-child { fill: currentColor; }
.film-mute .i-off, .film-mute.is-muted .i-on { display: none; }
.film-mute.is-muted .i-off { display: block; }

@media (min-width: 901px) and (max-width: 1100px) {
  .story-feature { width: 100%; margin-left: 0; transform: none; }
  .story-intro { gap: 8px 52px; }
}

/* Plain text pages: privacy and 404 */
.doc { padding: 96px 0 120px; }
.doc-body { max-width: 68ch; }
.doc h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.04; margin-bottom: .4em; }
.doc h2 { font-size: 1.7rem; margin: 1.8em 0 .5em; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .6em; }
.doc a:not(.btn) { color: var(--accent-text); text-underline-offset: 4px; }
.doc-meta { font-size: .8rem; }
.doc-404 { min-height: calc(100dvh - 180px); display: flex; align-items: center; }

/* Insights: the blog list and posts (rendered by the API; they reuse .doc) */
.post-lede { max-width: 60ch; color: var(--ink) !important; font-size: 1.12rem; line-height: 1.7; }
.doc .post-list { list-style: none; margin: 40px 0 8px; padding: 0; display: grid; gap: 18px; }
.doc .post-list li { margin: 0; }
.post-card { display: block; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-900); text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: rgba(95, 196, 179, .5); transform: translateY(-2px); }
.post-card time { color: var(--faint); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.doc .post-card h2 { margin: 8px 0 8px; font-size: 1.55rem; line-height: 1.2; color: var(--ink); }
.doc .post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post h3 { margin: 1.6em 0 .4em; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-family: var(--sans); font-weight: 600; }
.post p { line-height: 1.75; }
.cite { margin-left: 2px; font-size: .68em; line-height: 0; }
.cite a { text-decoration: none; padding: 0 2px; }
.sources { padding-left: 1.4em; }
.sources li { margin-bottom: .5em; color: var(--ink); }
.sources li span { color: var(--faint); font-size: .8rem; margin-left: 6px; }
.post .btn { margin-right: 8px; margin-top: 8px; }
.draft-banner { padding: 10px 24px; background: #3a2d0a; color: #f5d98a; text-align: center; font-size: .85rem; border-bottom: 1px solid #6b5313; }
@media (max-width: 760px) { .post-card { padding: 20px 18px; } .doc .post-card h2 { font-size: 1.3rem; } }
.links > a[aria-current="page"]:not(.btn) { color: var(--teal); }
