@font-face {
  font-family: "Aspekta Variable";
  src:
    url("./fonts/AspektaVF.woff2") format("woff2-variations"),
    url("./fonts/AspektaVF.woff2") format("woff2"),
    url("./fonts/AspektaVF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg0: #000000;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muter: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --accent: #03a89e;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg0);
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aspekta Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-variation-settings: "wght" 440, "slnt" 0, "MONO" 0;
  line-height: 1.55;
  background: #000000;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: rgba(3, 168, 158, 0.35);
  color: rgba(255, 255, 255, 0.95);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.25rem 0.75rem;
  background: #000000;
  transition: background 0.35s ease, color 0.35s ease;
}

.topbar--light {
  background: #f5f0e8 !important;
}

.topbar--light .topbar__brand,
.topbar--light .topbar__link {
  color: rgba(0, 0, 0, 0.72);
}

.topbar--light .brand-mark {
  border-color: rgba(3, 168, 158, 0.5);
  background:
    radial-gradient(circle at 30% 30%, rgba(3, 168, 158, 0.5), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.1), transparent 55%);
}

.topbar--light .topbar__link:hover {
  background: var(--accent);
  color: #000000;
}

.topbar__brand,
.topbar__link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.1rem 0.15rem;
  white-space: nowrap;
}

.topbar__brand {
  margin-right: auto;
  gap: 0.55rem;
  font-size: clamp(1.65rem, 2.8vw, 3rem);
  letter-spacing: -0.04em;
  font-variation-settings: "wght" 500, "slnt" 0, "MONO" 0;
}

.brand-logo {
  width: clamp(2rem, 4vw, 3rem);
  height: clamp(2rem, 4vw, 3rem);
  flex: 0 0 auto;
  border: 1px solid rgba(3, 168, 158, 0.45);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(3, 168, 158, 0.06);
}

.brand-wordmark {
  min-width: 0;
}

.brand-cyan {
  color: var(--accent);
}

.topbar__link {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
  font-variation-settings: "wght" 520, "slnt" 0, "MONO" 0;
}

.topbar__link--active {
  color: var(--accent);
}

.brand-mark {
  width: 0.95em;
  height: 0.95em;
  border-radius: 999px;
  border: 1px solid rgba(3, 168, 158, 0.32);
  background:
    radial-gradient(circle at 30% 30%, rgba(3, 168, 158, 0.42), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.18), transparent 55%);
  box-shadow: 0 0 0 6px rgba(3, 168, 158, 0.06);
  transition: border-color 0.35s ease;
}

.topbar__brand:hover,
.topbar__brand:focus-visible {
  color: var(--text);
}

.topbar__link:hover {
  background: var(--accent);
  color: #000000;
}

@media (max-width: 980px) {
  .topbar {
    gap: 0.75rem;
    padding: 0.95rem 0.9rem 0.55rem;
  }

  .topbar__brand {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    gap: 0.4rem;
  }

  .topbar__link {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }
}

/* ── Page routing ── */
.page { display: none; }
.page.page--active { display: block; }

/* ── About page ── */
.about-wrap {
  padding: 5rem 1.5rem 5rem;
}

.about-para {
  font-size: clamp(1.3rem, 4vw, 3rem);
  line-height: 1.6;
  font-variation-settings: "wght" 400;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.0rem;
  letter-spacing: -0.025em;
}

.about-para:last-child {
  margin-bottom: 0;
}

/* ── Generic content pages ── */
.page-main {
  padding: 0 1.25rem 4.5rem;
}

.page-main--blank {
  padding-top: 0;
  padding-bottom: 0;
}

.page-lead,
.page-panel-grid,
.page-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-lead {
  padding: 4.4rem 0 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lead__kicker {
  margin: 0 0 0.9rem;
  color: var(--muter);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-lead__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.9rem, 6.2vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-variation-settings: "wght" 520, "slnt" 0, "MONO" 0;
}

.page-lead__copy {
  max-width: 58ch;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-panel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
  padding-top: 2rem;
}

.page-panel {
  grid-column: span 4;
  min-height: 220px;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.page-panel__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muter);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-panel__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  font-variation-settings: "wght" 620, "slnt" 0, "MONO" 0;
}

.page-panel__copy {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.page-section {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-section__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  letter-spacing: -0.045em;
  font-variation-settings: "wght" 650, "slnt" 0, "MONO" 0;
}

.page-section__copy {
  max-width: 64ch;
  margin: 0.95rem 0 0;
  color: var(--muted);
}

.page-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-list li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.blank-page {
  min-height: calc(100vh - 88px);
}

@media (prefers-reduced-motion: no-preference) {
  .topbar__link {
    transition: background-color 120ms ease, border-color 120ms ease;
  }
}

@media (max-width: 980px) {
  .page-panel {
    grid-column: 1 / -1;
  }

  .page-lead {
    padding-top: 3rem;
  }
}
