:root {
  --ink: #171714;
  --ink-soft: #262620;
  --paper: #f5f0e4;
  --paper-bright: #fffaf0;
  --orange: #ff5a1f;
  --orange-soft: #ff7b4b;
  --acid: #d9ef58;
  --line: rgba(23, 23, 20, 0.16);
  --muted: #737168;
  --panel: #20201c;
  --panel-2: #292923;
  --panel-line: #3a3932;
  --ui-text: #d9d5ca;
  --ui-muted: #89877d;
  --sans: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 78px;
  padding: 0 4vw;
  color: var(--paper-bright);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.brand img {
  border-radius: 7px;
}

.brand strong {
  font-weight: 750;
}

.site-header nav {
  display: flex;
  gap: clamp(24px, 3.4vw, 54px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a,
.header-link {
  transition: color 180ms ease;
}

.site-header nav a:hover,
.header-link:hover {
  color: var(--orange-soft);
}

.header-link {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-link span {
  margin-left: 8px;
  color: var(--orange);
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 75% 40%, rgba(255, 90, 31, 0.08), transparent 28%),
    var(--ink);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.21;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 6%, black 35%, transparent 92%);
}

.hero-grid::after {
  position: absolute;
  top: 0;
  left: 15%;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(255, 90, 31, 0.34);
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: 4%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 90, 31, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.013),
    0 0 0 180px rgba(255, 255, 255, 0.01);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(640px, 47vw);
  padding: 190px 0 0 6vw;
}

.eyebrow,
.overline,
.section-index {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  color: #b8b4a8;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--orange);
}

.hero h1,
.manifesto h2,
.section-heading h2,
.stack h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 780;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(68px, 7.8vw, 126px);
}

