:root {
  --ink: #07131f;
  --ink-2: #0d2133;
  --paper: #f4f2eb;
  --paper-2: #e9e6dc;
  --white: #fff;
  --cyan: #45d9d0;
  --cyan-bright: #8af7ef;
  --blue: #82a9ff;
  --muted: #9db0bd;
  --line-dark: rgba(255, 255, 255, 0.13);
  --line-light: rgba(7, 19, 31, 0.14);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}

* { 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;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.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: -80px; z-index: 100; padding: 10px 14px; background: var(--cyan); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(7, 19, 31, .94); border-color: var(--line-dark); backdrop-filter: blur(16px); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: .18em; font-size: .95rem; }
.brand-mark { width: 25px; height: 24px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; transform: skew(-10deg); }
.brand-mark i { display: block; background: var(--cyan); }
.brand-mark i:nth-child(1) { height: 50%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 72%; }
.primary-nav { display: flex; align-items: center; gap: 30px; font-size: .82rem; font-weight: 650; }
.primary-nav > a:not(.nav-cta) { color: #c5d1d9; transition: color .2s ease; }
.primary-nav > a:not(.nav-cta):hover, .primary-nav > a:not(.nav-cta):focus-visible { color: var(--white); }
.nav-cta { border: 1px solid rgba(69, 217, 208, .6); padding: 9px 17px; color: var(--cyan-bright); }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--cyan); color: var(--ink); }
.nav-toggle { display: none; color: var(--white); background: transparent; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: currentColor; margin: 7px 0; transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; min-height: 780px; padding: 165px 0 108px; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; width: 800px; height: 800px; right: -360px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(69,217,208,.18), transparent 65%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, black, transparent 80%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 74px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 24px; color: var(--cyan-bright); font-family: var(--mono); font-size: .74rem; font-weight: 800; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow > span { width: 23px; height: 2px; background: currentColor; }
.eyebrow.dark { color: #167f7a; }
.hero h1, .section h2, .contact h2 { margin: 0; letter-spacing: -.052em; line-height: .98; font-weight: 720; }
.hero h1 { max-width: 750px; font-size: clamp(3.5rem, 5.4vw, 5.8rem); }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-lead { max-width: 650px; margin: 32px 0 0; color: #b7c5cf; font-size: clamp(1.06rem, 1.35vw, 1.25rem); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 21px; font-size: .9rem; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--cyan-bright); }
.button-quiet { border: 1px solid var(--line-dark); color: #d6dfe5; }
.button-quiet:hover, .button-quiet:focus-visible { background: rgba(255,255,255,.06); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 45px 0 0; padding: 0; list-style: none; }
.hero-tags li { padding: 6px 10px; border: 1px solid var(--line-dark); color: #8398a6; font-family: var(--mono); font-size: .67rem; letter-spacing: .045em; }

.system-card { position: relative; border: 1px solid rgba(138,247,239,.22); background: rgba(13, 33, 51, .78); box-shadow: 0 34px 90px rgba(0,0,0,.34); backdrop-filter: blur(10px); }
.system-card::before, .system-card::after { content: ""; position: absolute; width: 16px; height: 16px; border-color: var(--cyan); opacity: .8; }
.system-card::before { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.system-card::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.system-card-head { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line-dark); color: #9eb1bd; font-family: var(--mono); font-size: .63rem; letter-spacing: .06em; }
.status { color: var(--cyan-bright); }
.status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.machine-line { min-height: 205px; padding: 39px 23px 30px; display: grid; grid-template-columns: 1fr 50px 1fr 50px 1fr; align-items: center; }
.station { min-width: 0; text-align: center; color: #dfe7eb; font-size: .7rem; }
.station strong { display: block; margin-top: 15px; font-size: .66rem; font-weight: 650; }
.station-code { display: block; margin-bottom: 13px; color: #75909f; font-family: var(--mono); font-size: .58rem; }
.sensor, .scan, .actuator { display: block; position: relative; width: 55px; height: 55px; margin: auto; border: 1px solid #3b596a; background: #0a1b29; }
.sensor::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.scan::before, .scan::after { content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.scan::before { top: 20px; }.scan::after { top: 31px; }
.actuator::before { content: ""; position: absolute; width: 31px; height: 9px; left: 11px; top: 22px; border: 1px solid var(--blue); }
.actuator::after { content: ""; position: absolute; width: 17px; height: 2px; right: -8px; top: 26px; background: var(--blue); }
.flow { height: 1px; background: #3b596a; position: relative; }
.flow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid #668496; border-right: 1px solid #668496; transform: rotate(45deg); }
.flow.active { background: linear-gradient(90deg, var(--cyan), #3b596a); }
.signal-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.signal-list div { display: flex; justify-content: space-between; gap: 8px; padding: 11px 14px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: .58rem; }
.signal-list div:nth-child(2n) { border-right: 0; }
.signal-list span { color: #6f8a9a; }.signal-list b { color: #b5c5ce; font-weight: 500; }.signal-list .signal-on { color: var(--cyan-bright); }
.system-note { padding: 13px 15px; color: #708795; font-family: var(--mono); font-size: .57rem; text-align: center; }

.proof-strip { background: var(--ink-2); color: var(--white); border-top: 1px solid var(--line-dark); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { display: flex; align-items: center; gap: 15px; min-height: 96px; padding: 0 24px; border-left: 1px solid var(--line-dark); }
.proof-grid > div:last-child { border-right: 1px solid var(--line-dark); }
.proof-grid strong { color: var(--cyan); font-family: var(--mono); font-size: .7rem; }
.proof-grid span { color: #c9d4da; font-size: .78rem; font-weight: 700; }

.section { padding: 125px 0; }
.section-intro { display: grid; grid-template-columns: 1fr .82fr; column-gap: 80px; align-items: end; margin-bottom: 60px; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section h2, .contact h2 { font-size: clamp(2.65rem, 4.8vw, 5.05rem); }
.section-intro > p:last-child { margin: 0 0 3px; color: #50606a; font-size: 1.03rem; line-height: 1.75; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.service-card { position: relative; min-height: 425px; padding: 39px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: rgba(255,255,255,.19); }
.service-card.featured { background: var(--white); }
.service-number { position: absolute; right: 26px; top: 22px; color: #9ba6aa; font-family: var(--mono); font-size: .68rem; }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #88a2ad; color: #167f7a; font-family: var(--mono); font-size: .62rem; font-weight: 800; }
.service-card h3 { max-width: 410px; margin: 52px 0 14px; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.025em; }
.service-card p { max-width: 500px; margin: 0; color: #58666e; }
.service-card ul { margin: 24px 0 0; padding: 0; list-style: none; color: #293944; font-size: .84rem; }
.service-card li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid rgba(7,19,31,.08); }
.service-card li::before { content: "+"; position: absolute; left: 0; color: #167f7a; font-family: var(--mono); }

.method { background: var(--ink); color: var(--white); }
.method-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 100px; }
.method-copy > p:not(.eyebrow) { max-width: 510px; margin: 30px 0 0; color: #a8bac4; font-size: 1.03rem; }
.method-callout { display: flex; gap: 14px; max-width: 520px; margin-top: 45px; padding: 18px; border: 1px solid rgba(130,169,255,.3); background: rgba(130,169,255,.05); }
.method-callout > span { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--blue); color: var(--blue); font-family: var(--mono); font-size: .7rem; }
.method-callout p { margin: 0; color: #91a6b3; font-size: .72rem; line-height: 1.65; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.method-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 15px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.method-steps > li > span { color: var(--cyan); font-family: var(--mono); font-size: .69rem; }
.method-steps h3 { margin: 0 0 6px; font-size: 1.35rem; }
.method-steps p { margin: 0; color: #90a4b0; font-size: .88rem; }

.experience { background: var(--ink-2); color: var(--white); }
.experience-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; align-items: center; }
.portrait-mark { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; border: 1px solid rgba(69,217,208,.32); background: linear-gradient(145deg, rgba(69,217,208,.12), rgba(7,19,31,.15)); }
.portrait-mark span { color: var(--cyan); font-size: clamp(5rem, 10vw, 9rem); font-weight: 850; letter-spacing: -.1em; line-height: .8; }
.portrait-mark small { color: #8fa4b0; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; }
.experience-copy h2 { font-size: clamp(2.4rem,4vw,4.3rem); }
.role { margin: 10px 0 27px; color: var(--cyan); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; }
.experience-copy > p:not(.eyebrow):not(.role) { max-width: 680px; color: #acbdc7; font-size: 1.02rem; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
.credentials div { padding: 15px; border: 1px solid var(--line-dark); }
.credentials span, .credentials strong { display: block; }.credentials span { color: #7893a2; font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }.credentials strong { margin-top: 6px; color: #d9e2e7; font-size: .72rem; line-height: 1.4; }
.text-link { display: inline-flex; gap: 12px; margin-top: 30px; color: var(--cyan-bright); border-bottom: 1px solid rgba(138,247,239,.4); font-size: .82rem; font-weight: 750; }

.contact { padding: 100px 0; background: var(--cyan); color: var(--ink); }
.contact .eyebrow { color: #0b5754; }
.contact-layout { display: grid; grid-template-columns: 1.12fr .88fr; align-items: end; gap: 80px; }
.contact h2 { font-size: clamp(2.8rem, 5vw, 5.4rem); }
.contact-action { padding-bottom: 8px; }
.contact-action a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 800; }
.contact-action p { margin: 15px 0 0; color: #194846; font-size: .78rem; }

.site-footer { padding: 65px 0 35px; background: var(--ink); color: #a7b7c1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .6fr; gap: 60px; }
.footer-brand { color: var(--white); }.footer-grid > div:first-child p { margin: 18px 0 0; color: #68808f; font-size: .77rem; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 10px; font-size: .72rem; }
.footer-links a:hover, .footer-legal a:hover { color: var(--white); }.footer-legal p { margin: 13px 0 0; color: #55707f; }

.legal-page { min-height: 100vh; background: var(--paper); }
.legal-header { position: static; background: var(--ink); }
.legal-main { padding: 80px 0 110px; }
.legal-content { max-width: 820px; }
.legal-content h1 { margin: 0 0 18px; font-size: clamp(2.5rem,6vw,5rem); line-height: 1; letter-spacing: -.05em; }
.legal-content h2 { margin: 42px 0 10px; font-size: 1.25rem; }.legal-content p, .legal-content li { color: #53636c; }
.legal-content a { color: #0c7772; text-decoration: underline; }.legal-warning { margin: 30px 0; padding: 18px; border: 1px solid #d19b44; background: #fff7e9; color: #654715 !important; }

@media (max-width: 980px) {
  .hero { min-height: auto; }.hero-layout { grid-template-columns: 1fr; gap: 60px; }.hero-copy { max-width: 780px; }.system-card { width: min(100%, 620px); }
  .section-intro, .method-layout, .experience-layout, .contact-layout { grid-template-columns: 1fr; gap: 45px; }
  .section-intro { align-items: start; }.section-intro .eyebrow { grid-column: auto; }.section-intro h2 { grid-column: 1; }.section-intro > p:last-child { grid-column: 1; }
  .portrait-mark { max-width: 440px; }.experience-copy { max-width: 720px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { height: 68px; }.nav-toggle { display: block; }.primary-nav { position: fixed; inset: 68px 0 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 30px 20px; background: var(--ink); }.primary-nav.open { display: flex; }.primary-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }.primary-nav .nav-cta { margin-top: 20px; padding: 14px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4.5px) rotate(45deg); }.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .hero { padding: 132px 0 76px; }.hero h1 { font-size: clamp(3rem,13vw,4.8rem); }.hero-lead { font-size: 1rem; }.hero-actions { align-items: stretch; flex-direction: column; }.button { width: 100%; }.hero-tags { margin-top: 32px; }
  .machine-line { padding-inline: 13px; grid-template-columns: 1fr 24px 1fr 24px 1fr; }.station strong { font-size: .56rem; }.station-code { font-size: .5rem; }.sensor, .scan, .actuator { width: 43px; height: 43px; }.scan::before, .scan::after { left: 9px; right: 9px; }.scan::before { top: 16px; }.scan::after { top: 26px; }.actuator::before { width: 25px; left: 8px; top: 17px; }.actuator::after { top: 21px; }
  .signal-list { grid-template-columns: 1fr; }.signal-list div { border-right: 0; }
  .proof-grid { grid-template-columns: 1fr 1fr; }.proof-grid > div { min-height: 74px; padding: 0 12px; border-bottom: 1px solid var(--line-dark); }.proof-grid > div:nth-child(2n) { border-right: 1px solid var(--line-dark); }
  .section { padding: 84px 0; }.section h2 { font-size: clamp(2.5rem,12vw,4rem); }.section-intro { margin-bottom: 38px; }.service-grid { grid-template-columns: 1fr; }.service-card { min-height: auto; padding: 30px 25px; }.service-card h3 { margin-top: 38px; }
  .method-steps li { grid-template-columns: 45px 1fr; }
  .credentials { grid-template-columns: 1fr; }.contact { padding: 75px 0; }.contact h2 { font-size: clamp(2.7rem,13vw,4.5rem); }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-grid > div:first-child { grid-column: 1/-1; }
}

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