/* ============================================================
   MikroTik Internet Gateway — Presentation
   Theme: dark slate + teal/cyan accent (MikroTik-ish) + warm fanart
   ============================================================ */

:root {
  --bg:        #070b12;
  --bg-2:      #0c131e;
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --ink:       #eaf0f7;
  --ink-2:     #a7b6c8;
  --ink-3:     #6f8093;
  --teal:      #2fe0c0;
  --cyan:      #38bdf8;
  --amber:     #ffb547;
  --pink:      #ff7ab6;
  --violet:    #a78bfa;
  --radius:    18px;
  --font:      'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --ease:      cubic-bezier(.22,.8,.28,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow: hidden;
  background-image:
    radial-gradient(900px 620px at 12% -8%,  rgba(47,224,192,.16), transparent 62%),
    radial-gradient(820px 560px at 92% 8%,   rgba(56,189,248,.13), transparent 60%),
    radial-gradient(760px 620px at 50% 112%, rgba(167,139,250,.11), transparent 62%),
    linear-gradient(160deg, #070b12 0%, #0a1018 46%, #070b12 100%);
}

/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- progress bar ---------------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.05);
  z-index: 200;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan) 55%, var(--violet));
  box-shadow: 0 0 14px rgba(47,224,192,.55);
  transition: width .45s var(--ease);
}

/* ---------------- deck / slide ---------------- */
.deck { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vh, 26px);
  padding: clamp(26px, 4.2vw, 74px) clamp(22px, 4.6vw, 86px) clamp(64px, 7vh, 92px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.slide::-webkit-scrollbar { width: 8px; }
.slide::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }

.slide.is-active { display: flex; animation: slideIn .5s var(--ease) both; }
.slide.is-prev   { animation: slideOutLeft .34s var(--ease) both; }

/* subtle plate behind dense slides */
.slide:not(.slide--cover):not(.slide--illus):not(.slide--end)::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vh, 26px) clamp(8px, 1.6vw, 28px) clamp(52px, 6vh, 76px);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008));
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
  z-index: -1;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px) scale(.994); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideOutLeft {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(-22px); }
}

/* ---------------- typography ---------------- */
.kicker {
  margin: 0 0 2px;
  font-size: clamp(10px, 1.02vw, 13px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.kicker::before {
  content: ""; display: inline-block;
  width: 22px; height: 1px; margin-right: 10px;
  background: var(--teal); vertical-align: middle; opacity: .7;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 66px);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal), var(--cyan) 48%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(23px, 2.85vw, 42px);
  line-height: 1.13;
  letter-spacing: -.022em;
  font-weight: 800;
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(14px, 1.32vw, 18px);
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
h3 .num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; flex: 0 0 26px;
  border-radius: 9px;
  background: rgba(47,224,192,.14);
  border: 1px solid rgba(47,224,192,.32);
  color: var(--teal);
  font-size: 12px; font-weight: 800;
}

h4 {
  margin: 0 0 7px;
  font-size: clamp(13px, 1.16vw, 16px);
  font-weight: 700;
  letter-spacing: -.005em;
}

p { margin: 0; line-height: 1.62; }

.lede {
  font-size: clamp(15px, 1.62vw, 23px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 30ch;
}

.sub {
  font-size: clamp(12.5px, 1.14vw, 16px);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 72ch;
  margin-top: 8px;
}

.s-head { flex: 0 0 auto; }

.tiny {
  font-size: clamp(11px, .96vw, 13px);
  color: var(--ink-3);
  line-height: 1.6;
}
.tiny.center { text-align: center; }
.muted { color: var(--ink-3); }
.muted-sm {
  font-size: clamp(11.5px, 1.02vw, 13.5px);
  color: var(--ink-2);
  margin-bottom: 10px;
}

code {
  font-family: var(--mono);
  font-size: .92em;
  padding: 1.5px 6px;
  border-radius: 6px;
  background: rgba(47,224,192,.10);
  border: 1px solid rgba(47,224,192,.20);
  color: #7df0d8;
  white-space: nowrap;
}

/* ---------------- cover ---------------- */
.slide--cover { padding-bottom: clamp(48px, 6vh, 80px); }

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 60px);
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