h1 em,
h2 em {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.hero-lede {
  max-width: 570px;
  margin: 34px 0 0;
  color: #bbb8ae;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--orange);
}

.button-primary:hover {
  background: var(--orange-soft);
}

.button-quiet {
  color: var(--paper-bright);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

kbd {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.button kbd {
  padding: 4px 6px;
  color: #a8a59b;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.hero-proof {
  display: flex;
  gap: 24px;
  margin-top: 34px;
  color: #77766e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-proof span + span::before {
  margin-right: 24px;
  color: var(--orange);
  content: "/";
}

.workbench-wrap {
  position: absolute;
  z-index: 4;
  top: 205px;
  left: 47vw;
  width: 760px;
  perspective: 1800px;
}

.workbench-shadow {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -80px;
  width: 90%;
  height: 80%;
  background: rgba(0, 0, 0, 0.75);
  filter: blur(70px);
  transform: rotate(-5deg);
}

.workbench {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 548px;
  color: var(--ui-text);
  background: var(--panel);
  border: 1px solid #47463f;
  border-radius: 7px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.46);
  transform: rotateY(-8deg) rotateX(3deg);
  transform-origin: 0 50%;
  transition:
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 200ms ease;
}

.workbench-wrap:hover .workbench {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-5px);
}

.workbench.is-light {
  --panel: #ece9df;
  --panel-2: #f8f4e9;
  --panel-line: #d2cdc0;
  --ui-text: #292923;
  --ui-muted: #7e7a70;
}

.workbench button,
.workbench input {
  color: inherit;
}

.workbench-titlebar,
.workbench-menu,
.workbench-tabs,
.workbench-status {
  display: flex;
  align-items: center;
}

.workbench-titlebar {
  height: 34px;
  padding: 0 10px;
  background: #151512;
  border-bottom: 1px solid #34332e;
}

.is-light .workbench-titlebar {
  color: #e8e4da;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights i {
  width: 7px;
  height: 7px;
  background: #4c4b44;
  border-radius: 50%;
}

.traffic-lights i:first-child {
  background: var(--orange);
}

.workbench-title {
  flex: 1;
  color: #76746b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}

.icon-button,
.panel-heading button {
  padding: 2px;
  color: var(--ui-muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.workbench-menu {
  gap: 18px;
  height: 28px;
  padding: 0 12px;
  color: var(--ui-muted);
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
  font-size: 8px;
}

.menu-spacer,
.status-spacer {
  flex: 1;
}

.sync-state {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-family: var(--mono);
}

.sync-state i {
  width: 5px;
  height: 5px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(217, 239, 88, 0.7);
}

.workbench-tabs {
  height: 31px;
  padding-left: 163px;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
}

.preview-tab {
  align-self: stretch;
  padding: 0 15px;
  color: var(--ui-muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--panel-line);
  font-size: 8px;
  cursor: pointer;
}

.preview-tab.is-active {
  position: relative;
  color: var(--ui-text);
  background: var(--panel-2);
}

.preview-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
}

.window-chip {
  margin-left: auto;
  margin-right: 10px;
  padding: 3px 6px;
  color: var(--orange-soft);
  background: rgba(255, 90, 31, 0.09);
  border: 1px solid rgba(255, 90, 31, 0.23);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.workbench-body {
  display: grid;
  grid-template-columns: 162px 1fr 158px;
  min-height: 350px;
}

.preview-panel {
  background: var(--panel);
}

.library-panel {
  border-right: 1px solid var(--panel-line);
}

.inspector-panel {
  border-left: 1px solid var(--panel-line);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  padding: 0 9px;
  color: var(--ui-muted);
  border-bottom: 1px solid var(--panel-line);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asset-search {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 9px;
  padding: 5px 7px;
  color: var(--ui-muted);
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  font-size: 8px;
}

.asset-search input {
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 7px;
}

.asset-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 7px;
}

.tree-label {
  margin: 5px 5px 7px;
  color: var(--ui-muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.asset-tree button {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  background: none;
  border: 0;
  border-radius: 2px;
  font-size: 7px;
  text-align: left;
}

.asset-tree .tree-child {
  padding-left: 19px;
}

.asset-tree .is-selected {
  color: var(--paper-bright);
  background: rgba(255, 90, 31, 0.17);
}

.is-light .asset-tree .is-selected {
  color: var(--ink);
}

.cube-icon,
.material-icon,
.motion-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(30deg);
}

.material-icon {
  background: #8a87fa;
  border-radius: 50%;
}

.motion-icon {
  background: var(--acid);
  transform: skewX(-15deg);
}

.viewport {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 51% 45%, rgba(255, 117, 64, 0.12), transparent 23%),
    #181815;
}

.is-light .viewport {
  background:
    radial-gradient(circle at 51% 45%, rgba(255, 90, 31, 0.11), transparent 23%),
    #d9d5c9;
}

.viewport-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: perspective(270px) rotateX(61deg) scale(1.8) translateY(60px);
  transform-origin: center bottom;
}

.viewport-grid::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(255, 90, 31, 0.15), transparent 60%);
}

.viewport-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 3px;
  align-items: center;
  min-height: 27px;
  padding: 4px 6px;
  background: rgba(29, 29, 25, 0.9);
  border-bottom: 1px solid var(--panel-line);
}

.is-light .viewport-toolbar {
  background: rgba(236, 233, 223, 0.92);
}

.viewport-toolbar button {
  padding: 3px 7px;
  color: var(--ui-muted);
  background: none;
  border: 0;
  border-radius: 2px;
  font-size: 6px;
}

.viewport-toolbar button.is-active {
  color: var(--ui-text);
  background: var(--panel-2);
}

.viewport-toolbar span {
  flex: 1;
}

.model-orbit {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
}

.model-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65px;
  height: 96px;
  animation: model-float 4s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

.face {
  position: absolute;
  display: block;
  background: rgba(255, 90, 31, 0.19);
  border: 1px solid var(--orange);
  box-shadow: inset 0 0 20px rgba(255, 90, 31, 0.08);
}

.face-a {
  inset: 0;
  clip-path: polygon(50% 0, 100% 24%, 88% 78%, 50% 100%, 12% 78%, 0 24%);
}

.face-b {
  top: 19px;
  left: 17px;
  width: 30px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.6);
  transform: skewY(-12deg);
}

