@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --carbon: #080b0b;
  --night: #05070b;
  --eucalyptus: #18352f;
  --eucalyptus-deep: #10251f;
  --pacific: #063a4a;
  --deep-water: #08262b;
  --bone: #f2e9d8;
  --paper: #fffdf7;
  --fog: #aab8b5;
  --aqua: #47e7e0;
  --signal: #c9ff38;
  --apricot: #ffb566;
  --poppy: #ff5a36;
  --violet: #7b67ff;
  /* Semantic hot-surface pairings: 4.80:1 on bone; 6.50:1 on poppy. */
  --accent-hot-on-light: #bd3218;
  --focus-on-hot: var(--night);
  --line-light: rgb(242 233 216 / 18%);
  --line-dark: rgb(8 11 11 / 19%);
  --font-display: "Space Grotesk", "Arial Black", "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Inter", "Helvetica Neue", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(5rem, 9vw, 9rem);
  --max: 1600px;
  --fast: 160ms;
  --base: 320ms;
  --slow: 800ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--carbon);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--signal);
  color: var(--night);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border: 1px solid var(--signal);
  background: var(--night);
  color: var(--paper);
  font: 650 0.72rem/1 var(--font-mono);
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  border-bottom: 1px solid var(--line-light);
  justify-content: space-between;
  gap: 2rem;
  background: rgb(8 11 11 / 88%);
  backdrop-filter: blur(18px) saturate(145%);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font: 850 0.9rem/1 var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-name > span {
  color: var(--signal);
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  border: 1px solid rgb(242 233 216 / 32%);
  display: grid;
  place-items: center;
}

.brand-mark::before {
  width: 12px;
  height: 12px;
  border: 2px solid var(--bone);
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
}

.brand-mark i {
  position: absolute;
  top: 10px;
  right: 7px;
  width: 6px;
  height: 8px;
  background: var(--signal);
}

.header-origin {
  margin: 0 auto 0 0;
  color: var(--fog);
  font: 550 0.58rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  color: var(--fog);
  font: 550 0.63rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--aqua);
}

.motion-toggle {
  min-height: 38px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: 550 0.57rem/1 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.motion-toggle span {
  margin-right: 0.5rem;
  color: var(--fog);
}

.motion-toggle:hover {
  border-color: var(--aqua);
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--max));
  min-height: calc(100svh - 72px);
  margin-inline: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
  background: var(--carbon);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgb(242 233 216 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(242 233 216 / 5%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(58% 75% at 82% 48%, rgb(255 90 54 / 13%), transparent 68%),
    radial-gradient(45% 55% at 10% 94%, rgb(71 231 224 / 10%), transparent 70%);
  content: "";
}

.aperture {
  position: absolute;
  top: clamp(2rem, 6vh, 4.5rem);
  right: var(--gutter);
  bottom: clamp(5.5rem, 12vh, 8rem);
  left: 41.5%;
  z-index: -2;
  overflow: hidden;
  border: 1px solid rgb(242 233 216 / 26%);
  background:
    linear-gradient(180deg, rgb(7 23 19 / 22%) 0 48%, rgb(6 58 74 / 48%) 48% 49%, rgb(5 7 11 / 84%) 70% 100%),
    linear-gradient(115deg, var(--deep-water), var(--eucalyptus) 52%, #5a3428 100%);
  box-shadow: inset 0 0 0 1px rgb(8 11 11 / 20%), 0 32px 90px rgb(0 0 0 / 35%);
}

.aperture::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(242 233 216 / 5%) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgb(242 233 216 / 5%) 39px 40px);
  content: "";
}

.aperture::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 48%, rgb(255 255 255 / 9%) 50%, transparent 52% 100%);
  content: "";
  opacity: 0.32;
  transform: translateX(-58%);
  animation: light-breath 16s ease-in-out infinite alternate;
}