.cover-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px;
  padding: 7px 15px 7px 11px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  font-size: clamp(10px, .94vw, 12.5px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(47,224,192,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(47,224,192,.14); }
  50%     { box-shadow: 0 0 0 8px rgba(47,224,192,.05); }
}

.cover-copy .lede { margin-top: 20px; }

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.chip {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: clamp(10.5px, .94vw, 12.5px);
  font-weight: 600;
  color: var(--ink-2);
}

.cover-foot {
  margin-top: 30px;
  font-size: clamp(10.5px, .92vw, 12px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.cover-art {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow:
    0 30px 70px -24px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.03) inset;
  aspect-ratio: 16 / 11;
  max-height: min(60vh, 560px);
  background: rgba(6,11,18,.7);
  justify-self: center;
}
.cover-art img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.cover-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(7,11,18,.92) 100%);
  pointer-events: none;
}
.cover-art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 14px 18px;
  font-size: clamp(10px, .88vw, 12px);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  display: flex; justify-content: space-between; gap: 12px;
}
.cover-art figcaption span { color: var(--ink-3); }

/* ---------------- layout helpers ---------------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  flex: 1 1 auto;
  align-content: start;
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}
.cols-2-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  align-items: start;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 40px);
  align-items: start;
  flex: 1 1 auto;
}
.split--img-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); }

.stack { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 18px); min-width: 0; }

/* ---------------- panels & cards ---------------- */
.panel {
  padding: clamp(16px, 1.7vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  min-width: 0;
}

.card {
  padding: clamp(15px, 1.5vw, 21px);
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent 78%);
  opacity: .55;
}
.card p { font-size: clamp(12px, 1.06vw, 14.5px); color: var(--ink-2); }
.card h4 { color: var(--ink); }

/* lists */
.list-check, .list-dot { margin: 0; padding: 0; list-style: none; }
.list-check li, .list-dot li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: clamp(12.5px, 1.1vw, 15px);
  color: var(--ink-2);
  line-height: 1.55;
}
.list-check li:last-child, .list-dot li:last-child { margin-bottom: 0; }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(47,224,192,.14);
  color: var(--teal);
  font-size: 10px; font-weight: 800;
}
.list-dot li::before {
  content: "";
  position: absolute; left: 6px; top: 9px;
  width: 5px; height: 5px; border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56,189,248,.7);
}

.list-num { margin: 0; padding: 0; list-style: none; }
.list-num li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 10px;
  font-size: clamp(12.5px, 1.08vw, 14.5px);
  color: var(--ink-2);
  line-height: 1.5;
}
.list-num li:last-child { margin-bottom: 0; }
.list-num li span {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(56,189,248,.14);
  border: 1px solid rgba(56,189,248,.3);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
}

/* ---------------- note ---------------- */
.note {
  padding: 13px 17px;
  border-radius: 12px;
  border-left: 3px solid var(--teal);
  background: rgba(47,224,192,.07);
  font-size: clamp(11.5px, 1.02vw, 13.5px);
  color: var(--ink-2);
  line-height: 1.6;
}
.note--tight { margin-top: 2px; }
.note--warn {
  border-left-color: var(--amber);
  background: rgba(255,181,71,.08);
}

/* ---------------- tables ---------------- */
.table-wrap { min-width: 0; }

table { width: 100%; border-collapse: collapse; }