.face-c {
  right: -10px;
  bottom: 14px;
  width: 28px;
  height: 42px;
  background: rgba(217, 239, 88, 0.08);
  border-color: var(--acid);
  transform: rotate(21deg);
}

.axis {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65px;
  height: 1px;
  transform-origin: 0 50%;
}

.axis-x {
  background: #f45f4f;
  transform: rotate(8deg);
}

.axis-y {
  background: #76d986;
  transform: rotate(-88deg);
}

.axis-z {
  background: #729df5;
  transform: rotate(145deg);
}

.orbit-ring {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.ring-a {
  transform: rotateX(65deg) rotateZ(-15deg);
}

.ring-b {
  border-color: rgba(255, 90, 31, 0.38);
  transform: rotateY(65deg) rotateZ(20deg);
}

@keyframes model-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 7px)) rotate(2deg);
  }
}

.viewport-note {
  position: absolute;
  bottom: 13px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.viewport-note span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.viewport-note strong {
  font-size: 8px;
  font-weight: 600;
}

.viewport-note small {
  color: var(--ui-muted);
  font-size: 6px;
}

.axis-key {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 6px;
}

.axis-red {
  color: #f45f4f;
}

.axis-green {
  color: #76d986;
}

.axis-blue {
  color: #729df5;
}

.inspector-content {
  padding: 10px;
}

.object-name {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
}

.object-name div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.object-name strong {
  font-size: 7px;
}

.object-name small {
  color: var(--ui-muted);
  font-size: 6px;
}

.property-group {
  padding: 10px 2px;
  border-bottom: 1px solid var(--panel-line);
}

.property-group p {
  margin: 0 0 7px;
  color: var(--ui-muted);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.property-group label {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  min-height: 20px;
  color: var(--ui-muted);
  font-size: 6px;
}

.property-group output {
  padding: 3px 5px;
  color: var(--ui-text);
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 6px;
}

.toggle {
  position: relative;
  justify-self: end;
  width: 20px;
  height: 10px;
  background: #55534b;
  border-radius: 10px;
}

.toggle::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  content: "";
  background: #aaa79c;
  border-radius: 50%;
}

.toggle.is-on {
  background: var(--orange);
}

.toggle.is-on::after {
  left: 12px;
  background: var(--paper-bright);
}

.workbench-console {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 10px;
  min-height: 72px;
  padding: 10px;
  color: var(--ui-muted);
  background: var(--panel);
  border-top: 1px solid var(--panel-line);
  font-size: 6px;
}

.console-label {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.workbench-console code {
  font-family: var(--mono);
}

.workbench-console code i {
  color: #5e5d56;
  font-style: normal;
}

.workbench-console code strong {
  color: var(--acid);
  font-weight: 400;
}

.workbench-status {
  gap: 18px;
  height: 22px;
  padding: 0 9px;
  color: #aaa79e;
  background: #f4511e;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.04em;
}

.workbench-status span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.workbench-status span:first-child i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  background: var(--ink);
  border-radius: 50%;
}

.floating-panel {
  position: absolute;
  z-index: 6;
  top: 170px;
  right: -100px;
  width: 170px;
  min-height: 96px;
  padding: 9px;
  color: var(--ui-text);
  background: #22221e;
  border: 1px solid #4c4a42;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-40px) scale(0.94);
  transition:
    opacity 250ms ease,
    transform 250ms ease;
}

.floating-panel.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.floating-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--panel-line);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.floating-panel button {
  color: var(--ui-muted);
  background: none;
  border: 0;
}

.floating-panel p {
  margin: 12px 0 4px;
  color: #d8d4ca;
  font-size: 7px;
}

.floating-panel small {
  color: var(--orange-soft);
  font-family: var(--mono);
  font-size: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 6vw;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #64635c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--orange), transparent);
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  padding: 150px 7vw 120px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  margin: 7px 0 0;
  color: var(--muted);
}

.manifesto > div {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 7vw;
  align-items: end;
}

