:root {
  --bg: #f4efe5;
  --bg-2: #ebe3d4;
  --paper: rgba(255, 251, 244, 0.9);
  --paper-solid: #fbf7ef;
  --panel: #f8f2e6;
  --panel-strong: #f5ecdd;
  --ink: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: rgba(17, 24, 39, 0.13);
  --line-strong: rgba(17, 24, 39, 0.2);
  --accent: #0057d9;
  --accent-2: #b45309;
  --accent-soft: rgba(0, 87, 217, 0.08);
  --ok: #0f766e;
  --shadow: 0 10px 35px rgba(17, 24, 39, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 8% -8%, rgba(180, 83, 9, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 95% 8%, rgba(0, 87, 217, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, #f6f1e8 52%, var(--bg-2) 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at 8% -8%, rgba(180, 83, 9, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 95% 8%, rgba(0, 87, 217, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, #f6f1e8 52%, var(--bg-2) 100%);
  line-height: 1.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
ul,
ol {
  margin-top: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.wash {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.65;
}

.wash-a {
  width: 380px;
  height: 380px;
  top: 60px;
  right: -120px;
  background: rgba(0, 87, 217, 0.13);
}

.wash-b {
  width: 300px;
  height: 300px;
  left: -90px;
  top: 430px;
  background: rgba(180, 83, 9, 0.12);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 10%, black 0%, rgba(0, 0, 0, 0.85) 38%, transparent 76%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 15% 25%, #000 0.7px, transparent 0.9px),
    radial-gradient(circle at 80% 70%, #000 0.7px, transparent 0.9px),
    radial-gradient(circle at 55% 40%, #000 0.7px, transparent 0.9px);
  background-size: 18px 18px, 22px 22px, 26px 26px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #fffaf0, #f2e8d7);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  grid-area: brand;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.topbar nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition: background-color 140ms ease, color 140ms ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: rgba(17, 24, 39, 0.04);
  color: var(--ink);
  outline: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 2px 0 0;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.theme-switch:focus-visible {
  outline: none;
}

.theme-switch-track {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 24, 39, 0.1);
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.08);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.16),
    0 3px 8px rgba(17, 24, 39, 0.1);
  transition: transform 180ms ease;
}

.theme-switch.is-dark .theme-switch-track {
  background: rgba(116, 167, 255, 0.22);
  border-color: rgba(116, 167, 255, 0.42);
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.1);
}

.theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(18px);
}

.theme-switch-text {
  min-width: 3.3em;
  text-align: left;
}

.theme-switch.is-dark .theme-switch-text {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 87, 217, 0.35);
  background: linear-gradient(180deg, rgba(0, 87, 217, 0.08), rgba(0, 87, 217, 0.04));
  color: var(--ink);
  font-weight: 600;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 3px 8px rgba(0, 87, 217, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 87, 217, 0.5);
  box-shadow: 0 6px 16px rgba(0, 87, 217, 0.12);
  outline: none;
}

.button-sm {
  min-height: 38px;
  padding: 0 12px;
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(17, 24, 39, 0.3);
  box-shadow: none;
}

main {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.section {
  padding: 38px 0;
}

section[id] {
  scroll-margin-top: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.25rem);
  line-height: 1;
  max-width: 16ch;
  text-wrap: balance;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: start;
  padding-top: 18px;
  padding-bottom: 12px;
}

.hero + .section {
  padding-top: 18px;
}

.hero-copy {
  padding-top: 10px;
}

.lede {
  margin: 18px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-proof-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.proof-card {
  padding: 12px 12px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.85);
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.03);
}

.proof-label {
  margin: 0;
  color: var(--muted-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.proof-value {
  margin: 8px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.proof-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.operator-board {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(246, 239, 228, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-head {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 87, 217, 0.04), rgba(180, 83, 9, 0.04));
}

.board-kicker {
  margin: 0;
  color: var(--muted-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board-head h2 {
  margin-top: 7px;
  font-size: 1.45rem;
  line-height: 1.05;
}

.board-org {
  margin: 8px 0 0;
  color: var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.board-block {
  padding: 12px 13px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.44);
}

.board-block:last-child {
  grid-column: 1 / -1;
}

.board-label {
  margin: 0;
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board-value {
  margin: 7px 0 0;
  color: var(--ink);
}

.board-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.board-list li + li {
  margin-top: 6px;
}

.release-track {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.release-track li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.release-track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(0, 87, 217, 0.35);
  background: rgba(0, 87, 217, 0.08);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.release-track li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.15rem;
  bottom: -0.95rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 87, 217, 0.2), rgba(0, 87, 217, 0.02));
}

.release-track li:last-child::after {
  display: none;
}

.section-title-row {
  margin-bottom: 16px;
}

.section-title-row h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
  line-height: 1.05;
  text-wrap: balance;
}

.section-title-editorial {
  max-width: 76ch;
}

.section-title-editorial h2 {
  margin-bottom: 10px;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  text-wrap: pretty;
}

.section-title-compact h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.case-stack {
  display: grid;
  gap: 14px;
}

.case-card {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.85);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.case-eyebrow {
  margin: 0 0 8px;
  color: var(--muted-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-head h3 {
  font-size: 1.22rem;
  line-height: 1.08;
  max-width: 34ch;
  text-wrap: balance;
}

.case-tag {
  margin: 0;
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 87, 217, 0.2);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.case-panel {
  padding: 14px 16px 16px;
  border-left: 1px solid rgba(17, 24, 39, 0.06);
}

.case-panel:first-child {
  border-left: none;
}

.case-panel h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.case-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.case-panel ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.case-panel li + li {
  margin-top: 6px;
}

.operate-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operate-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
}

.operate-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.operate-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: var(--shadow);
}

.timeline-item-feature {
  position: relative;
}

.timeline-item-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-meta {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: rgba(255, 255, 255, 0.45);
}

.timeline-meta p {
  margin: 0;
}

.timeline-meta .role {
  font-weight: 700;
  color: var(--ink);
}

.timeline-meta .org {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
}

.timeline-meta .date {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline-note {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
  color: var(--muted);
  font-size: 0.94rem;
}

.timeline-body ul {
  margin: 2px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.52;
}

.timeline-body li + li {
  margin-top: 8px;
}

.prior-roles {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.prior-roles-head {
  margin-top: 14px;
}

.prior-roles-head .eyebrow {
  margin-bottom: 8px;
}

.prior-role {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.65);
}

.prior-role-head p,
.prior-role-details {
  margin: 0;
}

.prior-role-title {
  font-weight: 600;
  color: var(--ink);
}

.prior-role-meta {
  margin-top: 4px !important;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.prior-role-details {
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
}

.panel-block {
  padding: 14px;
}

.panel h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.panel-tall {
  grid-column: span 1;
}

.pill-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.92rem;
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.edu-degree {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.edu-school {
  margin: 7px 0 0;
  color: var(--accent);
  font-weight: 600;
}

.edu-meta {
  margin: 7px 0 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(244, 236, 223, 0.9));
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.05;
  margin-bottom: 10px;
  text-wrap: balance;
}

.contact-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.footer {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  font-size: 0.93rem;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 100ms;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .operator-board {
    max-width: 760px;
  }

  .hero-proof-grid {
    max-width: none;
  }

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

  .board-block:last-child {
    grid-column: auto;
  }

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

  .case-panel {
    border-left: none;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
  }

  .case-panel:first-child {
    border-top: none;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .prior-role {
    grid-template-columns: 1fr;
  }

  .skills-layout,
  .edu-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 8px;
    padding: 8px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    justify-content: stretch;
    gap: 8px 10px;
  }

  .topbar nav {
    grid-area: nav;
    order: unset;
    width: auto;
    justify-content: flex-start;
    gap: 2px;
  }

  .topbar-actions {
    grid-area: actions;
    width: auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .topbar nav a {
    padding: 8px 10px;
    font-size: 0.94rem;
  }

  .theme-switch {
    min-height: 34px;
    gap: 0;
  }

  .theme-switch-text {
    display: none;
  }

  .hero .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .hero {
    padding-top: 8px;
  }

  h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
    max-width: 11ch;
  }

  .lede {
    font-size: 1rem;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .case-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-tag {
    align-self: flex-start;
  }

  .operate-strip {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

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

  * {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

html[data-theme="dark"] {
  --bg: #08101c;
  --bg-2: #0d1625;
  --paper: rgba(15, 24, 39, 0.9);
  --paper-solid: #101a2a;
  --panel: #111c2d;
  --panel-strong: #142137;
  --ink: #ebf2ff;
  --muted: #b3c0d4;
  --muted-2: #8da0bb;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #74a7ff;
  --accent-2: #f1a34d;
  --accent-soft: rgba(116, 167, 255, 0.12);
  --ok: #4dd4c5;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% -8%, rgba(241, 163, 77, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 95% 8%, rgba(116, 167, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, #091322 52%, var(--bg-2) 100%);
}

html[data-theme="dark"] {
  background:
    radial-gradient(circle at 8% -8%, rgba(241, 163, 77, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 95% 8%, rgba(116, 167, 255, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, #091322 52%, var(--bg-2) 100%);
}

html[data-theme="dark"] .wash-a {
  background: rgba(116, 167, 255, 0.2);
}

html[data-theme="dark"] .wash-b {
  background: rgba(241, 163, 77, 0.15);
}

html[data-theme="dark"] .grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

html[data-theme="dark"] .grain {
  opacity: 0.03;
}

html[data-theme="dark"] .topbar {
  background: rgba(11, 18, 29, 0.82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .brand {
  background: linear-gradient(180deg, #1a2740, #121c2e);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .topbar nav a:hover,
html[data-theme="dark"] .topbar nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .button {
  border-color: rgba(116, 167, 255, 0.4);
  background: linear-gradient(180deg, rgba(116, 167, 255, 0.12), rgba(116, 167, 255, 0.06));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button:focus-visible {
  border-color: rgba(116, 167, 255, 0.65);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .button-ghost {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .theme-switch {
  color: var(--muted);
}

html[data-theme="dark"] .theme-switch-track {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .theme-switch-thumb {
  background: #f4f7ff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .theme-switch.is-dark .theme-switch-track {
  background: rgba(116, 167, 255, 0.26);
  border-color: rgba(116, 167, 255, 0.42);
}

html[data-theme="dark"] .proof-card,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .operate-card,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .prior-role,
html[data-theme="dark"] .panel {
  background: rgba(14, 22, 35, 0.78);
}

html[data-theme="dark"] .operator-board {
  background: linear-gradient(180deg, rgba(15, 24, 39, 0.9), rgba(11, 18, 29, 0.9));
}

html[data-theme="dark"] .board-head {
  background: linear-gradient(90deg, rgba(116, 167, 255, 0.08), rgba(241, 163, 77, 0.07));
}

html[data-theme="dark"] .board-block {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .timeline-meta {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .contact-card {
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.9), rgba(10, 16, 26, 0.9));
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .pill-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .timeline-item-feature::before {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
