/* Presentasi Aljabar Linear Pertemuan 6
   Tema: putih mutlak, tinta hitam, satu aksen kobalt.
   Panggung tetap 1600 x 900, diskalakan penuh ke layar. */

:root {
  --bg: #ffffff;
  --ink: #0a0b0d;
  --muted: #5f6672;
  --faint: #9096a1;
  --line: #ebebf0;
  --line-strong: #d8d9e0;
  --accent: #1f4bff;
  --accent-ink: #122fb8;
  --accent-soft: #eef2ff;
  --good: #077a58;
  --good-soft: #e9f8f1;
  --bad: #d92d20;
  --bad-soft: #fff1ef;
  --sans:
    "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --stage-w: 1600px;
  --stage-h: 900px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- latar ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.ambient__blob--a {
  top: -24vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(31, 75, 255, 0.11), transparent 68%);
  animation: drift-a 24s var(--ease) infinite alternate;
}

.ambient__blob--b {
  bottom: -28vw;
  left: -16vw;
  background: radial-gradient(circle, rgba(0, 164, 196, 0.09), transparent 68%);
  animation: drift-b 30s var(--ease) infinite alternate;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 11, 13, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  opacity: 0.5;
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6vw, 5vh, 0) scale(1.12);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(5vw, -4vh, 0) scale(0.95);
  }
}

/* ---------- panggung ---------- */

#deck {
  position: fixed;
  left: 50%;
  top: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center center;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 54px 84px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 20px, 0) scale(0.994);
  transition:
    opacity 0.42s var(--ease),
    transform 0.52s var(--ease),
    visibility 0s linear 0.52s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.slide__inner {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* ---------- tipografi ---------- */

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: 132px;
  letter-spacing: -0.045em;
}

h2 {
  font-size: 62px;
}

