/* chown.uz · neon / cyberpunk portfolio
   No external fonts or assets: everything is served from this origin (strict CSP friendly). */

:root {
  --bg: #05040b;
  --bg-2: #0b0918;
  --panel: rgba(17, 13, 36, 0.78);
  --panel-solid: #110d24;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --violet: #8b5cf6;
  --green: #39ff88;
  --amber: #ffd23f;
  --text: #ecebff;
  --muted: #a7a5cc;
  --dim: #6e6b98;
  --line: rgba(0, 240, 255, 0.22);
  --line-strong: rgba(0, 240, 255, 0.55);
  --line-m: rgba(255, 43, 214, 0.32);

  --glow-c: 0 0 6px rgba(0, 240, 255, 0.8), 0 0 22px rgba(0, 240, 255, 0.45);
  --glow-m: 0 0 6px rgba(255, 43, 214, 0.85), 0 0 24px rgba(255, 43, 214, 0.45);

  --mono: ui-monospace, "JetBrains Mono", "Fira Code", "Cascadia Code", "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 43, 214, 0.12), transparent 60%),
    radial-gradient(900px 600px at 110% 30%, rgba(0, 240, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CRT scanlines over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7ff8ff; }
strong { color: #fff; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

::selection { background: var(--magenta); color: #000; }

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

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--magenta);
  color: #000;
  font-family: var(--mono);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #000; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(5, 4, 11, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent);
  opacity: 0.7;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
}
.logo:hover { color: #fff; }
.logo-prompt { color: var(--cyan); text-shadow: var(--glow-c); margin-right: 0.35em; }
.logo-tld { color: var(--magenta); text-shadow: var(--glow-m); }

.site-nav {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
}
.site-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 6px 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--magenta);
  box-shadow: var(--glow-m);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.nav-idx { color: var(--magenta); margin-right: 0.5em; font-size: 0.72rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: currentColor;
  box-shadow: var(--glow-c);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { content: ""; left: 0; right: 0; top: -7px; }
.nav-toggle-bar::after { content: ""; left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; box-shadow: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-c: var(--cyan);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btn-c);
  border: 1px solid var(--btn-c);
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--btn-c); color: #05040b; }

.btn--primary {
  --btn-c: var(--magenta);
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.18), rgba(139, 92, 246, 0.18));
  color: #fff;
  text-shadow: var(--glow-m);
}
.btn--primary:hover { color: #05040b; text-shadow: none; }

.btn--ghost { --btn-c: var(--cyan); }

.btn-meta {
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 120px;
  isolation: isolate;
}

.hero-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.32;
}

.hero-sun {
  position: absolute;
  left: 74%;
  bottom: 22%;
  width: min(70vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, 50%);
  z-index: -2;
  border-radius: 50%;
  background:
    repeating-linear-gradient(to bottom, transparent 0 14px, var(--bg) 14px 18px),
    linear-gradient(to bottom, rgba(255, 210, 63, 0.55), rgba(255, 43, 214, 0.5) 55%, rgba(139, 92, 246, 0.2));
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 75%);
  filter: blur(0.5px);
  opacity: 0.55;
}

.hero-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 48%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 43, 214, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 100%);
  animation: grid-move 2.4s linear infinite;
}
.hero-grid::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 18px 4px rgba(255, 43, 214, 0.65);
}

@keyframes grid-move {
  from { background-position: 0 0; }
  to { background-position: 0 56px; }
}

.hero-inner { position: relative; }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}

/* Glitch heading */
.glitch {
  position: relative;
  margin: 0;
  max-width: 14ch;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 2px #fff,
    0 0 18px rgba(0, 240, 255, 0.55),
    0 0 48px rgba(255, 43, 214, 0.35);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  text-shadow: none;
  transform: translate(-3px, 0);
  mix-blend-mode: screen;
  animation: glitch-a 3.2s infinite steps(1);
}
.glitch::after {
  color: var(--magenta);
  text-shadow: none;
  transform: translate(3px, 0);
  mix-blend-mode: screen;
  animation: glitch-b 2.7s infinite steps(1);
}

