/* ============================================================================
   DAOLYTICA — Premium Nuclear Technology Site
   Design system + sections + responsive
   ========================================================================== */

:root {
  /* Core palette — light / scientific */
  --bg:        #F7F9FC;   /* light base                       */
  --bg-2:      #FFFFFF;    /* surfaces / cards                 */
  --navy:      #EEF2F9;    /* subtle panel tint                */
  --blue:      #1B4DFF;    /* primary accent / CTA             */
  --blue-deep: #1233C9;
  --cyan:      #00B4D8;    /* secondary accent                 */
  --cyan-2:    #0FA9C9;
  --purple:    #7C3AED;    /* HEB                              */
  --purple-2:  #6D28D9;
  --thermal:   #F2660A;    /* SMR                              */
  --thermal-2: #E1480A;
  --white:     #0B1B2B;    /* primary text / ink (name kept)   */
  --muted:     #46566F;    /* secondary text (>=4.5:1 on light)*/
  --muted-2:   #5C6B82;    /* tertiary text                    */

  /* Glass — light translucent + soft elevation shadow */
  --glass:        rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(11, 27, 43, 0.10);
  --glass-hi:     rgba(11, 27, 43, 0.20);
  --shadow:       0 12px 34px -14px rgba(11, 27, 43, 0.18);
  --shadow-lg:    0 30px 60px -30px rgba(11, 27, 43, 0.22);

  /* Accent (re-themed per section by scroll.js) */
  --accent:      var(--blue);
  --accent-soft: rgba(27, 77, 255, 0.10);
  --accent-glow: rgba(27, 77, 255, 0.28);

  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-disp: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-disp); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
img, canvas, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--white); }

/* ------------------------------------------------------- background layers */
.bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(11, 27, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 43, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%);
}
.bg-tint {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(27, 77, 255, 0.10), transparent 70%),
    radial-gradient(50% 50% at 80% 90%, rgba(124, 58, 237, 0.07), transparent 70%);
  transition: background 0.8s var(--ease);
}
main, .nav { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__core { position: relative; width: 90px; height: 90px; }
.loader__ring, .loader__ring--2 {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--cyan);
  animation: spin 1.1s linear infinite;
}
.loader__ring--2 { inset: 16px; border-top-color: var(--blue); animation-duration: 1.6s; animation-direction: reverse; }
.loader__dot {
  position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 24px 6px var(--accent-glow);
  animation: pulse 1.4s ease-in-out infinite;
}
.loader__label { font-family: var(--font-disp); letter-spacing: 0.5em; font-size: 0.72rem; color: var(--muted); padding-left: 0.5em; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(0.7); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 54px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(247, 249, 252, 0.80);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--glass-border);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.nav__mark { color: var(--cyan); display: inline-flex; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.nav__mark svg { animation: orbit 24s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.nav__word { font-family: var(--font-disp); font-weight: 600; letter-spacing: 0.34em; font-size: 0.92rem; padding-left: 0.2em; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a { font-size: 0.86rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; transition: color 0.25s; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); transition: width 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--glass-border); border-radius: 100px; padding: 9px 20px !important;
  color: var(--white) !important; background: var(--accent-soft);
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { box-shadow: 0 0 22px -4px var(--accent-glow); border-color: var(--accent); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav__burger span:nth-child(1){ top: 2px; } .nav__burger span:nth-child(2){ top: 11px; } .nav__burger span:nth-child(3){ top: 20px; }
body.menu-open .nav__burger span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav__burger span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* ---------------------------------------------------------------- shared */
.eyebrow {
  font-family: var(--font-disp); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 22px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px 2px var(--accent-glow); }
.eyebrow .dot--purple { background: var(--purple); box-shadow: 0 0 12px 2px rgba(168,85,247,0.6); }
.eyebrow .dot--thermal { background: var(--thermal); box-shadow: 0 0 12px 2px rgba(255,122,24,0.6); }
.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 45%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge {
  font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.18em; font-weight: 600;
  padding: 4px 9px; border: 1px solid var(--glass-border); border-radius: 100px;
  color: var(--muted); margin-left: 10px; vertical-align: middle; white-space: nowrap;
}
.lead { font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-disp); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 28px; border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn--primary {
  color: #fff; background: linear-gradient(100deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -6px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.3); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--white); border-color: var(--glass-border); background: var(--glass); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 26px -8px var(--accent-glow); }

/* reveal animation (IntersectionObserver toggles .in) — only when JS is active */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px clamp(20px, 5vw, 40px) 72px; overflow: hidden;
}
.hero__waves { position: absolute; inset: 0; z-index: -1; opacity: 0.5; }
.hero__waves svg { width: 100%; height: 100%; }
.hero__waves .wave { fill: none; stroke: url(#waveGrad); stroke-width: 1.5; opacity: 0.6; }
.hero__waves .wave--1 { animation: drift 14s ease-in-out infinite; }
.hero__waves .wave--2 { animation: drift 18s ease-in-out infinite reverse; opacity: 0.4; }
.hero__waves .wave--3 { animation: drift 22s ease-in-out infinite; opacity: 0.3; }
@keyframes drift { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-18px) scaleY(1.12); } }

.hero__inner { max-width: 920px; }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 4.9rem); font-weight: 600; margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; margin: 0 auto 34px; font-weight: 300; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
.stat { padding: 14px 10px; border-top: 1px solid var(--glass-border); }
.stat__num { display: block; font-family: var(--font-disp); font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 600; color: var(--white); }
.stat__label { display: block; font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.06em; margin-top: 4px; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-disp); font-size: 0.64rem; letter-spacing: 0.34em; color: var(--muted-2);
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--accent-glow); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { top: -50%; } 100% { top: 120%; } }

