:root {
  --bg: #0a0c10;
  --bg-soft: #11151b;
  --surface: #151a21;
  --ink: #f5f7fb;
  --muted: #9da6b3;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --blue: #4d7cff;
  --blue-light: #83a1ff;
  --acid: #c8ff45;
  --shell: min(1180px, calc(100% - 48px));
  --radius: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
address { font-style: normal; }
.shell { width: var(--shell); 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; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; color: #081016; background: var(--acid); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-header.is-scrolled { background: rgba(10, 12, 16, .9); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--blue); color: var(--blue-light); font-size: .9rem; font-weight: 800; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 9px; }
.brand-name { font-size: .9rem; font-weight: 800; letter-spacing: .09em; }
.brand-name span { color: var(--blue-light); }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: .9rem; font-weight: 600; }
.site-nav > a:not(.nav-cta) { color: #cbd2db; transition: color .2s ease; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: #fff; }
.nav-cta { padding: 11px 18px; border: 1px solid var(--line-strong); transition: border-color .2s ease, background .2s ease; }
.nav-cta:hover { border-color: var(--blue); background: rgba(77,124,255,.1); }
.menu-toggle { display: none; border: 0; background: none; color: inherit; }

.hero { min-height: 100vh; padding: 160px 0 38px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(77,124,255,.2), transparent 66%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10vw; align-items: center; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: #b8c0ca; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--acid); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
.hero h1 { max-width: 800px; margin-bottom: 28px; font-size: clamp(3.4rem, 7.2vw, 6.7rem); font-weight: 670; }
.hero h1 em { color: var(--blue-light); font-style: normal; }
.hero-lead { max-width: 690px; margin-bottom: 36px; color: #b4bcc7; font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; cursor: pointer; font-size: .9rem; font-weight: 750; letter-spacing: -.01em; transition: transform .2s var(--ease), background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: #638bff; }
.button-light { color: #0b0e12; background: #fff; }
.button-light:hover { background: var(--acid); }
.text-link { display: inline-flex; gap: 14px; align-items: center; color: #dfe4eb; font-size: .9rem; font-weight: 650; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.text-link:hover { border-color: var(--blue-light); }

.hero-system { position: relative; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(24,30,39,.92), rgba(12,15,20,.92)); box-shadow: 0 34px 90px rgba(0,0,0,.28); }
.hero-system::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.05); pointer-events: none; }
.system-header, .system-footer { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px; font: 700 .65rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; color: #8e99a7; }
.system-header { border-bottom: 1px solid var(--line); }
.system-footer { border-top: 1px solid var(--line); }
.status { color: var(--acid); }
.system-list { list-style: none; margin: 0; padding: 10px 28px 18px; }
.system-list li { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.system-list li:last-child { border-bottom: 0; }
.system-list > li > span { color: var(--blue-light); font: 700 .72rem/1 ui-monospace, monospace; }
.system-list strong { display: block; margin-bottom: 5px; font-size: 1.08rem; letter-spacing: -.02em; }
.system-list small { color: var(--muted); font-size: .82rem; }
.capability-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-strip span { padding: 17px 20px; color: #aeb6c0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; border-right: 1px solid var(--line); }
.capability-strip span:last-child { border-right: 0; }

.section { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 46px; align-items: start; margin-bottom: 64px; }
.section-heading .eyebrow { margin-top: 10px; }
.section-heading h2, .split-layout h2, .cta-panel h2 { font-size: clamp(2.3rem, 4.2vw, 4.2rem); font-weight: 620; }
.section-heading > p:last-child { color: var(--muted); max-width: 400px; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.service-card { min-height: 470px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(18,22,29,.64); transition: background .3s ease, transform .3s var(--ease); }
.service-card:last-child { border-right: 0; }
.service-card:hover { background: #171d26; transform: translateY(-5px); }
.service-number { color: var(--blue-light); font: 700 .72rem/1 ui-monospace, monospace; }
.service-card h3 { margin: 68px 0 20px; font-size: 1.75rem; font-weight: 620; }
.service-card p { color: var(--muted); }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; margin: 12px 0 34px; padding: 0; }
.tag-list li { padding: 6px 9px; border: 1px solid var(--line); color: #aeb6c0; font-size: .72rem; }
.service-card > a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 700; }
.service-card > a span { color: var(--blue-light); }

.approach-section { background: #f0f2f5; color: #101319; }
.approach-section .eyebrow { color: #4c5562; }
.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; }
.principle { display: grid; grid-template-columns: 42px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid rgba(12,18,24,.17); }
.principle:first-child { padding-top: 0; }
.principle > span { color: #285bed; font: 700 .75rem/1 ui-monospace, monospace; padding-top: 8px; }
.principle h3 { margin-bottom: 12px; font-size: 1.35rem; }
.principle p { margin-bottom: 0; color: #5b6470; }
.cta-section { padding-top: 0; }
.cta-panel { padding: 72px; position: relative; overflow: hidden; background: var(--blue); }
.cta-panel::after { content: "A"; position: absolute; right: 4%; bottom: -38%; color: rgba(255,255,255,.08); font-size: 25rem; font-weight: 900; line-height: 1; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .eyebrow { color: #e1e8ff; }
.cta-panel .eyebrow span { background: #fff; }
.cta-panel h2 { max-width: 700px; margin-bottom: 22px; }
.cta-panel > p:not(.eyebrow) { max-width: 600px; color: #dce5ff; }
.cta-panel .button { margin-top: 18px; }

.page-hero { padding: 190px 0 105px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.55fr .65fr; gap: 8vw; align-items: end; }
.page-hero h1, .contact-hero h1, .legal-hero h1 { margin-bottom: 0; font-size: clamp(3.2rem, 6.4vw, 6rem); font-weight: 640; }
.page-hero-grid > p { margin-bottom: 10px; color: var(--muted); font-size: 1.12rem; }
.service-detail { border-bottom: 1px solid var(--line); }
.service-detail-alt { background: #10141a; }
.detail-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; }
.detail-index, .section-label { color: var(--blue-light); font: 700 .72rem/1.4 ui-monospace, monospace; letter-spacing: .1em; }
.detail-copy h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 620; }
.detail-lead { max-width: 780px; color: #e4e8ee; font-size: clamp(1.3rem, 2.25vw, 1.85rem); line-height: 1.45; }
.detail-copy > p:not(.detail-lead) { max-width: 720px; color: var(--muted); }
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 52px; border-top: 1px solid var(--line); }
.deliverables span { padding: 18px 0; color: #cbd2dc; border-bottom: 1px solid var(--line); font-size: .9rem; }
.deliverables span:nth-child(odd) { margin-right: 24px; }
.compact-cta { padding-top: 90px; }

.about-story { background: #f0f2f5; color: #11151a; }
.story-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; }
.story-lead { max-width: 900px; font-size: clamp(1.8rem, 3.5vw, 3.15rem); line-height: 1.3; letter-spacing: -.035em; }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin-top: 55px; color: #59616c; }
.values-section .narrow { grid-template-columns: .7fr 1.5fr; }
.values-section .narrow h2 { grid-column: 2; }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.value-grid article { min-height: 250px; padding: 30px 40px 30px 0; border-bottom: 1px solid var(--line); }
.value-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.value-grid article:nth-child(even) { padding-left: 40px; }
.value-grid span { color: var(--blue-light); font: 700 .72rem/1 ui-monospace, monospace; }
.value-grid h3 { margin: 55px 0 14px; font-size: 1.55rem; }
.value-grid p { max-width: 470px; color: var(--muted); }
.company-facts { padding-top: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.fact-grid div { padding: 27px; border-right: 1px solid var(--line); }
.fact-grid div:last-child { border-right: 0; }
.fact-grid span, .fact-grid strong { display: block; }
.fact-grid span { margin-bottom: 8px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; }
.fact-grid strong { font-size: 1rem; }

.contact-hero { min-height: 80vh; padding: 190px 0 110px; display: flex; align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10vw; align-items: end; }
.contact-lead { max-width: 660px; margin: 28px 0 36px; color: var(--muted); font-size: 1.2rem; }
.contact-card { border: 1px solid var(--line-strong); background: var(--surface); }
.contact-row { padding: 24px 28px; display: grid; grid-template-columns: 80px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.contact-row > span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-row a:hover { color: var(--blue-light); }
.contact-note { display: flex; gap: 12px; align-items: center; padding: 20px 28px; color: #cbd2dc; font-size: .8rem; }
.contact-note p { margin: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(200,255,69,.1); }
.contact-expect { background: #f0f2f5; color: #101319; }
.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; border-top: 1px solid rgba(10,15,20,.2); }
.expect-grid div { min-height: 180px; padding: 28px 30px 0 0; border-right: 1px solid rgba(10,15,20,.2); }
.expect-grid div:not(:first-child) { padding-left: 30px; }
.expect-grid div:last-child { border-right: 0; }
.expect-grid span { color: #285bed; font: 700 .72rem/1 ui-monospace, monospace; }
.expect-grid p { max-width: 270px; margin-top: 54px; font-size: 1.1rem; line-height: 1.45; }

.legal-hero { padding: 190px 0 90px; border-bottom: 1px solid var(--line); }
.legal-shell { max-width: 840px; }
.legal-hero > .legal-shell > p:last-child { margin: 24px 0 0; color: var(--muted); }
.legal-content { padding: 80px 0 120px; }
.prose { color: #b4bdc8; }
.prose > p:first-child { color: #eef1f5; font-size: 1.2rem; }
.prose h2 { margin: 52px 0 14px; color: var(--ink); font-size: 1.5rem; letter-spacing: -.025em; }
.prose a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie-table { overflow-x: auto; margin: 28px 0; }
.cookie-table table { width: 100%; min-width: 650px; border-collapse: collapse; }
.cookie-table th, .cookie-table td { padding: 16px; text-align: left; border: 1px solid var(--line); }
.cookie-table th { color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }

.error-page { min-height: 90vh; padding: 170px 0 100px; display: flex; align-items: center; }
.error-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9vw; align-items: center; }
.error-code { color: transparent; font-size: clamp(6rem, 16vw, 14rem); font-weight: 850; line-height: .8; -webkit-text-stroke: 1px rgba(131,161,255,.65); }
.error-grid h1 { margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.7rem); }
.error-grid > div:last-child > p:not(.eyebrow) { max-width: 620px; margin-bottom: 35px; color: var(--muted); font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-top { padding: 68px 0 55px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.footer-brand { margin-bottom: 20px; }
.footer-top > div:first-child > p { color: var(--muted); font-size: .9rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links h2 { margin-bottom: 20px; color: #7e8895; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-links a, .link-button { display: block; width: fit-content; margin: 10px 0; color: #cbd2db; font-size: .85rem; }
.footer-links a:hover, .link-button:hover { color: #fff; }
.link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.footer-links address { color: #cbd2db; font-size: .85rem; line-height: 1.65; }
.footer-bottom { padding: 19px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #717b88; font-size: .72rem; }
.cookie-banner { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(550px, calc(100% - 48px)); padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; color: #11151a; background: #f5f7fa; box-shadow: 0 22px 70px rgba(0,0,0,.45); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-size: 1rem; }
.cookie-banner p { margin: 6px 0 0; color: #4c5663; font-size: .78rem; line-height: 1.5; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner .button { background: #101319; color: #fff; white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }

@media (max-width: 980px) {
  .hero-grid, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-system { max-width: 620px; margin-top: 20px; }
  .section-heading { grid-template-columns: 1fr 1.5fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .detail-grid, .story-grid { grid-template-columns: .4fr 1.6fr; }
  .contact-card { max-width: 620px; }
  .contact-hero { min-height: auto; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 30px, 1180px); }
  body.menu-open { overflow: hidden; }
  .header-inner { height: 72px; }
  .menu-toggle { display: grid; gap: 7px; width: 42px; height: 42px; padding: 12px 8px; position: relative; z-index: 2; }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; padding: 120px 24px 30px; display: none; align-items: stretch; flex-direction: column; gap: 0; background: #0a0c10; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 19px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; }
  .site-nav .nav-cta { margin-top: 25px; padding: 16px 18px; font-size: 1rem; text-align: center; }
  .hero { padding-top: 128px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-grid { gap: 60px; }
  .capability-strip { grid-template-columns: 1fr; margin-top: 65px; }
  .capability-strip span { border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-strip span:last-child { border-bottom: 0; }
  .section { padding: 82px 0; }
  .section-heading, .split-layout, .detail-grid, .story-grid, .values-section .narrow { grid-template-columns: 1fr; gap: 28px; }
  .section-heading > p:last-child, .values-section .narrow h2 { grid-column: auto; }
  .service-card { padding: 25px; }
  .service-card h3 { margin-top: 50px; }
  .cta-panel { padding: 45px 26px; }
  .cta-panel::after { font-size: 16rem; }
  .page-hero, .legal-hero { padding: 140px 0 70px; }
  .page-hero h1, .contact-hero h1, .legal-hero h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .deliverables { grid-template-columns: 1fr; }
  .deliverables span:nth-child(odd) { margin-right: 0; }
  .story-columns, .value-grid, .fact-grid, .expect-grid { grid-template-columns: 1fr; }
  .value-grid article, .value-grid article:nth-child(even) { min-height: 220px; padding: 28px 0; border-right: 0; }
  .fact-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-grid div:last-child { border-bottom: 0; }
  .contact-hero { padding: 145px 0 80px; }
  .contact-row { grid-template-columns: 1fr; gap: 5px; }
  .expect-grid div, .expect-grid div:not(:first-child) { min-height: auto; padding: 25px 0; border-right: 0; border-bottom: 1px solid rgba(10,15,20,.2); }
  .expect-grid p { margin: 28px 0 0; }
  .error-grid { grid-template-columns: 1fr; }
  .error-code { font-size: 7rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { gap: 12px; flex-direction: column; }
  .cookie-banner { right: 15px; bottom: 15px; width: calc(100% - 30px); grid-template-columns: 1fr; }
  .cookie-banner .button { width: 100%; }
}

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

