:root {
  --ink: #0a0b0b;
  --paper: #f2f2ed;
  --acid: #d9ff43;
  --muted: #85857f;
  --line: rgba(10, 11, 11, .17);
  --line-dark: rgba(255, 255, 255, .13);
  --max: 1440px;
  --pad: clamp(22px, 3vw, 46px);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--acid); color: var(--ink); }

.mono, .section-index, .eyebrow, .method-step small, .ai-card small {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.wrap { width: min(calc(100% - (var(--pad) * 2)), var(--max)); margin-inline: auto; }
.light { background: var(--paper); color: var(--ink); }
.dark { background: var(--ink); color: #f6f6f1; }
.acid { background: var(--acid); 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: 14px; top: 14px; z-index: 999; padding: 10px 14px; background: var(--acid); color: var(--ink); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.cursor-glow {
  position: fixed;
  z-index: 12;
  width: 280px;
  height: 280px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,255,67,.08), transparent 68%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .25s;
}
body:hover .cursor-glow { opacity: 1; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px var(--pad) 0; pointer-events: none; }
.nav-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px 0 12px;
  color: #f5f5ef;
  background: rgba(12, 13, 13, .58);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: 0 10px 45px rgba(0,0,0,.18);
  pointer-events: auto;
  transition: background .25s, border-color .25s, transform .25s;
}
.site-header.scrolled .nav-shell { background: rgba(10,11,11,.84); border-color: rgba(255,255,255,.16); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--acid); color: var(--ink); border-radius: 10px; font-size: 18px; font-weight: 900; }
.brand-name { white-space: nowrap; }
.desktop-nav { display: flex; gap: 28px; align-items: center; font-size: 11px; color: rgba(255,255,255,.72); }
.desktop-nav a { transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: #fff; }
.nav-cta { justify-self: end; display: inline-flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 12px; background: #f3f3ee; color: var(--ink); font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.nav-cta:hover { transform: translateY(-2px); background: var(--acid); }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1px; margin: 5px auto; background: #fff; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100svh;
  height: max(780px, 100svh);
  padding: 112px var(--pad) 0;
  overflow: hidden;
  isolation: isolate;
  color: #f5f5f0;
  background: #080909;
}
.hero-gridlines, .stage-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.85) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.85) 55%, transparent 100%);
  z-index: -4;
}
.hero-vignette { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,9,9,.96) 0%, rgba(8,9,9,.77) 38%, rgba(8,9,9,.1) 68%, rgba(8,9,9,.44) 100%), linear-gradient(0deg, #080909 0%, transparent 30%); pointer-events: none; }
.hero-art {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  z-index: -2;
  top: -4%;
  right: -4%;
  width: min(52vw, 790px);
  height: 106%;
  margin: 0;
  overflow: hidden;
  opacity: .98;
  transform: perspective(1300px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.02);
  transform-origin: 62% 42%;
  transition: transform .35s ease-out;
  mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%), linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 100%);
}
.hero-art picture, .hero-art img { width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 52% 44%; filter: saturate(.97) contrast(1.03); }
.hero-meta { position: relative; z-index: 2; width: min(100%, var(--max)); margin-inline: auto; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .08em; color: rgba(255,255,255,.52); }
.hero-copy { position: relative; z-index: 2; width: min(100%, var(--max)); margin: clamp(100px, 14vh, 160px) auto 0; }
.eyebrow { margin: 0 0 24px; font-size: 10px; letter-spacing: .1em; color: var(--acid); text-transform: uppercase; }
.hero h1 { max-width: 970px; margin: 0; font-size: clamp(76px, 9.4vw, 154px); line-height: .79; letter-spacing: -.078em; font-weight: 800; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.82); text-stroke: 1.2px rgba(255,255,255,.82); }
.hero-bottom { display: grid; grid-template-columns: minmax(320px, 620px) 88px; gap: 50px; align-items: end; width: min(70%, 810px); margin-top: 50px; }
.hero-bottom p { margin: 0; color: rgba(255,255,255,.67); font-size: 16px; line-height: 1.65; }
.round-cta { display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 24px; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.round-cta:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); transform: rotate(-8deg); }
.marquee { position: absolute; inset: auto 0 0; height: 76px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.12); background: rgba(8,9,9,.46); backdrop-filter: blur(12px); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; height: 100%; padding-left: 34px; font-weight: 760; font-size: 24px; letter-spacing: -.035em; animation: marquee 26s linear infinite; }
.marquee-track i { color: var(--acid); font-style: normal; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.intro { padding: 150px 0 120px; }
.intro-grid, .intelligence-head, .principles-top { display: grid; grid-template-columns: 220px 1fr; gap: clamp(40px, 6vw, 90px); }
.section-index { font-size: 9px; letter-spacing: .09em; color: #777770; }
.intro h2, .method h2 { max-width: 1160px; margin: 0; font-size: clamp(48px, 6vw, 94px); line-height: .97; letter-spacing: -.065em; font-weight: 700; }
.intro h2 em, .method h2 em { font-style: normal; color: #a1a19a; }
.intro-copy { max-width: 700px; margin: 54px 0 0 34%; font-size: 18px; line-height: 1.65; color: #53534d; }
.services { padding-bottom: 150px; }
.service-list { border-top: 1px solid var(--line); }
.service-row { position: relative; display: grid; grid-template-columns: 72px minmax(250px, 1.1fr) 1fr 44px; gap: 28px; align-items: center; padding: 42px 0; border-bottom: 1px solid var(--line); overflow: clip; }
.service-row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: #111212; transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.service-row:hover::before, .service-highlight::before { transform: scaleY(1); }
.service-row > * { position: relative; z-index: 1; }
.service-row:hover, .service-highlight { color: #fff; }
.service-num { font-size: 10px; color: #777770; }
.service-row h3 { margin: 0; font-size: clamp(34px, 3.6vw, 60px); line-height: .95; letter-spacing: -.055em; }
.service-copy p { max-width: 530px; margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #5b5b54; }
.service-copy div { display: flex; flex-wrap: wrap; gap: 6px; }
.service-copy span { padding: 6px 8px; border: 1px solid #cecec7; border-radius: 999px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; color: #74746e; }
.service-row:hover .service-num, .service-row:hover .service-copy p, .service-highlight .service-num, .service-highlight .service-copy p { color: #9c9c95; }
.service-row:hover .service-copy span, .service-highlight .service-copy span { border-color: #414141; color: #c5c5bd; }
.service-arrow { text-align: right; font-size: 26px; }

.intelligence { padding: 150px 0; }
.intelligence-head h2, .principles h2, .contact h2 { margin: 0; font-size: clamp(70px, 9vw, 145px); line-height: .82; letter-spacing: -.08em; }
.intelligence-head h2 span, .principles h2 span { color: var(--acid); }
.ai-stage { position: relative; height: 660px; margin-top: 100px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 2px; background: #0d0e0e; }
.ai-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(217,255,67,.1), transparent 33%); z-index: 1; pointer-events: none; }
.stage-grid { z-index: 0; mask-image: none; -webkit-mask-image: none; opacity: .62; }
.ai-core { position: absolute; z-index: 4; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(217,255,67,.43); background: radial-gradient(circle at 42% 32%, #24291a, #0f1010 58%); box-shadow: 0 0 110px rgba(217,255,67,.13), inset 0 0 50px rgba(217,255,67,.04); }
.ai-core span, .ai-core small { font-size: 8px; letter-spacing: .15em; color: #8b8b83; }
.ai-core b { font-size: 72px; line-height: 1; letter-spacing: -.08em; color: var(--acid); }
.core-ring { position: absolute; border: 1px solid rgba(217,255,67,.2); border-radius: 50%; animation: ring 9s linear infinite; }
.ring-a { inset: -54px; }
.ring-b { inset: -112px; animation-duration: 14s; animation-direction: reverse; }
.core-ring::after { content: ""; position: absolute; width: 9px; height: 9px; top: 14%; left: 14%; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
@keyframes ring { to { transform: rotate(360deg); } }
.signal { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px dashed rgba(217,255,67,.16); border-radius: 50%; }
.signal-1 { width: 58%; height: 58%; }
.signal-2 { width: 83%; height: 83%; }
.node { position: absolute; z-index: 5; width: 220px; padding: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(9,10,10,.76); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.node span { font-size: 8px; color: #74746e; }
.node b, .node small { display: block; }
.node b { margin: 18px 0 6px; font-size: 18px; }
.node small { color: #777770; font-size: 8px; }
.node-a { left: 6%; top: 14%; } .node-b { right: 6%; top: 18%; } .node-c { left: 9%; bottom: 12%; } .node-d { right: 8%; bottom: 12%; }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-left: 1px solid var(--line-dark); }
.ai-card { display: flex; flex-direction: column; min-height: 350px; padding: 30px; border: 1px solid var(--line-dark); border-left: 0; }
.ai-card > span { font-size: 9px; color: #70706a; }
.ai-card h3 { margin: 72px 0 14px; font-size: 25px; letter-spacing: -.04em; }
.ai-card p { margin: 0; font-size: 13px; line-height: 1.65; color: #999991; }
.ai-card small { margin-top: auto; font-size: 8px; color: #686861; }

.manifesto { overflow: hidden; padding: 26px 0; }
.manifesto-track { display: flex; gap: 58px; width: max-content; font-size: clamp(34px, 5vw, 78px); font-weight: 850; letter-spacing: -.065em; animation: manifesto 28s linear infinite; }
.manifesto-track span::after { content: "✦"; margin-left: 58px; font-size: .4em; vertical-align: middle; }
@keyframes manifesto { to { transform: translateX(-50%); } }

.method { padding: 150px 0; }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 8vw, 130px); }
.method-title { position: sticky; top: 120px; align-self: start; }
.method-title p { max-width: 500px; margin: 40px 0 0; color: #62625c; font-size: 15px; line-height: 1.7; }
.method-steps { border-top: 1px solid var(--line); }
.method-step { display: grid; grid-template-columns: 62px 1fr; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.method-step > span { font-size: 9px; color: #85857e; }
.method-step small { font-size: 8px; color: #898983; }
.method-step h3 { margin: 6px 0 7px; font-size: 32px; letter-spacing: -.045em; }
.method-step p { margin: 0; color: #676760; font-size: 14px; line-height: 1.55; }

.principles { padding: 150px 0; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-left: 1px solid var(--line-dark); }
.principle { min-height: 300px; padding: 28px; border-right: 1px solid var(--line-dark); }
.principle > span { font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; color: #686861; }
.principle h3 { margin: 90px 0 16px; font-size: 24px; letter-spacing: -.04em; }
.principle p { margin: 0; color: #8f8f88; font-size: 13px; line-height: 1.65; }

.contact { padding: 155px 0 130px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(60px, 8vw, 120px); align-items: end; }
.contact h2 span { color: #a2a29b; }
.contact-side { padding-bottom: 10px; }
.contact-side p { margin: 0 0 46px; color: #595953; font-size: 16px; line-height: 1.7; }
.contact-mail { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); font-size: clamp(24px, 3vw, 42px); font-weight: 750; letter-spacing: -.05em; }
.contact-mail:hover span { transform: translate(4px,-4px); }
.contact-mail span { transition: transform .2s; }
.contact-phone { display: block; margin-top: 22px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.address { margin-top: 60px; color: #777770; font-size: 9px; line-height: 1.8; }

.footer { padding: 70px 0 24px; background: var(--ink); color: #f5f5ef; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 60px; align-items: start; }
.footer-brand { font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; color: #96968f; font-size: 12px; }
.footer-links a:hover { color: var(--acid); }
.back-top { color: #777770; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 90px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #5e5e58; font-size: 8px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .desktop-nav, .nav-cta { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-btn { display: block; }
  .desktop-nav.is-open { position: fixed; display: flex; inset: 94px var(--pad) auto; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(10,11,11,.96); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
  .desktop-nav.is-open a { padding: 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; color: #fff; }
  .desktop-nav.is-open a:last-child { border-bottom: 0; }
  .hero-art { right: -18%; width: 67vw; opacity: .88; }
  .hero-vignette { background: linear-gradient(90deg, rgba(8,9,9,.98) 0%, rgba(8,9,9,.8) 48%, rgba(8,9,9,.2) 77%, rgba(8,9,9,.55) 100%), linear-gradient(0deg,#080909,transparent 35%); }
  .hero h1 { font-size: clamp(68px, 12vw, 128px); }
  .hero-bottom { width: min(76%, 760px); }
  .intro-grid, .intelligence-head, .principles-top { grid-template-columns: 1fr; gap: 30px; }
  .intro-copy { margin-left: 0; }
  .service-row { grid-template-columns: 50px 1fr 40px; }
  .service-copy { grid-column: 2 / 3; }
  .service-arrow { grid-column: 3; grid-row: 1; }
  .ai-grid, .principle-grid { grid-template-columns: 1fr 1fr; }
  .method-grid, .contact-grid { grid-template-columns: 1fr; gap: 70px; }
  .method-title { position: static; }
  .contact-side { max-width: 680px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .cursor-glow { display: none; }
  .site-header { padding-top: 10px; }
  .nav-shell { height: 58px; border-radius: 14px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 8px; font-size: 16px; }
  .brand-name { font-size: 11px; }
  .desktop-nav.is-open { top: 78px; }

  .hero { min-height: 900px; height: 100svh; padding-top: 92px; }
  .hero-meta { font-size: 7px; }
  .hero-meta span:nth-child(2) { display: none; }
  .hero-art { top: 2%; right: -48%; width: 138vw; height: 76%; opacity: .72; transform: none !important; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 100%); }
  .hero-art img { object-position: 60% 25%; }
  .hero-vignette { background: linear-gradient(90deg, rgba(8,9,9,.94) 0%, rgba(8,9,9,.58) 64%, rgba(8,9,9,.38) 100%), linear-gradient(0deg, #080909 13%, transparent 56%); }
  .hero-copy { margin-top: 16vh; }
  .eyebrow { margin-bottom: 18px; font-size: 9px; }
  .hero h1 { font-size: clamp(53px, 17vw, 84px); line-height: .82; }
  .hero-bottom { grid-template-columns: 1fr; width: 100%; margin-top: 38px; }
  .hero-bottom p { max-width: 380px; font-size: 14px; }
  .round-cta { display: none; }
  .marquee { height: 60px; }
  .marquee-track { gap: 24px; padding-left: 24px; font-size: 18px; }

  .intro, .intelligence, .method, .principles, .contact { padding: 98px 0; }
  .intro h2, .method h2 { font-size: 46px; }
  .intro-copy { margin-top: 36px; font-size: 16px; }
  .services { padding-bottom: 100px; }
  .service-row { grid-template-columns: 36px 1fr 24px; gap: 10px; padding: 30px 0; }
  .service-row h3 { font-size: 33px; }
  .service-copy p { font-size: 13px; }

  .intelligence-head h2, .principles h2, .contact h2 { font-size: 62px; }
  .ai-stage { height: 610px; margin-top: 58px; }
  .ai-core { width: 146px; height: 146px; }
  .ai-core b { font-size: 50px; }
  .node { width: 143px; padding: 12px; }
  .node b { margin-top: 12px; font-size: 14px; }
  .node-a { left: 4%; top: 9%; } .node-b { right: 4%; top: 19%; } .node-c { left: 4%; bottom: 15%; } .node-d { right: 4%; bottom: 8%; }
  .ai-grid, .principle-grid { grid-template-columns: 1fr; }
  .ai-card { min-height: 255px; }
  .ai-card h3 { margin-top: 44px; }
  .manifesto-track { font-size: 40px; }
  .method-step { grid-template-columns: 44px 1fr; }
  .method-step h3 { font-size: 26px; }
  .principle { min-height: 230px; }
  .principle h3 { margin-top: 58px; }
  .contact-mail { font-size: 25px; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .manifesto-track, .core-ring { animation: none; }
  .hero-art { transform: none !important; }
}
