:root {
  color-scheme: dark;

  --display: "Chakra Petch", "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --shell: 1120px;
  --measure: 68ch;
  --radius: 10px;
  --radius-sm: 6px;
  --gutter: clamp(1.15rem, 4vw, 2rem);

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.83rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.62vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.15vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.8rem + 3vw, 4.4rem);

  --bg: #060911;
  --bg-soft: #0a0f1a;
  --surface: #0d1420;
  --surface-2: #111a2b;
  --fg: #e8f3f7;
  --fg-soft: #b7c4d6;
  --muted: #6d7f99;
  --line: #1d2740;
  --line-soft: #141c30;
  --accent: #2dd4ea;
  --accent-soft: rgba(45, 212, 234, 0.12);
  --accent-hover: #7ce6f4;
  --gold: #ff4fd8;
  --crit: #ff5d78;
  --high: #ffb020;
  --code-bg: #0b1220;
  --code-fg: #d7e3ee;
  --ring: rgba(45, 212, 234, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 12px 34px -20px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, 0.9);
  --nav-bg: rgba(6, 9, 17, 0.75);
  --nav-fg: #b7c4d6;
  --pop: #ff4fd8;
  --pop-soft: rgba(255, 79, 216, 0.14);
  --pop-glow: rgba(255, 79, 216, 0.45);
  --circuit-op: 0.55;
  --grain-op: 0.05;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22240%22%20viewBox%3D%220%200%20240%20240%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.4%22%3E%3Cpath%20d%3D%22M0%2040%20H60%20V90%20H140%20V40%20H240%22/%3E%3Cpath%20d%3D%22M20%20240%20V180%20H90%20V140%22/%3E%3Cpath%20d%3D%22M240%20160%20H190%20V200%20H130%22/%3E%3Crect%20x%3D%2296%22%20y%3D%2296%22%20width%3D%2232%22%20height%3D%2232%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M96%20108%20H78%20M96%20120%20H78%20M128%20108%20H146%20M128%20120%20H146%20M108%2096%20V78%20M120%2096%20V78%20M108%20128%20V146%20M120%20128%20V146%22/%3E%3C/g%3E%3Cg%20fill%3D%22currentColor%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2240%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2290%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%2290%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%2240%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22180%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22140%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22190%22%20cy%3D%22160%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22190%22%20cy%3D%22200%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22200%22%20r%3D%222.4%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: var(--circuit-op);
  mask-image: linear-gradient(180deg, black, black 70vh, transparent 160vh);
  -webkit-mask-image: linear-gradient(180deg, black, black 70vh, transparent 160vh);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 18%, var(--accent), transparent),
    radial-gradient(1.5px 1.5px at 82% 8%, var(--gold), transparent),
    radial-gradient(1px 1px at 60% 32%, var(--accent), transparent),
    radial-gradient(1.5px 1.5px at 32% 62%, var(--gold), transparent),
    radial-gradient(1px 1px at 92% 48%, var(--accent), transparent),
    radial-gradient(1.5px 1.5px at 48% 88%, var(--accent), transparent),
    radial-gradient(1px 1px at 15% 78%, var(--gold), transparent);
  opacity: 0.55;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--bg); }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, opacity 0.18s ease;
}
a:hover { color: var(--accent-hover); }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  min-width: 0;
}

.site-nav__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(145deg, #2dd4ea, #ff4fd8);
  color: #060911;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.site-nav__name {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  min-width: 0;
}
.site-nav__role {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--nav-fg);
  padding: 0.25rem 0;
}
.site-nav__links a::before {
  content: "_";
  opacity: 0.5;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] { color: var(--fg); }

.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg-soft);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 17px; height: 17px; display: block; }

.nav-utils {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}

.lang-toggle {
  width: auto;
  min-width: 34px;
  height: 30px;
  padding: 0 0.6rem;
  border: none;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
}

.site-nav__toggle { display: none; }

