/* =============================================================
   CYBER सुरक्षा — Cyber Safety & Awareness (NCERT)
   Design system: dark security-operations terminal.
   Phosphor-green console on near-black, pixel-arcade headings,
   IBM Plex Mono chrome, HUD brackets + scanlines, and a
   red / amber / green threat-severity language woven through
   the content (scam = red, caution = amber, safe = green).
   A tricolour hairline + Devanagari accents keep the Indian roots.
   Built to share DNA with the CTI deck — never to copy it.
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Console palette */
  --bg:          #070b10;   /* near-black terminal */
  --bg-2:        #0a1017;   /* body backdrop */
  --panel:       #0e1620;   /* card surface */
  --panel-2:     #121d2a;   /* raised surface */
  --stage:       #03060a;   /* letterbox behind slides */
  --line:        #1d2b3b;   /* hairline */
  --line-2:      #2b4055;   /* brighter hairline */

  --ink:         #c7d4e1;   /* body text */
  --ink-dim:     #74879b;   /* muted */
  --ink-bright:  #eef5fb;   /* headline white */

  /* Signal colours (threat-severity language) */
  --green:       #3df0a3;   /* phosphor — SAFE / primary accent */
  --green-deep:  #14c47e;
  --green-glow:  rgba(61,240,163,.35);
  --cyan:        #46cfe6;   /* info / secondary */
  --amber:       #ffc24b;   /* CAUTION */
  --red:         #ff5069;   /* DANGER / scam */
  --red-glow:    rgba(255,80,105,.30);

  /* Tiranga — kept for Indian identity, brightened for dark bg */
  --saffron:     #ff9d3c;
  --tw:          #eef2f7;   /* tiranga white */
  --tg:          #24c06a;   /* tiranga green (bright) */

  /* Type */
  --pixel:  "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;   /* display: hero, titles, numbers, markers */
  --mono:   "IBM Plex Mono", "SFMono-Regular", monospace;  /* terminal chrome */
  --body:   "IBM Plex Sans", system-ui, sans-serif;        /* readable body & headlines */
  --deva:   "Tiro Devanagari Hindi", serif;                /* Hindi bilingual */

  /* Fluid scale */
  --fs-hero:  clamp(3.6rem, 9vw, 8rem);
  --fs-h1:    clamp(2.3rem, 4.9vw, 4.3rem);
  --fs-stat:  clamp(2.9rem, 6.2vw, 5.2rem);
  --fs-body:  clamp(1.12rem, 1.45vw, 1.4rem);
  --fs-small: clamp(.92rem, 1.08vw, 1.1rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Light theme (toggle with T) ---------- */
body.theme-light {
  --bg:          #eef2ee;
  --bg-2:        #e6ebe6;
  --panel:       #ffffff;
  --panel-2:     #eef2ef;
  --stage:       #d5dbd5;
  --line:        #cdd7d0;
  --line-2:      #a9b8ae;
  --ink:         #17201a;
  --ink-dim:     #4f5d53;
  --ink-bright:  #080d0a;
  --green:       #07a15e;
  --green-deep:  #06703f;
  --green-glow:  rgba(7,161,94,.22);
  --cyan:        #0b8598;
  --amber:       #b06f07;
  --red:         #d0263c;
  --red-glow:    rgba(208,38,60,.18);
  --tw:          #c7d1c9;
  --tg:          #138808;
}
/* theme toast */
.theme-toast { position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 90; pointer-events: none; font-family: var(--mono); font-size: .84rem; letter-spacing: .18em;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); padding: .5rem 1.1rem;
  border-radius: 3px; opacity: 0; transition: opacity .3s, transform .3s; }
.theme-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.theme-toast b { color: var(--green); font-weight: 600; }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--stage);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
img, svg { display: block; max-width: 100%; }

/* ---------- 3. Reveal.js slide scaffold ---------- */
.reveal { font-family: var(--body); color: var(--ink); }
.reveal .slides { text-align: left; }

.reveal .slides > section.slide,
.reveal .slides > section.slide.present {
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  width: 1280px !important; height: 720px !important;
  top: 0 !important;
  padding: clamp(1.4rem, 3vw, 2.9rem) clamp(2rem, 4.4vw, 4.6rem);
  overflow: hidden;
  box-sizing: border-box;
}
.reveal .slides > section.slide {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(61,240,163,.06), transparent 60%),
    radial-gradient(900px 600px at -5% 110%, rgba(70,207,230,.05), transparent 55%),
    var(--bg);
  color: var(--ink);
}

