:root {
  --ink: #070707;
  --paper: #f4f2eb;
  --signal: #adff00;
  --violet: #5a24ff;
  --card-blue: #2d62ff;
  --warning: #ff5a36;
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(7, 7, 7, 0.2);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .08em; }
.noise {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed; z-index: 15; top: 0; left: 0; right: 0;
  height: 4.6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); border-bottom: 1px solid var(--line-dark);
  background: rgba(7,7,7,.86); backdrop-filter: blur(14px);
}
.topbar nav { display: flex; gap: clamp(1rem, 3vw, 3rem); font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.topbar nav a, .contact-link { transition: color .2s ease; }
.topbar nav a:hover, .contact-link:hover { color: var(--signal); }
.contact-link { justify-self: end; white-space: nowrap; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

.hero {
  min-height: 100svh; position: relative; padding: calc(var(--header-height) + 3.5rem) var(--pad) 3rem;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; top: 4.6rem; right: 9vw; width: 1px; height: calc(100% - 4.6rem);
  background: var(--violet); box-shadow: 0 0 28px rgba(90,36,255,.9);
}
.hero-grid {
  position: absolute; inset: 4.6rem 0 0; opacity: .22; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 12.5vw 8rem;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
}
.hero-profile {
  position: relative; z-index: 1; flex: 1; display: grid;
  grid-template-columns: minmax(110px, .25fr) minmax(0, 1fr); gap: 5vw; align-items: center;
}
.hero-index { align-self: start; margin-top: 1.2rem; color: #7297ff; font-size: .68rem; }
.hero-index { line-height: 1.7; }
.hero-profile-content { max-width: 68rem; }
.hero-name { margin: 0 0 1rem; color: rgba(244,242,235,.58); font-size: .65rem; }
.hero h1 {
  position: relative; z-index: 1; margin: 0; max-width: 22ch;
  font-size: clamp(3.35rem, 6.4vw, 7.1rem); line-height: .91; letter-spacing: -.065em;
}
.hero h1 span { display: block; }
.hero h1 span:first-child { white-space: nowrap; }
.hero h1 .card-blue { color: var(--card-blue); }
.hero-description {
  max-width: 44rem; margin: clamp(2.3rem, 5vw, 4.6rem) 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.48; color: rgba(244,242,235,.7);
}
.scroll-cue { position: absolute; z-index: 2; right: var(--pad); bottom: 2rem; font-size: .62rem; color: var(--signal); display: none; }

.section-pad { padding: clamp(5rem, 10vw, 10rem) var(--pad); }
.section-label { color: var(--signal); font-size: .68rem; margin-bottom: clamp(2rem, 5vw, 5rem); }
.light { color: var(--ink); background: var(--paper); }
.light .section-label { color: var(--violet); }
.manifesto { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.manifesto-copy { margin: 0 0 5rem; max-width: 24ch; font-size: clamp(2.2rem, 5vw, 5.8rem); line-height: 1.04; letter-spacing: -.055em; }
.manifesto-copy strong { color: var(--signal); font-weight: 700; }
.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); font-size: .62rem; color: rgba(244,242,235,.65); }
.status-strip span:nth-child(2) { text-align: center; }
.status-strip span:last-child { text-align: right; }
.status-strip i { display: inline-block; width: .5rem; height: .5rem; margin-right: .55rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }

.section-head { display: grid; grid-template-columns: 1fr minmax(250px, 34rem); gap: 5vw; align-items: end; margin-bottom: clamp(4rem, 8vw, 8rem); }
.section-head h2, .method-grid h2, .about h2, .contact h2 { margin: 0; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .88; text-transform: uppercase; letter-spacing: -.065em; }
.section-head p { max-width: 38rem; margin: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5; }
.service-list { border-top: 1px solid var(--line-light); }
.service {
  position: relative; display: grid; grid-template-columns: 5rem minmax(240px, .9fr) 1fr 3rem; gap: 2rem; align-items: center;
  padding: 2.2rem .7rem; border-bottom: 1px solid var(--line-light); transition: background .22s ease, padding .22s ease;
}
.service:hover { background: var(--signal); padding-left: 1.4rem; padding-right: 1.4rem; }
.service-number { color: var(--violet); font-size: .72rem; }
.service h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2.35rem); letter-spacing: -.035em; }
.service p { margin: 0; max-width: 46rem; line-height: 1.5; color: rgba(7,7,7,.68); }
.service-mark { justify-self: end; font-size: 1.5rem; }

