:root {
  color-scheme: dark;
  --bg: #060809;
  --surface: #0c0f14;
  --surface-raised: #111820;
  --border: #1a222c;
  --hairline: rgba(255, 255, 255, 0.055);
  --text: #e8ecf0;
  --muted: #788596;
  --accent: #b4bec9;
  --glow: rgba(90, 130, 190, 0.07);
  --ch: 196 30 42;
  --uk: 63 95 173;
  --ie: 22 139 90;
  --md: 214 176 58;
  --eu: 47 91 184;
  --spore-a: rgba(47, 91, 184, 0.22);
  --spore-b: rgba(196, 30, 42, 0.16);
  --spore-c: rgba(22, 139, 90, 0.14);
  --badge-concept: #5c6370;
  --badge-coming-soon: #4d7fd4;
  --badge-alpha: #d97238;
  --badge-beta: #c9a028;
  --badge-demo: #9b7cf0;
  --badge-preview: #7c5ce8;
  --badge-released: #2f8f62;
  --font-sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.94rem;
  --text-lg: 1.08rem;
  --text-xl: 1.22rem;
  --text-2xl: 1.55rem;
  --text-3xl: 2.1rem;
  --leading-tight: 1.2;
  --leading-normal: 1.55;
  --space-xs: 0.35rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 2.75rem;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--text);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

.portal,
.landing {
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--text); text-decoration: underline; }

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

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

.wrap,
.shell {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  padding:
    calc(var(--space-2xl) + var(--safe-top))
    max(1.25rem, var(--safe-right))
    calc(var(--space-3xl) + var(--safe-bottom))
    max(1.25rem, var(--safe-left));
}

@media (max-width: 480px) {
  .wrap,
  .shell {
    padding-top: var(--space-xl);
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
  }
}

.site-head {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--hairline);
}

.site-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: var(--space-lg);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-mark {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.site-mark:hover {
  color: var(--text);
  text-decoration: none;
}

.marks-inline {
  display: flex;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marks-inline .mark {
  width: 0.6rem;
  height: 1.5px;
  border-radius: 1px;
  opacity: 0.88;
}

.mark-ch { background-color: rgb(var(--ch)); }
.mark-uk { background-color: rgb(var(--uk)); }
.mark-ie { background-color: rgb(var(--ie)); }
.mark-md { background-color: rgb(var(--md)); }
.mark-eu { background-color: rgb(var(--eu)); }

.site-title {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: var(--leading-tight);
  text-indent: 0.04em;
}

.site-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--hairline));
  background: color-mix(in oklab, var(--surface-raised) 80%, transparent);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent) 32%, var(--hairline));
  background: color-mix(in oklab, var(--surface-raised) 90%, transparent);
}

header {
  margin-bottom: var(--space-2xl);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

header h1 {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
}

.nav {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
}
.nav a + a::before {
  content: " · ";
  color: var(--muted);
  text-decoration: none;
}

section {
  margin-bottom: var(--space-2xl);
}

section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--space-lg);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline), transparent);
}

.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: hidden;
  min-height: 10.5rem;
  transition: border-color 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}

.card.is-linked {
  overflow: visible;
  isolation: auto;
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.card.is-linked::before {
  content: none;
}

.card-face {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
  min-height: 0;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
}

.card-hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(100% 70% at 0% 0%, var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  border-color: color-mix(in oklab, var(--accent) 22%, var(--hairline));
}

.card.is-linked:hover,
.card.is-linked:focus-within {
  border-color: transparent;
  transform: none;
}

.card:not(.is-linked):hover,
.card:not(.is-linked):focus-within {
  transform: translateY(-1px);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 0.65;
}

.card:hover .card-arrow,
.card:focus-within .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.card h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
}

.card-arrow {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: var(--text-xs);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), color 0.28s var(--ease-out);
}

.card p,
.card-desc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  flex: 1;
  line-height: 1.55;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hairline);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.16rem 0.48rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}