h3 {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0 0 0.65em;
  font-size: 21px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

p.lead {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.48;
  max-width: 1050px;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

i {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.07em;
}

sub,
sup {
  font-size: 0.64em;
  line-height: 0;
}

.small {
  font-size: 16px;
  color: var(--muted);
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.s-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex: none;
}

.s-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 140px;
  background: var(--accent);
  transform-origin: left;
}

.slide.is-active .s-head::after {
  animation: rule-in 0.7s var(--ease) 0.1s both;
}

@keyframes rule-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.s-sub {
  font-size: 19px;
  color: var(--faint);
  max-width: 1150px;
  margin: 0;
}

.note {
  padding: 18px 24px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: #1a2b6b;
  font-size: 19px;
  line-height: 1.45;
}

.note strong {
  color: #12225e;
}

.verdict {
  padding: 18px 24px;
  border-radius: 8px;
  font-size: 20px;
  border: 1px solid transparent;
}

.verdict--ok {
  background: var(--good-soft);
  border-color: #c8ecdc;
  color: #075e44;
}

.accent-text {
  color: var(--accent);
}

/* ---------- notasi matematika ---------- */

.math {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0.4em 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.math--lg {
  font-size: 38px;
  margin: 0.5em 0;
}

.ip {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: -0.42em;
  text-align: center;
  margin: 0 0.15em;
  line-height: 1.2;
}

.frac > span:first-child {
  border-bottom: 1.4px solid currentColor;
  padding: 0 0.32em 0.04em;
}

.frac > span:last-child {
  padding: 0 0.32em;
}

.sqrt {
  white-space: nowrap;
}

.sqrt .under {
  border-top: 1.4px solid currentColor;
  padding: 0 0.24em 0 0.1em;
}

.mat {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0.08em 0.9em;
  padding: 0.2em 0.72em;
  position: relative;
  vertical-align: middle;
  text-align: center;
  margin: 0 0.2em;
  font-variant-numeric: tabular-nums;
}

.mat::before,
.mat::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.36em;
  border: 1.4px solid var(--muted);
}

.mat::before {
  left: 0;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.mat::after {
  right: 0;
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

/* ---------- sampul ---------- */

.slide--cover .slide__inner {
  justify-content: space-between;
  padding-block: 6px;
}

.cover__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cover__badge {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 16px;
}

.cover__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0 0;
}

.cover__title .line {
  display: block;
  animation: title-in 0.9s var(--ease) both;
}

.cover__title .line--accent {
  color: var(--accent);
  animation-delay: 0.12s;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(0.3em);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.cover__lead {
  max-width: 880px;
  margin-top: 12px;
  animation: title-in 0.9s var(--ease) 0.24s both;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 20px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: title-in 0.9s var(--ease) 0.32s both;
}

.meta dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 6px;
}

.meta dd {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}

.cover__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  animation: title-in 0.9s var(--ease) 0.4s both;
}

.signature {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.hint {
  font-size: 16px;
  color: var(--faint);
  margin: 0;
}

kbd {
  font-family: var(--sans);
  font-size: 0.86em;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

/* ---------- pembatas bagian ---------- */

.slide--divider .slide__inner {
  justify-content: center;
  position: relative;
}

.slide--divider h2 {
  font-size: 104px;
  margin-top: 8px;
}

.slide--divider .lead {
  max-width: 720px;
  margin-top: 14px;
}

.divider__num {
  position: absolute;
  right: 0;
  bottom: -0.15em;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 300px;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  animation: title-in 1s var(--ease) 0.15s both;
}

/* ---------- agenda ---------- */

.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.agenda li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.agenda li:hover {
  background: #fafbff;
  padding-left: 10px;
}

.agenda__no {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.agenda h3 {
  margin-bottom: 4px;
}

.agenda p {
  margin: 0;
  font-size: 19px;
}

/* ---------- kartu ---------- */

.cards {
  display: grid;
  gap: 18px;
  margin: 4px 0;
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -32px rgba(10, 11, 13, 0.35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__mark {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .math {
  margin: 12px 0 0;
  text-align: left;
  font-size: 22px;
}

/* ---------- aksioma ---------- */

.axioms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.axiom {
  position: relative;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.axiom:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -32px rgba(10, 11, 13, 0.4);
}

.axiom__no {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.axiom h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 21px;
}

.axiom .math {
  text-align: left;
  margin: 0 0 8px;
  font-size: 21px;
}

.axiom__note {
  font-size: 15px;
  color: var(--faint);
  margin: 0;
  line-height: 1.4;
}

/* ---------- dua kolom ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.panel {
  padding: 24px 28px;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.panel h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.panel .math {
  text-align: left;
  font-size: 22px;
}

.panel--bad {
  border-left-color: var(--bad);
  background: #fffaf9;
}

.panel--bad h3 {
  color: var(--bad);
}

.sub {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 8px;
}

/* ---------- daftar pemeriksaan ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.checks li {
  position: relative;
  padding: 12px 18px 12px 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.checks li:hover {
  border-color: var(--line-strong);
  background: #fcfcff;
}

.checks li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  font-size: 13px;
  font-weight: 800;
}

.proof {
  display: grid;
  gap: 6px;
}

.proof p {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 19px;
}

.tag {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- baris contoh ---------- */

.rows {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.row:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.row p {
  margin: 0;
}

.row__set {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}

.row__calc {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--muted);
}

.row__verdict {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.row__verdict.ok {
  color: var(--good);
}

.row__verdict.bad {
  color: var(--bad);
}

/* ---------- langkah ---------- */

.steps-list {
  display: grid;
  gap: 10px;
}

.steps-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 14px 22px 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.steps-list article:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px -32px rgba(10, 11, 13, 0.4);
}

.steps-list--tight article {
  padding-block: 11px 2px;
}

.steps-list p {
  margin-bottom: 6px;
  font-size: 19px;
}

.step-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps-list .math {
  text-align: left;
  margin: 2px 0 8px;
  font-size: 22px;
}

/* ---------- kalkulasi ---------- */

.calc {
  display: grid;
}

.calc p {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px dotted var(--line-strong);
  margin: 0;
}

.mini {
  margin: 0;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- anggota kelompok ---------- */

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team li:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -32px rgba(10, 11, 13, 0.4);
}

.team__photo {
  display: block;
  width: 92px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 8px;
  background: #f3f4f7;
  box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.06);
}

.team__no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 5px;
}

.team h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.team__nim {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- latihan ---------- */

.exercises {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 9px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}

.exercises li::marker {
  font-weight: 700;
  color: var(--accent);
}

.ex-sub {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  margin-top: 3px;
}

/* ---------- penutup ---------- */

.takeaways {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
  display: grid;
  gap: 18px;
}

.takeaways li {
  counter-increment: point;
  position: relative;
  padding-left: 56px;
  font-size: 24px;
  line-height: 1.5;
  color: var(--muted);
}

.takeaways li::before {
  content: counter(point, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.end__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- fragmen ---------- */

.frag {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    filter 0.5s var(--ease);
}

.frag.on {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.frag.on:nth-child(1) {
  transition-delay: 0.02s;
}
.frag.on:nth-child(2) {
  transition-delay: 0.07s;
}
.frag.on:nth-child(3) {
  transition-delay: 0.12s;
}
.frag.on:nth-child(4) {
  transition-delay: 0.17s;
}
.frag.on:nth-child(5) {
  transition-delay: 0.22s;
}
.frag.on:nth-child(6) {
  transition-delay: 0.27s;
}
.frag.on:nth-child(7) {
  transition-delay: 0.32s;
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: none;
}

.hud__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 12;
}

.hud__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

.hud__row {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 32px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.hud__group {
  display: flex;
  gap: 6px;
}

.hud__group--right {
  margin-left: auto;
}

.hud__btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.hud__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.hud__btn:active {
  transform: translateY(0);
}

.hud__btn:focus-visible,
.toc__item:focus-visible,
.toc__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hud__btn--ghost {
  background: transparent;
  border-color: var(--line);
}

.hud__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hud__count b {
  color: var(--ink);
  font-weight: 700;
}

.hud__count span {
  margin: 0 4px;
}

/* ---------- daftar isi ---------- */

.toc {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  animation: fade-in 0.25s var(--ease) both;
}

.toc[hidden] {
  display: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.toc__panel {
  width: min(1200px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: 34px 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 90px -50px rgba(10, 11, 13, 0.45);
  animation: panel-in 0.35s var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.toc__panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.toc__panel h2 {
  font-size: 34px;
  margin-top: 2px;
}

.toc__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc__close:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.toc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.toc__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.toc__item:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-2px);
}

.toc__item.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.toc__no {
  flex: none;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- cetak ---------- */

@media print {
  body {
    overflow: visible;
  }

  .ambient,
  .hud,
  .toc {
    display: none !important;
  }

  #deck {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    overflow: visible;
  }

  .slide {
    position: static;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always;
    padding: 1.2cm;
    overflow: visible;
  }

  .frag {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .frag {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
