/* ============================================================
   COINIS TOWN HALL 2026 — design system
   Palette: coinis.com/media-kit
   Product marks: openkey.ai/brand, openclips.ai/brand
   ============================================================ */

:root {
  /* --- Coinis brand (media kit) --- */
  --navy:        #21294A;
  --orange:      #C2452D;
  --gold:        #D4763A;
  --brown:       #3D2E1F;
  --warm-white:  #FDFAF5;
  --goldenrod:   #B8860B;
  --spark:       #F9AE3B;   /* the gold star in the Coinis mark */

  /* --- derived surfaces --- */
  --navy-deep:   #12172C;
  --navy-mid:    #1A2140;
  --navy-lift:   #2A3358;
  --navy-line:   rgba(255, 255, 255, .10);
  --navy-line-2: rgba(255, 255, 255, .055);

  --cream-deep:  #F4EDE2;
  --cream-line:  rgba(33, 41, 74, .14);
  --cream-line-2:rgba(33, 41, 74, .07);

  /* --- product brands --- */
  --clips-1:     #7C5CFF;
  --clips-2:     #4C2FD6;
  --clips-gold:  #F5B942;
  --key-terra:   #d04841;
  --key-ink:     #181717;

  /* --- status (slide 04 meters) --- */
  --bad:         var(--spark);
  --good:        #3FBE86;
  --other:       #FFD98A;

  /* --- text --- */
  --on-dark:        #FFFFFF;
  --on-dark-soft:   rgba(255, 255, 255, .74);
  --on-dark-faint:  rgba(255, 255, 255, .48);
  --on-light:       #21294A;
  --on-light-soft:  rgba(33, 41, 74, .70);
  --on-light-faint: rgba(33, 41, 74, .46);

  /* --- layout --- */
  --pad-x: 132px;
  --pad-y: 92px;

  /* --- motion --- */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --dur:       1000ms;
  --dur-fast:  620ms;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #0B0F1E;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: none;
}

/* ============================================================
   STAGE
   ============================================================ */

#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  flex: none;
  /* fit() scales from the top-left and centres with an explicit translate.
     A centre origin offsets the slide by the letterbox amount, because the
     1920x1080 layout box overflows #viewport and is laid out at 0,0. */
  transform-origin: 0 0;
}

.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02) translateY(22px);
  transition:
    opacity var(--dur-fast) var(--ease-soft),
    transform var(--dur) var(--ease),
    visibility 0s linear var(--dur-fast);
}
/* Promote only the slides actually moving. Promoting all 30 pinned a
   compositor layer per slide — including the 29 that are hidden — which is
   what exhausted memory on mobile Safari. */
.slide.is-active, .slide.is-leaving { will-change: opacity, transform; }

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s, 0s, 0s;
  z-index: 2;
}

.slide.is-leaving {
  opacity: 0;
  transform: scale(.975) translateY(-18px);
  z-index: 1;
}

/* Slide inner content frame */
.pad {
  position: absolute;
  inset: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical optical balance by default */
  z-index: 3;
}

/* ============================================================
   THEMES + ATMOSPHERE
   ============================================================ */

.slide { color: var(--on-dark); background: var(--navy-deep); }

.sfx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* The decorative stack is the most expensive thing in the deck: a blurred
   base, three blur(90px) auroras, a masked mesh, and a blended noise layer.
   Keeping 30 copies of it alive is what exhausts GPU memory on mobile
   Safari, so only the slides actually on screen get one. */
.slide:not(.is-active):not(.is-leaving) .sfx { display: none; }

/* Stronger still: tell the browser not to render an off-screen slide's
   subtree at all. 28 of the 30 slides then cost nothing to keep in the DOM. */
.slide:not(.is-active):not(.is-leaving) { content-visibility: hidden; }