.badge-concept {
  color: color-mix(in oklab, var(--badge-concept) 85%, var(--text));
  border-color: color-mix(in oklab, var(--badge-concept) 35%, var(--hairline));
}
.badge-coming-soon {
  color: color-mix(in oklab, var(--badge-coming-soon) 75%, var(--text));
  border-color: color-mix(in oklab, var(--badge-coming-soon) 38%, var(--hairline));
}
.badge-alpha {
  color: color-mix(in oklab, var(--badge-alpha) 72%, var(--text));
  border-color: color-mix(in oklab, var(--badge-alpha) 38%, var(--hairline));
}
.badge-beta {
  color: color-mix(in oklab, var(--badge-beta) 72%, var(--text));
  border-color: color-mix(in oklab, var(--badge-beta) 38%, var(--hairline));
}
.badge-demo,
.badge-preview {
  color: color-mix(in oklab, var(--badge-demo) 72%, var(--text));
  border-color: color-mix(in oklab, var(--badge-demo) 38%, var(--hairline));
}
.badge-released,
.badge-operational {
  color: color-mix(in oklab, var(--badge-released) 72%, var(--text));
  border-color: color-mix(in oklab, var(--badge-released) 38%, var(--hairline));
}
.badge-degraded {
  color: color-mix(in oklab, var(--badge-beta) 72%, var(--text));
  border-color: color-mix(in oklab, var(--badge-beta) 38%, var(--hairline));
}
.badge-down {
  color: color-mix(in oklab, #c44 72%, var(--text));
  border-color: color-mix(in oklab, #c44 38%, var(--hairline));
}

/* Status page */
.status-overall {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-xl) 1.25rem 1.15rem;
  margin-bottom: 1.75rem;
}
.status-overall.status-operational {
  border-color: color-mix(in oklab, #3d9a6a 35%, var(--hairline));
}
.status-overall.status-degraded {
  border-color: color-mix(in oklab, #d4a72c 35%, var(--hairline));
}
.status-overall.status-down {
  border-color: color-mix(in oklab, #c44 35%, var(--hairline));
}

.status-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.status-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease, background 0.3s ease;
}
.status-operational .status-bar-fill { background: #3d9a6a; }
.status-degraded .status-bar-fill { background: #d4a72c; }
.status-down .status-bar-fill { background: #c44; }

.status-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
  font-weight: 500;
}
.status-updated {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.status-section {
  margin: 0 0 2rem;
}
.status-section h2 {
  margin: 0 0 0.25rem;
}
.status-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: var(--text-sm);
}
.status-lines {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.status-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
}
.status-line h3 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 500;
}
.status-line p {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: var(--text-sm);
}
.status-meter {
  display: block;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.status-meter span {
  display: block;
  height: 100%;
  background: #3d9a6a;
}
.status-line.status-degraded .status-meter span { background: #d4a72c; }
.status-line.status-down .status-meter span { background: #c44; }
.status-line-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
}
@media (max-width: 640px) {
  .status-line {
    grid-template-columns: auto 1fr;
  }
  .status-line-meta {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status-meter span { transition: none; }
}

@media (max-width: 480px) {
  .status-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .status-updated {
    margin-left: 0;
    width: 100%;
  }
}

.status-group {
  margin-bottom: var(--space-2xl);
}
.status-group > h2 {
  margin-bottom: var(--space-md);
}

.pulse-dot,
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pulse-dot.status-operational {
  background: #3d9a6a;
  box-shadow: 0 0 0 0 rgba(61, 154, 106, 0.55);
  animation: status-pulse 2s ease-in-out infinite;
}
.status-dot.status-degraded { background: #d4a72c; }
.status-dot.status-down { background: #c44; }
.pulse-dot.status-degraded,
.pulse-dot.status-down {
  background: #c44;
  animation: none;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 154, 106, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(61, 154, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot.status-operational {
    animation: none;
    box-shadow: none;
  }
}

.status-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.status-card.status-down { border-color: #5a3030; }
.status-card.status-degraded { border-color: #4a4020; }
.status-error {
  font-size: 0.78rem;
  color: #e88;
  word-break: break-word;
}

/* Incidents */
.incident {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-lg) 1.15rem;
  margin-bottom: var(--space-md);
}
.incident-open {
  border-left: 2px solid color-mix(in oklab, #d4a72c 70%, var(--hairline));
}
.incident-resolved {
  border-left: 2px solid color-mix(in oklab, #3d9a6a 70%, var(--hairline));
  opacity: 0.82;
}
.incident h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.incident p {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.incident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.incident-ttr {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* Cluster map */
.cluster {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}
.cluster-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
}
.cluster-edge {
  stroke: var(--hairline);
  stroke-width: 1.5;
  fill: none;
}
.cluster-node rect {
  fill: var(--bg);
  stroke: var(--hairline);
  stroke-width: 1;
}
.cluster-node.cluster-private rect { stroke-dasharray: 4 3; }
.cluster-node text {
  fill: var(--text);
  font-size: 12px;
  font-family: var(--font-sans);
}
.cluster-legend {
  margin: 0.65rem 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
  font-style: italic;
}

.version {
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-actions {
  font-size: var(--text-sm);
}

.card-actions a,
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.card.is-linked:hover .card-cta,
.card.is-linked:focus-within .card-cta {
  color: var(--text);
}

.card-actions a::after,
.card-cta::after {
  content: none;
}

.card-actions .muted {
  color: var(--muted);
  font-style: italic;
}

footer,
.site-foot {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.65;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.site-foot a:hover {
  color: var(--text);
  border-bottom-color: var(--hairline);
  text-decoration: none;
}

.domains-note {
  margin: 0 0 var(--space-xl);
  max-width: 36rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero .domains-note {
  margin: var(--space-md) 0 0;
  max-width: 24rem;
}

.team-banner {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.85rem var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--muted);
}

.team-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.team-banner a:hover {
  color: var(--text);
}

/* Forms & ops dash */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 32rem;
  padding: var(--space-xl) 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-card.form {
  max-width: 22rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.form input,
.form select,
.form textarea,
input,
select,
textarea {
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.75rem;
  width: 100%;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--hairline));
  background: color-mix(in oklab, var(--bg) 40%, var(--surface-raised));
  outline: none;
}

.form textarea {
  min-height: 6rem;
  resize: vertical;
}

button.btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.68rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

button.btn:hover,
.btn:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--hairline));
  background: color-mix(in oklab, var(--accent) 8%, var(--surface-raised));
  text-decoration: none;
  color: var(--text);
}

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

.btn-primary {
  background: color-mix(in oklab, var(--surface-raised) 90%, var(--bg));
  border-color: color-mix(in oklab, var(--accent) 38%, var(--hairline));
  color: var(--text);
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 10%, var(--surface-raised));
  border-color: color-mix(in oklab, var(--accent) 55%, var(--hairline));
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--hairline);
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.table-wrap th,
.table-wrap td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.table-wrap th {
  background: var(--surface);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.table-wrap tr:last-child td {
  border-bottom: none;
}

/* Portal atmosphere */
html.is-portal {
  background-color: var(--bg);
  color: var(--text);
}

.portal {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
}

.spores {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.spores::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 6%, transparent 14%, var(--bg) 78%);
  opacity: 0.82;
}

.spore {
  position: absolute;
  width: 62vmin;
  height: 62vmin;
  border-radius: 48% 52% 46% 54% / 52% 48% 54% 46%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-mask-image: radial-gradient(40% 38% at 48% 46%, #000 0%, transparent 72%);
  mask-image: radial-gradient(40% 38% at 48% 46%, #000 0%, transparent 72%);
}

.spore-a {
  top: -16%;
  left: -10%;
  background-color: var(--spore-a);
  animation: spore-drift-a 84s ease-in-out infinite;
}

.spore-b {
  right: -18%;
  bottom: -14%;
  width: 72vmin;
  height: 66vmin;
  background-color: var(--spore-b);
  animation: spore-drift-b 96s ease-in-out infinite;
}

.spore-c {
  left: 38%;
  top: 52%;
  width: 54vmin;
  height: 50vmin;
  background-color: var(--spore-c);
  animation: spore-drift-c 108s ease-in-out infinite reverse;
}

.portal.is-paused .spore {
  animation-play-state: paused;
}

@keyframes spore-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(6%, 4%, 0) rotate(12deg) scale(1.05); }
}

@keyframes spore-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(1.02); }
  45% { transform: translate3d(-7%, 5%, 0) rotate(10deg) scale(0.98); }
}

@keyframes spore-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(4deg); }
  60% { transform: translate3d(5%, -6%, 0) rotate(-8deg) scale(1.04); }
}

html.is-portal.is-ready .portal,
html.is-portal.is-ready .spore,
html.is-portal.is-ready .card,
html.is-portal.is-ready .site-nav a {
  transition: background-color 0.45s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

html.is-portal ::selection {
  background: color-mix(in oklab, rgb(var(--eu)) 24%, transparent);
  color: var(--text);
}

@keyframes portal-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 5px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes portal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.is-portal.is-ready .site-head {
  animation: portal-rise 0.48s var(--ease-out) both;
}

html.is-portal.is-ready .grid .card {
  animation: portal-rise 0.48s var(--ease-out) both;
}

html.is-portal.is-ready .grid .card.is-linked {
  animation-name: portal-fade;
}
html.is-portal.is-ready .grid .card:nth-child(1) { animation-delay: 0.03s; }
html.is-portal.is-ready .grid .card:nth-child(2) { animation-delay: 0.06s; }
html.is-portal.is-ready .grid .card:nth-child(3) { animation-delay: 0.09s; }
html.is-portal.is-ready .grid .card:nth-child(4) { animation-delay: 0.12s; }
html.is-portal.is-ready .grid .card:nth-child(5) { animation-delay: 0.15s; }
html.is-portal.is-ready .grid .card:nth-child(6) { animation-delay: 0.18s; }
html.is-portal.is-ready .grid .card:nth-child(n+7) { animation-delay: 0.2s; }

.status-overall {
  backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .spore {
    animation: none;
  }
  .card {
    transition: none;
  }
  .card:not(.is-linked):hover {
    transform: none;
  }
  html.is-portal.is-ready .site-head,
  html.is-portal.is-ready .grid .card {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .spores {
    display: none;
  }
}

/* Landing */
@property --bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #0b0d10;
}
@property --text {
  syntax: "<color>";
  inherits: true;
  initial-value: #ece8e1;
}
@property --muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #8b938c;
}
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #d5d0c6;
}
@property --hairline {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.08);
}
@property --wisp-ch {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(196, 30, 42, 0.28);
}
@property --wisp-uk {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(1, 33, 105, 0.34);
}
@property --wisp-ie {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(22, 139, 90, 0.22);
}
@property --wisp-md {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(214, 176, 58, 0.2);
}
@property --wisp-eu {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(0, 51, 153, 0.32);
}

html.is-landing {
  --theme-ease: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --bg: #0b0d10;
  --surface: #12161c;
  --surface-raised: #1a212b;
  --border: #252b33;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #ece8e1;
  --muted: #8b938c;
  --accent: #d5d0c6;
  --ch: 196 30 42;
  --uk: 1 33 105;
  --ie: 22 139 90;
  --md: 214 176 58;
  --eu: 0 51 153;
  --wisp-ch: rgba(196, 30, 42, 0.28);
  --wisp-uk: rgba(1, 33, 105, 0.34);
  --wisp-ie: rgba(22, 139, 90, 0.22);
  --wisp-md: rgba(214, 176, 58, 0.2);
  --wisp-eu: rgba(0, 51, 153, 0.32);
  --font-sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--text);
}

html.is-landing[data-theme="light"] {
  --bg: #f3f0e8;
  --surface: #ebe6db;
  --surface-raised: #f7f4ee;
  --border: #d4cfc3;
  --hairline: rgba(22, 24, 28, 0.1);
  --text: #16181d;
  --muted: #5c635c;
  --accent: #2a3140;
  --md: 176 138 24;
  --wisp-ch: rgba(196, 30, 42, 0.22);
  --wisp-uk: rgba(1, 33, 105, 0.2);
  --wisp-ie: rgba(22, 139, 90, 0.18);
  --wisp-md: rgba(176, 138, 24, 0.22);
  --wisp-eu: rgba(0, 51, 153, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  html.is-landing:not([data-theme]) {
    --bg: #f3f0e8;
    --surface: #ebe6db;
    --surface-raised: #f7f4ee;
    --border: #d4cfc3;
    --hairline: rgba(22, 24, 28, 0.1);
    --text: #16181d;
    --muted: #5c635c;
    --accent: #2a3140;
    --md: 176 138 24;
    --wisp-ch: rgba(196, 30, 42, 0.22);
    --wisp-uk: rgba(1, 33, 105, 0.2);
    --wisp-ie: rgba(22, 139, 90, 0.18);
    --wisp-md: rgba(176, 138, 24, 0.22);
    --wisp-eu: rgba(0, 51, 153, 0.18);
    color-scheme: light;
  }
}

html.is-landing.is-ready {
  transition: background-color var(--theme-ease), color var(--theme-ease);
}

html.is-landing.is-ready .landing,
html.is-landing.is-ready .theme-opt,
html.is-landing.is-ready .hero h1,
html.is-landing.is-ready .hero .tagline,
html.is-landing.is-ready .landing-nav a,
html.is-landing.is-ready .hero .contact a,
html.is-landing.is-ready .hero-foot,
html.is-landing.is-ready .hero-foot a,
html.is-landing.is-ready .meta-line,
html.is-landing.is-ready .mark,
html.is-landing.is-ready .wisp,
html.is-landing.is-ready .smoke {
  transition:
    background-color var(--theme-ease),
    color var(--theme-ease),
    border-color var(--theme-ease),
    opacity var(--theme-ease),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-landing ::selection {
  background: color-mix(in oklab, rgb(var(--eu)) 32%, transparent);
  color: var(--text);
}

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
}

.smoke {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  opacity: 1;
}

html.is-landing[data-theme="light"] .smoke {
  opacity: 0.92;
}

.smoke::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 46%, transparent 22%, var(--bg) 82%);
  opacity: 0.55;
}

html.is-landing[data-theme="light"] .smoke::after {
  opacity: 0.42;
}

.wisp {
  --wisp-tone: var(--wisp-eu);
  position: absolute;
  width: 72vmin;
  height: 72vmin;
  border-radius: 46% 54% 48% 52% / 50% 44% 56% 50%;
  background-color: var(--wisp-tone);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-mask-image:
    radial-gradient(38% 42% at 42% 40%, #000 0%, transparent 70%),
    radial-gradient(32% 36% at 58% 62%, #000 0%, transparent 68%);
  mask-image:
    radial-gradient(38% 42% at 42% 40%, #000 0%, transparent 70%),
    radial-gradient(32% 36% at 58% 62%, #000 0%, transparent 68%);
}

.wisp-ch {
  --wisp-tone: var(--wisp-ch);
  top: -18%;
  left: -16%;
  width: 78vmin;
  height: 70vmin;
  animation: wisp-a 73s ease-in-out infinite;
}

.wisp-uk {
  --wisp-tone: var(--wisp-uk);
  right: -22%;
  bottom: -18%;
  width: 82vmin;
  height: 76vmin;
  animation: wisp-b 89s ease-in-out infinite;
}

.wisp-ie {
  --wisp-tone: var(--wisp-ie);
  right: -12%;
  top: 8%;
  width: 64vmin;
  height: 68vmin;
  animation: wisp-c 97s ease-in-out infinite;
}

.wisp-md {
  --wisp-tone: var(--wisp-md);
  left: 18%;
  top: -12%;
  width: 52vmin;
  height: 48vmin;
  -webkit-mask-image: radial-gradient(42% 38% at 50% 46%, #000 0%, transparent 68%);
  mask-image: radial-gradient(42% 38% at 50% 46%, #000 0%, transparent 68%);
  animation: wisp-b 109s ease-in-out infinite reverse;
}

.wisp-eu {
  --wisp-tone: var(--wisp-eu);
  left: 50%;
  top: 42%;
  width: 90vmin;
  height: 84vmin;
  margin: -42vmin 0 0 -45vmin;
  -webkit-mask-image:
    radial-gradient(42% 36% at 48% 48%, #000 0%, transparent 74%),
    radial-gradient(26% 30% at 62% 40%, #000 0%, transparent 62%);
  mask-image:
    radial-gradient(42% 36% at 48% 48%, #000 0%, transparent 74%),
    radial-gradient(26% 30% at 62% 40%, #000 0%, transparent 62%);
  animation: wisp-a 61s ease-in-out infinite reverse;
}

.landing.is-paused .wisp {
  animation-play-state: paused;
}

@keyframes wisp-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  40% { transform: translate3d(7%, 5%, 0) rotate(14deg) scale(1.06); }
  70% { transform: translate3d(-4%, 8%, 0) rotate(-8deg) scale(0.98); }
}

@keyframes wisp-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.04); }
  50% { transform: translate3d(-8%, 6%, 0) rotate(-16deg) scale(1); }
}

@keyframes wisp-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg) scale(1); }
  33% { transform: translate3d(6%, -7%, 0) rotate(-6deg) scale(1.08); }
  66% { transform: translate3d(-5%, 4%, 0) rotate(12deg) scale(0.96); }
}

.theme-toggle {
  position: fixed;
  top: max(0.55rem, var(--safe-top));
  right: max(0.85rem, var(--safe-right));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  height: 2.75rem;
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.theme-toggle:focus:not(:focus-visible) {
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.theme-opt {
  border-bottom: 1px solid transparent;
  line-height: 1.2;
}

html.is-landing[data-theme="light"] .theme-opt[data-mode="light"],
html.is-landing[data-theme="dark"] .theme-opt[data-mode="dark"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

.theme-toggle:hover .theme-opt {
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding:
    calc(var(--space-2xl) + var(--safe-top))
    max(1.25rem, var(--safe-right))
    calc(var(--space-2xl) + var(--safe-bottom))
    max(1.25rem, var(--safe-left));
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-inner > * {
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-inner > :nth-child(1) { animation-delay: 0.04s; }
.hero-inner > :nth-child(2) { animation-delay: 0.12s; }
.hero-inner > :nth-child(3) { animation-delay: 0.18s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.hero-inner > :nth-child(5) { animation-delay: 0.3s; }
.hero-inner > :nth-child(6) { animation-delay: 0.36s; }
.hero-inner > :nth-child(7) { animation-delay: 0.42s; }
.hero-inner > :nth-child(8) { animation-delay: 0.48s; }
.hero-inner > :nth-child(9) { animation-delay: 0.54s; }

@supports (animation-delay: calc(sibling-index() * 1ms)) {
  .hero-inner > * {
    animation-delay: calc(sibling-index() * 70ms);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: var(--leading-tight);
  text-indent: 0.22em;
}

.marks {
  display: flex;
  gap: 0.32rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  list-style: none;
}

.mark {
  width: 0.85rem;
  height: 3px;
  border-radius: 1px;
  background-color: rgb(var(--ch));
}

.mark-ch { background-color: rgb(var(--ch)); }
.mark-uk { background-color: #3f5fad; }
.mark-ie { background-color: rgb(var(--ie)); }
.mark-md { background-color: rgb(var(--md)); }
.mark-eu { background-color: #2f5bb8; }

html.is-landing[data-theme="light"] .mark-uk { background-color: rgb(var(--uk)); }
html.is-landing[data-theme="light"] .mark-eu { background-color: rgb(var(--eu)); }

.hero .tagline {
  margin: 0;
  color: var(--text);
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  font-weight: 400;
}

.hero .backronym {
  margin: 0 0 var(--space-md);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hairline {
  width: 4.5rem;
  height: 1px;
  margin: var(--space-md) 0;
  border: none;
  background: linear-gradient(
    90deg,
    rgb(var(--ch)),
    rgb(var(--uk)),
    rgb(var(--ie)),
    rgb(var(--md)),
    rgb(var(--eu))
  );
  opacity: 0.7;
  transform-origin: center;
}

html.is-landing[data-theme="dark"] .hairline {
  opacity: 0.9;
}

.hero-inner > .hairline {
  animation: draw 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes draw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 0.7;
  }
}

.meta-line {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.landing-nav {
  justify-content: center;
  margin: var(--space-md) 0 var(--space-sm);
}

html.is-landing .landing-nav a {
  border-color: var(--hairline);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  color: var(--muted);
}

html.is-landing .landing-nav a:hover {
  color: var(--text);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}

html.is-landing.is-ready .landing-nav a {
  transition: border-color 0.45s var(--ease-out), color 0.45s var(--ease-out), background 0.45s var(--ease-out);
}

.hero .contact {
  margin: var(--space-xs) 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero .contact a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

.hero .contact a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero .operator {
  margin: 0;
}

.hero .domains-note {
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-foot {
  margin-top: var(--space-lg);
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
  width: 100%;
}

.hero-foot a {
  color: var(--muted);
}

.hero-foot a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 360px) {
  .hero h1 {
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }
  .hero .backronym {
    letter-spacing: 0.1em;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-landing.is-ready,
  html.is-landing.is-ready .landing,
  html.is-landing.is-ready .theme-opt,
  html.is-landing.is-ready .hero h1,
  html.is-landing.is-ready .hero .tagline,
  html.is-landing.is-ready .landing-nav a,
  html.is-landing.is-ready .hero .contact a,
  html.is-landing.is-ready .hero-foot,
  html.is-landing.is-ready .hero-foot a,
  html.is-landing.is-ready .meta-line,
  html.is-landing.is-ready .mark,
  html.is-landing.is-ready .wisp,
  html.is-landing.is-ready .smoke {
    transition: none;
  }
  .wisp,
  .hero-inner > *,
  .hairline {
    animation: none;
    animation-delay: 0s;
  }
  .theme-opt {
    transition: none;
  }
  html.is-landing .landing-nav a {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .smoke {
    display: none;
  }
}

/* Markdown prose */
.prose {
  max-width: 40rem;
  line-height: 1.65;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 1.85rem 0 0.6rem;
  line-height: var(--leading-tight);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}

.prose h1 {
  font-size: var(--text-2xl);
  margin-top: 0;
  letter-spacing: 0.05em;
}

.prose h2 {
  font-size: var(--text-xl);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--hairline);
}

.prose h3 { font-size: var(--text-lg); }

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 var(--space-lg);
  color: var(--muted);
}

.prose li { margin: 0.3rem 0; }

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}

.prose a:hover {
  color: var(--text);
  border-bottom-color: var(--hairline);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.12em 0.38em;
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: 0 0 var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-lg);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}

.prose th,
.prose td {
  padding: 0.5rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.prose tr:last-child td { border-bottom: none; }

.prose th {
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose blockquote {
  margin: 0 0 var(--space-lg);
  padding: 0.15rem 0 0.15rem var(--space-lg);
  border-left: 2px solid var(--hairline);
  color: var(--muted);
  font-style: normal;
}

.prose .headerlink {
  color: var(--hairline);
  text-decoration: none;
  margin-left: 0.35rem;
}

.prose .headerlink:hover { color: var(--muted); }

.meta-line {
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .incident-meta { flex-direction: column; }
}
