:root {
  --paper: #f4f4ef;
  --paper-2: #e9e9e1;
  --ink: #111210;
  --muted: #666961;
  --line: rgba(17, 18, 16, 0.17);
  --signal: #b8ff38;
  --signal-deep: #8cdf00;
  --blue: #8aaeff;
  --coral: #ff8f6b;
  --radius: 22px;
  --max: 1440px;
  --pad: clamp(22px, 4.3vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", YuGothic, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { color: var(--ink); background: var(--signal); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.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; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--pad);
  background: rgba(244, 244, 239, .86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: height .25s ease, border-color .25s ease;
}
.site-header.scrolled { height: 66px; border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 680; letter-spacing: -.035em; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 44px); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; text-decoration: none; }
.site-nav > a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--ink); transition: right .2s ease; }
.site-nav > a:not(.nav-contact):hover::after { right: 0; }
.nav-contact { padding: 11px 18px; color: #fff; background: var(--ink); border-radius: 999px; }
.menu-button { display: none; }

.hero {
  min-height: min(940px, 100svh);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(130px, 15vh, 180px) var(--pad) clamp(72px, 10vh, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
}
.eyebrow, .section-index { margin: 0 0 28px; font-size: 11px; line-height: 1.3; font-weight: 720; letter-spacing: .15em; }
.eyebrow::before { content: ""; display: inline-block; width: 30px; height: 1px; margin: 0 12px 3px 0; background: currentColor; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(52px, 5.2vw, 82px); line-height: .97; font-weight: 590; letter-spacing: -.075em; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.7px var(--ink); }
.hero-lead { max-width: 650px; margin: 38px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.9; letter-spacing: -.025em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-width: 180px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 19px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 650; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--signal); color: var(--ink); }
.button-secondary:hover { background: #fff; }
.hero-note { margin: 17px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .03em; }

.signal-stage {
  position: relative;
  aspect-ratio: 1;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #151713;
  box-shadow: 0 35px 90px rgba(17, 18, 16, .15);
}
.stage-grid { position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.stage-label { position: absolute; z-index: 2; color: rgba(255,255,255,.55); font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.stage-label-top { left: 24px; top: 22px; }
.stage-label-bottom { right: 24px; bottom: 22px; }
.signal-visual { position: absolute; inset: 5%; width: 90%; height: 90%; }
.noise-points { fill: rgba(184,255,56,.45); animation: flicker 4s steps(2,end) infinite; }
.shape-fill { fill: rgba(184,255,56,.07); }
.shape-outline { fill: none; stroke: var(--signal); stroke-width: 2.3; stroke-dasharray: 8 10; animation: dash 18s linear infinite; }
.trace { fill: none; stroke-width: 1; }
.trace-one { stroke: rgba(138,174,255,.52); }
.trace-two { stroke: rgba(255,255,255,.18); }
.target { color: var(--signal); }
.target circle { fill: var(--signal); }
.target path { fill: none; stroke: var(--signal); stroke-width: 1; }
.scan-line { position: absolute; z-index: 3; left: 0; right: 0; height: 1px; top: 12%; background: linear-gradient(90deg, transparent, var(--signal), transparent); box-shadow: 0 0 18px rgba(184,255,56,.8); animation: scan 5.3s ease-in-out infinite; }
.status-pill { position: absolute; left: 22px; bottom: 19px; z-index: 4; padding: 9px 12px; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(17,18,16,.6); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; backdrop-filter: blur(8px); }
.status-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 9px var(--signal); }

.section-pad { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 170px) var(--pad); }
.statement { border-top: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 8vw; }
.statement h2, .section-heading h2, .partner-copy h2, .contact-inner h2 { margin: 0; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.08; font-weight: 540; letter-spacing: -.065em; }
.statement-grid > div { max-width: 670px; }
.statement-grid p { color: var(--muted); font-size: 15px; line-height: 1.95; }
.statement-grid .large-copy { margin: 0 0 28px; color: var(--ink); font-size: clamp(19px, 2vw, 28px); line-height: 1.65; letter-spacing: -.035em; }

.process { padding-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 75px; }
.section-heading .section-index { align-self: flex-start; }
.section-heading h2 { max-width: 850px; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.process-list li { display: grid; grid-template-columns: 80px 1fr auto; align-items: start; gap: 24px; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.step-number { padding-top: 5px; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.process-list h3 { margin: 0 0 9px; font-size: clamp(22px, 2.3vw, 34px); font-weight: 560; letter-spacing: -.045em; }
.process-list p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.step-tag { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; letter-spacing: .05em; }

.capabilities { max-width: none; background: #dcdcd3; }
.capabilities > * { max-width: calc(var(--max) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capability-card { min-height: 550px; display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 46px); overflow: hidden; border-radius: var(--radius); }
.card-green { background: var(--signal); }
.card-blue { background: var(--blue); }
.card-coral { background: var(--coral); }
.card-dark { color: #f6f6ef; background: var(--ink); }
.card-top { display: flex; justify-content: space-between; font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.capability-card h3 { margin: auto 0 12px; font-size: clamp(28px, 3vw, 46px); line-height: 1.04; font-weight: 560; letter-spacing: -.055em; }
.capability-card p { max-width: 490px; margin: 0; font-size: 14px; line-height: 1.7; }
.mini-visual { position: relative; width: min(64%, 330px); aspect-ratio: 1; margin: 25px auto 35px; }
.visual-segment i { position: absolute; inset: 12%; display: block; background: var(--ink); border-radius: 48% 52% 63% 37% / 37% 48% 52% 63%; transform: rotate(-10deg); }
.visual-segment b { position: absolute; inset: 26%; display: block; border: 1px dashed var(--signal); border-radius: 60% 40% 46% 54%; box-shadow: 0 0 0 14px rgba(17,18,16,.12); }
.visual-drawing { border: 1px solid rgba(17,18,16,.5); background: repeating-linear-gradient(0deg, transparent 0 29px, rgba(17,18,16,.14) 30px), repeating-linear-gradient(90deg, transparent 0 29px, rgba(17,18,16,.14) 30px); }
.visual-drawing i { position: absolute; left: 16%; top: 18%; width: 54%; height: 40%; border: 2px solid var(--ink); }
.visual-drawing b { position: absolute; right: 8%; bottom: 11%; width: 47%; height: 42%; border: 1px solid var(--ink); background: rgba(244,244,239,.3); }
.visual-drawing em { position: absolute; left: 30%; top: 32%; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 90px 70px 0 var(--ink), 145px 28px 0 var(--ink); }
.visual-inspection { border-radius: 50%; border: 1px solid rgba(17,18,16,.4); }
.visual-inspection::before, .visual-inspection::after { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: rgba(17,18,16,.35); }
.visual-inspection::after { transform: rotate(90deg); }
.visual-inspection i { position: absolute; inset: 24%; border: 16px solid var(--ink); border-radius: 50%; }
.visual-inspection b { position: absolute; left: 49%; top: 12%; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 8px rgba(244,244,239,.25); }
.visual-inspection em { position: absolute; left: 20%; bottom: 17%; padding: 5px 8px; color: var(--paper); background: var(--ink); font: 700 8px/1 ui-monospace, monospace; }
.visual-inspection em::after { content: "ANOMALY 0.94"; font-style: normal; }
.visual-custom { background: radial-gradient(circle at 30% 25%, rgba(184,255,56,.8) 0 3px, transparent 4px), radial-gradient(circle at 75% 33%, rgba(138,174,255,.8) 0 4px, transparent 5px), radial-gradient(circle at 43% 70%, rgba(255,143,107,.8) 0 5px, transparent 6px); background-size: 46px 46px, 61px 61px, 74px 74px; }
.visual-custom i { position: absolute; inset: 17%; border: 1px solid rgba(255,255,255,.5); border-radius: 46% 54% 40% 60%; }
.visual-custom b { position: absolute; left: 20%; right: 20%; top: 50%; height: 1px; background: var(--signal); transform: rotate(-28deg); box-shadow: 0 0 14px var(--signal); }
.visual-custom em { position: absolute; width: 14px; height: 14px; left: calc(50% - 7px); top: calc(50% - 7px); border: 2px solid var(--signal); border-radius: 50%; }

.partner-section { max-width: none; color: #f5f5ef; background: var(--ink); }
.partner-panel { max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 7vw; align-items: center; }
.partner-copy { max-width: 660px; }
.partner-copy h2 { font-size: clamp(42px, 5vw, 72px); }
.partner-copy > p:not(.section-index) { margin: 35px 0 28px; color: rgba(255,255,255,.67); font-size: 15px; line-height: 1.9; }
.partner-copy ul { margin: 0 0 36px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.partner-copy li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 13px; }
.partner-copy li::before { content: "+"; margin-right: 14px; color: var(--signal); }
.text-link { display: inline-flex; gap: 20px; color: var(--signal); font-size: 13px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--signal); padding-bottom: 7px; }
.partner-diagram { position: relative; min-height: 560px; }
.diagram-node { position: absolute; z-index: 2; width: 245px; padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: #20221e; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.diagram-node small { display: block; margin-bottom: 8px; color: rgba(255,255,255,.43); font: 650 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.diagram-node strong { font-size: 13px; font-weight: 570; }
.client-node { top: 3%; right: 2%; }
.si-node { top: 38%; left: 0; }
.dl-node { bottom: 2%; right: 4%; display: flex; align-items: center; gap: 14px; border-color: rgba(184,255,56,.45); }
.dl-node img { width: 40px; height: 40px; }
.diagram-line { position: absolute; z-index: 1; width: 2px; background: rgba(184,255,56,.5); transform-origin: top; }
.diagram-line::after { content: ""; position: absolute; bottom: -5px; left: -3px; width: 7px; height: 7px; border-right: 1px solid var(--signal); border-bottom: 1px solid var(--signal); transform: rotate(45deg); }
.diagram-line span { position: absolute; left: 14px; top: 45%; width: 100px; color: rgba(255,255,255,.4); font-size: 9px; letter-spacing: .08em; }
.line-one { top: 22%; right: 40%; height: 146px; transform: rotate(45deg); }
.line-two { top: 56%; left: 42%; height: 158px; transform: rotate(-43deg); }

.principles { text-align: center; }
.principles blockquote { margin: 45px auto 30px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6.5vw, 96px); line-height: 1.03; letter-spacing: -.055em; }
.principles blockquote span:first-child { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.principles blockquote span:last-child { background: linear-gradient(transparent 65%, var(--signal) 65%); }
.principles > p:last-child { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.8; }

.contact-section { padding: 18px; background: var(--paper); }
.contact-inner { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px var(--pad); text-align: center; border-radius: 28px; background: var(--signal); }
.contact-inner h2 { max-width: 900px; }
.contact-inner > p:not(.section-index) { max-width: 620px; margin: 28px auto 34px; font-size: 15px; line-height: 1.8; }
.contact-mail { display: inline-flex; align-items: center; gap: 28px; padding: 15px 20px; border-bottom: 2px solid var(--ink); font-size: clamp(17px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; text-decoration: none; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 55px var(--pad) 65px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { display: block; margin-bottom: 5px; font-size: 15px; letter-spacing: -.03em; }
.footer-brand span, .footer-meta { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }

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

@keyframes scan { 0%, 100% { top: 13%; opacity: .2; } 50% { top: 87%; opacity: .95; } }
@keyframes dash { to { stroke-dashoffset: -360; } }
@keyframes flicker { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding-top: 20px; }
  .signal-stage { width: min(100%, 680px); min-height: 0; margin: 0 auto; }
  .statement-grid, .partner-panel { grid-template-columns: 1fr; }
  .statement-grid { gap: 45px; }
  .partner-diagram { min-height: 500px; max-width: 560px; width: 100%; margin: 20px auto 0; }
  .section-heading { display: block; }
  .section-heading .section-index { margin-bottom: 30px; }
}

@media (max-width: 720px) {
  .site-header { height: 67px; }
  .menu-button { position: relative; z-index: 102; display: block; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; }
  .menu-button > span:not(.sr-only) { position: absolute; left: 9px; width: 24px; height: 1px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
  .menu-button > span:first-child { top: 17px; }
  .menu-button > span:nth-child(2) { top: 24px; }
  .menu-button[aria-expanded="true"] > span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: none; align-items: stretch; justify-content: center; flex-direction: column; gap: 0; padding: 100px var(--pad) 40px; background: var(--signal); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 18px 0; border-bottom: 1px solid rgba(17,18,16,.25); font-size: 20px; }
  .nav-contact { color: var(--ink); border-radius: 0; background: none; }
  body.menu-open { overflow: hidden; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(45px, 12.4vw, 56px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .desktop-only { display: none; }
  .signal-stage { border-radius: 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 470px; }
  .process-list li { grid-template-columns: 42px 1fr; }
  .step-tag { grid-column: 2; justify-self: start; }
  .contact-inner { min-height: 520px; border-radius: 20px; }
  .contact-mail { gap: 10px; padding-left: 0; padding-right: 0; }
  .site-footer { display: block; }
  .footer-meta { justify-content: flex-start; margin-top: 30px; }
}

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