/* =========================================================
   القدرات اللفظي — Interactive presentation
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #0B1220;
  --navy-2: #111C33;
  --navy-3: #16233F;
  --navy-deep: #070C17;
  --blue: #2563EB;
  --blue-strong: #1D4ED8;
  --cyan: #22D3EE;
  --green: #10B981;
  --gold: #F59E0B;
  --red: #EF4444;
  --white: #FFFFFF;
  --gray: #94A3B8;
  --surface: #F8FAFC;

  /* Themed (light) */
  --bg: #F8FAFC;
  --bg-alt: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F1F5F9;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --accent: var(--blue);
  --accent-tint: rgba(37, 99, 235, 0.08);
  --hl-bg: rgba(245, 158, 11, 0.32);
  --ok-bg: #ECFDF5;
  --ok-text: #047857;
  --ok-line: #10B981;
  --bad-bg: #FEF2F2;
  --bad-text: #B91C1C;
  --bad-line: #EF4444;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.14);
  --shadow-lift: 0 24px 48px -24px rgba(37, 99, 235, 0.38);

  /* Type */
  --font-display: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;

  /* Layout */
  --nav-h: 68px;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="dark"] {
  --bg: #0D1628;
  --bg-alt: #101B31;
  --card: #14213B;
  --card-2: #182844;
  --text: #E2E8F0;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --line: #22324F;
  --line-strong: #2E4166;
  --accent: #3B82F6;
  --accent-tint: rgba(59, 130, 246, 0.14);
  --hl-bg: rgba(245, 158, 11, 0.3);
  --ok-bg: rgba(16, 185, 129, 0.14);
  --ok-text: #34D399;
  --bad-bg: rgba(239, 68, 68, 0.14);
  --bad-text: #F87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}

/* Dark feature sections keep the same token names, so components adapt */
.section--dark,
.hero {
  --bg: var(--navy);
  --card: #111C33;
  --card-2: #16233F;
  --text: #F1F5F9;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --accent: var(--cyan);
  --accent-tint: rgba(34, 211, 238, 0.1);
  --ok-bg: rgba(16, 185, 129, 0.14);
  --ok-text: #34D399;
  --bad-bg: rgba(239, 68, 68, 0.14);
  --bad-text: #F87171;
  --shadow-md: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .section--dark { --bg: var(--navy-deep); }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--text);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
mark { background: none; color: inherit; }
strong { font-weight: 700; }

.sprite { display: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(37, 99, 235, 0.22); }

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(270deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

/* ---------- Cursor glow (desktop only) ---------- */
.cursor-glow { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.09) 0%, rgba(37, 99, 235, 0.04) 35%, transparent 65%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
  }
  .cursor-glow.is-active { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.25s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.7);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }

.btn--soft {
  min-height: 46px;
  padding: 0 18px;
  background: var(--card-2);
  border-color: var(--line);
  color: var(--text);
}
.btn--soft:hover { border-color: var(--accent); color: var(--accent); }
.btn--soft:disabled { opacity: 0.5; cursor: default; }

.btn--text {
  min-height: 46px;
  padding: 0 12px;
  background: none;
  color: var(--muted);
}
.btn--text:hover { color: var(--text); }

.btn--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55);
  animation: pulse-ring 2.4s ease-out 1.8s 3;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.14); }
.icon-btn .icon { width: 20px; height: 20px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 600;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-4px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 50;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease), backdrop-filter 0.3s ease;
}
.navbar.is-scrolled {
  color: var(--text);
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.navbar__brand { display: inline-flex; align-items: center; gap: 10px; }
.navbar__logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
}
.navbar__logo .icon { width: 20px; height: 20px; }
.navbar__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.navbar__links { display: flex; align-items: center; gap: 4px; }
.navbar__links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.navbar__links a:hover { opacity: 1; background: rgba(148, 163, 184, 0.12); }
.navbar__links a.is-active { opacity: 1; font-weight: 600; }
.navbar__links a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.navbar.is-scrolled .navbar__links a.is-active::after { background: var(--accent); }

.navbar__actions { display: flex; align-items: center; gap: 4px; }
.navbar__author {
  margin-inline-end: 8px;
  padding-inline-end: 14px;
  border-inline-end: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.9;
}
.navbar__author--mobile { display: none; }
.navbar__menu-btn { display: none; }