.aperture-sun {
  position: absolute;
  top: 15%;
  right: 9%;
  width: min(36vw, 31rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff7cf 0 3%, transparent 12%),
    radial-gradient(circle at 42% 42%, var(--apricot) 0 20%, var(--poppy) 51%, var(--violet) 74%, rgb(6 58 74 / 0%) 75%);
  filter: saturate(108%);
  box-shadow: 0 0 58px rgb(255 181 102 / 22%), 0 0 160px rgb(255 90 54 / 15%);
  opacity: 0.9;
}

.aperture-sun::before,
.aperture-sun::after {
  position: absolute;
  border-radius: inherit;
  content: "";
}

.aperture-sun::before {
  inset: 8%;
  border: 1px solid rgb(255 253 247 / 26%);
}

.aperture-sun::after {
  inset: -3%;
  border: 1px solid rgb(71 231 224 / 22%);
  transform: translate(8px, 3px);
}

.aperture-horizon {
  position: absolute;
  right: 0;
  bottom: 40%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua) 16% 82%, transparent);
  box-shadow: 0 0 22px rgb(71 231 224 / 48%);
}

.aperture-registration i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--bone);
  border-style: solid;
  opacity: 0.5;
}

.aperture-registration i:nth-child(1) { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.aperture-registration i:nth-child(2) { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.aperture-registration i:nth-child(3) { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.aperture-registration i:nth-child(4) { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }

#signal-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* The decorative Canvas has no no-JavaScript meaning and must not allocate a
   background compositor surface over the static fallback. */
.no-js #signal-field {
  display: none;
}

.no-js .aperture::after {
  animation: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 72px);
  padding: clamp(5.5rem, 9vh, 8rem) var(--gutter) clamp(6.5rem, 12vh, 9rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  grid-column: 1 / 10;
  grid-row: 1;
  align-self: center;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--signal);
  font: 650 0.66rem/1.3 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.hero h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 11.2ch;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  color: var(--paper);
  font-size: clamp(4.6rem, 8.4vw, 8.9rem);
  line-height: 0.81;
  text-transform: uppercase;
}

.hero h1 > span {
  display: block;
}

.hero h1 > span:nth-child(2) {
  margin-left: 0.32em;
}

.hero h1 em {
  position: relative;
  color: var(--signal);
  font-style: normal;
  text-shadow: 5px 3px 0 rgb(71 231 224 / 32%);
}

.hero h1 em::after {
  position: absolute;
  right: -0.14em;
  bottom: 0.02em;
  left: 0;
  height: 0.045em;
  background: var(--poppy);
  content: "";
}

.hero-deck {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--bone);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--night);
}

.button-primary:hover {
  border-color: var(--paper);
  background: var(--paper);
}

.button-quiet {
  background: rgb(8 11 11 / 46%);
  color: var(--paper);
}

.button-quiet:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.intent-console {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: end;
  border: 1px solid rgb(242 233 216 / 28%);
  background: rgb(8 11 11 / 78%);
  backdrop-filter: blur(12px);
}

.intent-console-head {
  min-height: 36px;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fog);
  font: 500 0.5rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
}

.intent-console p {
  min-height: 4.9rem;
  margin: 0;
  padding: 1rem;
  color: var(--fog);
  font: 500 0.69rem/1.65 var(--font-mono);
}

.intent-console p b {
  margin-right: 0.5rem;
  color: var(--aqua);
}

.intent-console button {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 0;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: 600 0.66rem/1.3 var(--font-mono);
  text-align: left;
}

.intent-console button:hover {
  background: var(--signal);
  color: var(--night);
}

.intent-console button span {
  color: var(--signal);
  font-size: 1.15rem;
}

.intent-console button:hover span {
  color: inherit;
}

.design-posture {
  grid-column: 1 / 8;
  grid-row: 2;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-light);
}

.design-posture div {
  min-width: 0;
  padding: 0.75rem 1rem;
}

.design-posture div + div {
  border-left: 1px solid var(--line-light);
}

.design-posture dt,
.design-posture dd {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.design-posture dt {
  color: var(--fog);
  font-size: 0.53rem;
  letter-spacing: 0.09em;
}

.design-posture dd {
  margin: 0.35rem 0 0;
  color: var(--paper);
  font-size: 0.67rem;
  font-weight: 650;
}

.hero-index,
.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font: 600 0.55rem/1.3 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  left: var(--gutter);
  z-index: 2;
  color: var(--fog);
}