@media (max-width: 860px) {
  .site-nav__toggle { display: grid; }
  .site-nav__role { display: none; }

  .site-nav__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-flow: row wrap;
    align-items: center;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }
  .site-nav__menu.is-open {
    max-height: 26rem;
    visibility: visible;
    padding-bottom: 1rem;
  }
  .site-nav__links {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav__links li { border-bottom: 1px solid var(--line-soft); }
  .site-nav__links a {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.8rem;
  }
  .site-nav__links a::after { display: none; }
  .site-nav__links a[aria-current="page"] { color: var(--accent); }
  .site-nav__menu .nav-utils { margin: 1rem 0 0; align-self: flex-start; }
}

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #eef1f5;
  background:
    radial-gradient(60ch 42ch at 108% 4%, rgba(255, 79, 216, 0.22), transparent 60%),
    radial-gradient(90ch 50ch at 8% -12%, rgba(45, 212, 234, 0.24), transparent 60%),
    radial-gradient(70ch 45ch at 88% 108%, rgba(45, 212, 234, 0.16), transparent 60%),
    linear-gradient(155deg, #0e1a2e 0%, #0a1120 55%, #060911 100%);
}

.hero-band__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-band__glow--1 {
  width: 340px;
  height: 340px;
  top: -120px;
  left: 42%;
  background: radial-gradient(circle, rgba(45, 212, 234, 0.5), transparent 70%);
}
.hero-band__glow--2 {
  width: 300px;
  height: 300px;
  bottom: -110px;
  right: 4%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.4), transparent 70%);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22240%22%20viewBox%3D%220%200%20240%20240%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.4%22%3E%3Cpath%20d%3D%22M0%2040%20H60%20V90%20H140%20V40%20H240%22/%3E%3Cpath%20d%3D%22M20%20240%20V180%20H90%20V140%22/%3E%3Cpath%20d%3D%22M240%20160%20H190%20V200%20H130%22/%3E%3Crect%20x%3D%2296%22%20y%3D%2296%22%20width%3D%2232%22%20height%3D%2232%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M96%20108%20H78%20M96%20120%20H78%20M128%20108%20H146%20M128%20120%20H146%20M108%2096%20V78%20M120%2096%20V78%20M108%20128%20V146%20M120%20128%20V146%22/%3E%3C/g%3E%3Cg%20fill%3D%22currentColor%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2240%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2290%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%2290%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%2240%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22180%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22140%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22190%22%20cy%3D%22160%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22190%22%20cy%3D%22200%22%20r%3D%222.4%22/%3E%3Ccircle%20cx%3D%22130%22%20cy%3D%22200%22%20r%3D%222.4%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  mask-image: radial-gradient(115% 95% at 28% 12%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 95% at 28% 12%, #000 12%, transparent 78%);
  pointer-events: none;
}

.hero-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.hero-band__inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}

@media (min-width: 1050px) {
  .hero-band__inner { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px); }
}

.term-card {
  position: relative;
  border-radius: var(--radius);
  background: rgba(10, 15, 26, 0.72);
  border: 1px solid rgba(45, 212, 234, 0.35);
  box-shadow: 0 0 0 1px rgba(45, 212, 234, 0.08), 0 24px 60px -24px rgba(45, 212, 234, 0.35), 0 20px 44px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  font-family: var(--mono);
  align-self: center;
}
.term-card::before,
.term-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  pointer-events: none;
}
.term-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #2dd4ea;
  border-left: 2px solid #2dd4ea;
  border-radius: var(--radius) 0 0 0;
}
.term-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #ff4fd8;
  border-right: 2px solid #ff4fd8;
  border-radius: 0 0 var(--radius) 0;
}
@media (max-width: 1049px) {
  .term-card { grid-column: 1 / -1; max-width: 440px; }
}

