:root {
  color-scheme: light;
  --ink: #111111;
  --soft-ink: #39393b;
  --canvas: #ffffff;
  --ceramic: #f5f5f5;
  --white: #ffffff;
  --green: #111111;
  --accent: #111111;
  --house: #111111;
  --gold: #111111;
  --line: #cacacb;
  --max: 1440px;
  --font-book: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

button {
  font: inherit;
}

h1,
h2,
p {
  margin: 0;
}

.node-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.042) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.042) 1px, transparent 1px),
    var(--canvas);
  background-size: 48px 48px;
}

#entropy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: min(100% - 48px, var(--max));
  min-height: 56px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 #e5e5e5;
}

.brand-lockup,
.site-nav a,
.lang-toggle,
.physics-toggle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.brand-lockup {
  justify-self: start;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  box-shadow: inset 0 -2px 0 var(--green);
}

.brand {
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}

.site-nav a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--soft-ink);
  box-shadow: inset 0 -2px 0 var(--line);
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--green);
  outline: none;
}

.lang-toggle {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-style: italic;
}

.physics-dock {
  position: fixed;
  top: 68px;
  right: 24px;
  z-index: 36;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.physics-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.physics-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 330px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.physics-dock.is-open .physics-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.physics-panel label {
  display: grid;
  grid-template-columns: auto 220px 28px;
  gap: 8px;
  align-items: center;
  justify-content: end;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.physics-panel input {
  width: 220px;
  accent-color: var(--ink);
}

.physics-panel input[type="range"] {
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 50% / 1px 14px no-repeat;
}

.physics-panel output {
  min-width: 28px;
  color: var(--soft-ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

main {
  position: relative;
  z-index: 2;
}

.home-hero,
.page {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.home-hero {
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.home-statement,
.page {
  transform-origin: 50% 46%;
  animation: page-in 440ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

body.is-leaving main {
  animation: page-out 220ms ease both;
}

.home-statement {
  position: relative;
  z-index: 0;
  max-width: 980px;
  padding: 48px 0;
}

.home-statement::before,
.page-intro::before,
.system-list::before,
.split::before,
.contact-panel::before,
.method-strip::before {
  content: "";
  position: absolute;
  inset: -42vh calc(50% - 50vw) -34vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 46% at 30% 50%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42) 35%, rgba(255, 255, 255, 0.16) 58%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.24) 46%, rgba(255, 255, 255, 0.04) 78%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(8px) saturate(0.88);
  -webkit-backdrop-filter: blur(8px) saturate(0.88);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 72%, transparent 100%);
}

.page-intro::before {
  inset: -30vh calc(50% - 50vw) -10vh;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 58%, transparent 100%);
}

.system-list,
.split,
.contact-panel,
.method-strip {
  position: relative;
  z-index: 0;
}

.system-list::before,
.split::before,
.contact-panel::before,
.method-strip::before {
  inset: -120px calc(50% - 50vw) -140px;
  background:
    radial-gradient(ellipse 68% 54% at 36% 48%, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.08) 66%, rgba(255, 255, 255, 0) 86%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16) 52%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(6px) saturate(0.9);
  -webkit-backdrop-filter: blur(6px) saturate(0.9);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 68%, transparent 100%);
}

.kicker {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 1080px;
  margin-top: 12px;
  color: var(--green);
  font-size: 96px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entropy-sequence {
  display: inline-flex;
  align-items: baseline;
  gap: 0.52em;
  margin-left: 0.16em;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.entropy-sequence span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.18em) scale(0.82);
  animation: proof-word 360ms steps(1, end) forwards;
}

.entropy-sequence span:nth-child(2) {
  animation-delay: 120ms;
}

.entropy-sequence span:nth-child(3) {
  animation-delay: 240ms;
}

.entropy-sequence span:nth-child(4) {
  animation-delay: 360ms;
}

.lede {
  margin-top: 24px;
  color: var(--house);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.page {
  position: relative;
  padding: 80px 0 72px;
}

.page::before {
  content: "";
  position: absolute;
  inset: 260px calc(50% - 50vw) 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92) 120px,
    #ffffff 260px
  );
}

body[data-page="systems"] .page::before {
  top: 160px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55) 18%,
    rgba(255, 255, 255, 0.92) 52%,
    #ffffff 100%
  );
}

.page-intro {
  position: relative;
  z-index: 0;
  max-width: 1080px;
  padding: 24px 0 48px;
}