.hero-index span:first-child {
  color: var(--signal);
}

.manifesto,
.control-plane,
.field-guide,
.proving-ground,
.boundaries,
.contact {
  position: relative;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
  overflow: hidden;
}

.section-meta {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
}

.manifesto {
  min-height: 92svh;
  background: var(--bone);
  color: var(--carbon);
}

.manifesto::before {
  position: absolute;
  top: 9%;
  right: 8%;
  width: clamp(8rem, 22vw, 24rem);
  aspect-ratio: 1;
  border: 1px solid rgb(8 11 11 / 25%);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0 49.8%, var(--poppy) 49.8% 50.2%, transparent 50.2%),
    linear-gradient(0deg, transparent 0 49.8%, var(--aqua) 49.8% 50.2%, transparent 50.2%);
  content: "";
  opacity: 0.7;
}

.manifesto-grid {
  margin-top: clamp(4rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.5fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  font-size: clamp(3.4rem, 6.9vw, 7.2rem);
  line-height: 0.93;
}

.manifesto h2 em {
  color: var(--accent-hot-on-light);
  font-style: normal;
}

.manifesto-copy {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.manifesto-copy p {
  margin: 0;
  font-size: 1.05rem;
}

.manifesto-copy .california-note {
  margin-top: 2rem;
  color: var(--pacific);
  font: 600 0.68rem/1.5 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.scale-rail {
  margin-top: clamp(4rem, 10vw, 9rem);
  padding-block: 1rem;
  border-block: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--eucalyptus-deep);
  font: 600 0.58rem/1 var(--font-mono);
  letter-spacing: 0.07em;
}

.scale-rail i {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.35;
}

.control-plane {
  min-height: 100svh;
  background: var(--pacific);
  color: var(--paper);
}

.control-plane::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 253 247 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 253 247 / 5%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
}

.control-plane > * {
  position: relative;
  z-index: 1;
}

.control-heading {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: 3rem;
  align-items: end;
}

.control-heading h2 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: 0.9;
}

.control-heading p {
  margin: 0;
  color: #c6dbd8;
  font-size: 1.04rem;
}

.phase-stage {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  border: 1px solid rgb(255 253 247 / 24%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
  background: rgb(5 7 11 / 24%);
}

.phase-visual {
  position: relative;
  min-height: 39rem;
  overflow: hidden;
  border-right: 1px solid rgb(255 253 247 / 24%);
  background:
    radial-gradient(circle at 50% 48%, rgb(255 181 102 / 20%), transparent 32%),
    linear-gradient(155deg, rgb(71 231 224 / 12%), transparent 40% 60%, rgb(123 103 255 / 12%));
}

.phase-visual::before,
.phase-visual::after {
  position: absolute;
  content: "";
}

.phase-visual::before {
  inset: 12%;
  border: 1px solid rgb(255 253 247 / 16%);
}

.phase-visual::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgb(255 253 247 / 18%);
}

.inspection-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(25vw, 22rem);
  aspect-ratio: 1;
  border: 1px solid var(--aqua);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), transform var(--slow) var(--ease);
}

.inspection-lens::before,
.inspection-lens::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.inspection-lens::before {
  inset: 14%;
  border: 1px dashed rgb(255 253 247 / 34%);
}

.inspection-lens::after {
  inset: 34%;
  border: 1px solid var(--signal);
  box-shadow: 0 0 26px rgb(201 255 56 / 28%);
}

.lens-core {
  position: absolute;
  inset: 45%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 24px var(--paper);
}

.orbit {
  position: absolute;
  border: 1px solid rgb(255 253 247 / 20%);
  border-radius: 50%;
}

.orbit-one { inset: -12%; transform: rotate(24deg) scaleY(0.48); }
.orbit-two { inset: -24%; transform: rotate(-42deg) scaleY(0.34); }

.trace {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  background: var(--aqua);
  transform-origin: left;
}

.trace::after {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  background: currentColor;
  content: "";
}