.sfx .base {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 78% 8%,  rgba(42, 51, 88, .95) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(158deg, #1B2340 0%, var(--navy) 42%, #151B33 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.a1 { width: 1180px; height: 900px; left: -220px;  top: -300px;  background: radial-gradient(circle, rgba(194,69,45,.42) 0%, rgba(194,69,45,0) 68%); }
.a2 { width: 1040px; height: 1040px; right: -260px; top: -220px; background: radial-gradient(circle, rgba(212,118,58,.30) 0%, rgba(212,118,58,0) 66%); }
.a3 { width: 1360px; height: 760px;  left: 24%;  bottom: -420px;  background: radial-gradient(circle, rgba(124,92,255,.24) 0%, rgba(124,92,255,0) 70%); }
/* 90 blurred blobs drifting at once is what killed the tab. Only the slide on
   screen animates; the other 29 stay static paint. */
.slide.is-active .a1, .slide.is-leaving .a1 { animation: drift1 34s ease-in-out infinite alternate; will-change: transform; }
.slide.is-active .a2, .slide.is-leaving .a2 { animation: drift2 43s ease-in-out infinite alternate; will-change: transform; }
.slide.is-active .a3, .slide.is-leaving .a3 { animation: drift3 52s ease-in-out infinite alternate; will-change: transform; }

@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); }      to { transform: translate3d(120px, 70px, 0) scale(1.14); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.06); }   to { transform: translate3d(-130px, 110px, 0) scale(.94); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(1); }      to { transform: translate3d(160px, -80px, 0) scale(1.12); } }

.sfx .mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--navy-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line-2) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 20%, transparent 78%);
  opacity: .55;
}