@keyframes glitch-a {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
  87% { clip-path: inset(12% 0 70% 0); transform: translate(-6px, -1px); }
  89% { clip-path: inset(58% 0 22% 0); transform: translate(5px, 1px); }
  91% { clip-path: inset(30% 0 52% 0); transform: translate(-4px, 0); }
  93% { clip-path: inset(80% 0 4% 0); transform: translate(3px, 0); }
}
@keyframes glitch-b {
  0%, 80%, 100% { clip-path: inset(0 0 100% 0); }
  81% { clip-path: inset(66% 0 14% 0); transform: translate(6px, 1px); }
  83% { clip-path: inset(6% 0 82% 0); transform: translate(-5px, 0); }
  85% { clip-path: inset(40% 0 40% 0); transform: translate(4px, -1px); }
}

.role {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.6em;
}
.role-prompt { color: var(--magenta); text-shadow: var(--glow-m); }
.typed { color: var(--cyan); text-shadow: var(--glow-c); }

.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: -0.45em;
  vertical-align: text-bottom;
  background: var(--cyan);
  box-shadow: var(--glow-c);
  animation: blink 1s steps(1) infinite;
}
.caret--inline { margin-left: 0; height: 1em; }
@keyframes blink { 50% { opacity: 0; } }

.hero-lead {
  max-width: 600px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 10px 36px;
  margin: 46px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}
.hero-meta dd { margin: 2px 0 0; color: var(--text); }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green), 0 0 18px rgba(57, 255, 136, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drip 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------------- Sections ---------------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}
.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.06) 30%, rgba(139, 92, 246, 0.06) 70%, transparent);
}
.section--alt::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-m), transparent);
}

.section-title {
  margin: 0 0 44px;
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 14px;
}
.section-title .idx {
  font-family: var(--mono);
  font-size: 0.55em;
  color: var(--magenta);
  text-shadow: var(--glow-m);
}
.section-title .slashes {
  font-family: var(--mono);
  font-size: 0.55em;
  color: var(--dim);
}

.sub-title {
  margin: 64px 0 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Panels with corner brackets */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.panel::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  filter: drop-shadow(0 0 4px var(--cyan));
}
.panel::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--magenta);
  border-right: 2px solid var(--magenta);
  filter: drop-shadow(0 0 4px var(--magenta));
}

/* Chips */
.chips {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  border: 1px solid var(--line);
  background: rgba(0, 240, 255, 0.05);
}
.chips--muted li {
  color: var(--muted);
  border-color: rgba(167, 165, 204, 0.22);
  background: rgba(167, 165, 204, 0.04);
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-text p { margin: 0 0 18px; color: var(--muted); }
.about-text .lead {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--text);
}

.terminal { overflow: hidden; }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 240, 255, 0.04);
}
.terminal-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dim);
}
.terminal-bar span:nth-child(1) { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--green); }
.terminal-bar em {
  margin-left: auto;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--dim);
}
.terminal-body {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.t-prompt { color: var(--green); text-shadow: 0 0 8px rgba(57, 255, 136, 0.5); }
.t-dim { color: var(--dim); }
.t-str { color: var(--amber); }
.t-dir { color: var(--cyan); }

/* ---------------- Book ---------------- */
.book-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.book-cover-wrap { perspective: 1000px; }
.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.1;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.05) 0 1px, transparent 1px 22px),
    linear-gradient(160deg, #22093d 0%, #0d0820 55%, #05040b 100%);
  border: 1px solid var(--magenta);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.25),
    0 0 30px rgba(255, 43, 214, 0.35),
    18px 24px 60px rgba(0, 0, 0, 0.6);
  transform: rotateY(-10deg) rotateX(3deg);
  transition: transform 0.5s ease;
  overflow: hidden;
}
.book-cover:hover,
.book-cover-wrap:hover .book-cover { transform: rotateY(0) rotateX(0); }
.book-cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-30%);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 60% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}

.book-cover-tag {
  align-self: flex-start;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
}
.book-cover-icon {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}
.book-cover-title {
  margin-top: 6px;
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.8);
}
.book-cover-sub {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--magenta);
  text-shadow: var(--glow-m);
}
.book-cover-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 43, 214, 0.35);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-cover-foot span { white-space: nowrap; }

.book-title {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
}
.book-lang {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  vertical-align: middle;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #05040b;
  background: var(--cyan);
  box-shadow: var(--glow-c);
}
.book-info > p { color: var(--muted); margin: 0 0 22px; }

.modules {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  font-size: 0.93rem;
}
.modules li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.14);
}
.modules span {
  flex: none;
  font-family: var(--mono);
  color: var(--magenta);
  text-shadow: var(--glow-m);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.fineprint {
  margin: 22px 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--dim) !important;
}