.page-intro h1 {
  font-size: 96px;
}

.system-list,
.split {
  border-top: 1px solid var(--line);
}

.system-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.system-row span,
.method-strip span {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.system-row h2 {
  grid-column: 2;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.system-row p {
  grid-column: 2;
  max-width: 640px;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.5;
}

.split p {
  color: var(--soft-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.contact-panel p {
  max-width: 760px;
  color: var(--soft-ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-panel a {
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-signal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  text-align: right;
}

.contact-signal .entropy-sequence {
  gap: 0.9em;
  margin-left: 0;
}

.method-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding-top: 68px;
  padding-bottom: 64px;
}

.method-strip span {
  position: relative;
  z-index: 2;
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: perspective(520px) rotateX(-84deg) translateY(-26px);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

.method-strip.is-running span.is-falling {
  animation: method-fall 860ms cubic-bezier(0.22, 1.12, 0.32, 1) both;
}

.method-strip.is-running span.is-fading {
  animation: none;
  opacity: 0;
  transform: translateY(18px);
  transition:
    transform 520ms cubic-bezier(0.42, 0, 0.12, 1),
    opacity 420ms ease;
}

.method-strip.is-running span.is-shipping {
  animation: method-ship-out 1280ms cubic-bezier(0.36, 0, 0.08, 1) forwards;
  transform-origin: 0 100%;
  transition: none;
}

.method-strip::after {
  content: "";
  position: absolute;
  top: 32px;
  z-index: 1;
  display: none;
}

.method-strip::after {
  right: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: translateY(-8px) rotate(45deg);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-7deg) translateY(18px);
  }

  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) translateY(0);
  }
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: perspective(900px) rotateX(7deg) translateY(-18px);
  }
}

@keyframes proof-word {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes method-fall {
  0% {
    opacity: 0;
    transform: perspective(520px) rotateX(-88deg) translateY(-32px);
  }

  66% {
    opacity: 1;
    transform: perspective(520px) rotateX(10deg) translateY(2px);
  }

  100% {
    opacity: 1;
    transform: perspective(520px) rotateX(0deg) translateY(0);
  }
}

@keyframes method-ship-out {
  0% {
    opacity: 1;
    letter-spacing: 0;
    transform: translateX(0) translateY(0);
  }

  20% {
    opacity: 1;
    letter-spacing: 0.01em;
    transform: translateX(10px) translateY(0);
  }

  48% {
    opacity: 1;
    letter-spacing: 0.025em;
    transform: translateX(92px) translateY(-2px);
  }

  86% {
    opacity: 1;
    letter-spacing: 0.03em;
    transform: translateX(calc(100vw - 72px)) translateY(-3px);
  }

  100% {
    opacity: 0;
    letter-spacing: 0.03em;
    transform: translateX(calc(100vw - 10px)) translateY(-7px);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    width: min(100% - 32px, var(--max));
    min-height: 96px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 40px;
  }

  .physics-dock {
    top: 104px;
    right: 16px;
  }

  .physics-panel {
    width: min(330px, calc(100vw - 32px));
  }

  .node-stage {
    inset: 0;
  }

  .home-hero,
  .page {
    width: min(100% - 32px, var(--max));
  }

  .system-row,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .system-row span,
  .system-row h2,
  .system-row p {
    grid-column: 1;
  }

  h1 {
    font-size: 64px;
  }

  .page-intro h1 {
    font-size: 64px;
  }

  .lede {
    font-size: 22px;
  }

  .system-row h2 {
    font-size: 28px;
  }

  .system-row p {
    font-size: 18px;
  }

  .split p {
    font-size: 21px;
  }

  .contact-panel p,
  .contact-panel a {
    font-size: 24px;
  }

  .method-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .node-stage {
    inset: 0;
  }

  .home-statement {
    padding: 22px 22px 22px 30px;
  }

  h1,
  .page-intro h1 {
    font-size: 48px;
  }

  .lede {
    font-size: 20px;
  }

  .page {
    padding: 64px 0 48px;
  }

  .system-row h2 {
    font-size: 24px;
  }

  .system-row p {
    font-size: 17px;
  }

  .split p {
    font-size: 18px;
  }

  .contact-panel p,
  .contact-panel a {
    font-size: 20px;
  }

  .method-strip {
    grid-template-columns: 1fr 1fr;
  }
}