#theme-toggle .icon--moon,
:root[data-theme="dark"] #theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon--moon { display: block; }

.navbar__menu-btn .icon--close,
.navbar.is-open .navbar__menu-btn .icon--menu { display: none; }
.navbar.is-open .navbar__menu-btn .icon--close { display: block; }

@media (max-width: 1240px) {
  .navbar__actions > .navbar__author { display: none; }
}

@media (max-width: 1023px) {
  .navbar__menu-btn { display: inline-grid; }
  .navbar__nav {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    inset-inline: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-alt);
    color: var(--text);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
  }
  .navbar.is-open .navbar__nav { opacity: 1; visibility: visible; transform: none; }
  .navbar.is-open { color: var(--text); background: var(--bg-alt); border-bottom-color: var(--line); }
  .navbar__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .navbar__links a { padding: 12px 14px; font-size: 1.05rem; opacity: 1; }
  .navbar__links a.is-active { background: var(--accent-tint); color: var(--accent); }
  .navbar__links a.is-active::after { display: none; }
  .navbar__author--mobile {
    display: block;
    margin-top: 8px;
    padding: 12px 14px 4px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
  }
}

/* ---------- Side progress nav ---------- */
.side-nav {
  position: fixed;
  top: 50%;
  inset-inline-end: 22px;
  z-index: 40;
  transform: translateY(-50%);
  display: none;
}
.side-nav ol { display: flex; flex-direction: column; gap: 6px; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 6px 0;
}
.side-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  background: transparent;
  transition: transform 0.3s var(--ease-spring), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.side-nav__label {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--navy-2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
  pointer-events: none;
}
.side-nav a:hover .side-nav__label,
.side-nav a:focus-visible .side-nav__label { opacity: 1; transform: none; }
.side-nav a.is-active .side-nav__dot {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
.side-nav a.is-done .side-nav__dot { border-color: var(--cyan); }

@media (min-width: 1280px) { .side-nav { display: block; } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(80px, 12vh, 140px);
  background: var(--bg);
  color: var(--text);
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg); color: var(--text); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.eyebrow__num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  letter-spacing: -0.01em;
}
.section-title--sm { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

.section-lead {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--text-2);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.9;
}

.hl {
  background: linear-gradient(transparent 62%, var(--hl-bg) 0);
  padding-inline: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--gold);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-2);
  font-size: 1rem;
}
.tip .icon { margin-top: 4px; color: var(--gold); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__aside { order: 2; }

@media (max-width: 959px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__aside { order: 0; }
}

.mini-steps { display: grid; gap: 12px; margin-top: 28px; }
.mini-steps li { display: flex; align-items: center; gap: 14px; color: var(--text-2); }
.mini-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease),
    clip-path 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="scale"] { transform: scale(0.96) translateY(16px); }
.js [data-reveal="blur"] { transform: translateY(12px); filter: blur(10px); }
.js [data-reveal="mask"] { transform: none; opacity: 1; clip-path: inset(0 0 0 100%); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) 0 104px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, #1A2C55 0%, transparent 70%),
    var(--navy);
  color: var(--text);
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__grid {
  position: absolute;
  inset: -56px;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(56px, 56px, 0); } }

.hero__orb {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero__orb--a {
  top: -18vmax;
  right: -10vmax;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.75), transparent 65%);
  animation: orb-a 22s ease-in-out infinite alternate;
}
.hero__orb--b {
  bottom: -24vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 65%);
  animation: orb-b 26s ease-in-out infinite alternate;
}
@keyframes orb-a { to { transform: translate3d(-8vmax, 6vmax, 0); } }
@keyframes orb-b { to { transform: translate3d(10vmax, -6vmax, 0); } }