.sfx .grain {
  position: absolute; inset: -50%;
  opacity: .28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.sfx .vig {
  position: absolute; inset: 0;
  background: radial-gradient(120% 108% at 50% 42%, rgba(0,0,0,0) 46%, rgba(6,9,20,.62) 100%);
}

/* --- theme: clips (violet atmosphere) --- */
.t-clips { --wire: #8468FF; --hub-1: #6B4BF5; --hub-2: #4526C4; }
.t-clips .sfx .base { background: radial-gradient(120% 100% at 76% 6%, rgba(60,48,110,.92) 0%, rgba(0,0,0,0) 62%), linear-gradient(158deg, #211D46 0%, #1C1F3E 46%, #131630 100%); }
.t-clips .a1 { background: radial-gradient(circle, rgba(124,92,255,.42) 0%, rgba(124,92,255,0) 68%); }
.t-clips .a2 { background: radial-gradient(circle, rgba(245,185,66,.20) 0%, rgba(245,185,66,0) 66%); }
.t-clips .a3 { background: radial-gradient(circle, rgba(76,47,214,.34) 0%, rgba(76,47,214,0) 70%); }

/* --- theme: key (terracotta atmosphere) --- */
.t-key { --wire: #E0605A; --hub-1: #D9524B; --hub-2: #A93330; }
.t-key .sfx .base { background: radial-gradient(120% 100% at 74% 6%, rgba(74,44,48,.9) 0%, rgba(0,0,0,0) 60%), linear-gradient(158deg, #241C2C 0%, #1E2038 46%, #14172B 100%); }
.t-key .a1 { background: radial-gradient(circle, rgba(208,72,65,.44) 0%, rgba(208,72,65,0) 68%); }
.t-key .a2 { background: radial-gradient(circle, rgba(212,118,58,.28) 0%, rgba(212,118,58,0) 66%); }
.t-key .a3 { background: radial-gradient(circle, rgba(184,134,11,.20) 0%, rgba(184,134,11,0) 70%); }

/* --- theme: light (chapter breaks) --- */
.t-light { color: var(--on-light); background: var(--warm-white); }
.t-light .sfx .base { background: linear-gradient(152deg, #FFFDF9 0%, var(--warm-white) 44%, var(--cream-deep) 100%); }
.t-light .a1 { background: radial-gradient(circle, rgba(194,69,45,.16) 0%, rgba(194,69,45,0) 68%); opacity: .8; }
.t-light .a2 { background: radial-gradient(circle, rgba(212,118,58,.16) 0%, rgba(212,118,58,0) 66%); opacity: .8; }
.t-light .a3 { background: radial-gradient(circle, rgba(33,41,74,.10) 0%, rgba(33,41,74,0) 70%); opacity: .8; }
.t-light .sfx .mesh { background-image: linear-gradient(var(--cream-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--cream-line-2) 1px, transparent 1px); opacity: .9; }
.t-light .sfx .grain { opacity: .5; mix-blend-mode: multiply; }
.t-light .sfx .vig { background: radial-gradient(120% 108% at 50% 42%, rgba(0,0,0,0) 52%, rgba(61,46,31,.10) 100%); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--spark);
}
.eyebrow::before { content: ""; width: 44px; height: 2px; background: currentColor; opacity: .85; }
.t-light .eyebrow { color: var(--orange); }

h1.display {
  font-size: 104px; font-weight: 700; line-height: .98; letter-spacing: -.035em;
}
h2.title {
  font-size: 76px; font-weight: 700; line-height: 1.03; letter-spacing: -.03em;
}
h3.sub {
  font-size: 42px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em;
}
.lead {
  font-size: 34px; font-weight: 400; line-height: 1.42; letter-spacing: -.012em;
  color: var(--on-dark-soft);
}
.t-light .lead { color: var(--on-light-soft); }
.body {
  font-size: 25px; font-weight: 400; line-height: 1.5; letter-spacing: -.006em;
  color: var(--on-dark-soft);
}
.t-light .body { color: var(--on-light-soft); }
.cap {
  font-size: 19px; font-weight: 500; line-height: 1.45; color: var(--on-dark-faint);
}
.t-light .cap { color: var(--on-light-faint); }

.accent { color: var(--spark); }
.t-light .accent { color: var(--orange); }
em.accent { font-style: italic; }

.rule { height: 2px; background: var(--navy-line); border: 0; }
.t-light .rule { background: var(--cream-line); }

/* numerals: tabular + tight */
.stat { font-variant-numeric: tabular-nums; letter-spacing: -.05em; font-weight: 700; }

/* ============================================================
   MOTION PRIMITIVES
   ============================================================ */

[data-r] {
  opacity: 0;
  transition:
    opacity 820ms var(--ease-soft) var(--d, 0ms),
    transform var(--dur) var(--ease) var(--d, 0ms),
    filter 820ms var(--ease-soft) var(--d, 0ms),
    clip-path var(--dur) var(--ease) var(--d, 0ms);
}
.slide.is-active [data-r], .slide.is-leaving [data-r] { will-change: opacity, transform; }
[data-r="up"]    { transform: translateY(38px); filter: blur(7px); }
[data-r="fade"]  { filter: blur(6px); }
[data-r="left"]  { transform: translateX(-34px); filter: blur(6px); }
[data-r="right"] { transform: translateX(34px);  filter: blur(6px); }
[data-r="card"]  { transform: translateY(52px) scale(.965); filter: blur(8px); }
[data-r="pop"]   { transform: translateY(20px) scale(.9);   filter: blur(8px); }
[data-r="clip"]  { clip-path: inset(0 100% 0 0); transform: translateY(14px); }
[data-r="line"]  { transform: scaleX(0); transform-origin: left center; }
[data-r="lineY"] { transform: scaleY(0); transform-origin: top center; }

.slide.is-in [data-r] {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

/* Connectors draw themselves in on the same --d beat as the blocks they
   join, so a diagram wires itself together in the order it is explained.
   Geometry lives with the layouts in slides.css. */
.slide.is-in .wire .trace { stroke-dashoffset: 0; }
.slide.is-in .wire .head  { opacity: 1; }
.slide.is-in .wire .flow  {
  opacity: .95;
  animation-name: flow; animation-duration: 2.8s;
  animation-timing-function: linear; animation-iteration-count: infinite;
  animation-delay: var(--d, 0ms);
}
.slide.is-in .wire .flow.rev { animation-name: flowRev; }
@keyframes flow    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flowRev { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1; } }

/* looping accents, only while the slide is on screen */
.slide.is-in .pulse { animation: pulse 3.4s var(--ease-soft) infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.35); } }

.slide.is-in .sheen::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.13) 47%, transparent 60%);
  background-size: 280% 100%;
  animation: sheen 5.4s var(--ease-soft) 1.2s infinite;
}
@keyframes sheen { 0% { background-position: 180% 0; } 55%, 100% { background-position: -80% 0; } }

/* ============================================================
   PERSISTENT CHROME
   ============================================================ */

.wordmark { position: absolute; top: 64px; right: var(--pad-x); z-index: 6; }
.wordmark svg { display: block; height: 34px; width: auto; }

.footline {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 52px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.30); z-index: 6;
}
.t-light .footline { color: rgba(33,41,74,.34); }
.footline .n { color: var(--spark); }
.t-light .footline .n { color: var(--orange); }

/* progress */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: rgba(255,255,255,.07); }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--gold) 55%, var(--spark)); transition: width 620ms var(--ease); }

