:root {
  color-scheme: dark;
  --bg: #06111a;
  --bg-deep: #081925;
  --bg-panel: rgba(13, 30, 44, 0.88);
  --bg-panel-strong: #102331;
  --text: #edf4fb;
  --muted: #9cb4c6;
  --muted-strong: #c6d7e6;
  --line: rgba(137, 177, 204, 0.18);
  --accent: #49c7c7;
  --accent-strong: #2fa0b3;
  --warm: #f3ab52;
  --success: #7bd38d;
  --danger: #ff8e88;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shell: 1240px;
  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --transition: 220ms ease;
  --transition-slow: 420ms ease;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eff5fb;
  --bg-deep: #e6eef6;
  --bg-panel: rgba(255, 255, 255, 0.88);
  --bg-panel-strong: #ffffff;
  --text: #122232;
  --muted: #5a6f81;
  --muted-strong: #334759;
  --line: rgba(18, 34, 50, 0.11);
  --accent: #1b93a0;
  --accent-strong: #176c82;
  --warm: #d38a3b;
  --success: #2b8b62;
  --danger: #d96b63;
  --shadow-lg: 0 28px 80px rgba(18, 34, 50, 0.14);
  --shadow-md: 0 18px 44px rgba(18, 34, 50, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(73, 199, 199, 0.16), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(243, 171, 82, 0.12), transparent 22rem),
    linear-gradient(180deg, #06111a 0%, #081925 54%, #06111a 100%);
  transition: background var(--transition-slow), color var(--transition);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(237, 244, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 244, 251, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 78%);
  opacity: 0.48;
}

html.theme-animating body,
html.theme-animating body::before,
html.theme-animating header,
html.theme-animating footer,
html.theme-animating section,
html.theme-animating article,
html.theme-animating aside,
html.theme-animating nav a,
html.theme-animating button,
html.theme-animating input,
html.theme-animating textarea,
html.theme-animating summary,
html.theme-animating details,
html.theme-animating blockquote,
html.theme-animating .btn,
html.theme-animating .chip,
html.theme-animating .mini-chip,
html.theme-animating .stack-pill,
html.theme-animating .darkmode-toggle__container,
html.theme-animating .darkmode-toggle__scenery,
html.theme-animating .darkmode__head,
html.theme-animating .darkmode__head::before,
html.theme-animating .darkmode__head::after,
html.theme-animating .darkmode__body,
html.theme-animating .darkmode__shadow {
  transition:
    background 540ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 540ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 540ms cubic-bezier(0.22, 1, 0.36, 1),
    color 320ms ease,
    box-shadow 540ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 540ms cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 540ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

::view-transition-group(root) {
  animation-duration: 540ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 540ms;
  mix-blend-mode: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(6, 17, 26, 0.74);
  border-bottom: 1px solid rgba(237, 244, 251, 0.08);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.header__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, var(--accent), var(--warm));
  box-shadow: 0 0 0 8px rgba(73, 199, 199, 0.12);
  flex: 0 0 auto;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__copy strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.brand__copy span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.darkmode-toggle {
  --toggle-size: 5.4px;
  --toggle-width: 10.625em;
  --toggle-height: 5.625em;
  --toggle-offset: calc((var(--toggle-height) - var(--darkmode-diameter)) / 2);
  --toggle-bg: linear-gradient(#2c4770, #070e2b 35%, #628cac 50% 70%, #a6c5d4) no-repeat;
  --darkmode-diameter: 4.375em;
  --toggle-radius: 99em;
  --toggle-transition: 0.4s;
  --toggle-accent: #de7d2f;
  --toggle-robot-bg: #ffffff;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--toggle-size);
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  user-select: none;
  min-width: max-content;
}

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

.darkmode-toggle__checkbox {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

.darkmode-toggle__checkbox:focus-visible + .darkmode-toggle__container {
  outline: 0.22em solid var(--accent);
  outline-offset: 0.18em;
}

.darkmode-toggle__container {
  position: relative;
  width: var(--toggle-width);
  height: var(--toggle-height);
  overflow: visible;
  border-radius: var(--toggle-radius);
  background: var(--toggle-bg);
  background-size: 100% 11.25em;
  background-position-y: -5.625em;
  border: 0.18em solid rgba(22, 34, 45, 0.08);
  isolation: isolate;
  box-shadow:
    inset 0 0 0 0.1em rgba(255, 255, 255, 0.12),
    0 1.1em 2.1em rgba(15, 23, 32, 0.16);
  transition: background-position var(--toggle-transition), border-color var(--transition), box-shadow var(--transition);
}

.darkmode {
  position: absolute;
  top: calc(var(--toggle-offset) - 1.5em + 0.2em);
  left: var(--toggle-offset);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  transition: left var(--toggle-transition);
}

.darkmode__head-container {
  position: relative;
  z-index: 2;
  transform-origin: 1.25em 3.75em;
  transition: transform var(--toggle-transition);
}

.darkmode__head {
  position: relative;
  z-index: 1;
  width: 2.5em;
  height: 1.688em;
  margin-bottom: -0.188em;
  overflow: hidden;
  border-radius: var(--toggle-radius) var(--toggle-radius) 0 0;
  background:
    linear-gradient(
      transparent 0.063em,
      dimgray 0.063em 0.313em,
      transparent 0.313em 0.375em,
      var(--toggle-accent) 0.375em 0.5em,
      transparent 0.5em 1.313em,
      silver 1.313em 1.438em,
      transparent 1.438em
    ),
    linear-gradient(45deg, transparent 0.188em, var(--toggle-robot-bg) 0.188em 1.25em, transparent 1.25em),
    linear-gradient(-45deg, transparent 0.188em, var(--toggle-robot-bg) 0.188em 1.25em, transparent 1.25em),
    linear-gradient(var(--toggle-robot-bg) 1.25em, transparent 1.25em);
  filter: drop-shadow(0 0.063em 0.125em gray);
}

.darkmode__head::before {
  content: "";
  position: absolute;
  top: 0.413em;
  left: 50%;
  width: 0.563em;
  height: 0.563em;
  border-radius: var(--toggle-radius);
  transform: translateX(-50%);
  background:
    radial-gradient(0.125em circle at 0.25em 0.375em, red, transparent),
    radial-gradient(0.063em circle at 0.375em 0.188em, var(--toggle-robot-bg) 50%, transparent 100%),
    linear-gradient(45deg, #000 0.188em, dimgray 0.313em 0.375em, #000 0.5em);
  box-shadow:
    0 0 0 0.089em lightgray,
    0.563em 0.281em 0 -0.148em,
    0.563em 0.281em 0 -0.1em var(--toggle-robot-bg),
    0.563em 0.281em 0 -0.063em;
  transition: left var(--toggle-transition);
}

.darkmode__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.375em;
  width: 100%;
  height: 0.188em;
  background: linear-gradient(
    to right,
    var(--toggle-accent) 0.125em,
    transparent 0.125em 0.188em,
    var(--toggle-accent) 0.188em 0.313em,
    transparent 0.313em 0.375em,
    var(--toggle-accent) 0.375em 0.938em,
    transparent 0.938em 1em,
    var(--toggle-accent) 1em 1.125em,
    transparent 1.125em 1.875em,
    var(--toggle-accent) 1.875em 2em,
    transparent 2em 2.063em,
    var(--toggle-accent) 2.063em 2.25em,
    transparent 2.25em 2.313em,
    var(--toggle-accent) 2.313em 2.375em,
    transparent 2.375em 2.438em,
    var(--toggle-accent) 2.438em
  );
  transition: background-position var(--toggle-transition);
}

.darkmode__antenna {
  position: absolute;
  width: 0.059em;
  border-radius: var(--toggle-radius) var(--toggle-radius) 0 0;
  transform: translateY(-90%);
  transition: left var(--toggle-transition), right var(--toggle-transition);
}

.darkmode__antenna:nth-child(1) {
  right: 0.938em;
  height: 0.938em;
  background: linear-gradient(#000 0.188em, silver 0.188em);
}

.darkmode__antenna:nth-child(2) {
  left: 50%;
  height: 0.375em;
  background: silver;
  transform: translate(-50%, -90%);
}

.darkmode__body {
  position: relative;
  z-index: 1;
  width: 4.375em;
  height: 4.375em;
  overflow: hidden;
  border-radius: var(--toggle-radius);
  transform: rotate(45deg);
  transition: transform var(--toggle-transition);
  background:
    linear-gradient(
      -90deg,
      var(--toggle-robot-bg) 4%,
      var(--toggle-accent) 4% 10%,
      transparent 10% 90%,
      var(--toggle-accent) 90% 96%,
      var(--toggle-robot-bg) 96%
    ),
    linear-gradient(
      var(--toggle-robot-bg) 4%,
      var(--toggle-accent) 4% 10%,
      transparent 10% 90%,
      var(--toggle-accent) 90% 96%,
      var(--toggle-robot-bg) 96%
    ),
    linear-gradient(to right, transparent 2.156em, silver 2.156em 2.219em, transparent 2.188em),
    linear-gradient(transparent 2.156em, silver 2.156em 2.219em, transparent 2.188em);
  background-color: var(--toggle-robot-bg);
}

.darkmode__body::after {
  content: "";
  position: absolute;
  left: 0.563em;
  bottom: 1.5em;
  width: 0.188em;
  height: 0.188em;
  border-radius: 50%;
  background: rgb(236, 236, 236);
  color: rgb(236, 236, 236);
  box-shadow:
    0.875em 0.938em,
    0 -1.25em,
    0.875em -2.125em,
    2.125em -2.125em,
    3.063em -1.25em,
    3.063em 0,
    2.125em 0.938em;
}

.darkmode__body::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 2.625em;
  height: 2.625em;
  border: 0.313em solid var(--toggle-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(1em circle at center, rgb(236, 236, 236) 50%, transparent 51%),
    radial-gradient(1.25em circle at center, var(--toggle-robot-bg) 50%, transparent 51%),
    linear-gradient(-90deg, transparent 42%, var(--toggle-accent) 42% 58%, transparent 58%),
    linear-gradient(var(--toggle-robot-bg) 42%, var(--toggle-accent) 42% 58%, var(--toggle-robot-bg) 58%);
}

.artificial__hidden {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.darkmode__shadow {
  position: absolute;
  bottom: 0;
  left: calc(var(--toggle-offset) - 0.938em);
  z-index: 1;
  width: var(--darkmode-diameter);
  height: 20%;
  border-radius: 50%;
  background: #3a271c;
  box-shadow: 0.313em 0 3.125em #3a271c;
  opacity: 0.25;
  transform: skew(-70deg);
  transition: left var(--toggle-transition), transform var(--toggle-transition);
}

.darkmode-toggle__scenery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.darkmode-toggle__scenery::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30%;
  background: #b18d71;
  z-index: 1;
}

.darkmode-toggle__cloud {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  transition: right var(--toggle-transition), transform var(--toggle-transition), opacity var(--toggle-transition);
}

.darkmode-toggle__cloud:nth-last-child(1) {
  top: 2.813em;
  right: 1.875em;
  width: 0.875em;
  height: 0.625em;
  background: linear-gradient(to top right, #ffffffae, #ffffffae);
  filter: blur(0.125em) drop-shadow(0.313em 0.313em #ffffffae) drop-shadow(-0.625em 0 #fff) drop-shadow(-0.938em -0.125em #fff);
}

.darkmode-toggle__cloud:nth-last-child(2) {
  top: 0.625em;
  right: 4.375em;
  width: 0.875em;
  height: 0.375em;
  background: #dfdedeae;
  filter: blur(0.125em) drop-shadow(-0.313em -0.188em #e0dfdfae) drop-shadow(-0.625em -0.188em #bbbbbbae) drop-shadow(-1em 0.063em #cfcfcfae);
}

.darkmode-toggle__cloud:nth-last-child(3) {
  top: 1.25em;
  right: 0.938em;
  width: 0.875em;
  height: 0.375em;
  background: #ffffffae;
  filter: blur(0.125em) drop-shadow(0.438em 0.188em #ffffffae) drop-shadow(-0.625em 0.313em #ffffffae);
}

.gomrassen,
.hermes,
.chenini {
  position: absolute;
  top: 100%;
  border-radius: var(--toggle-radius);
  background: linear-gradient(#fff, #6e8ea2);
}

.gomrassen {
  left: 0.938em;
  width: 1.875em;
  height: 1.875em;
  box-shadow: 0 0 0.188em #ffffff52, 0 0 0.188em #6e8ea24b;
  transition: top var(--toggle-transition);
}

.gomrassen::before,
.gomrassen::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  box-shadow: inset 0 0 0.063em rgb(140, 162, 169);
  background: rgb(184, 196, 200);
}

.gomrassen::before {
  top: 0.313em;
  left: 0.313em;
  width: 0.438em;
  height: 0.438em;
}

.gomrassen::after {
  top: 0.75em;
  left: 1.25em;
  width: 0.25em;
  height: 0.25em;
}

.hermes {
  left: 3.438em;
  width: 0.625em;
  height: 0.625em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: top 0.6s;
}

.chenini {
  left: 4.375em;
  width: 0.5em;
  height: 0.5em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: top 0.8s;
}

.tatto-1,
.tatto-2 {
  position: absolute;
  width: 1.25em;
  height: 1.25em;
  border-radius: var(--toggle-radius);
}

.tatto-1 {
  top: 0.625em;
  right: 3.125em;
  background: #fefefe;
  box-shadow: 0 0 0.438em #fdf4e1;
  transition: top var(--toggle-transition);
}

.tatto-2 {
  top: 2.188em;
  right: 1.25em;
  background: linear-gradient(#e6ac5c, #d75449);
  box-shadow: 0 0 0.438em #e6ad5c3d, 0 0 0.438em #d755494f;
  transition: top 0.7s;
}

.darkmode-toggle__star {
  position: absolute;
  top: 100%;
  width: 0.063em;
  height: 0.063em;
  border-radius: var(--toggle-radius);
  background: #fff;
  color: #fff;
  filter: drop-shadow(0 0 0.063em #fff);
}

.darkmode-toggle__star:nth-child(1) {
  left: 3.75em;
  box-shadow: 1.25em 0.938em, -1.25em 2.5em, 0 1.25em, 1.875em 0.625em, -3.125em 1.875em, 1.25em 2.813em;
  transition: top 0.2s;
}

.darkmode-toggle__star:nth-child(2) {
  left: 4.688em;
  box-shadow: 0.625em 0, 0 0.625em, -0.625em -0.625em, 0.625em 0.938em, -3.125em 1.25em, 1.25em -1.563em;
  transition: top 0.3s;
}

.darkmode-toggle__star:nth-child(3) {
  left: 5.313em;
  box-shadow: -0.625em -0.625em, -2.188em 1.25em, -2.188em 0, -3.75em -0.625em, -3.125em -0.625em, -2.5em -0.313em, 0.75em -0.625em;
  transition: top var(--toggle-transition);
}

.darkmode-toggle__star:nth-child(4) {
  left: 1.875em;
  width: 0.125em;
  height: 0.125em;
  transition: top 0.5s;
}

.darkmode-toggle__star:nth-child(5) {
  left: 5em;
  width: 0.125em;
  height: 0.125em;
  transition: top 0.6s;
}

.darkmode-toggle__star:nth-child(6) {
  left: 2.5em;
  width: 0.125em;
  height: 0.125em;
  transition: top 0.7s;
}

.darkmode-toggle__star:nth-child(7) {
  left: 3.438em;
  width: 0.125em;
  height: 0.125em;
  transition: top 0.8s;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container {
  background-position-y: 0;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(1) {
  top: 0.625em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(2) {
  top: 1.875em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(3) {
  top: 1.25em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(4),
.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(5) {
  top: 3.438em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(6) {
  top: 0.313em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__star:nth-child(7) {
  top: 1.875em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode-toggle__cloud {
  right: -100%;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .gomrassen {
  top: 0.938em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .hermes {
  top: 2.5em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .chenini {
  top: 2.75em;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .tatto-1,
.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .tatto-2 {
  top: 100%;
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode {
  left: calc(100% - var(--darkmode-diameter) - var(--toggle-offset));
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode__shadow {
  left: calc(100% - var(--darkmode-diameter) - var(--toggle-offset) + 0.938em);
  transform: skew(70deg);
}

.darkmode-toggle__checkbox:checked + .darkmode-toggle__container .darkmode__body {
  transform: rotate(225deg);
}

.darkmode-toggle__checkbox:hover + .darkmode-toggle__container .darkmode__head::before {
  left: 100%;
}

.darkmode-toggle__checkbox:not(:checked):hover + .darkmode-toggle__container .darkmode__antenna:nth-child(1) {
  right: 1.5em;
}

.darkmode-toggle__checkbox:hover + .darkmode-toggle__container .darkmode__antenna:nth-child(2) {
  left: 0.938em;
}

.darkmode-toggle__checkbox:hover + .darkmode-toggle__container .darkmode__head::after {
  background-position: 1.375em 0;
}

.darkmode-toggle__checkbox:checked:hover + .darkmode-toggle__container .darkmode__head::before {
  left: 0;
}

.darkmode-toggle__checkbox:checked:hover + .darkmode-toggle__container .darkmode__antenna:nth-child(2) {
  left: calc(100% - 0.938em);
}

.darkmode-toggle__checkbox:checked:hover + .darkmode-toggle__container .darkmode__head::after {
  background-position: -1.375em 0;
}

.darkmode-toggle__checkbox:active + .darkmode-toggle__container .darkmode__head-container {
  transform: rotate(25deg);
}

.darkmode-toggle__checkbox:checked:active + .darkmode-toggle__container .darkmode__head-container {
  transform: rotate(-25deg);
}

.darkmode-toggle:hover .darkmode__head::before,
.darkmode-toggle:hover .darkmode__antenna:nth-child(2) {
  left: 50% !important;
}

.darkmode-toggle:hover .darkmode__antenna:nth-child(1) {
  right: 0.938em !important;
}

.darkmode-toggle:hover .darkmode__head::after {
  background-position: 0 0 !important;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(237, 244, 251, 0.06);
  border-color: rgba(237, 244, 251, 0.1);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--text);
  background: rgba(73, 199, 199, 0.12);
  border-color: rgba(73, 199, 199, 0.28);
}

.site-nav__back {
  background: rgba(243, 171, 82, 0.12);
  color: var(--muted-strong) !important;
  border-color: rgba(243, 171, 82, 0.22) !important;
}

.hero {
  padding: 56px 0 24px;
}

.hero--compact {
  padding-bottom: 10px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.hero__grid--compact {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.hero__copy,
.hero__panel,
.route-card,
.panel-card,
.stack-layer,
.module-card,
.ethics-banner,
.stage-card,
  .objective-card,
  .matrix-card,
  .question-card,
  .glossary-card,
  .reference-card,
  .impact-card,
  .flow-card,
  .case-card,
  .mitigation-card,
  .insight-card,
  .evidence-card,
  .deep-card,
  .telemetry-panel,
  .simulation-controls,
  .scenario-button,
  .defense-toggle,
  .range-card,
  .sim-metric,
  .sim-status-card,
  .layer-effect,
  .facilitator-card,
  .loading-card,
  .sim-panel-error,
  .module-button {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
}

.hero__copy {
  padding: 36px;
  background: linear-gradient(135deg, rgba(16, 35, 49, 0.95), rgba(11, 26, 38, 0.94));
}

.hero__panel {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 18px;
  background: rgba(10, 25, 37, 0.86);
}

.panel-card--glow {
  background: linear-gradient(135deg, rgba(73, 199, 199, 0.12), rgba(10, 25, 37, 0.92));
}

.panel-card__label,
.module-rail__label,
.stack-layer__kicker,
.insight-card__label,
.mitigation-card__layer,
.module-card__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3.1rem, 6vw, 5.3rem);
  line-height: 0.96;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.18rem;
}

.hero__lead,
.stage-lead,
.hero__copy p,
.section-head p,
.route-card p,
.panel-card p,
.stack-layer p,
.module-card p,
.ethics-banner p,
.insight-card p,
.case-card p,
.mitigation-card p,
.matrix-card p,
.glossary-card p,
.reference-card p,
.objective-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero__lead {
  font-size: 1.06rem;
  margin: 18px 0 0;
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(237, 244, 251, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(73, 199, 199, 0.24);
}

.btn--ghost {
  background: rgba(237, 244, 251, 0.04);
}

.hero__meta,
.module-card__chips,
.module-pillbox,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__meta {
  margin-top: 18px;
}

.chip,
.mini-chip,
.stack-pill,
.module-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(237, 244, 251, 0.1);
  background: rgba(237, 244, 251, 0.06);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-strong);
}

.chip::before,
.mini-chip::before,
.stack-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(73, 199, 199, 0.28);
}

.module-card__tag {
  background: rgba(243, 171, 82, 0.12);
  border-color: rgba(243, 171, 82, 0.18);
}

.signal-list,
.path-list,
.case-list,
.insight-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.section {
  padding: 34px 0;
}

.section--tall {
  padding-top: 14px;
}

.section--tight {
  padding-top: 18px;
}

.section-head,
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.journey-grid,
.module-gallery,
.impact-grid,
.flow-grid,
.case-grid,
.mitigation-grid,
.objective-grid,
.matrix-grid,
.question-deck,
.glossary-grid,
.reference-grid,
.insight-grid,
.evidence-strip,
.deep-grid,
.telemetry-grid,
.simulation-metrics,
.layer-effects,
.guide-grid,
.details-grid {
  display: grid;
  gap: 18px;
}

.journey-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-card,
.module-card,
.objective-card,
.matrix-card,
.glossary-card,
.reference-card,
.impact-card,
.flow-card,
.case-card,
.mitigation-card,
.insight-card,
.deep-card,
.telemetry-panel,
.evidence-card,
.sim-metric,
.layer-effect {
  padding: 22px;
}

.route-card__step,
.objective-card__step,
.flow-card__step,
.question-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(73, 199, 199, 0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.stack-map {
  display: grid;
  gap: 16px;
}

.stack-layer {
  padding: 22px;
  background: linear-gradient(135deg, rgba(16, 35, 49, 0.96), rgba(8, 25, 37, 0.94));
}

.stack-layer__top,
.module-card__header,
.impact-card__top,
.matrix-card__top,
.question-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  flex-wrap: wrap;
}

.stack-layer__count,
.matrix-card__module,
.module-button__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.stack-layer__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.module-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after {
  content: "->";
  font-family: var(--font-mono);
}

.citation-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.citation-strip > span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.citation-strip > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

.citation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(73, 199, 199, 0.25);
  background: rgba(73, 199, 199, 0.1);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.evidence-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.evidence-card {
  background: rgba(73, 199, 199, 0.08);
  box-shadow: none;
}

.evidence-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.ethics-banner {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(73, 199, 199, 0.1), rgba(10, 25, 37, 0.95));
}

.site-footer {
  padding: 28px 0 52px;
}

.footer__in {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(237, 244, 251, 0.08);
}

.footer__in strong {
  display: block;
  font-family: var(--font-head);
}

.footer__in span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.explorer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.module-rail {
  position: sticky;
  top: 96px;
  padding: 20px;
  display: grid;
  gap: 12px;
  background: rgba(10, 25, 37, 0.86);
}

.module-button {
  width: 100%;
  text-align: left;
  padding: 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.module-button strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 1rem;
}

.module-button__summary {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.module-button:hover,
.module-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 199, 199, 0.3);
}

.module-button.is-active {
  background: rgba(73, 199, 199, 0.12);
  border-color: rgba(73, 199, 199, 0.34);
}

.module-stage {
  display: grid;
  gap: 18px;
}

.stage-card {
  padding: 24px;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.deep-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deep-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(73, 199, 199, 0.09), transparent 42%),
    rgba(10, 25, 37, 0.82);
}

.deep-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(73, 199, 199, 0.16);
  opacity: 0.5;
}

.deep-card__index {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(73, 199, 199, 0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.deep-card p,
.telemetry-panel p,
.sim-metric p,
.layer-effect p,
.facilitator-card p {
  color: var(--muted);
  line-height: 1.75;
}

.telemetry-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.telemetry-panel {
  background: rgba(10, 25, 37, 0.82);
}

.telemetry-panel--warm {
  background: linear-gradient(135deg, rgba(243, 171, 82, 0.12), rgba(10, 25, 37, 0.86));
}

.signal-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.signal-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(237, 244, 251, 0.08);
  background: rgba(237, 244, 251, 0.04);
}

.signal-card span {
  color: var(--muted);
  line-height: 1.65;
}

.impact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-bar {
  overflow: hidden;
  height: 12px;
  margin: 14px 0 12px;
  border-radius: 999px;
  background: rgba(237, 244, 251, 0.08);
}

.impact-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid,
.mitigation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-card--full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(73, 199, 199, 0.08), rgba(10, 25, 37, 0.86));
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(237, 244, 251, 0.09);
  background: rgba(237, 244, 251, 0.04);
  overflow: hidden;
}

.detail-box summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 700;
  list-style: none;
}

.detail-box summary::-webkit-details-marker {
  display: none;
}

.detail-box__body {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.objective-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(237, 244, 251, 0.1);
  background: rgba(237, 244, 251, 0.04);
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-button.is-active {
  background: rgba(73, 199, 199, 0.14);
  border-color: rgba(73, 199, 199, 0.3);
  color: var(--text);
}

.matrix-grid,
.question-deck,
.glossary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.reference-card h3 a {
  color: var(--text);
}

.reference-card h3 a:hover,
.reference-card h3 a:focus-visible {
  color: var(--accent);
}

.simulation-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.simulation-controls {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 20px;
  background: rgba(10, 25, 37, 0.86);
}

.scenario-list,
.defense-list,
.simulation-stage {
  display: grid;
  gap: 12px;
}

.simulation-stage {
  gap: 18px;
}

.scenario-button,
.defense-toggle {
  width: 100%;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.scenario-button span,
.defense-toggle span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

.scenario-button strong,
.defense-toggle strong {
  font-family: var(--font-head);
}

.scenario-button:hover,
.scenario-button:focus-visible,
.defense-toggle:hover,
.defense-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 199, 199, 0.3);
}

.scenario-button.is-active,
.defense-toggle.is-active {
  background: rgba(73, 199, 199, 0.12);
  border-color: rgba(73, 199, 199, 0.34);
}

.range-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.range-card span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.range-card strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
}

.range-card input {
  width: 100%;
  accent-color: var(--accent);
}

.simulation-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sim-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sim-status-card {
  padding: 18px;
  background: rgba(10, 25, 37, 0.82);
}

.sim-status-card span,
.metric-delta span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sim-status-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.sim-status-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.sim-status-card--good {
  border-color: rgba(123, 211, 141, 0.34);
  background: rgba(123, 211, 141, 0.1);
}

.sim-status-card--warning {
  border-color: rgba(243, 171, 82, 0.32);
  background: rgba(243, 171, 82, 0.1);
}

.sim-status-card--critical {
  border-color: rgba(255, 142, 136, 0.32);
  background: rgba(255, 142, 136, 0.1);
}

.sim-metric {
  background: rgba(10, 25, 37, 0.82);
}

.sim-metric__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.sim-metric__top span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sim-metric__top strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
}

.sim-meter {
  overflow: hidden;
  height: 12px;
  margin: 16px 0 12px;
  border-radius: 999px;
  background: rgba(237, 244, 251, 0.08);
}

.sim-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width var(--transition-slow), background var(--transition);
}

.sim-metric--good .sim-meter span {
  background: linear-gradient(90deg, var(--success), var(--accent));
}

.sim-metric--warning .sim-meter span {
  background: linear-gradient(90deg, var(--warm), var(--accent));
}

.sim-metric--critical .sim-meter span {
  background: linear-gradient(90deg, var(--danger), var(--warm));
}

.metric-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(237, 244, 251, 0.05);
}

.metric-delta strong {
  font-family: var(--font-mono);
}

.metric-delta--better strong {
  color: var(--success);
}

.metric-delta--worse strong {
  color: var(--danger);
}

.metric-delta--neutral strong {
  color: var(--muted-strong);
}

.sim-metric__caption {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.sim-action-row {
  display: grid;
  gap: 10px;
}

.sim-action {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(237, 244, 251, 0.12);
  background: rgba(237, 244, 251, 0.05);
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 800;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.sim-action:hover,
.sim-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 199, 199, 0.3);
}

.sim-action--primary {
  background: rgba(73, 199, 199, 0.12);
  border-color: rgba(73, 199, 199, 0.28);
  color: var(--text);
}

.simulation-controls .sim-action {
  color: #edf4fb;
  background: rgba(73, 199, 199, 0.16);
  border-color: rgba(73, 199, 199, 0.26);
}

.simulation-controls .sim-action--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.loading-card,
.sim-panel-error {
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
  box-shadow: none;
}

.sim-panel-error {
  border-color: rgba(255, 142, 136, 0.32);
  background: rgba(255, 142, 136, 0.1);
}

.sim-panel-error h3 {
  color: var(--text);
}

.layer-effects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layer-effect {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: rgba(10, 25, 37, 0.82);
}

.layer-effect span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(73, 199, 199, 0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 800;
}

.layer-effect p {
  margin: 0;
}

.layer-effect strong {
  color: var(--text);
}

.facilitator-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(73, 199, 199, 0.1), rgba(10, 25, 37, 0.9));
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.guide-grid > div {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(237, 244, 251, 0.08);
  background: rgba(237, 244, 251, 0.04);
}

.takeaway {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(73, 199, 199, 0.08);
}

.score-panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(73, 199, 199, 0.24);
  background: rgba(73, 199, 199, 0.08);
  font-family: var(--font-mono);
  color: var(--muted-strong);
}

.score-panel strong {
  color: var(--text);
}

.question-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-button {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(237, 244, 251, 0.1);
  background: rgba(237, 244, 251, 0.04);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.choice-button:hover,
.choice-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 199, 199, 0.28);
}

.choice-button.is-selected {
  border-color: rgba(73, 199, 199, 0.26);
}

.choice-button.is-correct {
  background: rgba(123, 211, 141, 0.12);
  border-color: rgba(123, 211, 141, 0.36);
}

.choice-button.is-wrong {
  background: rgba(255, 142, 136, 0.12);
  border-color: rgba(255, 142, 136, 0.32);
}

.feedback {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(237, 244, 251, 0.05);
  color: var(--muted);
  line-height: 1.65;
}

.feedback strong {
  color: var(--text);
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(237, 244, 251, 0.12);
  background: rgba(237, 244, 251, 0.05);
  color: var(--text);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(73, 199, 199, 0.3);
  box-shadow: 0 0 0 4px rgba(73, 199, 199, 0.1);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(27, 147, 160, 0.14), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(211, 138, 59, 0.1), transparent 22rem),
    linear-gradient(180deg, #eff5fb 0%, #e8f0f7 54%, #f8fbfd 100%);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(18, 34, 50, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 34, 50, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.42), transparent 82%);
  opacity: 0.46;
}

html[data-theme="light"] .skip-link:focus {
  background: #ffffff;
  color: #06111a;
  box-shadow: 0 18px 36px rgba(18, 34, 50, 0.12);
}

html[data-theme="light"] .site-header {
  background: rgba(239, 245, 251, 0.84);
  border-bottom: 1px solid rgba(18, 34, 50, 0.08);
}

html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a:focus-visible {
  color: var(--text);
  background: rgba(18, 34, 50, 0.04);
  border-color: rgba(18, 34, 50, 0.08);
}

html[data-theme="light"] .site-nav a.is-active {
  color: var(--accent-strong);
  background: rgba(27, 147, 160, 0.12);
  border-color: rgba(27, 147, 160, 0.22);
}

html[data-theme="light"] .site-nav__back {
  background: rgba(211, 138, 59, 0.12);
  color: var(--muted-strong) !important;
  border-color: rgba(211, 138, 59, 0.18) !important;
}

html[data-theme="light"] .darkmode-toggle__container {
  border-color: rgba(18, 34, 50, 0.08);
  box-shadow:
    inset 0 0 0 0.1em rgba(255, 255, 255, 0.12),
    0 1.1em 2.1em rgba(18, 34, 50, 0.14);
}

html[data-theme="light"] .hero__copy,
html[data-theme="light"] .stack-layer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(235, 244, 248, 0.95));
}

html[data-theme="light"] .hero__panel,
html[data-theme="light"] .module-rail {
  background: rgba(243, 248, 252, 0.94);
}

html[data-theme="light"] .panel-card,
html[data-theme="light"] .detail-box,
html[data-theme="light"] .feedback,
html[data-theme="light"] .choice-button,
html[data-theme="light"] .search-box input,
html[data-theme="light"] .filter-button,
html[data-theme="light"] .impact-card,
html[data-theme="light"] .evidence-card,
html[data-theme="light"] .deep-card,
html[data-theme="light"] .telemetry-panel,
html[data-theme="light"] .signal-card,
html[data-theme="light"] .reference-card,
html[data-theme="light"] .scenario-button,
html[data-theme="light"] .defense-toggle,
html[data-theme="light"] .range-card,
html[data-theme="light"] .sim-metric,
html[data-theme="light"] .sim-status-card,
html[data-theme="light"] .layer-effect,
html[data-theme="light"] .guide-grid > div,
html[data-theme="light"] .loading-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(18, 34, 50, 0.08);
}

html[data-theme="light"] .panel-card--glow,
html[data-theme="light"] .ethics-banner,
html[data-theme="light"] .case-card--full,
html[data-theme="light"] .telemetry-panel--warm,
html[data-theme="light"] .facilitator-card {
  background: linear-gradient(135deg, rgba(27, 147, 160, 0.1), rgba(255, 255, 255, 0.96));
}

html[data-theme="light"] .btn {
  border-color: rgba(18, 34, 50, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

html[data-theme="light"] .btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(73, 199, 199, 0.2);
}

html[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, 0.56);
}

html[data-theme="light"] .chip,
html[data-theme="light"] .mini-chip,
html[data-theme="light"] .stack-pill {
  border-color: rgba(18, 34, 50, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .module-card__tag {
  background: rgba(211, 138, 59, 0.12);
  border-color: rgba(211, 138, 59, 0.18);
}

html[data-theme="light"] .impact-bar {
  background: rgba(18, 34, 50, 0.08);
}

html[data-theme="light"] .score-panel {
  border-color: rgba(27, 147, 160, 0.24);
  background: rgba(27, 147, 160, 0.08);
}

html[data-theme="light"] .citation,
html[data-theme="light"] .takeaway,
html[data-theme="light"] .metric-delta,
html[data-theme="light"] .sim-action {
  border-color: rgba(27, 147, 160, 0.2);
  background: rgba(27, 147, 160, 0.08);
}

html[data-theme="light"] .sim-panel-error {
  border-color: rgba(217, 107, 99, 0.26);
  background: rgba(217, 107, 99, 0.08);
}

html[data-theme="light"] .footer__in {
  border-top: 1px solid rgba(18, 34, 50, 0.08);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero__grid,
  .hero__grid--compact,
  .explorer-shell,
  .insight-grid,
  .objective-grid,
  .journey-grid,
  .module-gallery,
  .flow-grid,
  .case-grid,
  .mitigation-grid,
  .matrix-grid,
  .question-deck,
  .glossary-grid,
  .reference-grid,
  .impact-grid,
  .evidence-strip,
  .deep-grid,
  .telemetry-grid,
  .simulation-shell,
  .simulation-metrics,
  .sim-status-grid,
  .layer-effects,
  .guide-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .module-rail,
  .simulation-controls {
    position: static;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(var(--shell), calc(100% - 28px));
  }

  .header__in,
  .section-head,
  .stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__controls {
    width: 100%;
    justify-content: space-between;
  }

  .hero__copy,
  .hero__panel,
  .route-card,
  .module-card,
  .stage-card,
  .ethics-banner,
  .objective-card,
  .matrix-card,
  .question-card,
  .glossary-card,
  .reference-card,
  .module-button,
  .stack-layer,
  .simulation-controls,
  .facilitator-card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
}

@media (max-width: 640px) {
  .header__controls,
  .site-nav,
  .hero__actions,
  .hero__meta,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .site-nav a,
  .filter-button {
    width: 100%;
  }

  .header__controls {
    align-items: stretch;
  }

  .darkmode-toggle {
    align-self: flex-start;
  }

  h1 {
    max-width: 8.5ch;
    font-size: clamp(2.35rem, 11.5vw, 3.2rem);
    line-height: 1.02;
  }

  .hero__lead {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .choice-button,
  .site-nav a,
  .filter-button,
  .module-button,
  .darkmode-toggle__container,
  .darkmode,
  .darkmode__head-container,
  .darkmode__head::before,
  .darkmode__head::after,
  .darkmode__antenna,
  .darkmode__body,
  .darkmode__shadow,
  .darkmode-toggle__cloud,
  .darkmode-toggle__star,
  .gomrassen,
  .hermes,
  .chenini,
  .tatto-1,
  .tatto-2 {
    transition: none !important;
  }
}