/* ---------------------------------------------------------------- sections */
.platforms, .closing { padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 54px); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 22px; }
.section-head .lead { margin: 0 auto; }

.platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  position: relative; padding: 32px 30px 26px; border-radius: 20px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.45s var(--ease);
  min-height: 240px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pcard::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 60%);
}
.pcard:hover { transform: translateY(-8px); border-color: var(--glass-hi); box-shadow: 0 30px 60px -30px var(--accent-glow); }
.pcard:hover::before { opacity: 1; }
.pcard__tag { font-family: var(--font-disp); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.pcard h3 { font-size: 2.6rem; margin: 14px 0 12px; }
.pcard p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.pcard__go { font-family: var(--font-disp); font-size: 0.85rem; color: var(--white); margin-top: 18px; transition: letter-spacing 0.3s; }
.pcard:hover .pcard__go { letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- product sections */
.product { position: relative; padding: clamp(80px, 13vh, 150px) clamp(20px, 5vw, 54px); overflow: hidden; }
.product__grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: center;
}
.product__copy { max-width: 540px; }
.product h2 { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.92; margin-bottom: 8px;
  background: linear-gradient(180deg, var(--white) 35%, rgba(11,27,43,0.5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product__tagline { font-family: var(--font-disp); font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--accent); margin: 0 0 24px; font-weight: 500; }
.product__text { color: var(--muted); font-size: 1.05rem; margin: 0 0 30px; }
.product__text strong { color: var(--white); font-weight: 600; }

.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feature-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--glass-border); font-size: 0.92rem;
}
.feature-list li:last-child { border-bottom: 1px solid var(--glass-border); }
.feature-list span { color: var(--muted); }
.feature-list em { font-style: normal; font-family: var(--font-disp); color: var(--white); font-weight: 500; text-align: right; }

/* visual canvas frame */
.product__visual { perspective: 1400px; }
.canvas-wrap {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF, #EAF0FB);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
}
.canvas-wrap--lg { aspect-ratio: 1 / 1; }
.canvas-wrap:hover { box-shadow: 0 50px 110px -50px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.08); }
.vis-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reactor-mount { position: absolute; inset: 0; }
.reactor-mount svg { width: 100%; height: 100%; }

.vis-label {
  position: absolute; left: 18px; bottom: 16px; font-family: var(--font-disp);
  font-size: 0.64rem; letter-spacing: 0.26em; color: var(--muted-2);
  padding: 6px 11px; border: 1px solid var(--glass-border); border-radius: 100px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(6px); box-shadow: var(--shadow);
}