table.ip th {
  text-align: left;
  padding: 9px 12px;
  font-size: clamp(10px, .88vw, 11.5px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}
table.ip td {
  padding: 11px 12px;
  font-size: clamp(12px, 1.02vw, 14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
table.ip tr.dim td { color: var(--ink-3); }
table.ip tr:last-child td { border-bottom: none; }

table.mini { margin-bottom: 12px; }
table.mini th {
  text-align: left;
  padding: 6px 10px;
  font-size: clamp(9.5px, .84vw, 11px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}
table.mini td {
  padding: 8px 10px;
  font-size: clamp(11.5px, .98vw, 13px);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------------- strip (stat row) ---------------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.strip-item {
  padding: clamp(11px, 1.3vw, 17px) clamp(12px, 1.4vw, 20px);
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.strip-item .lbl {
  font-size: clamp(9px, .82vw, 10.5px);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.strip-item b {
  font-family: var(--mono);
  font-size: clamp(12px, 1.08vw, 15px);
  color: var(--teal);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------------- compare ---------------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.cmp {
  padding: clamp(15px, 1.6vw, 22px);
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.cmp h4 { font-size: clamp(13px, 1.15vw, 16px); }
.cmp ul { margin: 0; padding: 0; list-style: none; }
.cmp li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: clamp(12px, 1.04vw, 14px);
  color: var(--ink-2);
  line-height: 1.5;
}
.cmp li:last-child { margin-bottom: 0; }
.cmp li::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 5px; height: 5px; border-radius: 99px;
  background: var(--ink-3);
}
.cmp--hot {
  border-color: rgba(47,224,192,.32);
  background: linear-gradient(180deg, rgba(47,224,192,.10), rgba(47,224,192,.02));
}
.cmp--hot h4 { color: var(--teal); }
.cmp--hot li::before { background: var(--teal); box-shadow: 0 0 8px rgba(47,224,192,.7); }

/* ---------------- steps row ---------------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 14px);
}
.step {
  padding: clamp(12px, 1.3vw, 17px);
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.step span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-bottom: 9px;
  border-radius: 7px;
  background: rgba(167,139,250,.16);
  border: 1px solid rgba(167,139,250,.34);
  color: var(--violet);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
}
.step p {
  font-size: clamp(11px, .96vw, 13px);
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------------- shots (screenshots) ---------------- */
.shot {
  margin: 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0f1620;
  box-shadow: 0 18px 44px -22px rgba(0,0,0,.9);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  object-position: top center;
  background: #0f1620;
}
.shot figcaption {
  padding: 9px 13px;
  font-size: clamp(10px, .88vw, 11.5px);
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  line-height: 1.45;
}
.shot--wide img { max-height: min(34vh, 300px); }
.shot--mini img { max-height: min(26vh, 230px); }
.shot--mini figcaption { padding: 7px 11px; }

/* ---------------- test grid ---------------- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(11px, 1.2vw, 17px);
  flex: 1 1 auto;
  align-content: start;
}
.test {
  padding: clamp(13px, 1.3vw, 18px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.test .badge {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(255,181,71,.15);
  border: 1px solid rgba(255,181,71,.34);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
}
.test h4 { margin: 0; }
.test p {
  font-size: clamp(11px, .96vw, 12.8px);
  color: var(--ink-2);
  line-height: 1.5;
}
.test .shot { margin-top: auto; }
.test .shot img { max-height: min(20vh, 170px); }

/* ---------------- results ---------------- */
.result {
  padding: clamp(14px, 1.4vw, 20px);
  border-radius: 14px;
  border: 1px solid rgba(47,224,192,.24);
  background: linear-gradient(180deg, rgba(47,224,192,.09), rgba(47,224,192,.015));
  min-width: 0;
}
.result .ok {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; margin-bottom: 10px;
  border-radius: 99px;
  background: rgba(47,224,192,.18);
  color: var(--teal);
  font-size: 13px; font-weight: 800;
}
.result h4 { margin-bottom: 6px; }
.result p {
  font-size: clamp(11px, .96vw, 12.8px);
  color: var(--ink-2);
  line-height: 1.5;
}

.closing {
  padding: clamp(15px, 1.6vw, 22px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.closing p { font-size: clamp(12.5px, 1.1vw, 15px); color: var(--ink-2); }
.closing strong { color: var(--ink); }

/* ---------------- illustration slides ---------------- */
.slide--illus { justify-content: center; }

.illus-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

.illus-main {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(6,11,18,.72);
  box-shadow: 0 32px 80px -30px rgba(0,0,0,.95);
  line-height: 0;
  justify-self: center;
  max-width: 100%;
}
.illus-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(64vh, 580px);
  object-fit: contain;
}

.illus-side { min-width: 0; }
.illus-side h2 { margin-bottom: 12px; }
.illus-side .sub { max-width: 46ch; }
.illus-side .list-num { margin-top: 18px; }

.list-num--tight li { margin-bottom: 8px; }
.list-num--tight li b { color: var(--ink); font-weight: 700; }

.credit {
  margin-top: 20px;
  font-size: clamp(10px, .86vw, 11.5px);
  color: var(--ink-3);
  letter-spacing: .02em;
  line-height: 1.6;
}

/* ---------------- end slide ---------------- */
.slide--end { text-align: center; align-items: center; }
.end-inner {
  max-width: 780px;
  display: flex; flex-direction: column; align-items: center;
}
.end-inner .eyebrow { margin-bottom: 22px; }
.end-inner .lede { margin: 20px auto 0; max-width: 42ch; }
.end-inner .chips { justify-content: center; }
.end-credit { margin-top: 34px; max-width: 62ch; }

/* ---------------- HUD ---------------- */
.hud {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: linear-gradient(0deg, rgba(7,11,18,.96) 30%, rgba(7,11,18,0));
  pointer-events: none;
}
.hud-left, .hud-right { display: flex; gap: 8px; pointer-events: auto; }

.hud-center {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.05);
  color: var(--ink-2);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all .18s var(--ease);
}
.icon svg { width: 17px; height: 17px; }
.icon:hover {
  background: rgba(47,224,192,.14);
  border-color: rgba(47,224,192,.42);
  color: var(--teal);
  transform: translateY(-1px);
}
.icon:active { transform: translateY(0) scale(.96); }
.icon:disabled { opacity: .28; cursor: default; transform: none; }

/* ---------------- overview ---------------- */
.overview {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,8,13,.86);
  backdrop-filter: blur(16px);
  display: grid; place-items: center;
  padding: clamp(20px, 4vw, 56px);
  animation: fadeIn .22s var(--ease);
}
.overview[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ov-inner { width: min(1180px, 100%); max-height: 100%; overflow-y: auto; }
.ov-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.ov-head h2 { font-size: clamp(17px, 1.6vw, 22px); }

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 11px;
}
.ov-card {
  text-align: left;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  display: flex; gap: 11px; align-items: flex-start;
  transition: all .16s var(--ease);
}
.ov-card:hover {
  border-color: rgba(47,224,192,.4);
  background: rgba(47,224,192,.09);
  color: var(--ink);
  transform: translateY(-2px);
}
.ov-card.is-current {
  border-color: var(--teal);
  background: rgba(47,224,192,.13);
  color: var(--ink);
}
.ov-card .n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--teal);
  padding-top: 2px;
  flex: 0 0 auto;
}

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cover-grid,
  .split,
  .split--img-left,
  .illus-stage,
  .two-col,
  .cols-2-wide,
  .compare {
    grid-template-columns: 1fr;
  }
  .cover-art { aspect-ratio: 16 / 10; max-height: 34vh; }
  .cover-art img { object-position: center 18%; }
  .illus-main img { max-height: 36vh; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .test-grid,
  .cols-4,
  .steps-row { grid-template-columns: 1fr; }
  .art-thumbs img { width: 84px; height: 106px; }
  .hud-center { display: none; }
  .cover-art figcaption { flex-direction: column; gap: 2px; }
}

/* ---------------- print ---------------- */
@media print {
  body { background: #fff; }
  .hud, .progress, .overview { display: none !important; }
  .slide {
    display: flex !important;
    position: relative;
    page-break-after: always;
    height: 100vh;
    animation: none !important;
  }
  .slide.is-prev { animation: none !important; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