.manifesto h2,
.section-heading h2,
.stack h2 {
  font-size: clamp(52px, 6vw, 94px);
}

.manifesto > div > p,
.stack-copy > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.capability {
  position: relative;
  display: grid;
  grid-template-rows: 290px 1fr;
  min-height: 620px;
  padding: 42px 4vw 48px;
  overflow: hidden;
  background: var(--paper);
}

.capability-wide {
  grid-column: span 2;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto;
  align-items: end;
  min-height: 650px;
}

.capability-number {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #a09d93;
  font-family: var(--mono);
  font-size: 9px;
}

.capability-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 520px;
}

.capability-copy .overline {
  color: var(--orange);
}

.capability-copy h3 {
  margin: 18px 0 20px;
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.capability-copy > p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.layout-visual {
  position: relative;
  align-self: center;
  height: 330px;
}

.layout-window {
  position: absolute;
  top: 40px;
  left: 3%;
  display: grid;
  grid-template-columns: 0.32fr 1fr 0.3fr;
  grid-template-rows: 1fr 0.3fr;
  gap: 3px;
  width: 68%;
  height: 240px;
  padding: 20px 7px 7px;
  background: var(--ink);
  border: 1px solid #4a4942;
  box-shadow: 12px 18px 0 rgba(23, 23, 20, 0.09);
}

.layout-window::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 9px 0 #4d4c46, 18px 0 #4d4c46;
}

.layout-window i {
  background: #292923;
  border: 1px solid #3a3932;
}

.layout-window i:nth-child(2) {
  background:
    linear-gradient(35deg, transparent 44%, rgba(255, 90, 31, 0.45) 45%, transparent 46%),
    #20201c;
}

.layout-window i:nth-child(4) {
  grid-column: 1 / -1;
}

.layout-window-secondary {
  top: 0;
  left: auto;
  right: 1%;
  display: block;
  width: 30%;
  height: 150px;
  padding: 20px 7px 7px;
  transform: translateY(20px);
}

.layout-window-secondary i {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.11), transparent),
    #292923;
}

.layout-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.layout-visual path,
.layout-visual circle {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.2px;
  stroke-dasharray: 5 5;
}

.layout-visual circle {
  fill: var(--orange);
  stroke-dasharray: none;
}

.command-visual {
  width: min(410px, 90%);
  margin: 42px auto 0;
}

.command-visual > span {
  display: inline-block;
  padding: 14px 18px;
  color: var(--paper-bright);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 20px;
  box-shadow: 7px 7px 0 rgba(23, 23, 20, 0.12);
}

.command-visual > div {
  margin: 10px 0 0 42px;
  padding: 8px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  box-shadow: 12px 12px 0 rgba(23, 23, 20, 0.06);
}

.command-visual p {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 11px 8px;
  color: #65635b;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.command-visual p:first-child {
  color: var(--ink);
  background: rgba(255, 90, 31, 0.08);
}

.command-visual p:last-child {
  border: 0;
}