.term-card__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(45, 212, 234, 0.2);
  background: rgba(255, 255, 255, 0.02);
}
.term-card__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.term-card__bar span:nth-child(1) { background: #ff5f56; opacity: 0.7; }
.term-card__bar span:nth-child(2) { background: #ffbd2e; opacity: 0.7; }
.term-card__bar span:nth-child(3) { background: #27c93f; opacity: 0.7; }
.term-card__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(226, 240, 245, 0.4);
}

.term-card__body {
  position: relative;
  padding: 1.1rem 1.2rem 1.3rem;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #cde7ee;
}
.term-card__body .k { color: #ff8fe6; }
.term-card__body .s { color: #7ce6f4; }
.term-card__body .c { color: #56708a; }
.term-card__body .p { color: #2dd4ea; }

.term-card__avatar {
  float: right;
  shape-outside: circle(50%);
  width: 72px;
  height: 72px;
  margin: 0 0 0.6rem 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(45, 212, 234, 0.55);
  box-shadow: 0 0 22px rgba(45, 212, 234, 0.35);
}
.term-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.term-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1.1rem 0.9rem;
  border-top: 1px solid rgba(45, 212, 234, 0.18);
}
.term-card__tags span {
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(45, 212, 234, 0.3);
  background: rgba(45, 212, 234, 0.06);
  color: #9fe6f1;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.challenge-box {
  position: relative;
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius);
  background: var(--code-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--mono);
  max-width: var(--measure);
}
.challenge-box::before,
.challenge-box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 2;
  pointer-events: none;
}
.challenge-box::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius) 0 0 0;
}
.challenge-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) 0;
}
.challenge-box__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.challenge-box__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.challenge-box__bar span:nth-child(1) { background: #ff5f56; opacity: 0.7; }
.challenge-box__bar span:nth-child(2) { background: #ffbd2e; opacity: 0.7; }
.challenge-box__bar span:nth-child(3) { background: #27c93f; opacity: 0.7; }
.challenge-box__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.challenge-box__lede {
  margin: 0;
  padding: 0.9rem 1.1rem 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}
article.content pre.challenge-box__cipher {
  background: none;
  border: none;
  margin: 0;
  padding: 0.7rem 1.1rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-band__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-band__photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-band__photo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(45, 212, 234, 0.8), rgba(255, 79, 216, 0.7), rgba(45, 212, 234, 0.8));
  opacity: 0.55;
  filter: blur(9px);
}

.hero-band__photo {
  position: relative;
  width: clamp(104px, 14vw, 138px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

.hero-band__social {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-band__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #cfdae6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-band__social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.hero-band__social svg { width: 16px; height: 16px; }

.hero-band__text { min-width: 0; }

.hero-band__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(45, 212, 234, 0.4);
  border-radius: 999px;
  background: rgba(45, 212, 234, 0.08);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7ce6f4;
}
.hero-band__kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4ea;
  box-shadow: 0 0 8px 1px rgba(45, 212, 234, 0.9);
}

.hero-band h1 {
  font-family: var(--display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.03;
  margin: 0 0 1.9rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-band h1 .grad {
  background: linear-gradient(100deg, #2dd4ea 5%, #ff4fd8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-band p.lede {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: #c3ccd8;
  max-width: 56ch;
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}

.hero-band__links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; }

.btn--primary {
  background: linear-gradient(100deg, #2dd4ea 0%, #7ce6f4 45%, #ff4fd8 100%);
  color: #071019;
  box-shadow: 0 16px 34px -14px rgba(45, 212, 234, 0.45), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
}
.btn--primary:hover {
  background: linear-gradient(100deg, #56ddf0 0%, #9deef8 45%, #ff77e0 100%);
  color: #030a10;
  box-shadow: 0 20px 42px -14px rgba(45, 212, 234, 0.55), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #e6ecf3;
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: transparent;
}

.hero-stats > div {
  position: relative;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-stats > div::before,
.hero-stats > div::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  opacity: 0.85;
}
.hero-stats > div::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid #2dd4ea;
  border-left: 1.5px solid #2dd4ea;
}
.hero-stats > div::after {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid #ff4fd8;
  border-right: 1.5px solid #ff4fd8;
}
.hero-stats > div:first-child { border-left: none; }

.hero-stats dt {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9fb5cb;
  margin: 0.35rem 0 0;
}
.hero-stats dd {
  font-family: var(--display);
  font-size: clamp(2rem, 1.7rem + 1.1vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 0 26px rgba(45, 212, 234, 0.4);
}

@media (max-width: 720px) {
  .hero-band__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }
  .hero-band__side { flex-direction: row; align-items: center; gap: 1.25rem; }
  .hero-stats > div { border-left: none; }
}

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60ch 30ch at 88% -20%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.page-head .wrap { position: relative; }

.page-head h1 {
  font-size: var(--step-3);
  margin: 0 0 0.6rem;
  color: var(--fg);
  max-width: 24ch;
}

.page-head > .wrap > p {
  color: var(--muted);
  margin: 0;
  font-size: 0.83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 70ch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.back-link:hover { color: var(--accent); gap: 0.7rem; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.main { min-width: 0; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.sidebar {
  font-size: 0.9rem;
  align-self: start;
  position: sticky;
  top: 5.5rem;
}
@media (max-width: 900px) {
  .sidebar { position: static; }
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar h4 {
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-top: 1px solid var(--line-soft); }
.sidebar li:first-child { border-top: none; padding-top: 0; }
.sidebar li:last-child { padding-bottom: 0; }

.sidebar li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.18s ease;
}
.sidebar li a:hover { color: var(--accent); }

.sidebar .sidebar-meta {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.2rem;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 3.25rem 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.section__head:first-child { margin-top: 0; }

.section__head h2 {
  position: relative;
  font-size: var(--step-2);
  margin: 0;
  padding-left: 0.95rem;
}
.section__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.section__head .more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease, gap 0.18s ease;
}
.section__head .more:hover { color: var(--accent); gap: 0.65rem; }

.lead-text {
  font-size: 1.06rem;
  color: var(--fg-soft);
  max-width: var(--measure);
  text-wrap: pretty;
}

.row-list { list-style: none; margin: 0; padding: 0; }

.row-list > li {
  position: relative;
  padding: 1.35rem 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.row-list > li + li { margin-top: 0.6rem; }

.row-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px 0 var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.row-list > li:hover {
  background: var(--surface);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft);
  transform: translateY(-1px);
}
.row-list > li:hover::before { opacity: 1; transform: scaleY(1); }

.row-list > li:has(.severity--critical)::before { background: var(--crit); box-shadow: 0 0 10px 0 var(--crit); }
.row-list > li:has(.severity:not(.severity--critical))::before { background: var(--high); box-shadow: 0 0 10px 0 var(--high); }

.row-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.row-title h3 {
  flex: 1 1 60%;
  min-width: 0;
  font-size: var(--step-1);
  margin: 0;
  letter-spacing: -0.015em;
}
.row-title h3 a {
  color: var(--fg);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.row-list > li:hover .row-title h3 a { background-size: 100% 1px; color: var(--accent); }

.row-meta {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.row-meta.severity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--high);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.row-meta.severity::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.row-meta.severity--critical { color: var(--crit); }

.row-list p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 0.94rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.row-list--compact > li > p:not(.tags) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.row-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.row-list--grid > li { margin-top: 0 !important; height: 100%; }
.row-list--grid > li::before { left: 0; top: 0; bottom: 0; width: 2px; }
.row-list--grid .row-title { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.row-list--grid .row-title h3 { flex: none; }
.row-list--grid .row-meta { margin-left: 0; }
@media (max-width: 900px) {
  .row-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .row-list--grid { grid-template-columns: 1fr; }
}

.row-list .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.row-list .tags span {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.row-list > li:hover .tags span { border-color: var(--line); }
.row-list .tags span::before { content: "#"; opacity: 0.55; }

.chip-grid,
article.content ul.chip-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  max-width: 100%;
}

.chip-grid li {
  margin: 0;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-soft);
  font-size: 0.87rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip-grid li:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.cert-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft);
  transform: translateY(-2px);
}
.cert-card::before,
.cert-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.cert-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius) 0 0 0;
}
.cert-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) 0;
}
.cert-card:hover::before,
.cert-card:hover::after { opacity: 1; }

.cert-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cert-card h3 {
  font-size: var(--step-1);
  margin: 0;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.cert-card__full {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0.45rem 0 0.85rem;
}

.cert-card__desc {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.96rem;
  max-width: 68ch;
  text-wrap: pretty;
}

.details-block {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.details-block summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  transition: opacity 0.18s ease;
}
.details-block summary::-webkit-details-marker { display: none; }
.details-block summary:hover { opacity: 0.75; }

.details-block summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.25s ease;
}
.details-block[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.details-block > *:not(summary) {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
  text-wrap: pretty;
}
.details-block > p { margin: 1rem 0 0; }
.details-block strong { color: var(--fg); }
.details-block code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  text-decoration: none;
  transition: gap 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.link-arrow:hover {
  gap: 0.7rem;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.list-filter {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.list-filter svg {
  position: absolute;
  left: 0.9rem;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.list-filter input {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 1rem 0.62rem 2.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.list-filter input::placeholder { color: var(--muted); }
.list-filter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.filter-empty {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.5rem 0;
}

article.content {
  min-width: 0;
  font-size: 1.02rem;
  color: var(--fg-soft);
}
article.content > * { max-width: var(--measure); }

article.content h2 {
  position: relative;
  font-size: var(--step-2);
  color: var(--fg);
  margin: 2.75rem 0 1rem;
  padding-left: 0.85rem;
}
article.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

article.content h3 {
  font-size: var(--step-1);
  color: var(--fg);
  margin: 2.25rem 0 0.75rem;
}

article.content p { margin: 0 0 1.2rem; text-wrap: pretty; }
article.content strong { color: var(--fg); font-weight: 650; }

article.content > p:first-of-type:not(.fig):not(.meta-line)::first-letter {
  font-family: var(--display);
  font-size: 3.6em;
  font-weight: 600;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.09em 0 0;
  color: var(--accent);
}

article.content ul,
article.content ol { margin: 0 0 1.3rem; padding-left: 1.25rem; }
article.content li { margin-bottom: 0.45rem; }
article.content li::marker { color: var(--accent); }

article.content blockquote {
  margin: 1.6rem 0;
  padding: 0.35rem 0 0.35rem 1.25rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}

article.content img {
  display: block;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
article.content img:hover { box-shadow: var(--shadow); }

article.content p.fig { margin: 1.6rem 0; max-width: 100%; }
article.content p.fig img { margin: 0; }

article.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
article.content th,
article.content td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
article.content th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

article.content code { font-family: var(--mono); font-size: 0.88em; }

article.content :not(pre) > code {
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  color: var(--code-fg);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  word-break: break-word;
}

.code-block {
  position: relative;
  margin: 0 0 1.6rem;
  max-width: 100%;
}

article.content pre {
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
  overflow-x: auto;
  font-size: 0.855rem;
  line-height: 1.6;
  margin: 0 0 1.6rem;
  max-width: 100%;
  tab-size: 2;
  scrollbar-width: thin;
}
.code-block pre { margin: 0; }

.code-lang {
  position: absolute;
  top: 0.6rem;
  left: 1.15rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.8;
  pointer-events: none;
}
.code-block.has-lang pre { padding-top: 2.1rem; }

.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.code-block:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.is-done { color: var(--accent); border-color: var(--accent); }

.lang-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.7rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.lang-note::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.meta-line {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.2rem 0 0.9rem;
}

.reserved { opacity: 0.65; }
h2.reserved::before { background: var(--muted); }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 120;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(8, 10, 13, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2.75rem 0 2.25rem;
  font-size: 0.88rem;
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--fg-soft);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { color: var(--accent); }

.site-footer .links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-nav, .site-footer, .sidebar, .read-progress, .copy-btn, .list-filter { display: none !important; }
  .layout { display: block; padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  article.content img { break-inside: avoid; }
}