/* HUD overlays */
.hud {
  position: absolute; top: 16px; left: 16px; z-index: 3; min-width: 168px;
  padding: 14px 15px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-disp);
}
.hud--right { left: auto; right: 16px; }
.hud--reactor { top: auto; bottom: 16px; right: 16px; }
.hud__row { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 4px 0; }
.hud__row span { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--muted-2); }
.hud__row b { font-size: 0.86rem; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.hud__bar { margin-top: 10px; height: 4px; border-radius: 4px; background: rgba(11,27,43,0.08); overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px var(--accent-glow); }
.hud__bar--thermal i { background: linear-gradient(90deg, var(--thermal), var(--thermal-2)); box-shadow: 0 0 10px rgba(255,80,30,0.6); }

/* section accent glows behind visuals */
.product::after {
  content: ""; position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  border-radius: 50%; filter: blur(120px); opacity: 0.14; pointer-events: none;
}
.product--leb::after { right: -12vw; top: 20%; background: radial-gradient(circle, var(--cyan), transparent 65%); }
.product--heb::after { left: -12vw; top: 30%; background: radial-gradient(circle, var(--purple), transparent 65%); }
.product--smr::after { right: -12vw; bottom: 10%; background: radial-gradient(circle, var(--thermal), transparent 65%); opacity: 0.10; }
.product__grid { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- closing */
.closing { text-align: center; }
.closing__inner { max-width: 780px; margin: 0 auto; }
.closing__title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 8px 0 26px; }
.closing .lead { margin: 0 auto 40px; }
.closing__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(20px, 5vw, 54px) 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  border-top: 1px solid var(--glass-border); color: var(--muted);
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); letter-spacing: 0.28em; font-size: 0.82rem; color: var(--white); }
.footer__brand .nav__mark { color: var(--cyan); }
.footer__links { display: flex; gap: 26px; }
.footer__links a { font-size: 0.84rem; color: var(--muted); transition: color 0.25s; }
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: 0.78rem; color: var(--muted-2); width: 100%; text-align: center; margin: 8px 0 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .nav__links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; justify-content: center;
    height: 100vh; height: 100svh; gap: 30px; background: rgba(247,249,252,0.97); backdrop-filter: blur(20px);
    transform: translateY(-100%); transition: transform 0.5s var(--ease); }
  body.menu-open .nav__links { transform: translateY(0); }
  .nav__links a { font-size: 1.2rem; }
  .nav__burger { display: block; z-index: 60; }
  .product__grid, .product__grid--rev { grid-template-columns: 1fr; gap: 40px; }
  .product__grid--rev .product__visual { order: -1; }
  .product__copy { max-width: 600px; }
  .platform-cards { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-list em { font-size: 0.84rem; }
  .canvas-wrap--lg { aspect-ratio: 4 / 3; }
  .hud { min-width: 142px; padding: 11px 12px; }
  .badge { display: inline-block; margin: 8px 0 0; }
}

/* ---------------------------------------------------------------- reactor flow */
.flow     { stroke-dasharray: 4 8; animation: flow 1.1s linear infinite; }
.flow-rev { stroke-dasharray: 4 8; animation: flow 1.1s linear infinite reverse; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* ================================================================ ENHANCEMENTS
   pitch-deck sections, HUD polish, interactive hotspots, bento, flip, timeline
   ================================================================ */
:root { --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.hud__row b, .vis-label, .deck-rail__num, .tl__phase, .tl__status, .chip,
.hotspot__tip i, .flipcard__hint { font-family: var(--font-mono); }

/* cursor spotlight (mouse-tracked glow) */
[data-spotlight] { position: relative; }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 62%);
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }

