:root {
  --ink: #102c35;
  --ink-2: #38545c;
  --paper: #f8fbfb;
  --mist: #e8f2f3;
  --line: #bad0d3;
  --signal: #f05b3f;
  --signal-dark: #c83f29;
  --aqua: #9adce0;
  --white: #ffffff;
  --mono: "DM Mono", monospace;
  --body: "Manrope", sans-serif;
  --display: "Unbounded", sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }
::selection { background: var(--signal); color: white; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent; transition: .25s ease; }
.site-header.scrolled { height: 72px; background: rgba(248,251,251,.92); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 11px; line-height: 1.15; letter-spacing: .03em; }
.brand-mark { width: 32px; height: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: rotate(-4deg); }
.brand-mark i { display: block; background: var(--ink); }
.brand-mark i:last-child { background: var(--signal); transform: translateY(5px); }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); font-size: 13px; font-weight: 600; }
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--signal); transition: width .2s; }
.main-nav a:hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--ink); padding: 11px 16px; transition: .2s; }
.nav-cta:hover { background: var(--ink); color: white; }
.menu-button { display: none; background: none; border: 0; }

.hero { min-height: 820px; padding: 150px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0,.86fr) minmax(480px,1.14fr); align-items: center; gap: clamp(40px, 6vw, 100px); background-color: var(--mist); background-image: linear-gradient(rgba(16,44,53,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,44,53,.045) 1px, transparent 1px); background-size: 32px 32px; border-bottom: 1px solid var(--line); }
.eyebrow, .kicker { margin: 0 0 24px; font: 500 11px/1 var(--mono); letter-spacing: .12em; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 9px; border-radius: 50%; background: #2ab276; box-shadow: 0 0 0 5px rgba(42,178,118,.13); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 30px; font-family: var(--display); font-size: clamp(42px, 5vw, 76px); line-height: 1.06; letter-spacing: -.055em; }
h1 span { color: var(--signal); }
.hero-lead { max-width: 660px; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 20px); }
.hero-actions { margin-top: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { min-height: 54px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 0; border-radius: 1px; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.button-primary { background: var(--signal); color: white; box-shadow: 5px 5px 0 var(--ink); }
.button-primary:hover { background: var(--signal-dark); transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.trust-list { list-style: none; margin: 48px 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 18px 26px; border-top: 1px solid var(--line); color: var(--ink-2); font: 11px var(--mono); }
.trust-list li::before { content: "✓"; margin-right: 7px; color: #19845b; }

.system-board { position: relative; min-height: 570px; border: 1px solid #7799a0; background: rgba(255,255,255,.72); box-shadow: 14px 14px 0 rgba(16,44,53,.09); transform: rotate(.55deg); }
.board-top { height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 10px var(--mono); letter-spacing: .1em; }
.board-live { color: #19845b; }
.board-live i { width: 6px; height: 6px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #29b476; animation: blink 1.8s infinite; }
.flow { position: relative; height: 450px; padding: 35px 28px; display: grid; grid-template-columns: 1fr .9fr 1fr; align-items: stretch; gap: 30px; }
.flow-column, .flow-core { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-around; }
.flow-label { position: absolute; top: -17px; font: 9px var(--mono); letter-spacing: .12em; color: #6b858b; }
.node { position: relative; min-height: 90px; padding: 16px 12px 12px 48px; border: 1px solid var(--line); background: var(--white); box-shadow: 3px 3px 0 rgba(16,44,53,.08); transition: .25s ease; }
.node:hover { border-color: var(--signal); transform: translateY(-3px); }
.node b { position: absolute; left: 10px; top: 12px; font: 10px var(--mono); color: var(--signal); }
.node span { display: block; font-size: 12px; font-weight: 700; }
.node small { font: 8px var(--mono); color: #6b858b; }
.flow-core { align-items: center; }
.core-orbit { position: relative; width: 145px; height: 145px; display: grid; place-items: center; border: 1px dashed #79989e; border-radius: 50%; }
.core-chip { position: relative; z-index: 2; width: 112px; height: 112px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: white; transform: rotate(-3deg); box-shadow: 5px 5px 0 var(--aqua); }
.core-chip small, .core-chip span { font: 8px var(--mono); color: var(--aqua); }
.core-chip b { font-size: 12px; line-height: 1.3; }
.pulse-ring { position: absolute; inset: 17px; border: 1px solid var(--signal); border-radius: 50%; animation: pulse 2.3s infinite; }
.flow-lines { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines path { fill: none; stroke: #789aa0; stroke-width: 1.5; stroke-dasharray: 5 6; animation: dash 2.2s linear infinite; }
.board-log { height: 73px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 13px; border-top: 1px solid var(--line); font: 9px var(--mono); text-transform: uppercase; }
.board-log strong { color: var(--signal); font: 600 30px var(--display); letter-spacing: -.08em; }

.proof-strip { min-height: 62px; display: grid; grid-template-columns: 190px 1fr; align-items: center; background: var(--ink); color: white; overflow: hidden; font: 10px var(--mono); letter-spacing: .1em; }
.proof-strip > span { height: 100%; padding-left: var(--gutter); display: flex; align-items: center; background: var(--signal); clip-path: polygon(0 0,90% 0,100% 50%,90% 100%,0 100%); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee div { width: max-content; animation: marquee 24s linear infinite; }
.marquee i { margin: 0 16px; color: var(--aqua); }

.section { padding: clamp(90px, 10vw, 150px) var(--gutter); }
.section-intro { max-width: 880px; margin-bottom: 70px; }
.kicker { color: var(--signal-dark); }
h2 { font-family: var(--display); font-size: clamp(32px, 4.1vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
.section-intro > p:last-child { max-width: 640px; color: var(--ink-2); font-size: 18px; }
.services { background: var(--paper); }
.service-list { border-top: 1px solid var(--line); }
.service-card { padding: 38px 10px; display: grid; grid-template-columns: 82px 1.15fr .85fr; gap: 30px; align-items: start; border-bottom: 1px solid var(--line); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--mist); transform: rotate(-3deg); }
.service-icon svg { width: 38px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.service-card h3 { margin-bottom: 12px; font-family: var(--display); font-size: clamp(18px,2vw,26px); letter-spacing: -.03em; }
.service-card p { max-width: 600px; margin-bottom: 0; color: var(--ink-2); }
.service-card ul { list-style: none; margin: 0; padding: 0; font: 11px var(--mono); color: var(--ink-2); }
.service-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.service-card li::before { content: "+"; margin-right: 10px; color: var(--signal); }

.work { background: var(--ink); color: white; }
.work .kicker { color: var(--aqua); }
.work-heading { margin-bottom: 70px; display: grid; grid-template-columns: 1fr 380px; align-items: end; gap: 60px; }
.work-heading h2 { max-width: 760px; margin-bottom: 0; }
.work-heading > p { color: #afc5c9; }
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #41616a; border-left: 1px solid #41616a; }
.case { min-height: 420px; padding: 34px; display: flex; flex-direction: column; border-right: 1px solid #41616a; border-bottom: 1px solid #41616a; }
.case-featured { min-height: 520px; padding: 0; grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; position: relative; overflow: hidden; }
.case-tag { align-self: flex-start; margin-bottom: 45px; color: var(--aqua); font: 9px var(--mono); letter-spacing: .12em; }
.case-featured .case-tag { position: absolute; z-index: 3; top: 30px; left: 30px; padding: 8px 10px; background: var(--ink); }
.order-screen { padding: 100px clamp(30px,6vw,90px) 60px; background: #08191e; display: flex; flex-direction: column; justify-content: center; }
.order-screen div { padding: 20px 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid #41616a; font: 12px var(--mono); }
.order-screen strong { color: #ef6b4f; font: 500 clamp(30px,4vw,58px) var(--display); letter-spacing: -.06em; text-shadow: 0 0 26px rgba(240,91,63,.35); }
.order-screen small { margin-top: 18px; color: #5ed4b0; font: 9px var(--mono); }
.case-copy { padding: clamp(50px,7vw,100px) clamp(30px,5vw,70px); display: flex; flex-direction: column; justify-content: center; background: #173a44; }
.case h3 { font-family: var(--display); font-size: clamp(21px,2.3vw,32px); line-height: 1.2; letter-spacing: -.04em; }
.case p { color: #afc5c9; }
.case dl { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case dt { margin-bottom: 6px; color: var(--aqua); font: 9px var(--mono); }
.case dd { margin: 0; font-size: 12px; }
.case-number { margin-bottom: 34px; color: #66838a; font: 28px var(--mono); }
.case-tech { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.case-tech span { padding: 6px 8px; border: 1px solid #41616a; color: #afc5c9; font: 8px var(--mono); }

.why-us { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px,10vw,160px); align-items: center; }
.why-visual { min-height: 560px; position: relative; display: grid; place-items: center; background: var(--mist); background-image: radial-gradient(#89a8ad 1px,transparent 1px); background-size: 18px 18px; border: 1px solid var(--line); }
.code-slip { width: 72%; padding: 38px; display: flex; flex-direction: column; background: white; box-shadow: 12px 12px 0 #b8ced1; color: #49646b; font: 14px/2 var(--mono); transform: rotate(2deg); }
.code-slip b { color: var(--signal); }
.code-slip i { margin-top: 22px; color: #19845b; font-size: 10px; }
.tape { position: absolute; z-index: 3; padding: 11px 28px; background: var(--signal); color: white; font: 10px var(--mono); letter-spacing: .08em; box-shadow: 2px 3px 0 rgba(16,44,53,.2); }
.tape-one { top: 17%; left: -4%; transform: rotate(-8deg); }
.tape-two { right: -5%; bottom: 18%; background: var(--ink); transform: rotate(6deg); }
.why-copy .lead { color: var(--ink-2); font-size: 18px; }
.principles { margin-top: 44px; border-top: 1px solid var(--line); }
.principles > div { padding: 20px 0; display: grid; grid-template-columns: 50px 1fr; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.principles b { color: var(--signal); font: 11px var(--mono); }
.principles strong { display: block; margin-bottom: 4px; color: var(--ink); }

.process { background: var(--mist); border-block: 1px solid var(--line); }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #91aeb2; border-left: 1px solid #91aeb2; }
.process-list li { min-height: 320px; padding: 26px; display: flex; flex-direction: column; border-right: 1px solid #91aeb2; border-bottom: 1px solid #91aeb2; transition: background .2s, transform .2s; }
.process-list li:hover { background: white; transform: translateY(-6px); }
.process-list span { margin-bottom: 72px; color: var(--signal-dark); font: 9px var(--mono); }
.process-list b { margin-bottom: 18px; font: 500 21px var(--display); letter-spacing: -.04em; }
.process-list p { margin: 0; color: var(--ink-2); font-size: 13px; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 0; }
.fit-card { min-height: 420px; padding: clamp(36px,5vw,70px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--aqua); }
.fit-card h2 { font-size: clamp(27px,3vw,42px); }
.fit-card p:last-child { max-width: 630px; margin: 0; }
.fit-no { background: #edf0ed; }

.contact { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(60px,10vw,160px); background: var(--paper); }
.contact-copy h2 { max-width: 780px; }
.contact-copy > p:not(.kicker) { max-width: 600px; color: var(--ink-2); font-size: 18px; }
.contact-note { margin-top: 45px; display: flex; align-items: center; gap: 20px; }
.contact-note > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font: 13px var(--mono); transform: rotate(-8deg); }
.contact-note p { margin: 0; color: var(--ink-2); font-size: 13px; }
.contact-form { padding: clamp(28px,4vw,50px); background: var(--mist); border: 1px solid var(--line); box-shadow: 8px 8px 0 rgba(16,44,53,.08); }
.contact-form label { margin-bottom: 22px; display: block; font: 10px var(--mono); letter-spacing: .06em; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 15px 0; display: block; border: 0; border-bottom: 1px solid #7799a0; border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--body); font-size: 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--signal); }
.contact-form .button { width: 100%; margin-top: 10px; }
.form-note { margin: 16px 0 0; color: #6b858b; text-align: center; font: 9px var(--mono); }

.site-footer { padding: 55px var(--gutter) 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; background: var(--ink); color: white; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.footer-brand .brand-mark i { background: white; }
.footer-brand .brand-mark i:last-child { background: var(--signal); }
.footer-brand b { font: 12px var(--display); }
.footer-brand p { grid-column: 1/-1; color: #8ba7ad; font-size: 13px; }
.site-footer > div:not(.footer-brand,.footer-end) { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.site-footer > div > span { margin-bottom: 8px; color: var(--aqua); font: 9px var(--mono); }
.footer-end { grid-column: 1/-1; margin-top: 30px; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid #41616a; color: #8ba7ad; font: 9px var(--mono); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .system-board { width: 100%; max-width: 800px; justify-self: center; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-featured { grid-column: 1/-1; }
  .case:last-child { grid-column: 1/-1; min-height: 340px; }
  .why-us, .contact { gap: 60px; }
  .process-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; }
  .menu-button { width: 58px; height: 42px; padding: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; font: 9px var(--mono); }
  .menu-button i { width: 28px; height: 1px; background: var(--ink); }
  .main-nav { position: absolute; top: 70px; left: 0; right: 0; padding: 26px var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(16,44,53,.12); }
  .main-nav.open { display: flex; }
  .hero { min-height: auto; padding-top: 112px; grid-template-columns: minmax(0,1fr); }
  h1 { font-size: clamp(37px,11vw,54px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .system-board { min-height: 500px; }
  .flow { height: 390px; padding: 34px 12px; gap: 8px; }
  .node { min-height: 80px; padding: 12px 7px 8px 29px; }
  .node b { left: 7px; }
  .node span { font-size: 9px; }
  .node small { font-size: 7px; }
  .core-orbit { width: 92px; height: 92px; }
  .core-chip { width: 78px; height: 78px; padding: 8px; }
  .core-chip b { font-size: 8px; }
  .board-log { height: 63px; gap: 7px; font-size: 7px; }
  .board-log strong { font-size: 22px; }
  .proof-strip { grid-template-columns: 100px 1fr; }
  .proof-strip > span { padding-left: 14px; font-size: 8px; }
  .section { padding-block: 82px; }
  .service-card { grid-template-columns: 60px 1fr; }
  .service-card ul { grid-column: 2; }
  .work-heading { grid-template-columns: 1fr; gap: 25px; }
  .case-grid, .case-featured { grid-template-columns: 1fr; }
  .case, .case:last-child { grid-column: auto; min-height: 370px; }
  .order-screen { min-height: 390px; }
  .why-us, .contact, .fit { grid-template-columns: 1fr; }
  .why-visual { min-height: 420px; }
  .fit { gap: 1px; }
  .fit-card { min-height: 360px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 470px) {
  .trust-list { flex-direction: column; gap: 10px; }
  .system-board { margin-inline: -8px; }
  .flow-label { font-size: 7px; }
  .service-card { grid-template-columns: 1fr; }
  .service-card ul { grid-column: 1; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: 270px; }
  .process-list span { margin-bottom: 45px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-end { flex-direction: column; gap: 18px; }
}

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