.trace-one { width: 45%; transform: rotate(25deg); color: var(--aqua); }
.trace-two { width: 40%; transform: rotate(145deg); color: var(--signal); }
.trace-three { width: 36%; transform: rotate(267deg); color: var(--apricot); }

.visual-label {
  position: absolute;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgb(255 253 247 / 22%);
  background: rgb(5 7 11 / 55%);
  color: var(--fog);
  font: 550 0.52rem/1 var(--font-mono);
  letter-spacing: 0.05em;
}

.label-one { top: 18%; left: 8%; }
.label-two { top: 18%; right: 8%; }
.label-three { right: 8%; bottom: 16%; }

.phase-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.phase-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgb(255 253 247 / 22%);
}

.phase-controls button {
  min-height: 62px;
  padding: 0.8rem;
  border: 0;
  background: transparent;
  color: var(--fog);
  cursor: pointer;
  font: 620 0.63rem/1.2 var(--font-mono);
  text-transform: uppercase;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.phase-controls button + button {
  border-left: 1px solid rgb(255 253 247 / 22%);
}

.phase-controls button span {
  margin-right: 0.3rem;
  color: var(--aqua);
  font-size: 0.52rem;
}

.phase-controls button[aria-pressed="true"] {
  background: var(--signal);
  color: var(--night);
}

.phase-controls button[aria-pressed="true"] span {
  color: inherit;
}

.phase-summary {
  padding: clamp(2rem, 4vw, 4rem);
  align-self: center;
}

.phase-verb {
  margin: 0 0 1rem;
  color: var(--aqua);
  font: 650 0.68rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-summary h3 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 0.98;
}

.phase-detail {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: #c6dbd8;
}

.loop-contract {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(255 253 247 / 22%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.loop-contract li {
  min-width: 0;
  padding: 0.9rem;
}

.loop-contract li + li {
  border-left: 1px solid rgb(255 253 247 / 22%);
}

.loop-contract span,
.loop-contract b {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.loop-contract span {
  color: var(--aqua);
  font-size: 0.5rem;
}

.loop-contract b {
  margin-top: 0.4rem;
  color: var(--paper);
  font-size: 0.57rem;
}

.control-plane[data-active-phase="decide"] .inspection-lens { border-color: var(--signal); box-shadow: 0 0 72px rgb(201 255 56 / 15%); transform: translate(-50%, -50%) rotate(20deg); }
.control-plane[data-active-phase="act"] .inspection-lens { border-color: var(--poppy); box-shadow: 0 0 72px rgb(255 90 54 / 18%); transform: translate(-50%, -50%) scale(0.86); }
.control-plane[data-active-phase="prove"] .inspection-lens { border-color: var(--apricot); box-shadow: 0 0 86px rgb(255 181 102 / 18%); transform: translate(-50%, -50%) scale(1.08); }

.field-guide {
  background: var(--paper);
  color: var(--carbon);
}

.field-guide::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(8 11 11 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(8 11 11 / 6%) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.field-guide > * {
  position: relative;
  z-index: 1;
}

.field-heading {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  gap: 3rem;
  align-items: end;
}

.field-heading h2 {
  font-size: clamp(3.7rem, 7vw, 7.3rem);
  line-height: 0.88;
}

.field-heading p {
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-dark);
  font-size: 1.04rem;
}

.specimens {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.specimen {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--carbon);
  display: flex;
  flex-direction: column;
  color: var(--carbon);
}

.specimen-leverage { grid-column: 1 / 5; margin-top: 7rem; background: var(--apricot); }
.specimen-operator { grid-column: 5 / 10; background: var(--aqua); }
.specimen-authority { grid-column: 10 / 13; margin-top: 3rem; background: var(--signal); }

.specimen-number {
  font: 650 0.55rem/1.2 var(--font-mono);
  letter-spacing: 0.07em;
}

.specimen-art {
  position: relative;
  min-height: 15rem;
  margin: 1rem -0.25rem 2rem;
  overflow: hidden;
  border: 1px solid rgb(8 11 11 / 34%);
  background:
    linear-gradient(rgb(8 11 11 / 12%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(8 11 11 / 12%) 1px, transparent 1px);
  background-size: 32px 32px;
}

.specimen-art span {
  position: absolute;
  border: 1px solid var(--carbon);
  border-radius: 50%;
}

.specimen-leverage .specimen-art span:nth-child(1) { width: 58%; aspect-ratio: 1; top: 9%; left: 7%; }
.specimen-leverage .specimen-art span:nth-child(2) { width: 40%; aspect-ratio: 1; right: 7%; bottom: -8%; background: var(--poppy); }
.specimen-leverage .specimen-art span:nth-child(3) { width: 7px; height: 7px; top: 42%; left: 52%; border: 0; background: var(--carbon); }
.specimen-operator .specimen-art span:nth-child(1) { width: 80%; height: 1px; top: 24%; left: 10%; border: 0; background: var(--carbon); }
.specimen-operator .specimen-art span:nth-child(2) { width: 80%; height: 1px; top: 50%; left: 10%; border: 0; background: var(--carbon); }
.specimen-operator .specimen-art span:nth-child(3) { width: 80%; height: 1px; top: 76%; left: 10%; border: 0; background: var(--carbon); }
.specimen-operator .specimen-art span:nth-child(4) { width: 28%; aspect-ratio: 1; top: 36%; left: 37%; background: var(--signal); }
.specimen-authority .specimen-art span:nth-child(1) { inset: 10%; border-radius: 0; }
.specimen-authority .specimen-art span:nth-child(2) { inset: 22%; border-radius: 0; }
.specimen-authority .specimen-art span:nth-child(3) { inset: 34%; border-radius: 0; background: var(--pacific); }
.specimen-authority .specimen-art span:nth-child(4) { width: 48%; height: 1px; top: 50%; left: 1%; border: 0; background: var(--carbon); transform: rotate(42deg); }
.specimen-authority .specimen-art span:nth-child(5) { width: 48%; height: 1px; top: 50%; right: 1%; border: 0; background: var(--carbon); transform: rotate(-42deg); }

.specimen h3 {
  max-width: 8ch;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 0.94;
}

.specimen > p {
  margin: 1.2rem 0 2rem;
}

.specimen dl {
  margin: auto 0 0;
}

.specimen dl div {
  padding-block: 0.55rem;
  border-top: 1px solid rgb(8 11 11 / 34%);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.specimen dl div:last-child {
  border-bottom: 1px solid rgb(8 11 11 / 34%);
}

.specimen dt,
.specimen dd {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  text-transform: uppercase;
}

.specimen dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

.proving-ground {
  min-height: 100svh;
  background: var(--eucalyptus-deep);
  color: var(--bone);
}

.proving-ground::after {
  position: absolute;
  top: 0;
  right: -12%;
  width: 56%;
  height: 100%;
  background: linear-gradient(140deg, transparent 10%, rgb(71 231 224 / 8%) 50%, rgb(255 90 54 / 12%) 100%);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.proving-ground > * {
  position: relative;
  z-index: 1;
}

.proving-grid {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.proving-grid h2 {
  max-width: 12ch;
  margin-top: 1.5rem;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.94;
}

.company-topology {
  border: 1px solid var(--line-light);
  background: rgb(8 11 11 / 36%);
}

.topology-row {
  min-height: 76px;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(9rem, 0.48fr) 1fr minmax(8rem, 0.52fr);
  gap: 1rem;
  align-items: center;
  font-family: var(--font-mono);
}

.topology-row + .topology-row,
.topology-cluster + .topology-row {
  border-top: 1px solid var(--line-light);
}

.topology-row span {
  color: var(--aqua);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

.topology-row i {
  position: relative;
  height: 1px;
  background: var(--line-light);
}

.topology-row i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  background: var(--signal);
  content: "";
}

.topology-row b {
  font-size: 0.66rem;
  text-align: right;
}

.topology-cluster {
  padding: 1rem;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.topology-cluster span {
  min-height: 78px;
  padding: 0.75rem;
  border: 1px solid var(--line-light);
  display: grid;
  place-items: center;
  color: var(--paper);
  font: 600 0.58rem/1 var(--font-mono);
}

.topology-cluster span:nth-child(2) { border-color: var(--aqua); }
.topology-cluster span:nth-child(3) { border-color: var(--signal); color: var(--signal); }

.proving-note {
  max-width: 60rem;
  margin: clamp(4rem, 8vw, 8rem) 0 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  color: var(--fog);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.boundaries {
  background: var(--carbon);
}

.boundaries h2 {
  max-width: 15ch;
  margin-top: clamp(4rem, 8vw, 7rem);
  font-size: clamp(3.4rem, 6.6vw, 6.7rem);
  line-height: 0.93;
}

.boundaries h2 em {
  color: var(--aqua);
  font-style: normal;
}

.boundaries ol {
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 0;
  list-style: none;
}

.boundaries li {
  position: relative;
  min-height: 132px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: minmax(8rem, 0.25fr) minmax(15rem, 0.7fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.boundaries li:last-child {
  border-bottom: 1px solid var(--line-light);
}

.boundaries li::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--signal);
  content: "";
  transition: width var(--slow) var(--ease);
}

.boundaries li:hover::before {
  width: 100%;
}

.boundaries li > span {
  color: var(--aqua);
  font: 600 0.57rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
}

.boundaries strong {
  color: var(--paper);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.boundaries li p {
  margin: 0;
  color: var(--fog);
}

.contact {
  min-height: 92svh;
  background: var(--poppy);
  color: var(--night);
}

.contact::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(8 11 11 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(8 11 11 / 8%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
}

.contact > * {
  position: relative;
  z-index: 1;
}

.afterglow {
  position: absolute;
  top: 16%;
  right: 5%;
  width: min(48vw, 43rem);
  aspect-ratio: 1;
  border: 1px solid rgb(8 11 11 / 28%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, var(--paper) 0 3%, var(--apricot) 14%, var(--signal) 42%, var(--aqua) 68%, rgb(123 103 255 / 0%) 70%);
  opacity: 0.76;
}

.afterglow i {
  position: absolute;
  inset: calc(12% * var(--ring, 1));
  border: 1px solid rgb(8 11 11 / 22%);
  border-radius: 50%;
}

.afterglow i:nth-child(1) { --ring: 1; }
.afterglow i:nth-child(2) { --ring: 2; }
.afterglow i:nth-child(3) { --ring: 3; }

.contact-grid {
  min-height: 65svh;
  padding-top: clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.5fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.contact h2 {
  position: relative;
  z-index: 2;
  max-width: 13ch;
  font-size: clamp(3.8rem, 7.7vw, 8rem);
  line-height: 0.88;
}

.contact-grid > div {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.contact-grid p {
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.contact-email {
  min-height: 56px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--night);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--night);
  color: var(--paper);
  font-weight: 760;
  text-decoration: none;
}

.contact-email:hover {
  background: var(--paper);
  color: var(--night);
}

.contact-email:focus-visible {
  outline-color: var(--focus-on-hot);
}

footer {
  min-height: 116px;
  justify-content: space-between;
  gap: 2rem;
  background: var(--night);
  color: var(--fog);
  font: 550 0.58rem/1.4 var(--font-mono);
}

footer p {
  margin: 0;
}

@keyframes light-breath {
  from { transform: translateX(-62%); opacity: 0.18; }
  to { transform: translateX(48%); opacity: 0.42; }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(4.25rem, 9.1vw, 7.4rem);
  }

  .hero-copy {
    grid-column: 1 / 11;
  }

  .intent-console {
    grid-column: 8 / 13;
  }

  .design-posture {
    grid-column: 1 / 8;
  }

  .phase-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase-visual {
    min-height: 32rem;
    border-right: 0;
    border-bottom: 1px solid rgb(255 253 247 / 24%);
  }

  .inspection-lens {
    width: min(44vw, 22rem);
  }

  .specimen-leverage { grid-column: 1 / 5; }
  .specimen-operator { grid-column: 5 / 9; }
  .specimen-authority { grid-column: 9 / 13; }

  .proving-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-origin,
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 1240px;
  }

  .aperture {
    top: 2rem;
    right: var(--gutter);
    bottom: auto;
    left: var(--gutter);
    height: 46%;
  }

  .aperture-sun {
    top: 8%;
    right: -2%;
    width: min(76vw, 32rem);
  }

  .hero-grid {
    min-height: 1170px;
    padding-top: clamp(17rem, 47vh, 24rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: end;
  }

  .hero-copy,
  .intent-console,
  .design-posture {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-copy {
    align-self: end;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.8rem, 13.5vw, 7rem);
  }

  .hero h1 > span:nth-child(2) {
    margin-left: 0;
  }

  .intent-console {
    margin-top: 1rem;
  }

  .design-posture {
    margin-top: 0;
  }

  .manifesto-grid,
  .control-heading,
  .field-heading,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .manifesto-grid {
    align-items: start;
  }

  .manifesto::before {
    top: 17%;
    right: -7%;
  }

  .specimens {
    grid-template-columns: minmax(0, 1fr);
  }

  .specimen-leverage,
  .specimen-operator,
  .specimen-authority {
    grid-column: 1;
    margin-top: 0;
  }

  .specimen-art {
    min-height: 20rem;
  }

  .boundaries li {
    grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 0.75fr);
  }

  .boundaries li p {
    grid-column: 2;
  }

  .contact-grid {
    align-content: end;
  }

  .afterglow {
    top: 19%;
    right: -12%;
    width: 80vw;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 1.25rem;
    --section-pad: 5.25rem;
  }

  .site-header {
    min-height: 64px;
  }

  .motion-toggle {
    min-height: 44px;
  }

  .hero {
    min-height: 1180px;
  }

  .hero-grid {
    min-height: 1110px;
    padding-top: min(54vh, 25rem);
    padding-bottom: 5rem;
    gap: 1.25rem;
  }

  .aperture {
    top: 1.25rem;
    height: 36%;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.65rem);
    line-height: 0.84;
  }

  .hero-deck {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intent-console-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-posture {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-posture div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .design-posture div + div {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .hero-index {
    display: none;
  }

  .section-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .manifesto,
  .control-plane,
  .field-guide,
  .proving-ground,
  .boundaries,
  .contact {
    min-height: auto;
  }

  .manifesto h2,
  .control-heading h2,
  .field-heading h2,
  .proving-grid h2,
  .boundaries h2,
  .contact h2 {
    font-size: clamp(2.8rem, 12.8vw, 4rem);
    line-height: 0.94;
  }

  .scale-rail {
    align-items: flex-start;
    flex-direction: column;
  }

  .scale-rail i {
    width: 1px;
    height: 1rem;
    flex: none;
  }

  .phase-visual {
    min-height: 24rem;
  }

  .inspection-lens {
    width: 58vw;
  }

  .phase-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-controls button:nth-child(3),
  .phase-controls button:nth-child(4) {
    border-top: 1px solid rgb(255 253 247 / 22%);
  }

  .phase-controls button:nth-child(3) {
    border-left: 0;
  }

  .loop-contract {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop-contract li:nth-child(3),
  .loop-contract li:nth-child(4) {
    border-top: 1px solid rgb(255 253 247 / 22%);
  }

  .loop-contract li:nth-child(3) {
    border-left: 0;
  }

  .phase-summary {
    padding: 2rem 1.25rem;
  }

  .specimen-art {
    min-height: 15rem;
  }

  .topology-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .topology-row i {
    width: 1px;
    height: 24px;
    margin-left: 0.2rem;
  }

  .topology-row i::after {
    top: auto;
    right: -3px;
    bottom: 0;
  }

  .topology-row b {
    text-align: left;
  }

  .topology-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundaries li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .boundaries li p {
    grid-column: 1;
  }

  .contact {
    min-height: 820px;
  }

  .contact-grid {
    min-height: 620px;
  }

  .afterglow {
    top: 20%;
    right: -35%;
    width: 120vw;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  footer {
    min-height: 0;
    padding-block: 2rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

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

.motion-reduced *,
.motion-reduced *::before,
.motion-reduced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
