:root {
  color-scheme: dark;
  --ink: #09111d;
  --ink-soft: #0d1827;
  --paper: #f3f0e8;
  --muted: #a8b1bd;
  --line: rgb(216 227 242 / 16%);
  --x: #ff5e5b;
  --y: #63d49a;
  --z: #5aa9ff;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  color: var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 76% 18%, rgb(45 99 160 / 18%), transparent 34%);
  content: "";
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark span { color: var(--z); }

.project-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--y);
  box-shadow: 0 0 18px rgb(99 212 154 / 65%);
}

.coordinate-field {
  position: absolute;
  top: 136px;
  right: max(24px, calc((100vw - var(--max)) / 2));
  width: min(35vw, 430px);
  height: 430px;
  opacity: 0.82;
  pointer-events: none;
}

.axis {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 52%;
  height: 1px;
  transform-origin: left center;
}

.axis::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentcolor;
  box-shadow: 0 0 18px currentcolor;
  content: "";
}

.axis-x { color: var(--x); background: linear-gradient(90deg, currentcolor, transparent); transform: rotate(-8deg); }
.axis-y { color: var(--y); background: linear-gradient(90deg, currentcolor, transparent); transform: rotate(112deg); }
.axis-z { color: var(--z); background: linear-gradient(90deg, currentcolor, transparent); transform: rotate(226deg); }

.origin {
  position: absolute;
  top: calc(50% - 6px);
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
}

.hero {
  display: grid;
  align-content: center;
  min-height: 680px;
  padding-block: 96px 116px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-number,
.principle-code {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { color: var(--z); }

h1 {
  max-width: 850px;
  margin: 26px 0 32px;
  font-size: clamp(4rem, 9.3vw, 8.2rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: #c5ccd5;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.text-link {
  width: fit-content;
  margin-top: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  line-height: 2;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible { border-color: var(--z); color: var(--z); }

.approach { padding: 112px 0 128px; border-bottom: 1px solid var(--line); }

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 88px;
}

.section-number { color: #6f7c8d; }

h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 580;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article { min-height: 310px; padding: 30px 28px 36px; }
.principles article + article { border-left: 1px solid var(--line); }
.principles article:nth-child(1) .principle-code { color: var(--x); }
.principles article:nth-child(2) .principle-code { color: var(--y); }
.principles article:nth-child(3) .principle-code { color: var(--z); }

h3 {
  margin: 78px 0 18px;
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.principles article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.status {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 40px;
  align-items: start;
  padding: 112px 0 128px;
}

.status > div > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.status-mark { margin: 0; color: var(--y); font-size: 3.5rem; line-height: 0.8; }

footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 32px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: #778394;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

footer p { margin: 0; }
.identity-note { justify-self: end; max-width: 460px; text-align: right; }

@media (max-width: 800px) {
  .site-header, main, footer { width: min(calc(100% - 32px), var(--max)); }
  .coordinate-field { top: 170px; right: -70px; width: 280px; height: 280px; opacity: 0.55; }
  .hero { min-height: 620px; padding-block: 84px; }
  h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
  .section-intro, .status { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 245px; }
  .principles article + article { border-top: 1px solid var(--line); border-left: 0; }
  h3 { margin-top: 58px; }
  .status-mark { display: none; }
  footer { grid-template-columns: 1fr; gap: 12px; }
  .identity-note { justify-self: start; text-align: left; }
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; }
  .hero { min-height: 560px; }
  .approach, .status { padding-block: 84px; }
  .section-intro { margin-bottom: 58px; }
}

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