:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: rgba(18, 19, 24, .78);
  --panel-solid: #121318;
  --soft: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f2f1ed;
  --muted: #8e9098;
  --subtle: #555860;
  --accent: #f4f3ef;
  --accent-dark: #14151a;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --scroll-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 255, 255, .055), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  cursor: pointer;
}

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

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

.constellation-canvas,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.constellation-canvas {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.grain {
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-main,
.footer {
  position: relative;
  z-index: 2;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: var(--scroll-progress);
  height: 2px;
  background: var(--text);
  box-shadow: 0 0 16px rgba(255, 255, 255, .45);
}

.explore-mode-link {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 10, 13, .78);
  box-shadow: 0 14px 48px rgba(0, 0, 0, .28);
  color: var(--muted);
  font-size: 11px;
  backdrop-filter: blur(18px);
  transition: color .25s ease, border-color .25s ease, transform .25s var(--ease);
}

.explore-mode-link span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--text);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, .35);
}

.explore-mode-link:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-2px);
}

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

.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding-top: 14px;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 10, 13, .76);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .25);
  backdrop-filter: blur(22px) saturate(120%);
}

.identity,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.identity {
  gap: 11px;
  width: fit-content;
}

.avatar {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 66% 28%, #fff, transparent 10%),
    linear-gradient(145deg, #2a2c33, #0d0e12);
  place-items: center;
}

.avatar::before,
.avatar::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  content: "";
  transition: transform .6s var(--ease);
}

.avatar::before {
  inset: 6px;
}

.avatar::after {
  inset: 12px 4px;
  transform: rotate(32deg);
}

.identity:hover .avatar::before {
  transform: rotate(120deg) scale(.78);
}

.identity:hover .avatar::after {
  transform: rotate(-45deg) scale(1.08);
}

.identity strong {
  display: block;
  font-size: 13px;
}

.identity small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-links {
  position: relative;
  gap: 3px;
  justify-self: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
}

.nav-orbit {
  position: absolute;
  top: var(--nav-y, 4px);
  left: var(--nav-x, 4px);
  width: var(--nav-w, 48px);
  height: var(--nav-h, 32px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 3px);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 0 22px rgba(255, 255, 255, .055);
  transition:
    left .48s var(--ease),
    top .48s var(--ease),
    width .48s var(--ease),
    height .48s var(--ease);
  pointer-events: none;
}

.nav-links a {
  position: relative;
  z-index: 1;
  padding: 8px 13px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: color .3s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
}

.nav-actions {
  justify-self: end;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  place-items: center;
  transition:
    color .3s ease,
    border-color .3s ease,
    background .3s ease,
    transform .4s var(--ease);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--soft);
  color: var(--text);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  display: grid;
  min-height: 720px;
  align-content: center;
  justify-items: center;
  padding: 105px 0 75px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font: 10px ui-monospace, "Cascadia Code", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 13px rgba(255, 255, 255, .7);
  content: "";
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(62px, 8.8vw, 112px);
  font-weight: 760;
  letter-spacing: -.085em;
  line-height: .88;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #f6f5f1, #74767e);
  background-clip: text;
  -webkit-background-clip: text;
}

.intro {
  max-width: 720px;
  margin: 35px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 12px;
  transition:
    border-color .3s ease,
    background .3s ease,
    transform .4s var(--ease);
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}

.button.primary {
  background: var(--text);
  color: var(--accent-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(560px, 100%);
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 20px 12px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.stat span,
.section-index {
  color: var(--muted);
  font: 9px ui-monospace, "Cascadia Code", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section,
.page-section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.page-hero {
  display: grid;
  min-height: 430px;
  align-content: end;
  padding: 110px 0 72px;
  border-bottom: 1px solid var(--line);
}

.page-hero .section-index {
  margin-bottom: 20px;
  color: var(--text);
}

.page-hero h1 {
  font-size: clamp(58px, 8vw, 96px);
}

.page-hero p {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