.command-visual i {
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.command-visual kbd {
  color: #99968c;
}

.contract-visual {
  position: relative;
  width: min(400px, 85%);
  height: 225px;
  margin: 24px auto 0;
}

.contract-node,
.contract-core {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  box-shadow: 7px 7px 0 rgba(23, 23, 20, 0.09);
}

.contract-node {
  width: 54px;
  height: 54px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  font-size: 12px;
}

.node-ts {
  top: 25px;
  left: 10%;
}

.node-rs {
  top: 25px;
  right: 10%;
}

.node-py {
  bottom: 5px;
  left: calc(50% - 27px);
}

.contract-core {
  top: 77px;
  left: calc(50% - 33px);
  width: 66px;
  height: 66px;
  color: var(--paper-bright);
  background: var(--orange);
  font-size: 16px;
}

.contract-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contract-visual path {
  fill: none;
  stroke: rgba(23, 23, 20, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.surfaces {
  padding: 150px 7vw;
  color: var(--paper-bright);
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  margin-bottom: 100px;
}

.surfaces .section-index {
  color: #77756d;
}

.surface-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.surface-row {
  display: grid;
  grid-template-columns: 0.4fr 1.3fr 1fr;
  gap: 3vw;
  align-items: center;
  min-height: 180px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.surface-num {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.surface-row h3 {
  margin: 0 0 13px;
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.surface-row p {
  max-width: 560px;
  margin: 0;
  color: #97948b;
  font-size: 14px;
  line-height: 1.65;
}

.surface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.surface-tags span {
  padding: 7px 10px;
  color: #8d8a81;
  border: 1px solid #3d3c36;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
  padding: 150px 7vw;
  background:
    linear-gradient(90deg, transparent 50%, rgba(23, 23, 20, 0.04) 50%),
    var(--paper);
}

.stack-copy .section-index {
  margin-bottom: 44px;
}

.stack-copy > p {
  max-width: 570px;
  margin: 34px 0;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--orange);
}

.code-card {
  position: relative;
  overflow: hidden;
  color: #c9c5bb;
  background: #1d1d1a;
  border: 1px solid #393832;
  border-radius: 4px;
  box-shadow: 24px 28px 0 rgba(23, 23, 20, 0.08);
}

.code-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.06), transparent 42%);
}

.code-card-head,
.code-card-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 18px;
  color: #7e7b72;
  border-bottom: 1px solid #393832;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.code-card-head span:first-child {
  color: #d6d2c7;
}

.code-card pre {
  position: relative;
  min-height: 390px;
  margin: 0;
  padding: 54px 38px;
  overflow: auto;
  font-family: var(--mono);
  font-size: clamp(10px, 1.05vw, 14px);
  line-height: 2;
}

.code-pink {
  color: #ff7b6d;
}

.code-blue {
  color: #83b7ff;
}

.code-string {
  color: #cce57a;
}

.code-gold {
  color: #f1be65;
}

.code-white {
  color: #e5e1d7;
}

.code-card-foot {
  border-top: 1px solid #393832;
  border-bottom: 0;
}

.code-card-foot span:first-child {
  color: var(--acid);
}

.code-card-foot i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  background: var(--acid);
  border-radius: 50%;
}

.principles {
  padding: 0 7vw 150px;
}

.principles-inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 50px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles .overline {
  color: var(--orange);
}

.principles blockquote {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.4vw, 82px);
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.principle-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 25px;
}

.principle-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.principle-links a:hover {
  color: var(--orange);
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 130px 7vw 145px;
  color: var(--paper-bright);
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 90, 31, 0.13), transparent 27%),
    repeating-linear-gradient(90deg, transparent, transparent 71px, rgba(255, 255, 255, 0.035) 72px),
    var(--ink);
}

.final-cta > img {
  margin-bottom: 38px;
  border-radius: 13px;
  box-shadow: 0 17px 45px rgba(0, 0, 0, 0.3);
}

.final-cta .eyebrow {
  margin-bottom: 28px;
}

.final-cta h2 {
  font-size: clamp(60px, 8vw, 120px);
}

.final-cta > p:not(.eyebrow) {
  max-width: 570px;
  margin: 34px 0;
  color: #99968c;
  font-size: 16px;
  line-height: 1.65;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 0 5vw;
  color: #96938a;
  background: #11110f;
  border-top: 1px solid #2d2c27;
  font-size: 10px;
}

footer .brand {
  color: var(--paper-bright);
  font-size: 15px;
}

footer p {
  margin: 0;
}

footer > span {
  justify-self: end;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.palette-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: min(18vh, 150px);
  background: rgba(10, 10, 9, 0.74);
  backdrop-filter: blur(9px);
}

.palette-backdrop[hidden] {
  display: none;
}

.palette-dialog {
  width: min(620px, calc(100vw - 32px));
  overflow: hidden;
  color: #dad6ca;
  background: #20201c;
  border: 1px solid #4a4840;
  border-radius: 6px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.55);
  animation: palette-in 180ms ease-out;
}

@keyframes palette-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}

.palette-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid #3c3a34;
}

.palette-search > span {
  color: var(--orange);
  font-size: 22px;
}