/* HUD corner brackets on the big visuals */
.canvas-wrap::before, .canvas-wrap::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 3; pointer-events: none; opacity: 0.55;
  transition: opacity 0.4s, border-color 0.4s;
}
.canvas-wrap::before { top: 12px; left: 12px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.canvas-wrap::after { bottom: 12px; right: 12px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.canvas-wrap:hover::before, .canvas-wrap:hover::after { opacity: 1; }

/* ---------------- interactive hotspots ---------------- */
.hotspots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.hotspot__dot { display: block; width: 12px; height: 12px; margin: 5px; border-radius: 50%; position: relative; background: var(--cyan); box-shadow: 0 0 0 4px rgba(27,77,255,0.14), 0 2px 8px rgba(11,27,43,0.30); transition: background 0.25s, transform 0.25s; }
.hotspot:hover .hotspot__dot, .hotspot:focus-visible .hotspot__dot, .hotspot.is-open .hotspot__dot { background: var(--blue); transform: scale(1.15); }
.hotspot__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(27,77,255,0.5); animation: ping 2.6s ease-out infinite; }
.hotspot__dot--thermal { background: var(--thermal); box-shadow: 0 0 0 4px rgba(255,122,24,0.16), 0 0 12px rgba(255,100,40,0.6); }
.hotspot__dot--thermal::after { border-color: rgba(255,150,70,0.5); }
@keyframes ping { 0% { transform: scale(0.55); opacity: 0.9; } 100% { transform: scale(2.5); opacity: 0; } }
.hotspot:focus-visible { outline: none; }
.hotspot__tip {
  position: absolute; left: 50%; bottom: 150%; transform: translate(-50%, 8px); width: 212px; padding: 12px 13px; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-align: left; opacity: 0; visibility: hidden; pointer-events: none; z-index: 6;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); box-shadow: var(--shadow-lg);
}
.hotspot__tip b { display: block; font-family: var(--font-disp); font-size: 0.84rem; color: var(--white); margin-bottom: 5px; }
.hotspot__tip i { font-style: normal; font-size: 0.74rem; line-height: 1.55; color: var(--muted); }
.hotspot:hover .hotspot__tip, .hotspot:focus-visible .hotspot__tip, .hotspot.is-open .hotspot__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hotspot--below .hotspot__tip { bottom: auto; top: 150%; transform: translate(-50%, -8px); }
.hotspot--below:hover .hotspot__tip, .hotspot--below:focus-visible .hotspot__tip, .hotspot--below.is-open .hotspot__tip { transform: translate(-50%, 0); }
.hotspot--left .hotspot__tip { left: auto; right: 140%; bottom: auto; top: 50%; transform: translate(8px, -50%); }
.hotspot--left:hover .hotspot__tip, .hotspot--left:focus-visible .hotspot__tip, .hotspot--left.is-open .hotspot__tip { transform: translate(0, -50%); }
.hotspot--right .hotspot__tip { left: 140%; right: auto; bottom: auto; top: 50%; transform: translate(-8px, -50%); }
.hotspot--right:hover .hotspot__tip, .hotspot--right:focus-visible .hotspot__tip, .hotspot--right.is-open .hotspot__tip { transform: translate(0, -50%); }

/* ---------------- deck slide rail ---------------- */
.deck-rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 13px; }
.deck-rail a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: var(--muted-2); }
.deck-rail__num { font-size: 0.6rem; letter-spacing: 0.1em; opacity: 0.5; transition: opacity 0.3s, color 0.3s; }
.deck-rail__name { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.4s var(--ease), opacity 0.3s; }
.deck-rail a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted-2); flex: none; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.deck-rail a:hover .deck-rail__name, .deck-rail a.is-active .deck-rail__name { max-width: 100px; opacity: 1; }
.deck-rail a:hover .deck-rail__num, .deck-rail a.is-active .deck-rail__num { opacity: 1; color: var(--white); }
.deck-rail a.is-active::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* ---------------- deck section base ---------------- */
.deck { position: relative; padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 54px); max-width: var(--maxw); margin: 0 auto; }

