:root {
  --paper: #f4f1e8;
  --paper-dark: #e8e4da;
  --ink: #11110f;
  --muted: #69675f;
  --line: rgba(17, 17, 15, 0.16);
  --signal: #ff4d18;
  --signal-2: #c6ff35;
  --dark: #121210;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--signal-2); color: var(--ink); }

.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; left: 16px; top: 12px; z-index: 1000; padding: 10px 14px;
  background: var(--ink); color: white; transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  height: 82px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, height .3s;
}
.site-header.scrolled {
  height: 68px; background: rgba(244,241,232,.92); border-color: var(--line); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; font-size: 20px; font-weight: 800; letter-spacing: -.045em; }
.brand-mark { width: 30px; height: 30px; margin-right: 9px; color: var(--ink); }
.brand-dot { color: var(--signal); }
.primary-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); font-size: 14px; font-weight: 650; }
.primary-nav > a:not(.nav-cta) { position: relative; }
.primary-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: right .25s var(--ease);
}
.primary-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 11px 16px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); transition: color .2s, background .2s; }
.nav-cta:hover { color: var(--ink); background: transparent; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }

.hero {
  position: relative; min-height: 900px; height: 100svh; padding: 150px var(--pad) 54px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); grid-template-rows: 1fr auto;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .48;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: linear-gradient(to bottom, black 0, transparent 72%);
}
.hero-copy { position: relative; z-index: 3; align-self: center; max-width: 920px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 28px; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.eyebrow > span { display: inline-block; width: 28px; height: 2px; background: var(--signal); }
.eyebrow.light { color: rgba(255,255,255,.65); }
.eyebrow.light > span { background: var(--signal-2); }
.hero h1, .section-heading h2, .process-intro h2, .cta-content h2 {
  margin: 0; font-size: clamp(66px, 9.5vw, 152px); line-height: .84; letter-spacing: -.075em; font-weight: 830;
}
.hero h1 em, .process-intro h2 em { color: var(--signal); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lede { max-width: 670px; margin: 35px 0 0; font-size: clamp(18px, 1.65vw, 24px); line-height: 1.45; color: #48463f; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 42px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 212px; padding: 17px 19px;
  border: 1px solid currentColor; font-size: 14px; font-weight: 750; transition: transform .2s var(--ease), background .2s, color .2s;
}
.button svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.button:hover svg { transform: translateX(4px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--signal); color: white; border-color: var(--signal); }
.button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); min-width: 260px; }
.button-light:hover { background: var(--signal-2); border-color: var(--signal-2); }
.text-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.text-link span { margin-left: 8px; }
.hero-meta {
  position: relative; z-index: 3; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 70px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-meta div { display: grid; gap: 4px; }
.meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 800; }
.hero-meta strong { font-size: 13px; font-weight: 650; }

.hero-orbit { position: absolute; z-index: 1; width: clamp(430px, 47vw, 730px); aspect-ratio: 1; right: -10%; top: 44%; transform: translateY(-50%); }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(17,17,15,.18); border-radius: 50%; }
.orbit-one { transform: rotate(-18deg) scaleY(.47); }
.orbit-two { transform: rotate(61deg) scaleY(.35) scale(.78); border-style: dashed; }
.orbit-core {
  position: absolute; width: 31%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-12deg);
  display: grid; place-items: center; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 16px rgba(255,77,24,.08);
}
.orbit-core span { font-size: clamp(14px,2vw,25px); font-weight: 900; letter-spacing: .18em; color: white; }
.orbit-object { position: absolute; width: 28px; height: 28px; border: 6px solid var(--ink); background: var(--signal-2); border-radius: 50%; }
.orbit-object-a { top: 29%; left: 8%; animation: float 4s ease-in-out infinite; }
.orbit-object-b { right: 10%; bottom: 23%; width: 18px; height: 18px; border-width: 4px; background: var(--paper); animation: float 5s ease-in-out -1s infinite; }
@keyframes float { 50% { transform: translateY(-13px); } }

