:root {
  --ink: #0b0d0c;
  --ink-soft: #171a18;
  --paper: #f2f1ec;
  --paper-deep: #e5e3dc;
  --white: #fffef9;
  --muted: #a7ada8;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(11, 13, 12, 0.18);
  --lime: #c7ff3d;
  --coral: #ff765d;
  --cyan: #6ee7e1;
  --shell: min(1240px, calc(100vw - 64px));
  --header: 76px;
  --font: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; transform: translateY(-150%); background: var(--lime); color: var(--ink); padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); color: var(--white); transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(11, 13, 12, .92); border-color: var(--line-dark); backdrop-filter: blur(16px); }
.nav { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 700; font-size: .96rem; letter-spacing: .08em; }
.brand-mark { width: 28px; height: 28px; fill: currentColor; }
.brand-mark .mark-accent { fill: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a, .nav-contact { color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 600; transition: color .2s ease; }
.nav-links a:hover, .nav-contact:hover { color: var(--white); }
.nav-contact { justify-self: end; color: var(--lime); }
.nav-contact span, .text-link span, .button span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.nav-contact:hover span, .button:hover span { transform: translate(2px, -2px); }
.text-link:hover span { transform: translateY(3px); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }

.hero { position: relative; min-height: calc(100svh - 44px); padding-top: var(--header); overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
#signal-field, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
#signal-field { z-index: -2; opacity: .58; }
.hero-grid { z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 86%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,13,12,.97) 0%, rgba(11,13,12,.87) 35%, rgba(11,13,12,.36) 68%, rgba(11,13,12,.7) 100%); }
.hero-inner { position: relative; min-height: calc(100svh - 120px); display: grid; align-items: center; }
.hero-copy { position: relative; z-index: 3; max-width: 820px; padding: 50px 0 155px; }
.kicker, .section-index, .console-stage, .system-diagram, .capability-number, .principle > span { font-family: var(--mono); letter-spacing: .06em; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: rgba(255,255,255,.66); font-size: .72rem; text-transform: uppercase; }
.signal-dot { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 0 5px rgba(199,255,61,.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(3.8rem, 7.8vw, 7.2rem); line-height: .91; font-weight: 600; letter-spacing: 0; }
h1 span { color: var(--lime); }
.hero-lede { max-width: 610px; margin-bottom: 34px; color: rgba(255,255,255,.67); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; font-size: .84rem; font-weight: 700; }
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: var(--white); }
.text-link { display: inline-flex; align-items: center; color: rgba(255,255,255,.78); font-size: .84rem; font-weight: 600; }

.console-stage { position: absolute; right: -90px; bottom: 56px; width: min(710px, 58vw); height: 410px; z-index: 1; background: rgba(20,24,22,.86); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 24px 70px rgba(0,0,0,.38); transform: perspective(1100px) rotateY(-8deg) rotateX(2deg); transform-origin: right center; overflow: hidden; }
.console-topbar { height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); color: rgba(255,255,255,.55); font-size: .62rem; }
.live-state { display: flex; align-items: center; gap: 7px; color: var(--lime); }
.live-state i { width: 6px; height: 6px; background: var(--lime); animation: blink 2s infinite; }
.console-body { display: grid; grid-template-columns: 48px 1fr; height: calc(100% - 42px); }
.console-rail { display: flex; flex-direction: column; align-items: center; gap: 25px; padding-top: 23px; border-right: 1px solid var(--line-dark); color: rgba(255,255,255,.28); font-size: .6rem; }
.console-rail .rail-active { color: var(--lime); }
.console-main { display: grid; grid-template-rows: 68px 1fr 64px; min-width: 0; }
.console-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line-dark); }
.console-heading div { display: flex; flex-direction: column; }
.console-heading small, .console-metrics small { color: rgba(255,255,255,.35); font-size: .56rem; }
.console-heading strong { font-family: var(--font); font-size: .9rem; font-weight: 600; }
.run-id { color: var(--cyan); font-size: .6rem; }
.flow-map { position: relative; overflow: hidden; background-image: radial-gradient(rgba(255,255,255,.16) .7px, transparent .7px); background-size: 16px 16px; }
.flow-line { position: absolute; top: 50%; height: 1px; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--coral)); transform-origin: left; }
.line-one { left: 12%; width: 76%; }
.line-two { left: 48%; top: 50%; width: 20%; transform: rotate(-32deg); opacity: .45; }
.flow-node { position: absolute; top: 50%; width: 102px; min-height: 72px; padding: 9px 10px; transform: translate(-50%, -50%); background: #121613; border: 1px solid rgba(255,255,255,.24); display: flex; flex-direction: column; }
.flow-node span { color: rgba(255,255,255,.3); font-size: .55rem; }
.flow-node strong { font-family: var(--font); font-size: .77rem; margin-top: 7px; }
.flow-node small { color: rgba(255,255,255,.42); font-size: .52rem; }
.node-input { left: 13%; border-top: 2px solid var(--lime); }
.node-reason { left: 38%; border-top: 2px solid var(--cyan); }
.node-review { left: 63%; border-top: 2px solid var(--coral); }
.node-output { left: 88%; border-top: 2px solid var(--lime); }
.flow-pulse { position: absolute; top: calc(50% - 3px); width: 7px; height: 7px; background: var(--white); box-shadow: 0 0 12px var(--lime); animation: flow 4s linear infinite; }
.pulse-two { animation-delay: -2s; }
.console-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-dark); }
.console-metrics div { display: flex; flex-direction: column; justify-content: center; padding-left: 18px; border-right: 1px solid var(--line-dark); }
.console-metrics div:last-child { border-right: 0; }
.console-metrics strong { color: rgba(255,255,255,.84); font-family: var(--font); font-size: .73rem; }
.hero-index { position: absolute; left: 22px; right: 22px; bottom: 14px; display: flex; justify-content: space-between; color: rgba(255,255,255,.3); font: .55rem var(--mono); letter-spacing: .1em; }