/* ---------------- Certifications ---------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cert {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cert:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.12);
  transform: translateY(-3px);
}

.pill {
  align-self: flex-start;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.pill--done { color: var(--green); box-shadow: 0 0 12px rgba(57, 255, 136, 0.25); }
.pill--progress { color: var(--amber); box-shadow: 0 0 12px rgba(255, 210, 63, 0.22); }
.pill--event { color: var(--magenta); box-shadow: 0 0 12px rgba(255, 43, 214, 0.25); }

.cert-issuer {
  margin: 20px 0 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.cert-name {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}
.cert-meta {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
}
.cert-desc {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.cert-goal {
  margin: auto 0 0;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--amber);
}

.cert-thumb {
  position: relative;
  display: block;
  margin-top: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cert-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.cert-thumb-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(5, 4, 11, 0.95));
}
.cert-thumb:hover img { filter: none; transform: scale(1.03); }

/* Roadmap */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 9px; right: 0;
  top: 9px;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, var(--amber) 33%, var(--line) 55%, var(--line) 100%);
}
.roadmap li {
  position: relative;
  padding: 34px 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.roadmap .node {
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--dim);
}
.roadmap strong { font-size: 1rem; line-height: 1.3; }
.roadmap li > span:last-child {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
}
.roadmap .is-done .node {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.roadmap .is-now .node {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.18), 0 0 14px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
.roadmap .is-now strong { color: var(--amber); }

.enrolled { margin-top: 52px; }
.enrolled-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.enrolled .chips { margin-top: 14px; }

/* ---------------- Contact ---------------- */
.contact-lead {
  max-width: 620px;
  margin: -16px 0 34px;
  font-size: 1.1rem;
  color: var(--muted);
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}
.contact-row .contact-link {
  flex: 0 1 400px;
  min-width: 0;
}
.contact-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 20px 20px;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.contact-link svg {
  grid-row: 1 / 3;
  width: 28px; height: 28px;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}
.contact-label { font-weight: 700; }
.contact-handle {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-link:hover {
  color: #fff;
  border-color: var(--magenta);
  box-shadow: 0 0 26px rgba(255, 43, 214, 0.22);
}
.contact-link:hover svg { color: var(--magenta); filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.7)); }

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.footer-inner { display: grid; gap: 8px; }
.footer-cmd { margin: 0; font-family: var(--mono); color: var(--text); word-break: break-word; }
.footer-note { margin: 0; color: var(--dim); }
.footer-note a { color: var(--muted); border-bottom: 1px dashed var(--dim); }
.footer-note a:hover { color: var(--cyan); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--magenta);
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 0 40px rgba(255, 43, 214, 0.35);
}
.lightbox::backdrop {
  background: rgba(5, 4, 11, 0.85);
  backdrop-filter: blur(4px);
}
.lightbox-img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  background: #000;
}
.lightbox-caption {
  margin: 0;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.lightbox-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 40px; height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(5, 4, 11, 0.8);
  border: 1px solid var(--magenta);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--magenta); color: #000; }

/* ---------------- Reveal on scroll (only when JS is on) ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- 404 ---------------- */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.error-code {
  margin: 0;
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 900;
  line-height: 1;
  max-width: none;
}
.error-msg {
  margin: 18px 0 30px;
  font-family: var(--mono);
  color: var(--muted);
  word-break: break-word;
}
.error-msg .t-err { color: var(--magenta); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: rgba(5, 4, 11, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.12);
  }
  .site-nav a::after { display: none; }

  .hero { padding: 48px 0 110px; }
  .hero-sun { left: 78%; width: 90vw; opacity: 0.35; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }

  .book-grid { grid-template-columns: 1fr; }
  .book-cover-wrap { max-width: 280px; }
  .modules { grid-template-columns: 1fr; }
  .book-actions .btn { flex: 1 1 100%; justify-content: center; }

  .cert-grid { grid-template-columns: 1fr; }

  .roadmap { grid-template-columns: 1fr; gap: 26px; }
  .roadmap::before {
    left: 9px; right: auto;
    top: 10px; bottom: 10px;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--green) 0%, var(--amber) 33%, var(--line) 55%, var(--line) 100%);
  }
  .roadmap li { padding: 0 0 0 38px; }
}

@media (max-width: 480px) {
  .contact-row .contact-link,
  .contact-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
}

/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .glitch::before,
  .glitch::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