.marquee { overflow: hidden; background: var(--signal); color: white; border-bottom: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 22px; padding: 16px 0; animation: marquee 32s linear infinite; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 850; }
.marquee-track i { color: var(--signal-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(100px, 12vw, 180px) var(--pad); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .6fr); column-gap: 70px; align-items: end; max-width: var(--max); margin: 0 auto 70px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(48px, 6.4vw, 96px); max-width: 850px; }
.section-heading > p:last-child { margin: 0 0 5px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.build-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.18fr .82fr; gap: 18px; }
.build-card { position: relative; min-height: 540px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.18); overflow: hidden; }
.build-card-featured { grid-row: span 2; min-height: 1098px; }
.card-index { position: absolute; z-index: 2; top: 22px; left: 22px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 800; }
.card-graphic { position: relative; flex: 1; min-height: 280px; display: grid; place-items: center; color: var(--ink); }
.card-content { position: relative; z-index: 2; padding: 0 4px 6px; max-width: 560px; }
.card-kicker { margin: 0 0 14px; color: var(--signal); text-transform: uppercase; font-size: 10px; letter-spacing: .16em; font-weight: 850; }
.card-content h3 { margin: 0; max-width: 580px; font-size: clamp(30px, 3.4vw, 54px); line-height: .98; letter-spacing: -.055em; }
.card-content > p:last-child { margin: 20px 0 0; max-width: 510px; color: var(--muted); font-size: 16px; }
.terminal-graphic { align-items: center; }
.terminal-graphic::before { content:""; position: absolute; width: 66%; aspect-ratio: 1; border-radius: 50%; background: var(--signal-2); filter: blur(0); opacity: .94; }
.terminal-graphic > * { position: relative; }
.terminal-graphic { width: 100%; max-width: 620px; margin: 40px auto 0; }
.terminal-lines { width: 82%; min-height: 330px; padding: 42px 36px; color: #eae8df; background: var(--ink); box-shadow: 18px 18px 0 rgba(17,17,15,.12); font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; transform: rotate(-3deg); }
.terminal-bar { position: absolute; z-index: 2; display: flex; gap: 6px; top: calc(50% - 180px); left: 14%; transform: rotate(-3deg); }
.terminal-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.terminal-bar span:nth-child(2) { background: #ffc743; }.terminal-bar span:nth-child(3) { background: var(--signal-2); }
.terminal-lines b { color: var(--signal-2); }.terminal-lines i { color: var(--signal); font-style: normal; }
.cursor-line { margin-top: 22px; }
.cursor { display:inline-block; width: 8px; height: 16px; margin-left: 8px; background: var(--signal-2); vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nodes-graphic svg { width: 90%; }
.node { position: absolute; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 8px rgba(255,77,24,.12); }
.node::after { content:""; position:absolute; inset:7px; border-radius:50%; background:white; }
.n1 { left: 8%; top: 63%; }.n2 { left: 44%; top: 19%; }.n3 { right: 7%; top: 27%; }.n4 { right: 8%; bottom: 17%; background: var(--signal-2); box-shadow: 0 0 0 8px rgba(198,255,53,.16); }
.interface-graphic { min-height: 270px; }
.mini-panel { position: absolute; border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 rgba(17,17,15,.1); }
.panel-a { width: 48%; height: 42%; left: 8%; top: 20%; padding: 22px; transform: rotate(-4deg); }
.panel-a span { display:block; height: 8px; margin-bottom: 12px; background: var(--ink); opacity:.9; }.panel-a span:nth-child(2){width:72%;}.panel-a span:nth-child(3){width:42%;background:var(--signal);}
.panel-b { width: 37%; aspect-ratio: 1.25; right: 7%; top: 13%; display:grid; place-items:center; transform: rotate(5deg); }
.panel-b strong { font-size: 36px; letter-spacing:-.05em; }.panel-b i { position:absolute; bottom:16px; width:65%; height:7px; background:var(--signal-2); }
.panel-c { width: 52%; height: 32%; right: 13%; bottom: 11%; display:flex; align-items:flex-end; gap:8px; padding:16px; transform: rotate(1deg); }
.panel-c span { flex:1; background:var(--ink); height:45%; }.panel-c span:nth-child(2){height:72%;}.panel-c span:nth-child(3){height:55%;background:var(--signal);}.panel-c span:nth-child(4){height:88%;}

.process-section { background: var(--dark); color: white; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px,8vw,130px); }
.process-intro { position: sticky; top: 130px; align-self: start; }
.process-intro h2 { font-size: clamp(48px, 5.8vw, 88px); }
.process-list { border-top: 1px solid rgba(255,255,255,.2); }
.process-item { display: grid; grid-template-columns: 55px 1fr auto; gap: 25px; align-items: start; padding: 34px 0 56px; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-number { color: var(--signal-2); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.process-item h3 { margin: 0 0 14px; font-size: clamp(28px,3vw,42px); letter-spacing: -.04em; }
.process-item p { margin: 0; max-width: 560px; color: rgba(255,255,255,.58); font-size: 17px; }
.process-tag { padding: 7px 10px; border: 1px solid rgba(255,255,255,.32); font-size: 9px; letter-spacing: .16em; font-weight: 850; }

.principles-section .section-heading { grid-template-columns: 1fr; }
.principles-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 360px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid var(--ink); border-radius: 50%; font-size: 22px; }
.principle h3 { margin: 50px 0 14px; font-size: 29px; letter-spacing: -.04em; }
.principle p { margin: 0; color: var(--muted); }

.cta-section { position: relative; min-height: 780px; padding: clamp(100px, 12vw, 180px) var(--pad); display: grid; place-items: center; overflow:hidden; background: var(--signal); color: white; }
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content .eyebrow { justify-content: center; }
.cta-content h2 { font-size: clamp(70px, 10vw, 150px); margin-bottom: 45px; }
.cta-orbit { position:absolute; width:min(880px,92vw); aspect-ratio:1; border:1px solid rgba(255,255,255,.35); border-radius:50%; transform:scaleY(.42) rotate(-11deg); }
.cta-orbit::before, .cta-orbit::after { content:""; position:absolute; inset:16%; border:1px dashed rgba(255,255,255,.25); border-radius:50%; }
.cta-orbit::after { inset:34%; background:rgba(255,255,255,.08); border-style:solid; }
.cta-orbit span { position:absolute; width:18px; height:18px; background:var(--signal-2); border:4px solid var(--dark); border-radius:50%; }
.cta-orbit span:nth-child(1){left:4%;top:50%;}.cta-orbit span:nth-child(2){right:13%;top:24%;}.cta-orbit span:nth-child(3){right:31%;bottom:16%;width:12px;height:12px;}

.site-footer { padding: 42px var(--pad); display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap:30px; background: var(--dark); color:white; border-top:1px solid rgba(255,255,255,.15); }
.site-footer .brand-mark { color:white; }.footer-brand .brand-mark path:last-child { fill: var(--dark); }
.site-footer > p { margin:0; color:rgba(255,255,255,.5); font-size:13px; }
.footer-meta { display:flex; gap:24px; color:rgba(255,255,255,.6); font-size:12px; }
.footer-meta a:hover { color:white; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }.delay-2 { transition-delay: .2s; }

@media (max-width: 980px) {
  .hero { min-height: 850px; grid-template-columns: 1fr; }
  .hero-copy { align-self: center; }
  .hero-orbit { right: -28%; opacity: .72; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 28px; max-width: 630px; }
  .build-card-featured { min-height: 820px; }
  .process-section { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { min-height: 300px; }
  .site-footer { grid-template-columns: 1fr; align-items:start; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-open .nav-toggle span:not(.sr-only):nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle span:not(.sr-only):nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .primary-nav {
    position: fixed; inset: 0; padding: 120px var(--pad) 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
    background: var(--paper); transform: translateX(100%); transition: transform .4s var(--ease); font-size: 28px;
  }
  .nav-open .primary-nav { transform: translateX(0); }
  .nav-cta { margin-top: auto; width: 100%; text-align: center; font-size: 16px; }
  .hero { min-height: 760px; height:auto; padding-top: 125px; grid-template-rows: auto auto; }
  .hero-grid { background-size: 48px 48px; }
  .hero h1 { font-size: clamp(54px, 17vw, 88px); }
  .hero-lede { max-width: 92%; font-size: 18px; }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:20px; }
  .button-primary { width: 100%; }
  .hero-meta { grid-template-columns:1fr; gap:18px; margin-top: 80px; }
  .hero-orbit { width: 390px; right:-200px; top:38%; opacity:.48; }
  .section { padding-top: 92px; padding-bottom:92px; }
  .section-heading { margin-bottom: 42px; }
  .build-grid { grid-template-columns: 1fr; }
  .build-card, .build-card-featured { min-height: 610px; grid-row:auto; }
  .terminal-lines { width: 91%; min-height:280px; padding:38px 22px; font-size:12px; }
  .terminal-bar { left:10%; }
  .process-section { gap:70px; }
  .process-item { grid-template-columns: 42px 1fr; padding-bottom:40px; }
  .process-tag { display:none; }
  .process-item p { font-size:15px; }
  .cta-section { min-height:650px; }
  .cta-content h2 { font-size: clamp(64px,19vw,104px); }
  .button-light { min-width:0; width:100%; }
  .footer-meta { flex-wrap:wrap; }
}

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