.band { padding: 120px 0; }
.intro { padding-bottom: 0; overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 50px; }
.section-index { font-size: .68rem; color: #747a75; }
.display-copy { margin-bottom: 48px; font-size: clamp(2.7rem, 5.4vw, 5.4rem); line-height: .98; font-weight: 500; letter-spacing: 0; }
.large-copy { max-width: 760px; margin-left: auto; font-size: clamp(1.25rem, 2vw, 1.72rem); line-height: 1.45; color: #555a56; }
.marquee { margin-top: 115px; padding: 21px 0; background: var(--coral); overflow: hidden; white-space: nowrap; font: 500 .72rem var(--mono); letter-spacing: .09em; }
.marquee div { width: max-content; animation: marquee 26s linear infinite; }
.marquee span { padding: 0 22px; }

.band-dark { background: var(--ink); color: var(--white); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 50px; align-items: end; margin-bottom: 70px; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: 1.04; font-weight: 500; letter-spacing: 0; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
.capability-list { border-top: 1px solid var(--line-dark); }
.capability { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 50px; padding: 42px 0; border-bottom: 1px solid var(--line-dark); }
.capability-number { color: var(--lime); font-size: .7rem; }
.capability h3 { margin-bottom: 12px; font-size: clamp(1.45rem, 2.2vw, 2.2rem); font-weight: 500; }
.capability p { max-width: 650px; margin: 0; color: var(--muted); font-size: .94rem; }
.capability ul { margin: 3px 0 0; padding: 0; list-style: none; color: #d7dbd8; font-size: .78rem; }
.capability li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.capability li::before { content: "+"; color: var(--coral); margin-right: 9px; }

.section-heading-light .section-index { color: #777d78; }
.method { background: var(--paper-deep); }
.method-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.method-steps li { display: grid; grid-template-columns: 50px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.method-steps > li > span { font: .68rem var(--mono); color: #717873; }
.method-steps h3 { margin-bottom: 6px; font-size: 1.15rem; font-weight: 600; }
.method-steps p { margin: 0; color: #616762; font-size: .9rem; }
.system-diagram { min-height: 520px; padding: 18px; border: 1px solid var(--line-light); background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.diagram-head, .diagram-foot { display: flex; justify-content: space-between; color: #757b76; font-size: .6rem; }
.diagram-head { margin-bottom: auto; }
.diagram-layer { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; min-height: 70px; padding: 0 16px; border: 1px solid rgba(11,13,12,.23); }
.diagram-layer > span { color: #727872; font-size: .6rem; }
.diagram-layer strong { font-family: var(--font); font-size: .95rem; }
.diagram-layer small { color: #6f746f; font-size: .6rem; }
.layer-experience { background: var(--lime); }
.layer-orchestration { background: var(--cyan); margin-inline: 22px; }
.layer-intelligence { background: var(--coral); margin-inline: 44px; }
.layer-foundation { background: var(--ink-soft); color: var(--white); margin-inline: 66px; }
.diagram-foot { padding-top: 10px; }

.principles { background: var(--paper); }
.principles .section-heading { grid-template-columns: 1fr 3fr; }
.principle-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.principle { min-height: 270px; padding: 28px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.principle > span { color: #747a75; font-size: .65rem; }
.principle h3 { margin: 82px 0 12px; font-size: 1.1rem; font-weight: 600; }
.principle p { margin: 0; color: #656a66; font-size: .85rem; }

.company { background: var(--white); }
.company-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 100px; align-items: start; }
.company h2 { max-width: 720px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; font-weight: 500; letter-spacing: 0; }
.company-copy { padding-top: 40px; }
.company-copy p { color: #555b56; font-size: 1rem; }
.text-link-dark { margin-top: 24px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.contact { position: relative; overflow: hidden; background: var(--coral); }
.contact-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(11,13,12,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(11,13,12,.08) 1px, transparent 1px); background-size: 52px 52px; }
.contact-inner { position: relative; }
.contact .section-index { color: rgba(11,13,12,.6); }
.contact h2 { max-width: 900px; margin: 60px 0 22px; font-size: clamp(3.2rem, 8vw, 8rem); line-height: .9; font-weight: 600; letter-spacing: 0; }
.contact p:not(.section-index) { max-width: 560px; font-size: 1.05rem; }
.button-light { margin-top: 20px; background: var(--ink); color: var(--white); }
.button-light:hover { background: var(--white); color: var(--ink); }

.site-footer { padding: 70px 0; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 50px; }
.brand-footer { align-self: start; }
.footer-grid > p { color: var(--muted); font-size: .86rem; }
.footer-links, .footer-meta { display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.65); font-size: .78rem; }
.footer-links a:hover, .footer-meta a:hover { color: var(--lime); }
.footer-meta { justify-content: space-between; text-align: right; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: .28; } }
@keyframes flow { from { left: 12%; } to { left: 88%; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  :root { --shell: min(100% - 40px, 1240px); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { position: fixed; inset: var(--header) 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px 28px; background: var(--ink); border-top: 1px solid var(--line-dark); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav-contact { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { align-items: start; }
  .hero-copy { padding-top: 90px; }
  .console-stage { right: -120px; width: 74vw; opacity: .62; }
  .section-heading, .capability { grid-template-columns: 120px 1fr; }
  .section-heading > p:last-child, .capability ul { grid-column: 2; }
  .method-layout { gap: 40px; }
  .principle-grid { grid-template-columns: repeat(2,1fr); }
  .company-layout { gap: 55px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-meta { text-align: left; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 32px); --header: 66px; }
  .hero { min-height: calc(100svh - 32px); }
  .hero-inner { min-height: calc(100svh - 98px); }
  .hero-copy { padding: 38px 0 230px; }
  .kicker { margin-bottom: 20px; font-size: .6rem; }
  h1 { margin-bottom: 18px; font-size: clamp(3rem, 13.2vw, 4.3rem); }
  .hero-lede { max-width: 92%; margin-bottom: 22px; font-size: .87rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .console-stage { right: -76px; bottom: 18px; width: 620px; height: 268px; transform: scale(.66); transform-origin: bottom right; opacity: .72; }
  .hero-index { display: none; }
  .band { padding: 78px 0; }
  .intro { padding-bottom: 0; }
  .intro-grid, .section-heading, .capability, .method-layout, .company-layout { grid-template-columns: 1fr; gap: 24px; }
  .display-copy { font-size: 2.75rem; }
  .large-copy { font-size: 1.1rem; }
  .marquee { margin-top: 70px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading > p:last-child, .capability ul { grid-column: auto; }
  .capability { padding: 30px 0; gap: 12px; }
  .capability ul { margin-top: 8px; }
  .system-diagram { min-height: 425px; padding: 12px; }
  .diagram-layer { grid-template-columns: 28px 1fr; }
  .diagram-layer small { grid-column: 2; }
  .layer-orchestration { margin-inline: 10px; }
  .layer-intelligence { margin-inline: 20px; }
  .layer-foundation { margin-inline: 30px; }
  .principles .section-heading { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { min-height: 220px; }
  .principle h3 { margin-top: 52px; }
  .company-copy { padding-top: 0; }
  .contact h2 { margin-top: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@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; }
}