.reveal .slides section { font-size: inherit; line-height: 1.5; }
.reveal h1, .reveal h2, .reveal h3 { text-transform: none; text-shadow: none; margin: 0; }
.reveal p, .reveal ol, .reveal ul, .reveal li { margin: 0; line-height: inherit; }
.reveal .slides section img { border: 0; box-shadow: none; }

/* progress bar — phosphor with a tricolour tail */
.reveal .progress { height: 3px; color: var(--green); background: rgba(29,43,59,.7); }
.reveal .progress span { background: linear-gradient(to right, var(--green), var(--cyan)) !important; }

/* faint blueprint grid + node dots behind content slides */
.reveal .slides > section.slide:not(.divider):not(.title-slide):not(.closing)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(rgba(61,240,163,.10) 1px, transparent 1.6px),
    repeating-linear-gradient(0deg,  transparent 0 43px, rgba(70,207,230,.035) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(70,207,230,.035) 43px 44px);
  background-size: 44px 44px, auto, auto;
  background-position: 22px 22px, 0 0, 0 0;
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%);
}
.reveal .slides > section.slide > * { position: relative; z-index: 1; }

/* ---------- 4. Terminal header / footer ---------- */
.slide__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  position: relative; padding-bottom: .9rem;
  font-family: var(--mono); font-size: var(--fs-small);
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim);
}
.slide__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 2px;
  background: linear-gradient(to right,
    var(--saffron) 0 33.333%, var(--tw) 33.333% 66.667%, var(--tg) 66.667% 100%);
  box-shadow: inset 0 0 0 1px rgba(120,120,120,.16);
  opacity: 1;
}
.masthead { font-family: var(--mono); font-weight: 600; font-size: clamp(1.02rem,1.3vw,1.24rem);
  letter-spacing: .02em; color: var(--ink); text-transform: none; }
.masthead::before { content: "▸ "; color: var(--green); }
.masthead b { color: var(--green); font-weight: 600; }
.slide__head .tag {
  font-family: var(--mono); font-size: clamp(.66rem,.86vw,.8rem); letter-spacing: .14em;
  color: var(--ink-dim); border: 1px solid var(--line-2); padding: .22rem .6rem; border-radius: 2px;
  white-space: nowrap;
}

.slide__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: .85rem; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: clamp(.92rem,1.15vw,1.08rem); font-weight: 500;
  letter-spacing: .03em; color: var(--ink);
}
.slide__foot .src { color: var(--ink); }
.slide__foot .src b { color: var(--amber); font-weight: 600; }
.slide__foot .rt { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-dim); }
.slide__foot .rt::before { content: "●"; color: var(--green); font-size: .6em; animation: pulse 2.2s ease-in-out infinite; }

/* body region */
.slide__body {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 0; padding: clamp(.8rem, 2.6vh, 2rem) 0;
}

/* ---------- 5. Editorial / terminal primitives ---------- */
.kicker {
  font-family: var(--mono); font-size: var(--fs-small);
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.kicker::before { content: "$"; color: var(--green-deep); margin-right: -.15em; }
.kicker::after { content: "_"; color: var(--green); animation: caret 1.1s steps(1) infinite; }
.kicker .deva { font-family: var(--deva); letter-spacing: .01em; text-transform: none; color: var(--ink-dim); }

h1, h2, h3 { font-family: var(--body); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--ink-bright); }
.slide h1 { font-size: var(--fs-h1); max-width: 24ch; }
em.hi { font-style: normal; font-weight: 700; color: var(--green); }
em.danger { font-style: normal; font-weight: 700; color: var(--red); }
em.warn { font-style: normal; font-weight: 700; color: var(--amber); }

.lead { font-size: clamp(1.16rem, 1.65vw, 1.52rem); max-width: 60ch; color: var(--ink-dim);
  line-height: 1.55; margin-top: 1.3rem; }

.deva { font-family: var(--deva); }

/* ---------- 6. Components ---------- */