.systems { overflow: hidden; }
.dark-head .section-label { margin-bottom: 2rem; }
.dark-head p { color: rgba(244,242,235,.65); }
.system-board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.system-card { min-height: 32rem; padding: clamp(1.5rem, 3vw, 3rem); display: flex; flex-direction: column; position: relative; overflow: hidden; color: var(--ink); }
.system-card.violet { grid-column: span 5; background: var(--violet); color: var(--paper); }
.system-card.green { grid-column: span 7; background: var(--signal); }
.system-card.paper { grid-column: 5 / span 8; background: var(--paper); margin-top: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .6rem; }
.system-card h3 { margin: auto 0 1rem; font-size: clamp(2.4rem, 4.8vw, 5rem); line-height: .88; text-transform: uppercase; letter-spacing: -.06em; }
.system-card p { margin: 0 0 2.5rem; max-width: 33rem; line-height: 1.45; font-size: 1.05rem; }
.flow { border-top: 1px solid currentColor; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .55rem; }
.diagram { position: absolute; right: 2rem; top: 5rem; width: 46%; aspect-ratio: 1; border: 1px solid var(--ink); }
.diagram::before, .diagram::after { content: ""; position: absolute; background: var(--ink); }
.diagram::before { left: 50%; top: 0; width: 1px; height: 100%; }
.diagram::after { top: 50%; left: 0; height: 1px; width: 100%; }
.diagram i { position: absolute; width: 13%; aspect-ratio: 1; background: var(--ink); }
.diagram i:nth-child(1){left:8%;top:9%}.diagram i:nth-child(2){right:10%;top:14%}.diagram i:nth-child(3){left:20%;bottom:16%}.diagram i:nth-child(4){right:17%;bottom:10%}.diagram i:nth-child(5){left:43%;top:42%;background:var(--violet)}.diagram i:nth-child(6){right:2%;top:48%}
.metric { display: flex; gap: 1.5rem; align-items: end; border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.metric strong { color: var(--warning); font-size: 4rem; line-height: .7; }.metric span { font-size: .62rem; line-height: 1.5; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.method-grid ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.method-grid li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line-light); }
.method-grid li > span { color: var(--violet); font-size: .7rem; padding-top: .3rem; }
.method-grid h3 { margin: 0 0 .4rem; font-size: 1.5rem; }.method-grid p { margin: 0; color: rgba(7,7,7,.65); line-height: 1.45; }

.about { display: grid; grid-template-columns: minmax(110px, .25fr) 1fr; gap: 5vw; border-top: 1px solid var(--line-dark); }
.about-index { color: #7297ff; font-size: .68rem; padding-top: .5rem; }
.eyebrow { color: rgba(244,242,235,.58); font-size: .65rem; }
.about h2 { text-transform: none; max-width: 14ch; }.about h2 span { color: var(--card-blue); }
.about-copy { max-width: 44rem; margin: 3rem 0 0; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.48; color: rgba(244,242,235,.7); }

.contact { background: var(--signal); color: var(--ink); }
.contact .section-label { color: var(--violet); }
.contact-cta { margin-top: clamp(3rem, 8vw, 8rem); padding: 2rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; font-size: clamp(1.8rem, 4vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; }
.contact-cta b { transition: transform .2s ease; }.contact-cta:hover b { transform: translate(8px,-8px); }
.contact-meta { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: .62rem; }
footer { padding: 2rem var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; border-top: 1px solid var(--line-dark); }
footer > span { font-size: .56rem; color: rgba(244,242,235,.55); } footer > span:last-child { justify-self: end; }

.reveal { opacity: 1; transform: none; transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; }.topbar nav { display: none; }
  .hero { min-height: 100svh; padding-top: calc(var(--header-height) + 2.5rem); }
  .hero-profile, .section-head, .method-grid { grid-template-columns: 1fr; }
  .hero-profile { align-content: center; gap: 2.3rem; }
  .hero-index { align-self: auto; margin: 0; }
  .hero h1 { font-size: clamp(3.25rem, 14.5vw, 6rem); }
  .hero h1 span:first-child { white-space: normal; }
  .hero-description { margin-top: 2.3rem; }
  .scroll-cue { display: none; }
  .status-strip { grid-template-columns: 1fr; }.status-strip span:nth-child(n) { text-align: left; }
  .service { grid-template-columns: 2.3rem 1fr 2rem; gap: 1rem; }.service p { grid-column: 2 / -1; }.service-mark { grid-column: 3; grid-row: 1; }
  .system-board { display: block; }.system-card { min-height: 29rem; margin: 1rem 0 !important; }
  .diagram { opacity: .75; }.about { grid-template-columns: 1fr; }.about-index { padding: 0; }
  footer { grid-template-columns: 1fr; } footer > span:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }.reveal,.reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
}