/* presenter bar */
#chrome {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120%);
  display: flex; align-items: center; gap: 10px; z-index: 50;
  padding: 9px 12px; border-radius: 999px;
  background: rgba(12, 16, 32, .72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transition: transform 420ms var(--ease), opacity 300ms ease;
  opacity: 0;
}
#chrome.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#chrome .meta { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.55); padding: 0 12px 0 8px; text-transform: uppercase; white-space: nowrap; }
#chrome .meta b { color: #fff; }
#chrome button {
  width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.09); color: #fff; font: 600 15px/1 var(--font);
  display: grid; place-items: center; transition: background 180ms ease, transform 180ms var(--ease);
}
#chrome button:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* notes */
#notes {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: 60;
  background: rgba(10, 14, 28, .93); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,.10);
  transform: translateX(100%); transition: transform 460ms var(--ease);
  display: flex; flex-direction: column; color: #fff;
}
#notes.open { transform: none; }
#notes .head { padding: 26px 28px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
#notes .k { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--spark); }
#notes .t { font-size: 22px; font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
#notes .timer { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
#notes .clock { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#notes .timer button { margin-left: auto; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
#notes .timer button + button { margin-left: 8px; }
#notes .goal { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
#notes .body { flex: 1; overflow-y: auto; padding: 24px 28px; }
#notes .body p { font-size: 16px; line-height: 1.62; color: rgba(255,255,255,.82); margin-bottom: 16px; }
#notes .body p.hint { font-size: 14px; color: var(--spark); border-left: 2px solid var(--spark); padding-left: 12px; }
#notes .next { padding: 16px 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.5); }
#notes .close { position: absolute; top: 22px; right: 24px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-size: 16px; }

/* narrow screens: the panel is the whole width, so tighten it up */
@media (max-width: 560px) {
  #notes { border-left: 0; }
  #notes .head, #notes .timer, #notes .body, #notes .next { padding-left: 18px; padding-right: 18px; }
  #notes .head { padding-right: 62px; }          /* clear of the close button */
  #notes .t { font-size: 19px; }
  #notes .timer { flex-wrap: wrap; row-gap: 10px; }
  #notes .goal { order: 3; flex: 1 0 100%; }
  #notes .clock { font-size: 28px; }
  #notes .close { top: 16px; right: 16px; }
  #notes .body p { font-size: 15px; }
}

/* Phones and small tablets: strip the effects that cost the most GPU memory
   and are least visible at this size. */