/* Two-column split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center; height: 100%; }
.split--wide { grid-template-columns: 1fr 1.2fr; }
.split--media { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Stat blocks */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.stat { border-top: 2px solid var(--line-2); padding-top: .7rem; }
.stat .figure { font-family: var(--pixel); font-weight: 600; font-size: var(--fs-stat);
  line-height: .9; letter-spacing: 0; color: var(--green); }
.stat .figure .u { font-size: .4em; color: var(--ink-dim); letter-spacing: .02em; }
.stat.is-red .figure  { color: var(--red); } .stat.is-red  { border-color: var(--red); }
.stat.is-amber .figure{ color: var(--amber); } .stat.is-amber{ border-color: var(--amber); }
.stat.is-cyan .figure { color: var(--cyan); } .stat.is-cyan { border-color: var(--cyan); }
.stat .label { font-family: var(--mono); font-size: var(--fs-small); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-dim); margin-top: .6rem; line-height: 1.35; }

/* Editorial bullet lists */
.list { list-style: none; display: grid; gap: 0; }
.list li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: .9rem 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list .m { font-family: var(--pixel); color: var(--green); font-size: 1.25rem; line-height: 1.3; }
.list .h { font-family: var(--body); font-size: 1.24rem; font-weight: 600; color: var(--ink-bright);
  display: block; margin-bottom: .16rem; }
.list .d { color: var(--ink-dim); font-size: 1.04rem; line-height: 1.42; }
/* spacious large list — for content-light, full-width slides */
.list--lg li { padding: 1.35rem 0; gap: 1.5rem; }
.list--lg .m { font-size: 1.7rem; }
.list--lg .h { font-size: 1.7rem; margin-bottom: .3rem; }
.list--lg .d { font-size: 1.24rem; line-height: 1.45; }
.list b { color: var(--green); font-weight: 600; }
/* severity-tinted markers */
.list li.bad  .m { color: var(--red); }
.list li.warnv .m { color: var(--amber); }
.list li.good .m { color: var(--green); }

/* Chip / tag row */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; align-items: center; }
.chips .lbl { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); margin-right: .2rem; }
.chip { font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; padding: .32rem .7rem;
  border: 1px solid var(--line-2); color: var(--ink); border-radius: 2px; background: rgba(255,255,255,.015); }