.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__lines {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 60%;
}
.hero__lines path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1;
  opacity: 0.18;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-line 3.2s var(--ease) 0.6s forwards;
}
.hero__lines path:nth-child(2) { opacity: 0.1; animation-delay: 1s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero__chips { display: none; }

@media (min-width: 1180px) {
  .hero__chips { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .chip-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(17, 28, 51, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #CBD5E1;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    animation: chip-in 1s var(--ease) forwards, float 7s ease-in-out infinite alternate;
  }
  .chip-float .icon { color: var(--cyan); }
  .chip-float--1 { top: 24%; right: 7%; animation-delay: 1.1s, 1.1s; }
  .chip-float--2 { top: 62%; right: 10%; animation-delay: 1.3s, 2.4s; }
  .chip-float--3 { top: 28%; left: 7%; animation-delay: 1.5s, 0.6s; }
  .chip-float--4 { top: 66%; left: 9%; animation-delay: 1.7s, 1.8s; }
}
@keyframes chip-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.hero__content { display: flex; flex-direction: column; align-items: center; }

.hero__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin-bottom: 28px;
  animation: hero-in 1s var(--ease) both;
}
.hero__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 50s linear infinite; }
.orbit-ring { fill: none; stroke: rgba(148, 163, 184, 0.25); stroke-width: 1; }
.orbit-ring--inner { stroke-dasharray: 3 6; stroke: rgba(34, 211, 238, 0.35); }
.orbit-nodes circle { fill: var(--cyan); }
.orbit-nodes circle:nth-child(even) { fill: var(--blue); }
.hero__emblem-core {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.5), rgba(17, 28, 51, 0.8));
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.8);
}
.hero__emblem-core .icon { width: 30px; height: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__eyebrow {
  color: var(--muted);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero__title {
  margin-top: 6px;
  font-weight: 800;
  font-size: clamp(3.25rem, 1.6rem + 7vw, 7rem);
  line-height: 1.25;
  /* Room for Arabic descenders: background-clip:text clips at the padding box */
  padding: 0.04em 0.1em 0.2em;
  background: linear-gradient(180deg, #FFFFFF 30%, #BFDBFE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin-top: 4px;
  color: var(--text-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
}
.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--cyan);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 600;
}
.hero__tagline::before,
.hero__tagline::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.credit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: start;
}
.credit-card__item { padding: 16px 28px; }
.credit-card__item + .credit-card__item { border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
.credit-card dt { color: var(--muted); font-size: 0.85rem; }
.credit-card dd { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }

.js [data-hero-in] { animation: hero-in 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  display: block;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
}
.hero__scroll-line {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 560px) {
  .credit-card { grid-template-columns: 1fr; width: 100%; text-align: center; }
  .credit-card__item { padding: 14px 20px; }
  .credit-card__item + .credit-card__item { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__tagline::before, .hero__tagline::after { display: none; }
  .hero__emblem { width: 100px; height: 100px; margin-bottom: 20px; }
}

@media (max-height: 820px) and (min-width: 561px) {
  .hero { padding-bottom: 72px; }
  .hero__emblem { width: 88px; height: 88px; margin-bottom: 12px; }
  .hero__emblem-core { width: 52px; height: 52px; border-radius: 16px; }
  .hero__title { font-size: clamp(3.25rem, 1.6rem + 5.6vw, 6rem); }
  .hero__tagline { margin-top: 10px; }
  .hero__actions { margin-top: 24px; }
  .credit-card { margin-top: 24px; }
  .hero__scroll { display: none; }
}

/* ---------- 02 Intro ---------- */
#intro { overflow: hidden; }
#intro::before {
  content: "";
  position: absolute;
  top: 10%;
  inset-inline-start: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 65%);
  pointer-events: none;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.glass-card {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.intro__card { padding: clamp(22px, 3.5vw, 40px); }
.intro__card .lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 2; color: var(--text); }
.intro__note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1.1rem;
}

.glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
.glance__item { padding-inline: 20px; }
.glance__item:first-child { padding-inline-start: 0; }
.glance__item + .glance__item { border-inline-start: 1px solid var(--line); }
.glance__value { color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.glance dd { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.intro__visual { display: grid; place-items: center; }
.intro-art { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.intro-art__ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.intro-art__ring--dash { stroke-dasharray: 4 8; transform-origin: 180px 180px; animation: spin 60s linear infinite; }
.intro-art__page { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.5; filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.12)); }
.intro-art__line { stroke: var(--line-strong); stroke-width: 8; stroke-linecap: round; }
.intro-art__line--hl { stroke: var(--gold); opacity: 0.75; }
.intro-art__lens { fill: rgba(37, 99, 235, 0.06); stroke: var(--blue); stroke-width: 7; stroke-linecap: round; animation: lens 6s ease-in-out infinite alternate; }
.intro-art__q circle { fill: var(--blue); }
.intro-art__q text { fill: #fff; font-family: var(--font-display); font-weight: 800; font-size: 28px; }
@keyframes lens { from { transform: translate(0, 0); } to { transform: translate(-14px, -32px); } }

@media (max-width: 959px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__visual { order: -1; }
  .intro-art { max-width: 220px; }
}
@media (max-width: 480px) {
  .glance__item { padding-inline: 10px; }
  .glance dd { font-size: 0.85rem; }
}

/* ---------- 03 Divisions ---------- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.divisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.divisions > :nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.divisions > :nth-child(4) { grid-column: 1 / span 2; }

.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease, opacity 0.8s var(--ease);
}
.division-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0deg 220deg, var(--cyan) 290deg, var(--blue) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.division-card:hover,
.division-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.division-card:hover::before,
.division-card:focus-within::before { opacity: 1; animation: rotate-angle 3s linear infinite; }
@keyframes rotate-angle { to { --angle: 360deg; } }

.division-card__num {
  position: absolute;
  top: 18px;
  inset-inline-end: 24px;
  color: var(--line-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
}
.division-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
  transition: transform 0.4s var(--ease-spring);
}
.division-card__icon .icon { width: 26px; height: 26px; }
.division-card:hover .division-card__icon { transform: translateY(-3px) rotate(-8deg); }
.division-card h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem); font-weight: 700; }
.division-card p { color: var(--text-2); }

.division-card--featured {
  --text: #F1F5F9;
  --text-2: #CBD5E1;
  --accent: var(--cyan);
  --accent-tint: rgba(34, 211, 238, 0.12);
  --line-strong: rgba(148, 163, 184, 0.3);
  border-color: transparent;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
    var(--navy-2);
  color: var(--text);
}
.division-card--featured:hover,
.division-card--featured:focus-within { transform: translateY(-8px) scale(1.01); }
.division-card--featured h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.division-card__badge { color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.division-card__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-block: 12px 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-2);
  font-size: 0.98rem;
}
.division-card__list li { display: flex; align-items: center; gap: 8px; }
.division-card__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }

@media (max-width: 1023px) {
  .divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .divisions > :nth-child(3) { grid-column: 1 / -1; grid-row: auto; }
  .divisions > :nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .divisions { grid-template-columns: minmax(0, 1fr); }
  .divisions > * { grid-column: auto !important; }
  .division-card__list { grid-template-columns: 1fr; }
}

/* ---------- Exercises (shared) ---------- */
.exercise__label {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 18px;
  background: var(--card-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.2;
}
.pair__sep { color: var(--accent); }

.options { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease), opacity 0.3s ease, box-shadow 0.25s ease;
}
.option:not([aria-disabled="true"]):hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-2px);
}
.option[aria-disabled="true"] { cursor: default; }

.option__key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--card-2);
  color: var(--text-2);
  font-family: var(--font-display);
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-spring);
}
.option.is-selected { border-color: var(--accent); background: var(--accent-tint); }
.option.is-selected .option__key { background: var(--accent); color: #fff; }

.option.is-correct {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  animation: pop 0.45s var(--ease-spring);
}
.option.is-correct .option__key { background: var(--green); color: #fff; animation: key-glow 0.9s ease-out; }
.option.is-wrong {
  border-color: var(--bad-line);
  background: var(--bad-bg);
  animation: shake 0.45s ease;
}
.option.is-wrong .option__key { background: var(--red); color: #fff; }
.option.is-dim { opacity: 0.5; }

.option__mark {
  margin-inline-start: auto;
  width: 22px;
  height: 22px;
}
.option.is-correct .option__mark { color: var(--ok-text); }
.option.is-wrong .option__mark { color: var(--bad-text); }

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes key-glow {
  from { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  to { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

.exercise__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.solution {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--green);
  border-radius: 14px;
  background: var(--card-2);
  color: var(--text-2);
}
.solution > * + * { margin-top: 12px; }
.solution--why { border-inline-start-color: var(--gold); }
.solution.is-entering { animation: panel-in 0.55s var(--ease) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.solution__title { color: var(--text); font-weight: 600; }
.solution__verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ok-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.solution__verdict .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.solution__verdict--error { color: var(--bad-text); }

.relation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.relation__label { color: var(--muted); font-size: 0.95rem; }
.relation__chain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.relation-rows { display: grid; gap: 10px; }
.relation-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.relation-rows .icon { color: var(--muted); }
.relation-rows small { color: var(--muted); font-size: 0.92rem; }

.tag {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.tag--ok { border-color: var(--ok-line); color: var(--ok-text); background: var(--ok-bg); }

.why-not summary {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}
.why-not ul { display: grid; gap: 8px; margin-top: 10px; font-size: 0.98rem; }

/* Completion */
.sentence {
  margin-bottom: 24px;
  padding: 24px 26px;
  border-radius: 16px;
  border-inline-start: 4px solid var(--accent);
  background: var(--card-2);
  color: var(--text);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  font-weight: 500;
  line-height: 2.2;
}
.blank {
  display: inline-block;
  min-width: 5.5em;
  padding: 0 8px;
  border-bottom: 3px dashed var(--accent);
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.blank.is-filled .blank__text { display: inline-block; animation: drop-in 0.45s var(--ease-spring); }
.blank.is-correct { border-bottom-style: solid; border-color: var(--green); color: var(--ok-text); background: var(--ok-bg); border-radius: 6px 6px 0 0; }
.blank.is-wrong { border-bottom-style: solid; border-color: var(--red); color: var(--bad-text); background: var(--bad-bg); border-radius: 6px 6px 0 0; }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 06 Reading intro (feature) ---------- */
.reading-intro {
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.reading-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.12), transparent 50%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
.reading-intro.is-inview::before { opacity: 1; transform: none; }

.reading-intro__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}
.reading-intro__numeral {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16rem, 42vw, 38rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(148, 163, 184, 0.08);
  opacity: 0;
  transform: scale(1.25);
  transition: opacity 1.6s var(--ease), transform 1.8s var(--ease);
}
.reading-intro.is-inview .reading-intro__numeral { opacity: 1; transform: none; }

.reading-intro__title {
  font-weight: 800;
  font-size: clamp(3rem, 1.6rem + 6vw, 6.25rem);
  line-height: 1.2;
  color: #fff;
}
.reading-intro__hook {
  margin-top: 8px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
}
.section-lead--dark { color: var(--text-2); }
.section-lead--dark strong { color: #fff; }
.section-title--dark { color: #fff; }
.eyebrow--dark { color: var(--cyan); }

/* Flow (read → understand → ...) */
.flow {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}
.flow__step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.flow__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(17, 28, 51, 0.8);
  color: var(--cyan);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.flow__icon .icon { width: 30px; height: 30px; }
.flow__step:hover .flow__icon { border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1); }
.flow__name { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }

.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  inset-inline-start: calc(50% + 46px);
  inset-inline-end: calc(-50% + 46px);
  height: 2px;
  background: linear-gradient(270deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 260ms + 200ms);
}

.js .flow__step > * {
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-spring), border-color 0.4s ease, box-shadow 0.4s ease;
  transition-delay: calc(var(--i, 0) * 260ms);
}
.flow.is-visible .flow__step > * { opacity: 1; transform: none; }
.flow.is-visible .flow__step::after { transform: scaleX(1); }
.flow.is-visible .flow__step:hover > * { transition-delay: 0s; }

@media (max-width: 640px) {
  .flow { flex-direction: column; align-items: stretch; gap: 22px; max-width: 280px; }
  .flow__step { flex-direction: row; gap: 18px; text-align: start; }
  .flow__icon { width: 60px; height: 60px; border-radius: 18px; }
  .flow__icon .icon { width: 24px; height: 24px; }
  .flow__step:not(:last-child)::after {
    top: 64px;
    inset-inline-start: 29px;
    inset-inline-end: auto;
    width: 2px;
    height: 18px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    transform: scaleY(0);
    transform-origin: top center;
  }
  .flow.is-visible .flow__step::after { transform: scaleY(1); }
}

/* ---------- 07 Method timeline ---------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.method__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.method__rule {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--navy-2);
  color: #CBD5E1;
}
.method__rule strong { display: block; margin-top: 6px; color: #fff; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.6; }

.timeline { position: relative; }
.timeline__track {
  position: absolute;
  top: 24px;
  bottom: 24px;
  inset-inline-start: 23px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.timeline__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  border-radius: inherit;
}
.timeline__list { display: grid; gap: 18px; }
.timeline__step { position: relative; padding-inline-start: 72px; }
.timeline__node {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.5s var(--ease-spring);
}
.timeline__step.is-visible .timeline__node { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); }
.timeline__body {
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.timeline__body h3 { font-size: 1.3rem; font-weight: 700; }
.timeline__body p { margin-top: 4px; color: var(--text-2); }
.x-list { display: grid; gap: 6px; margin-top: 10px; }
.x-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.x-list .icon { color: var(--red); width: 18px; height: 18px; stroke-width: 2.6; }

@media (max-width: 959px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .method__aside { position: static; }
}
@media (max-width: 480px) {
  .timeline__step { padding-inline-start: 58px; }
  .timeline__node { width: 40px; height: 40px; }
  .timeline__track { inset-inline-start: 19px; }
  .timeline__body { padding: 16px 18px; }
}

/* ---------- 08 Types ---------- */
.types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.type-card:hover,
.type-card:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}
.type-card__num { position: absolute; top: 18px; inset-inline-end: 20px; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.type-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent);
  transition: transform 0.4s var(--ease-spring);
}
.type-card:hover .type-card__icon { transform: scale(1.1) rotate(-6deg); }
.type-card__icon .icon { width: 22px; height: 22px; }
.type-card__title { margin-top: 6px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.type-card__q { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

@media (max-width: 480px) {
  .types { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 09–13 Reading examples ---------- */
.example__head { margin-bottom: clamp(24px, 3vw, 36px); }
.example__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.passage {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.passage__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.passage__text {
  color: var(--text);
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem);
  line-height: 2.2;
}

.evidence {
  padding: 2px 1px;
  border-radius: 4px;
  background-image: linear-gradient(var(--hl-bg), var(--hl-bg));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.8s var(--ease), color 0.4s ease;
  transition-delay: calc(var(--i, 0) * 260ms);
}
.show-evidence .evidence { background-size: 100% 100%; font-weight: 600; }

.target-word {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px dashed currentColor;
}

.question {
  margin-bottom: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  line-height: 1.6;
}
.question__tag {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.stepper__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s var(--ease);
}
.stepper__btn:not(:disabled):hover { transform: translateY(-1px); border-color: var(--accent); }
.stepper__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.stepper__btn.is-next { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.stepper__btn.is-done { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-text); }

.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.benefit-list li { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.benefit-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

.chain { display: grid; gap: 14px; justify-items: start; }
.chain li {
  position: relative;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  animation: chain-in 0.5s var(--ease) both;
}
.chain li:nth-child(2) { animation-delay: 0.35s; }
.chain li:nth-child(3) { animation-delay: 0.7s; border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-text); }
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 24px;
  width: 2px;
  height: 14px;
  background: var(--line-strong);
}
@keyframes chain-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.contrast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
}
.contrast__side { display: grid; text-align: center; }
.contrast__side small { color: var(--muted); font-size: 0.85rem; }
.contrast__side strong { color: var(--text); font-size: 1.15rem; }
.contrast__arrow { color: var(--muted); width: 24px; height: 24px; }

.converge { display: grid; justify-items: center; gap: 10px; }
.converge__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.converge__items li {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-weight: 500;
  animation: chain-in 0.4s var(--ease) both;
}
.converge__items li:nth-child(2) { animation-delay: 0.1s; }
.converge__items li:nth-child(3) { animation-delay: 0.2s; }
.converge__items li:nth-child(4) { animation-delay: 0.3s; }
.converge__arrow { color: var(--muted); }
.converge__result {
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok-text);
  font-weight: 600;
  animation: chain-in 0.5s var(--ease) 0.5s both;
}

@media (max-width: 959px) {
  .example__grid { grid-template-columns: minmax(0, 1fr); }
  .passage { position: static; }
}
@media (max-width: 480px) {
  .benefit-list { grid-template-columns: 1fr; }
  .stepper__btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 14 Context error ---------- */
.ctx__sentence {
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--card-2);
  color: var(--text);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 2.4;
}
.nowrap { white-space: nowrap; }
.ctx__word {
  display: inline-block;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px dotted var(--line-strong);
  border-radius: 6px 6px 0 0;
  background: none;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ctx__word:hover:not(:disabled) { background: var(--accent-tint); border-bottom-color: var(--accent); }
.ctx__word:disabled { cursor: default; }
.ctx__word.is-miss { animation: shake 0.45s ease; background: var(--card); }
.ctx__word.is-error {
  color: var(--bad-text);
  background: var(--bad-bg);
  border-bottom: 2px solid var(--red);
  text-decoration: line-through 2px;
  animation: pop 0.45s var(--ease-spring);
}
.ctx__word.is-fixed {
  color: var(--ok-text);
  background: var(--ok-bg);
  border-bottom: 2px solid var(--green);
  text-decoration: none;
  animation: pop 0.45s var(--ease-spring);
}
.ctx__feedback { min-height: 1.8em; margin-top: 14px; color: var(--muted); font-size: 1rem; }

/* ---------- 15 Comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1040px;
  margin-inline: auto;
}
.compare__table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}
.compare__head { color: var(--muted); font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.compare__row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.compare__head + .compare__row { border-top: 0; }
.compare__row:hover { background: rgba(148, 163, 184, 0.06); }
.compare__row[aria-selected="true"] {
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset -3px 0 0 var(--cyan);
}
.compare__name { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.compare__name .icon { color: var(--muted); }
.compare__row[aria-selected="true"] .compare__name .icon { color: var(--cyan); }
.compare__key { color: var(--cyan); font-family: var(--font-display); font-weight: 700; }

.compare__tip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.22), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.compare__tip-label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 0.95rem; }
.compare__tip-text { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.7; }
.compare__tip-text.is-changing { animation: panel-in 0.4s var(--ease) both; }

@media (max-width: 860px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare__head, .compare__row { padding: 14px 18px; font-size: 1rem; }
}

/* ---------- 16 Strategies ---------- */
.tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tip-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease, opacity 0.8s var(--ease);
}
.tip-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.tip-card__num {
  position: absolute;
  top: 14px;
  inset-inline-end: 20px;
  color: var(--line-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
}
.tip-card__icon { width: 28px; height: 28px; color: var(--accent); }
.tip-card h3 { margin-top: 14px; font-size: 1.2rem; font-weight: 700; }
.tip-card p { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.75; }

@media (max-width: 959px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tips { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 17 Quiz ---------- */
.quiz-section { overflow: hidden; isolation: isolate; }
.quiz-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.22), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(34, 211, 238, 0.1), transparent 40%);
}

.quiz { max-width: 820px; margin-inline: auto; }
.quiz__card {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.quiz__counter { color: #fff; font-family: var(--font-display); font-weight: 700; }
.quiz__counter span { color: var(--cyan); }
.quiz__type { color: var(--muted); font-weight: 500; }

.quiz__progress {
  height: 8px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.quiz__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(270deg, var(--blue), var(--cyan));
  transition: width 0.6s var(--ease);
}

.quiz__body.is-entering { animation: slide-in 0.45s var(--ease) both; }
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

.quiz__passage {
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border-inline-start: 3px solid var(--cyan);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  line-height: 2;
}
.quiz__question {
  margin-bottom: 22px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.6;
}

.quiz__feedback {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  animation: panel-in 0.4s var(--ease) both;
}
.quiz__feedback .icon { margin-top: 5px; width: 22px; height: 22px; stroke-width: 2.6; }
.quiz__feedback strong { display: block; font-family: var(--font-display); }
.quiz__feedback p { color: var(--text-2); font-size: 1rem; }
.quiz__feedback--ok { background: var(--ok-bg); color: var(--ok-text); }
.quiz__feedback--bad { background: var(--bad-bg); color: var(--bad-text); }

.quiz__actions { display: flex; justify-content: flex-end; margin-top: 22px; min-height: 52px; }

/* Result */
.quiz__result { text-align: center; }
.score-ring { position: relative; width: 180px; height: 180px; margin: 4px auto 18px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-ring__track { stroke: rgba(255, 255, 255, 0.08); }
.score-ring__value {
  stroke: url(#score-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.score-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #fff;
  font-family: var(--font-display);
}
.score-ring__label small { color: var(--muted); font-family: var(--font-body); font-size: 0.9rem; }
.score-ring__num { font-weight: 800; font-size: 2.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }

.quiz__message { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.quiz__sub { margin-top: 6px; color: var(--text-2); }

.review {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin: 26px auto 0;
  text-align: start;
}
.review li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.98rem;
}
.review .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.review .is-ok .icon { color: var(--ok-text); }
.review .is-bad .icon { color: var(--bad-text); }
.review__type { margin-inline-start: auto; color: var(--muted); font-size: 0.88rem; }

.quiz__result .quiz__actions { justify-content: center; gap: 12px; flex-wrap: wrap; }

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall 2.2s var(--ease) forwards;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(520px) rotate(540deg); }
}

/* ---------- 18 Summary ---------- */
.summary { text-align: center; }
.path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 40px;
  margin-top: 12px;
}
.path__step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}
.path__step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: -27px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.7;
}
.path__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.9rem;
}
.path__step--final { border-color: var(--blue); background: var(--blue); color: #fff; }
.path__step--final .path__num { background: rgba(255, 255, 255, 0.2); color: #fff; }

.js .path__step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 180ms);
}
.path.is-visible .path__step { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .path { flex-direction: column; gap: 30px; }
  .path__step { min-width: 220px; justify-content: center; }
  .path__step:not(:last-child)::after {
    inset-inline-end: auto;
    left: 50%;
    top: auto;
    bottom: -21px;
    transform: translateX(-50%) rotate(-135deg);
  }
}

.motto {
  margin-top: clamp(48px, 8vw, 88px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  line-height: 1.5;
  color: var(--text);
}
.motto p { text-wrap: balance; }

/* ---------- 19 Credits ---------- */
.credits {
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.credits::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.credits__inner { display: flex; flex-direction: column; align-items: center; }
.credits__title { color: #fff; font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); }
.credits__tagline { margin-top: 6px; color: var(--cyan); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 600; }
.credits__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block: 44px 40px;
  border-block: 1px solid var(--line);
}
.credits__people > div { padding: 22px 40px; }
.credits__people > div + div { border-inline-start: 1px solid var(--line); }
.credits__people dt { color: var(--muted); font-size: 0.95rem; }
.credits__people dd { margin-top: 4px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); }
.icon--up { transform: rotate(180deg); }

@media (max-width: 560px) {
  .credits__people { grid-template-columns: 1fr; width: 100%; }
  .credits__people > div { padding: 18px 12px; }
  .credits__people > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  background: var(--navy-deep);
  color: var(--gray);
  text-align: center;
  font-size: 0.98rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.footer__inner { display: grid; gap: 6px; }
.footer__title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer strong { color: #E2E8F0; font-weight: 600; }
.footer__sep { margin-inline: 10px; opacity: 0.4; }
.footer__wish { margin-top: 6px; color: #CBD5E1; }

/* ---------- Presentation mode ---------- */
.present-bar {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  animation: bar-in 0.4s var(--ease) both;
}
@keyframes bar-in { from { opacity: 0; transform: translate(-50%, 16px); } }

.present-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.present-bar__btn:hover { background: rgba(255, 255, 255, 0.1); }
.present-bar__btn:disabled { opacity: 0.35; cursor: default; background: none; }
.present-bar__btn--text { padding-inline: 14px; font-size: 0.92rem; font-weight: 600; }
.present-bar__count {
  min-width: 84px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.present-bar__count [data-present-current] { color: var(--cyan); }
.present-bar__sep { width: 1px; height: 22px; margin-inline: 4px; background: rgba(255, 255, 255, 0.16); }

.is-presenting { scroll-padding-top: 0; scroll-snap-type: y proximity; }
.is-presenting .navbar { transform: translateY(-100%); }
.is-presenting .side-nav,
.is-presenting .cursor-glow,
.is-presenting .footer { display: none; }
.is-presenting .slide {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  padding-block: 56px 104px;
}
.is-presenting .slide > .container { width: 100%; }
.is-presenting .hero { padding-top: 48px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js .flow__step > *,
  .js .path__step { opacity: 1; transform: none; filter: none; clip-path: none; }
  .hero__particles,
  .cursor-glow { display: none !important; }
}