@media (max-width: 900px) {
  /* mix-blend-mode forces the element AND its backdrop into their own
     buffers, and this one is a procedural feTurbulence tiled over 4x the
     slide area. Invisible at .28 opacity on a phone; very expensive. */
  .sfx .grain { display: none; }
  /* a 90px blur allocates a buffer far larger than the element itself */
  .aurora { filter: blur(46px); }
  /* backdrop-filter is a second full-screen buffer, permanently resident */
  #chrome { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 16, 32, .94); }
  #notes  { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0A0E1C; }
  #help   { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 11, 22, .94); }
}

/* overview */
/* justify-items stays `center` from the base rule otherwise, which sizes #stage
   to its content — and its content is `width: 100%` slides, so the grid
   collapses to nothing. Stretch it to the viewport instead. */
body.overview #viewport { overflow: auto; place-items: start stretch; padding: 48px; }
body.overview #stage { position: static; width: auto; height: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; transform: none !important; max-width: 1720px; }
body.overview .slide {
  position: relative; inset: auto; width: 100%; aspect-ratio: 16/9;
  opacity: 1; visibility: visible; transform: none; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  transition: transform 260ms var(--ease), border-color 260ms ease;
}
body.overview .slide > * { zoom: .215; }
body.overview .slide:hover { transform: translateY(-6px); border-color: var(--spark); }
body.overview .slide [data-r] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
body.overview .wire .trace { stroke-dashoffset: 0 !important; }
body.overview .wire .head { opacity: 1 !important; }
body.overview .wire .flow { opacity: 0 !important; }
body.overview .slide .sfx { display: block !important; }   /* out-specifies the :not() rule above */
body.overview .slide { content-visibility: visible !important; }
body.overview #stage { zoom: 1 !important; }
body.overview .slide.is-current { outline: 2px solid var(--spark); outline-offset: 2px; }
body.overview #chrome, body.overview #progress { display: none; }

/* help */
#help { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(8,11,22,.8); backdrop-filter: blur(10px); }
#help.hidden { display: none; }
#help .card { background: #171D36; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 34px 40px; color: #fff; max-width: 520px; }
#help h3 { font-size: 20px; margin-bottom: 18px; letter-spacing: -.01em; }
#help p { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); }
#help b { color: var(--spark); font-weight: 700; }

/* ============================================================
   PRINT / PDF EXPORT — one slide per page
   ============================================================ */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { overflow: visible; background: #fff; height: auto; }
  #viewport { position: static; display: block; overflow: visible; }
  #stage { position: static; width: 1920px; height: auto; transform: none !important; }
  .slide {
    position: relative; inset: auto; width: 1920px; height: 1080px;
    opacity: 1 !important; visibility: visible !important; transform: none !important;
    page-break-after: always; break-after: page;
  }
  .slide [data-r] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .wire .trace { stroke-dashoffset: 0 !important; }
  /* The 8/10 arc needs two things print does not give it. Its length is a
     transition on stroke-dashoffset rather than a [data-r] reveal, so settle
     it; and Chromium's PDF export drops the SVG gradient paint server, so
     stroke it in the gradient's mid colour instead of leaving a bare track. */
  .s-score .ring .val { stroke-dashoffset: 264 !important; stroke: var(--gold) !important; }
  .wire .head { opacity: 1 !important; }
  .wire .flow { opacity: 0 !important; }
  .slide .sfx { display: block !important; }   /* every page is "inactive" when printing */
  .slide { content-visibility: visible !important; }
  #stage { zoom: 1 !important; }   /* beats the inline mobile zoom */
  .aurora { animation: none !important; }
  .sfx .grain { display: none !important; }   /* keeps the exported PDF small */
  .no-print { display: none !important; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .slide, [data-r], #progress-bar, #notes, #chrome,
  .wire .trace, .wire .head { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .aurora { animation: none !important; }
  .slide.is-in .pulse, .slide.is-in .sheen::after { animation: none !important; }
  [data-r] { filter: none !important; }
  /* the travelling dash is decoration; the drawn line and arrowhead
     already carry the direction, so drop the loop entirely */
  .slide.is-in .wire .flow { animation: none !important; opacity: 0 !important; }
}