/* ---------------- bento traction grid ---------------- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento {
  position: relative; overflow: hidden; padding: 24px; border-radius: 18px; min-height: 190px; display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.6s var(--ease);
}
.bento--wide { grid-column: span 2; }
.bento:hover { transform: translateY(-5px); border-color: var(--glass-hi); box-shadow: 0 28px 60px -34px var(--accent-glow); }
.bento__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bento__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.chip { font-size: 0.55rem; letter-spacing: 0.13em; color: var(--accent); padding: 4px 9px; border: 1px solid var(--glass-border); border-radius: 100px; background: var(--accent-soft); white-space: nowrap; }
.bento__num { font-family: var(--font-disp); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; line-height: 1; margin-top: auto;
  background: linear-gradient(180deg, var(--white), rgba(11,27,43,0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__num--text { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.bento__unit { font-size: 0.55em; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.bento__label { font-size: 0.92rem; color: var(--white); margin-top: 9px; font-weight: 500; }
.bento__detail { font-size: 0.81rem; color: var(--muted); line-height: 1.55; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.35s, margin 0.45s; }
.bento:hover .bento__detail, .bento.is-open .bento__detail { max-height: 160px; opacity: 1; margin-top: 12px; }

/* ---------------- markets flip cards ---------------- */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flipcard { perspective: 1300px; min-height: 240px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.flipcard__inner { position: relative; width: 100%; height: 100%; min-height: 240px; transform-style: preserve-3d; transition: transform 0.7s var(--ease); }
.flipcard:hover .flipcard__inner, .flipcard:focus-visible .flipcard__inner, .flipcard.is-flipped .flipcard__inner { transform: rotateY(180deg); }
.flipcard:focus-visible { outline: none; }
.flipcard__face { position: absolute; inset: 0; padding: 24px; border-radius: 18px; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.flipcard__front { align-items: flex-start; justify-content: flex-end; }
.flipcard__icon { margin-bottom: auto; }
.flipcard__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.flipcard__front h3 { font-size: 1.3rem; margin-bottom: 4px; }
.flipcard__front p { color: var(--muted); font-size: 0.84rem; margin: 0; }
.flipcard__hint { font-size: 0.6rem; letter-spacing: 0.12em; color: var(--accent); margin-top: 12px; }
.flipcard__back { transform: rotateY(180deg); justify-content: center; background: linear-gradient(160deg, #FFFFFF, #EAF0FB); }
.flipcard__back h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--white); }
.flipcard__back ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.flipcard__back li { position: relative; padding-left: 18px; font-size: 0.82rem; color: var(--muted); }
.flipcard__back li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ---------------- roadmap timeline ---------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); }
.tl { position: relative; overflow: hidden; padding: 30px 22px 24px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: transform 0.4s var(--ease), border-color 0.4s, opacity 0.6s var(--ease); }
.tl:hover { transform: translateY(-5px); border-color: var(--glass-hi); }
.tl__node { position: absolute; top: -7px; left: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.tl__phase { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--accent); }
.tl h3 { font-size: 1.2rem; margin: 10px 0 10px; }
.tl p { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.tl__status { display: inline-block; font-size: 0.56rem; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--glass-border); color: var(--muted-2); }
.tl__status--done { color: #0E9F6E; border-color: rgba(14,159,110,0.32); background: rgba(14,159,110,0.08); }
.tl__status--active { color: #0E7490; border-color: rgba(14,116,144,0.32); background: rgba(14,116,144,0.08); }

/* enhance existing platform cards: reveal a spec line on hover */
.pcard__go { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 940px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .flip-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 16px; }
  .timeline::before { display: none; }
  .tl__node { left: 22px; }
  .deck-rail { display: none; }
  /* hover-only reveals: keep open by default on touch where flips/details matter */
  .bento__detail { max-height: 160px; opacity: 0.85; margin-top: 12px; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento--wide { grid-column: span 1; }
  .flip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) { .deck-rail { display: none; } }

/* ---------------- compare (interactive before/after) ---------------- */
.compare { max-width: 980px; margin: 0 auto; }
.compare-stage { position: relative; height: 250px; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.cpanel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; }
.cpanel--conv { background: linear-gradient(180deg, #FFFFFF, #EEF2F9); }
.cpanel--cre { background: linear-gradient(180deg, #F2F7FF, #E7F0FF); clip-path: inset(0 0 0 var(--wipe, 54%)); }
.cpanel__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--muted-2); }
.cpanel__label--accent { color: var(--blue); }
.cpanel__note { font-size: 0.72rem; color: var(--muted); text-align: center; max-width: 240px; }
.cpanel__viz { display: flex; align-items: center; justify-content: center; }
.cpanel__viz--linac { width: min(78%, 540px); height: 26px; border-radius: 6px; border: 1px solid var(--glass-border);
  background: repeating-linear-gradient(90deg, rgba(11,27,43,0.16) 0 9px, transparent 9px 20px), linear-gradient(90deg, rgba(27,77,255,0.16), rgba(27,77,255,0.08)); }
.cpanel__viz--ring { position: relative; height: 124px; width: 124px; border-radius: 50%; border: 3px solid var(--blue); box-shadow: inset 0 0 0 8px rgba(27,77,255,0.07); }
.cpanel__orbit { position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,216,0.20); transform-origin: 5px 67px; animation: orbitDot 3.2s linear infinite; }
@keyframes orbitDot { to { transform: rotate(360deg); } }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--wipe, 54%); width: 2px; margin-left: -1px; background: var(--blue); cursor: ew-resize; z-index: 3; }
.compare-handle__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--glass-border); box-shadow: var(--shadow); display: grid; place-items: center; }
.compare-handle__grip::before { content: "‹›"; font-family: var(--font-disp); font-size: 0.95rem; color: var(--blue); letter-spacing: 1px; }
.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible .compare-handle__grip { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.compare-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.cmetric { padding: 20px 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.cmetric__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cmetric__head span { color: var(--muted); font-size: 0.9rem; }
.cmetric__head b { font-family: var(--font-disp); color: var(--blue); }
.cmetric__track { display: block; margin: 9px 0; }
.cmetric__track > span { display: block; font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 4px; }
.cmetric__fill { display: block; height: 10px; border-radius: 6px; width: 0; transition: width 1s var(--ease); }
.cmetric.in .cmetric__fill { width: var(--w); }
.cmetric__fill--conv { background: rgba(11,27,43,0.16); }
.cmetric__fill--cre { background: linear-gradient(90deg, var(--cyan), var(--blue)); }

/* ---------------- opportunity: ask / team ---------------- */
.ask { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 24px; }
.ask__card, .ask__team { padding: 26px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.ask__amount { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 8px 0 16px; }
.team { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.member { display: flex; align-items: center; gap: 12px; }
.member__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--blue); font-family: var(--font-mono); font-size: 0.78rem; flex: none; border: 1px solid var(--glass-border); }
.member b { display: block; font-size: 0.92rem; }
.member i { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.ask__teamnote { font-size: 0.74rem; color: var(--muted-2); margin: 16px 0 0; }
.ph { color: var(--muted-2) !important; font-style: italic; }

/* ---------------- HEB mode toggle ---------------- */
.modetoggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; background: var(--navy); border: 1px solid var(--glass-border); margin: 0 0 22px; }
.modetoggle button { font-family: var(--font-disp); font-size: 0.8rem; font-weight: 500; padding: 8px 16px; border-radius: 100px; border: 0; background: none; color: var(--muted); cursor: pointer; transition: background 0.3s, color 0.3s; }
.modetoggle button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.modepanel { display: none; }
#heb[data-mode="fast"] .modepanel--fast { display: block; }
#heb[data-mode="bnct"] .modepanel--bnct { display: block; }

@media (max-width: 820px) {
  .compare-metrics { grid-template-columns: 1fr; }
  .ask { grid-template-columns: 1fr; }
}

/* ---------------- present-mode button + skip link ---------------- */
.present-btn { position: fixed; left: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--muted); font-family: var(--font-disp); font-size: 0.74rem; cursor: pointer; transition: color 0.25s, box-shadow 0.25s; }
.present-btn:hover, .present-btn.is-on { color: var(--blue); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.present-btn svg { stroke: currentColor; }
@media (max-width: 1100px) { .present-btn { display: none; } }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-family: var(--font-disp); font-size: 0.85rem; transition: top 0.25s var(--ease); }
.skip-link:focus { top: 16px; outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------------- brand motto (DAO — De l'Amorce à l'Observation) ---------------- */
.brand-dao { color: var(--blue); }
.hero__motto { font-family: var(--font-disp); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); margin: -12px 0 30px; }
.hero__motto b { font-weight: 600; font-style: normal; color: var(--blue); letter-spacing: 0.22em; }
.hero__motto i { font-style: italic; color: var(--muted-2); }
.footer__motto { width: 100%; text-align: center; font-size: 0.78rem; color: var(--muted-2); margin: 6px 0 0; }
.footer__motto i { font-style: italic; }
.footer__motto .brand-dao { font-family: var(--font-disp); letter-spacing: 0.18em; }

/* ---------------------------------------------------------------- print / PDF deck */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bg-canvas, .bg-grid, .bg-tint, .deck-rail, .present-btn, .skip-link, .scroll-cue,
  .hero__waves, #loader, .nav, .hotspots, .hud__bar, .compare-handle, .modetoggle { display: none !important; }
  body { background: #fff; color: #0B1B2B; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  main > section { break-after: page; page-break-after: always; break-inside: avoid; page-break-inside: avoid;
    min-height: auto !important; padding-top: 28px !important; padding-bottom: 28px !important; }
  .footer, .closing { break-after: auto; page-break-after: auto; }
  .canvas-wrap, .hud, .vis-label, .bento, .pcard, .flipcard__face, .tl, .cmetric, .ask__card, .ask__team { box-shadow: none !important; }
  .flipcard__inner { transform: none !important; }
  .flipcard__back { display: none !important; }
  .bento__detail { max-height: none !important; opacity: 1 !important; margin-top: 12px !important; }
  .modepanel { display: block !important; }
  a { color: #1B4DFF; }
}

/* ---------------- product film button + lightbox ---------------- */
.film-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 13px 22px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-disp); font-size: 0.92rem; font-weight: 500; color: #fff; border: 1px solid transparent;
  background: linear-gradient(100deg, var(--cyan), var(--blue)); box-shadow: 0 10px 30px -10px var(--accent-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.film-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--accent-glow); }