.chip::before { content: "# "; color: var(--ink-dim); }
.chip.red   { border-color: rgba(255,80,105,.5);  color: #ffb3bd; }
.chip.amber { border-color: rgba(255,194,75,.5);  color: #ffe1a3; }
.chip.green { border-color: rgba(61,240,163,.45); color: #b6ffe0; }

/* Panel card */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.1rem 1.2rem; position: relative; }
.card__hd { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }

/* Danger vs Safe compare panels */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.3rem 1.3rem;
  background: var(--panel); position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }
.panel--bad::before  { background: var(--red); box-shadow: 0 0 14px var(--red-glow); }
.panel--good::before { background: var(--green); box-shadow: 0 0 14px var(--green-glow); }
.panel__tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.panel--bad  .panel__tag { color: var(--red); }
.panel--good .panel__tag { color: var(--green); }
.panel__tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.panel--bad  .panel__tag .dot { background: var(--red);  box-shadow: 0 0 9px var(--red); }
.panel--good .panel__tag .dot { background: var(--green); box-shadow: 0 0 9px var(--green); }
.panel h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.panel p { color: var(--ink-dim); font-size: .98rem; line-height: 1.45; }
.panel ul { list-style: none; display: grid; gap: .5rem; margin-top: .3rem; }
.panel li { position: relative; padding-left: 1.5rem; font-size: .96rem; color: var(--ink); line-height: 1.42; }
.panel--bad  li::before  { content: "✕"; position: absolute; left: 0; top: 0; color: var(--red);   font-family: var(--mono); }
.panel--good li::before  { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-family: var(--mono); }
.panel li b { color: var(--ink-bright); font-weight: 600; }

/* Image placeholder — swap the inner <img> in for a real screenshot.
   Reads as a "captured evidence" frame in the console. */
/* Clean framed slot — drop an <img> inside to fill it. */
.shot { position: relative; display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: clamp(280px, 52vh, 560px); height: 100%; width: 100%;
  border: 1.5px dashed var(--line-2); border-radius: 8px; background: var(--panel);
  color: var(--ink-dim); overflow: hidden;
  background-image: repeating-linear-gradient(45deg, transparent 0 15px, rgba(70,207,230,.04) 15px 16px); }
.shot::before, .shot::after { content: ""; position: absolute; width: 20px; height: 20px; z-index: 3; }
.shot::before { top: 11px; left: 11px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.shot::after  { bottom: 11px; right: 11px; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.shot__cap { position: relative; z-index: 2;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim); padding: .55rem .7rem; }

/* Terminal callout box (mono console snippet) */
.term { font-family: var(--mono); font-size: .9rem; line-height: 1.7; background: #05090d;
  border: 1px solid var(--line-2); border-radius: 6px; padding: 1rem 1.2rem; color: var(--ink);
  box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.term .bar { display: flex; align-items: center; gap: .45rem; margin: -.3rem -.4rem .7rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--line); }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term .bar i:nth-child(1){ background:#ff5f57; } .term .bar i:nth-child(2){ background:#febc2e; } .term .bar i:nth-child(3){ background:#28c840; }
.term .bar span { font-size: .7rem; letter-spacing: .1em; color: var(--ink-dim); margin-left: .4rem; text-transform: uppercase; }
.term .p { color: var(--green); } .term .p::before { content: "$ "; color: var(--green-deep); }
.term .o { color: var(--ink-dim); } .term .r { color: var(--red); } .term .g { color: var(--green); } .term .a { color: var(--amber); } .term .c { color: var(--cyan); }
.term .cur { color: var(--green); animation: caret 1.1s steps(1) infinite; }

/* Phishing-mock message card — flag the red flags */
.phish { background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.phish__hd { display: grid; gap: .15rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .82rem; }
.phish__hd .row { display: flex; gap: .6rem; }
.phish__hd .k { color: var(--ink-dim); width: 4.5ch; flex: none; }
.phish__hd .v { color: var(--ink); }
.phish__body { padding: 1rem; font-size: .96rem; line-height: 1.5; color: var(--ink); }
.flag { position: relative; color: var(--red); font-weight: 600; background: rgba(255,80,105,.08);
  border-bottom: 1.5px solid rgba(255,80,105,.5); border-radius: 2px; padding: 0 .18em; cursor: help; }
.flag[data-n]::after { content: attr(data-n); position: absolute; top: -.7em; right: -.7em;
  font-family: var(--pixel); font-size: .62rem; color: #fff; background: var(--red); border-radius: 50%;
  width: 1.35em; height: 1.35em; display: grid; place-items: center; }
.flagkey { list-style: none; display: grid; gap: .55rem; }
.flagkey li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: baseline;
  font-size: .95rem; color: var(--ink); }
.flagkey .n { font-family: var(--pixel); color: #fff; background: var(--red); border-radius: 50%;
  width: 1.5em; height: 1.5em; display: grid; place-items: center; font-size: .72rem; }
.flagkey b { color: var(--ink-bright); font-weight: 600; }

/* Password-crack matrix (heatmap table) */
.matrix { width: 100%; border-collapse: collapse; font-family: var(--mono);
  border: 1px solid var(--line-2); }
.matrix th, .matrix td { padding: .5rem .5rem; text-align: center; border: 1px solid var(--bg);
  font-size: clamp(.72rem, .95vw, .92rem); }
.matrix thead th { background: var(--panel-2); color: var(--cyan); font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase; font-size: .72rem; }
.matrix thead th:first-child, .matrix tbody th { background: var(--panel-2); color: var(--ink-dim); }
.matrix tbody th { text-align: right; padding-right: .8rem; font-weight: 500; }
.matrix td { color: #06110c; font-weight: 500; }
.t-instant { background: #ff5069; color: #2a0007; }
.t-secs    { background: #ff7a52; color: #2a0d00; }
.t-mins    { background: #ffa23c; color: #2a1600; }
.t-hours   { background: #ffc24b; color: #2a2000; }
.t-days    { background: #d7d24a; color: #22240a; }
.t-years   { background: #7fd48a; color: #0b2413; }
.t-safe    { background: #3df0a3; color: #052417; }
.matrix caption { caption-side: bottom; font-family: var(--mono); font-size: .74rem; color: var(--ink-dim);
  letter-spacing: .04em; padding-top: .6rem; text-align: left; }
.heat-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--mono); font-size: .74rem;
  color: var(--ink-dim); margin-top: .3rem; }
.heat-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.heat-legend i { width: 11px; height: 11px; border-radius: 2px; }

/* Agenda — mission modules */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 2.4rem; }
.mod { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .78rem .2rem; border-bottom: 1px solid var(--line); }
.mod .n { font-family: var(--pixel); font-size: 1.35rem; color: var(--green); min-width: 2.2ch; }
.mod .t { font-family: var(--body); font-size: clamp(1.02rem, 1.4vw, 1.28rem); font-weight: 600; color: var(--ink-bright); }
.mod .t small { display: block; font-family: var(--deva); font-size: .74rem; color: var(--ink-dim); font-weight: 400; margin-top: .05rem; }
.mod .st { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--green-deep);
  border: 1px solid var(--line-2); padding: .18rem .45rem; border-radius: 2px; }

/* Consent grid (POSH) */
.consent { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }

/* People / committee cards (ICC) */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.person .role { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.person .name { font-family: var(--body); font-weight: 600; color: var(--ink-bright); font-size: 1.08rem; margin: .3rem 0 .15rem; }
.person .meta { font-family: var(--mono); font-size: .82rem; color: var(--ink-dim); }
.editable { color: var(--amber); border-bottom: 1px dotted var(--amber); }

/* Step flow (Data→…, or report pipeline) */
.flow { display: flex; align-items: stretch; gap: .6rem; margin: 1.2rem 0; flex-wrap: wrap; }
.flow .step { flex: 1 1 0; min-width: 120px; padding: 1rem 1.2rem; border: 1px solid var(--line-2);
  border-radius: 5px; background: var(--panel); position: relative; }
.flow .step .lab { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--green); }
.flow .step .v { display: block; font-family: var(--body); font-weight: 600; font-size: 1.22rem; color: var(--ink-bright); margin-top: .3rem; }
.flow .step + .step::before { content: "›"; position: absolute; left: -.55rem; top: 50%; transform: translateY(-50%);
  color: var(--green); font-family: var(--pixel); }

/* ---------- 7. Title slide ---------- */
.title-slide .slide__body { justify-content: center; }
.title-grid { display: grid; grid-template-columns: 1.25fr auto; gap: 2rem; align-items: center; }
.title-hero { font-family: var(--pixel); font-weight: 600; font-size: var(--fs-hero); line-height: .98;
  letter-spacing: -.02em; color: var(--ink-bright); }
.title-hero .deva { font-family: var(--deva); color: var(--green); font-weight: 400; }
.title-hero em { font-style: normal; color: var(--green); text-shadow: 0 0 30px var(--green-glow); }
.title-sub { font-family: var(--body); font-weight: 500; font-size: clamp(1.3rem,2vw,1.85rem); color: var(--ink);
  max-width: 32ch; margin-top: 1.4rem; line-height: 1.4; }
.title-sub b { color: var(--cyan); font-weight: 700; }
.presenter { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.presenter .lbl { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em;
  font-size: clamp(.9rem, 1.1vw, 1.1rem); color: var(--ink-dim); }
.presenter b { font-family: var(--pixel); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3.4rem);
  color: var(--green); line-height: 1; text-shadow: 0 0 26px var(--green-glow); }
.edition { font-family: var(--mono); text-transform: uppercase; letter-spacing: .26em; font-size: var(--fs-small); color: var(--green); }

/* boot terminal on the title */
.boot { font-family: var(--mono); font-size: .82rem; line-height: 1.65; color: var(--ink-dim);
  margin-top: 1.3rem; min-height: 5.5em; }
.boot .ok { color: var(--green); } .boot .ln { opacity: 0; }
.title-slide.present .boot .ln { animation: bootln .01s linear forwards; }
.title-slide.present .boot .ln:nth-child(1){ animation-delay:.25s; }
.title-slide.present .boot .ln:nth-child(2){ animation-delay:.7s; }
.title-slide.present .boot .ln:nth-child(3){ animation-delay:1.15s; }
.title-slide.present .boot .ln:nth-child(4){ animation-delay:1.6s; }
@keyframes bootln { to { opacity: 1; } }

/* lock/shield hero mark inside a scanning reticle */
.lock-rig { position: relative; width: clamp(230px, 30vw, 400px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.reticle { position: absolute; inset: 0; width: 100%; height: 100%; }
.reticle .ret-ring { fill: none; stroke: rgba(61,240,163,.28); stroke-width: 1; }
.reticle .ret-ticks line { stroke: rgba(70,207,230,.5); }
.reticle .ret-cnr { fill: none; stroke: var(--green); stroke-width: 2; opacity: 0; }
.reticle .ret-ticks { transform-box: view-box; transform-origin: 120px 120px; }
.title-slide.present .reticle .ret-ticks { animation: ret-spin 30s linear infinite; }
.title-slide.present .reticle .ret-cnr { animation: appear .5s var(--ease) .3s forwards; }
.title-slide.present .reticle .ret-ring { animation: breathe 3.4s ease-in-out 1s infinite; }
.lock { position: relative; z-index: 2; width: 46%; height: auto; filter: drop-shadow(0 0 18px var(--green-glow)); }
.lock .body { fill: rgba(61,240,163,.06); stroke: var(--green); stroke-width: 3; }
.lock .shackle { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; }
.lock .key { fill: var(--green); opacity: 0; }
.title-slide.present .lock .key { animation: appear .5s var(--ease) .55s forwards; }
@keyframes ret-spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100%{opacity:1;} 50%{opacity:.35;} }
@keyframes appear { to { opacity: 1; } }

/* ---------- 8. Section dividers (chapter breaks) ---------- */
.reveal .slides > section.slide.divider,
.reveal .slides > section.slide.divider.present {
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(255,80,105,.10), transparent 55%),
    radial-gradient(800px 500px at 10% 90%, rgba(61,240,163,.08), transparent 55%),
    var(--bg);
}
.divider .slide__body { grid-row: 1 / -1; justify-content: center; align-items: flex-start; }
.divider__cmd { font-family: var(--mono); font-size: clamp(.78rem,1vw,.94rem); letter-spacing: .03em;
  color: var(--ink-dim); margin-bottom: 1rem; display: block; }
.divider__cmd b { color: var(--green); font-weight: 500; }
.divider__cmd i { color: var(--amber); font-style: normal; }
.divider__cmd .cur { color: var(--green); animation: caret 1.1s steps(1) infinite; }
.divider__num { font-family: var(--pixel); font-size: 1rem; letter-spacing: .3em; color: var(--cyan); margin-bottom: .5rem; }
.divider__k { font-family: var(--mono); text-transform: uppercase; letter-spacing: .26em; font-size: .86rem; color: var(--ink-dim); margin-bottom: .9rem; }
.divider__h { font-family: var(--pixel); font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1;
  letter-spacing: -.02em; margin: 0 0 1rem; color: var(--ink-bright); }
.divider__h .deva { font-family: var(--deva); font-size: .3em; color: var(--green); font-weight: 400; margin-left: .5em; vertical-align: middle; }
.divider__sub { font-family: var(--body); font-size: clamp(1.1rem, 1.7vw, 1.5rem); color: var(--ink-dim); max-width: 44ch; margin-bottom: 1.9rem; }
.divider__toc { list-style: none; display: flex; flex-wrap: wrap; gap: 2.4rem; }
.divider__toc li { font-family: var(--mono); font-size: 1rem; color: var(--ink-dim); display: flex; gap: .7rem; align-items: baseline; }
.divider__toc b { font-family: var(--pixel); color: var(--green); font-weight: 500; }

/* ---------- 9. Closing ---------- */
.closing .slide__body { justify-content: center; }
.pull { font-family: var(--pixel); font-weight: 500; font-size: clamp(1.7rem,3.4vw,3rem); line-height: 1.12;
  letter-spacing: 0; max-width: 22ch; color: var(--ink-bright); }
.pull em { font-style: normal; color: var(--green); }
.helpline { display: inline-flex; align-items: baseline; gap: .7rem; margin-top: 1.6rem;
  font-family: var(--mono); font-size: 1.05rem; color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 5px; padding: .7rem 1.1rem; background: var(--panel); }
.helpline b { font-family: var(--pixel); font-size: 1.6rem; color: var(--green); }
.helpline .lbl { color: var(--ink-dim); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 10. HUD / console frame + scanlines ---------- */
.cyber-hud { position: fixed; inset: 0; pointer-events: none; z-index: 60; font-family: var(--mono); }
.cx { position: fixed; width: 22px; height: 22px; border: 2px solid var(--green); opacity: .55; }
.cx-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.cx-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.cx-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.cx-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.hud-tr { position: fixed; top: 16px; right: 46px; font-size: 12px; letter-spacing: .16em; color: var(--ink-dim); }
.hud-tr b { color: var(--green); font-weight: 600; }
.hud-tr .dot { color: var(--green); animation: pulse 2.2s ease-in-out infinite; }
.hud-br { position: fixed; bottom: 16px; right: 46px; font-size: 12px; letter-spacing: .16em; color: var(--ink); }
.hud-br em { color: var(--green); font-style: normal; font-weight: 600; }

/* CRT scanline layer */
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 58; }
.scanlines::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  opacity: .5; animation: flicker 5s steps(1) infinite; }
/* light theme: the CRT scanlines wash out text — drop them to a whisper, no flicker */
body.theme-light .scanlines::before {
  background: repeating-linear-gradient(to bottom, rgba(20,40,32,.028) 0 1px, transparent 1px 4px);
  opacity: .5; animation: none; }
.scanlines::after { content: ""; position: absolute; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(61,240,163,.05), transparent);
  animation: sweep 9s linear infinite; }
@keyframes sweep { 0%{ transform: translateY(-200px);} 100%{ transform: translateY(100vh);} }
@keyframes flicker { 0%,12%,34%,60%,74%,100%{opacity:.5;} 13%,33%{opacity:.66;} 61%,73%{opacity:.34;} 35%,59%{opacity:.56;} }
@keyframes caret { 50% { opacity: 0; } }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }

/* glitch on danger words */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--cyan); }
.glitch::after  { color: var(--red); }
.present .glitch::before { animation: gl-a .5s steps(2) .25s 2 both; }
.present .glitch::after  { animation: gl-b .5s steps(2) .25s 2 both; }
@keyframes gl-a { 0%{opacity:.9;transform:translate(-3px,-1px);clip-path:inset(0 0 62% 0);} 50%{opacity:.9;transform:translate(2px,1px);clip-path:inset(52% 0 8% 0);} 100%{opacity:0;transform:none;} }
@keyframes gl-b { 0%{opacity:.8;transform:translate(3px,1px);clip-path:inset(42% 0 18% 0);} 50%{opacity:.8;transform:translate(-2px,-1px);clip-path:inset(8% 0 54% 0);} 100%{opacity:0;transform:none;} }

/* ---------- 11. Reveal / fragment animation ---------- */
[data-reveal] > * { opacity: 0; transform: translateY(12px); }
.present [data-reveal] > * { animation: reveal .6s var(--ease) forwards; }
.present [data-reveal] > *:nth-child(1){ animation-delay:.10s; }
.present [data-reveal] > *:nth-child(2){ animation-delay:.18s; }
.present [data-reveal] > *:nth-child(3){ animation-delay:.26s; }
.present [data-reveal] > *:nth-child(4){ animation-delay:.34s; }
.present [data-reveal] > *:nth-child(5){ animation-delay:.42s; }
.present [data-reveal] > *:nth-child(6){ animation-delay:.50s; }
.present [data-reveal] > *:nth-child(7){ animation-delay:.58s; }
.present [data-reveal] > *:nth-child(8){ animation-delay:.66s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

.reveal .fragment.step-in { opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal .fragment.step-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  [data-reveal] > * { opacity: 1; transform: none; }
  .boot .ln { opacity: 1 !important; }
  .glitch::before, .glitch::after { opacity: 0 !important; }
}

/* ---------- 12. Print / PDF (reveal ?print-pdf) ---------- */
@media print {
  .cyber-hud, .scanlines { display: none !important; }
  [data-reveal] > * { opacity: 1 !important; transform: none !important; }
  .boot .ln { opacity: 1 !important; }
  .lock .key, .reticle .ret-cnr { opacity: 1 !important; }
  .kicker::after, .divider__cmd .cur { display: none !important; }
}