.palette-search input {
  color: #eee9dd;
  background: none;
  border: 0;
  outline: none;
  font-size: 17px;
}

.palette-search kbd {
  padding: 4px 6px;
  color: #77746b;
  border: 1px solid #45433c;
  border-radius: 3px;
}

.palette-results {
  padding: 7px;
}

.palette-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  color: #aaa79e;
  background: none;
  border: 0;
  border-radius: 3px;
  text-align: left;
}

.palette-results button.is-selected,
.palette-results button:hover {
  color: #f0ece2;
  background: rgba(255, 90, 31, 0.14);
}

.palette-results button > span {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 10px;
  align-items: center;
}

.palette-results i {
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.palette-results strong {
  font-size: 12px;
  font-weight: 500;
}

.palette-results small {
  color: #6f6d65;
  font-size: 9px;
}

.palette-results kbd {
  color: #77746b;
}

.palette-foot {
  display: flex;
  gap: 20px;
  padding: 10px 18px;
  color: #6f6d65;
  border-top: 1px solid #3c3a34;
  font-family: var(--mono);
  font-size: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero {
    min-height: 1080px;
  }

  .hero-copy {
    width: 80vw;
    padding-top: 150px;
  }

  .workbench-wrap {
    top: 540px;
    left: 8vw;
    width: 760px;
  }

  .workbench {
    transform: rotateY(-3deg) rotateX(2deg);
  }

  .manifesto > div {
    grid-template-columns: 1fr;
  }

  .capability-wide {
    grid-template-columns: 1fr 0.8fr;
  }

  .stack {
    gap: 5vw;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 940px;
  }

  .hero-copy {
    width: auto;
    padding: 140px 7vw 0;
  }

  .hero h1 {
    font-size: clamp(58px, 15vw, 88px);
  }

  .workbench-wrap {
    top: 560px;
    left: 6vw;
    width: 690px;
    transform: scale(0.8);
    transform-origin: top left;
  }

  .scroll-cue {
    display: none;
  }

  .manifesto,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .manifesto {
    padding: 100px 7vw 80px;
  }

  .manifesto > div {
    gap: 35px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability,
  .capability-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 280px 1fr;
    min-height: 620px;
  }

  .layout-visual {
    height: 260px;
  }

  .surfaces {
    padding: 100px 7vw;
  }

  .section-heading {
    margin-bottom: 70px;
  }

  .surface-row {
    grid-template-columns: 45px 1fr;
    padding: 40px 0;
  }

  .surface-tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .stack {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 100px 7vw;
    background: var(--paper);
  }

  .principles {
    padding-bottom: 100px;
  }

  .principles-inner {
    grid-template-columns: 1fr;
  }

  .principle-links {
    grid-column: 1;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 66px;
    padding: 0 20px;
  }

  .header-link {
    font-size: 9px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-copy {
    padding: 120px 20px 0;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-lede {
    font-size: 15px;
  }

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

  .hero-proof {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-proof span + span::before {
    margin-right: 8px;
  }

  .workbench-wrap {
    top: 570px;
    left: 20px;
    transform: scale(0.52);
  }

  .manifesto h2,
  .section-heading h2,
  .stack h2 {
    font-size: 48px;
  }

  .capability {
    min-height: 580px;
    padding: 35px 22px 42px;
  }

  .capability-copy h3 {
    font-size: 40px;
  }

  .layout-window {
    width: 77%;
    height: 205px;
  }

  .layout-window-secondary {
    width: 33%;
    height: 130px;
  }

  .command-visual,
  .contract-visual {
    width: 100%;
  }

  .surface-row {
    grid-template-columns: 28px 1fr;
  }

  .surface-row h3 {
    font-size: 31px;
  }

  .code-card pre {
    min-height: 330px;
    padding: 34px 20px;
    font-size: 9px;
  }

  .principles blockquote {
    font-size: 38px;
  }

  .principle-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta {
    padding: 100px 20px;
  }

  .final-cta h2 {
    font-size: 58px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