.film-btn svg { flex: none; }

.film-modal {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.film-modal.is-open { opacity: 1; visibility: visible; }
.film-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 16, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: zoom-out; }
.film-modal__inner {
  position: relative; width: min(1180px, 100%); margin: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #04060d; border: 1px solid var(--glass-border); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.7);
  transform: scale(0.96); transition: transform 0.35s var(--ease);
}
.film-modal.is-open .film-modal__inner { transform: scale(1); }
.film-modal__video { width: 100%; height: 100%; display: block; background: #000; }
.film-modal__close {
  position: absolute; top: 0; right: 0; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-bottom-left-radius: 14px; background: rgba(8, 14, 28, 0.7); color: #fff; cursor: pointer; transition: background 0.25s;
}
.film-modal__close:hover { background: var(--blue); }

/* ---------------- inline film scenes (scroll-through) ---------------- */
.film-scene {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 6vh, 70px) clamp(16px, 4vw, 54px); background: #05070E;
}
.film-scene__frame {
  position: relative; width: min(1240px, 100%); aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  cursor: zoom-in; background: #04060d; border: 1px solid rgba(120, 170, 255, 0.16);
  box-shadow: 0 60px 140px -60px rgba(0, 0, 0, 0.85); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.film-scene__frame:hover { transform: translateY(-4px); box-shadow: 0 70px 160px -60px rgba(46, 107, 255, 0.35); }
.film-scene__frame:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.film-scene__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-scene__tag {
  position: absolute; left: 18px; top: 16px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: #dceaff; background: rgba(4, 8, 16, 0.5); border: 1px solid rgba(120, 170, 255, 0.3); padding: 7px 13px; border-radius: 100px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.film-scene__hint {
  position: absolute; right: 16px; bottom: 16px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  color: #cfe0ff; background: rgba(4, 8, 16, 0.45); border: 1px solid rgba(120, 170, 255, 0.25); padding: 7px 12px; border-radius: 100px;
  opacity: 0; transition: opacity 0.3s;
}
.film-scene__frame:hover .film-scene__hint { opacity: 1; }
.film-scene__cue {
  position: absolute; left: 50%; bottom: 16px; width: 18px; height: 18px; margin-left: -9px;
  border-right: 2px solid rgba(220, 235, 255, 0.55); border-bottom: 2px solid rgba(220, 235, 255, 0.55);
  transform: rotate(45deg); animation: filmcue 1.9s ease-in-out infinite;
}
@keyframes filmcue { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.35; } 50% { transform: rotate(45deg) translate(4px, 4px); opacity: 0.95; } }
@media (max-width: 620px) { .film-scene { min-height: auto; } .film-scene__hint { opacity: 1; } }

/* ---------------------------------------------------------------- a11y / motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero__waves, .scroll-cue__line::after { display: none; }
}
