@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080B;
  --ink: #F3F5F9;
  --ink-2: #A9B0BD;
  --ink-3: #767E8E;
  --line: rgba(255, 255, 255, 0.085);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --magenta: #FF5CE1;
  --cyan: #45E3FF;
  --radius: 18px;
  --maxw: 1120px;
  --barh: 64px;
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--cyan);
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, dl { padding: 0; }
a { color: inherit; }

::selection { background: rgba(255, 92, 225, 0.30); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(69, 227, 255, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  text-decoration: none;
}
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 36px);
}

/* ---------- header ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--barh);
  background: rgba(7, 8, 11, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.mark {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.012em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--ink-2);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--ink); }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.004em;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}

.btn-solid:hover { background: #fff; transform: translateY(-1px); }
.btn-solid:active { transform: translateY(0); }

.btn-quiet {
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.btn-quiet:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.30); }

.link-arrow {
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-arrow:hover {
  color: var(--ink);
  text-decoration-color: rgba(69, 227, 255, 0.8);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--barh));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero-in {
  align-self: center;
  padding-block: clamp(48px, 7vh, 84px) clamp(16px, 2.4vh, 28px);
}

.name {
  font-size: clamp(2.7rem, 7.2vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.lead {
  margin-top: 22px;
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.sub {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 1.02rem;
}

.status {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.status li {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-3);
  font-size: 0.875rem;
  letter-spacing: 0.008em;
}

.status li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.field-wrap {
  position: relative;
  height: clamp(260px, 40svh, 440px);
}

#field {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(72% 100% at 50% 62%, #000 0 42%, transparent 100%);
  mask-image: radial-gradient(72% 100% at 50% 62%, #000 0 42%, transparent 100%);
}

.field-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.78rem;
  letter-spacing: 0.012em;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(88px, 11vh, 140px); }

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 52ch;
}

.grid {
  margin-top: clamp(30px, 4vh, 46px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }

/* ---------- plates ---------- */

.plate {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018) 62%);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.plate:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.js .reveal.in.plate:hover { transform: translateY(-2px); }

.body, .prose, .section-lead, .rows dd { text-wrap: pretty; }

.plate h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tag {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.86rem;
  letter-spacing: 0.012em;
}

.body {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.62;
}

.note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.receipts {
  margin-top: 22px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.receipts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.receipts b {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.receipts span {
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ---------- trajectory ---------- */

.traj { align-items: start; }

.prose {
  grid-column: span 6;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}

.rows { grid-column: span 6; }

.rows > div {
  padding-block: 16px;
  border-top: 1px solid var(--line-soft);
}

.rows > div:first-child { border-top: 0; padding-top: 0; }

.rows dt {
  color: var(--ink-3);
  font-size: 0.84rem;
  letter-spacing: 0.014em;
}

.rows dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- close ---------- */

.close .plate {
  padding: clamp(28px, 4vw, 46px);
}

.close h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  max-width: 32ch;
}

.close .body { margin-top: 14px; max-width: 52ch; }
.close .actions { margin-top: 28px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding-block: 26px 34px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot p {
  color: var(--ink-3);
  font-size: 0.82rem;
}

.foot-nav { display: flex; gap: 18px; }

.foot-nav a {
  color: var(--ink-3);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-nav a:hover { color: var(--ink); }

@media (min-width: 641px) { .foot-nav { display: none; } }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(7px);
    transition:
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0ms);
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-7 { grid-column: auto; }
  .traj { grid-template-columns: 1fr; }
  .prose, .rows { grid-column: auto; }
  .rows { margin-top: 8px; }
  .field-wrap { height: clamp(220px, 34svh, 340px); }
}

@media (max-width: 640px) {
  :root { --barh: 56px; }
  .nav { display: none; }
  .bar-in { gap: 16px; }
  .hero-in { padding-block: 44px 22px; }
  .field-wrap { height: clamp(210px, 32svh, 300px); }
  .sub { font-size: 0.97rem; }
  .status { flex-direction: column; gap: 6px; }
  .status li { gap: 0; }
  .status li + li::before { display: none; }
  .receipts { gap: 12px 22px; }
  .foot-in { flex-direction: column; }
}
