:root {
  --ink: #07111f;
  --ink-soft: #0b192a;
  --panel: #10243a;
  --line: rgba(173, 214, 255, 0.15);
  --text: #f3f8fd;
  --muted: #a9bed1;
  --cyan: #53dbff;
  --cyan-strong: #20c7f4;
  --mint: #7cf2cb;
  --white: #ffffff;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.shell { width: min(calc(100% - 40px), 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; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-header.is-scrolled { background: rgba(7, 17, 31, .88); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; }
.brand > span > span { color: var(--cyan); }
.brand-mark { width: 35px; height: 35px; }
.brand-mark path:first-child { fill: rgba(83, 219, 255, .13); stroke: var(--cyan); stroke-width: 1.5; }
.brand-mark path:nth-child(2) { fill: none; stroke: var(--mint); stroke-width: 1.5; }
.brand-mark circle { fill: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 650; transition: color .2s ease; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 7px; }
.site-nav .nav-cta { color: var(--ink); background: var(--cyan); padding: 10px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { color: var(--ink); background: var(--mint); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--white); }

.hero { min-height: 720px; position: relative; overflow: hidden; display: grid; align-items: center; padding: 150px 0 90px; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% + 110px); width: 1px; background: var(--line); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; gap: 88px; align-items: center; }
.section-label { margin: 0 0 18px; color: var(--cyan); font: 750 .76rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(3.4rem, 6.5vw, 6rem); line-height: .98; letter-spacing: -.062em; }
.hero-lede { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--cyan); box-shadow: 0 14px 34px rgba(32, 199, 244, .2); }
.button-primary:hover { background: var(--mint); }
.text-link { min-height: 50px; display: inline-flex; align-items: center; gap: 9px; padding: 0 8px; color: var(--text); font-weight: 750; text-decoration-color: rgba(83,219,255,.55); text-underline-offset: 5px; }
.button-light { color: var(--ink); background: var(--white); }

.engagement-note { padding-left: 48px; }
.note-kicker { max-width: 240px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.engagement-note ul { margin: 0; padding: 0; list-style: none; }
.engagement-note li { display: grid; grid-template-columns: 34px 1fr; column-gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); }
.engagement-note li:last-child { border-bottom: 1px solid var(--line); }
.engagement-note li span { grid-row: 1 / 3; color: var(--cyan); font: 700 .72rem ui-monospace, monospace; }
.engagement-note li b { font-size: 1.04rem; }
.engagement-note li small { color: var(--muted); font-size: .84rem; }

.section { padding: 120px 0; }
.section-alt { background: var(--ink-soft); border-block: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2, .principles-panel h2, .contact-panel h2 { margin-bottom: 18px; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.052em; }
.section-heading > p:last-child, .contact-panel > p { max-width: 630px; color: var(--muted); font-size: 1.08rem; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: .9fr 1.15fr .95fr; gap: 42px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { margin-bottom: 0; font-size: 1.45rem; }
.service-code { margin-bottom: 10px; color: var(--cyan); font: 700 .7rem ui-monospace, monospace; letter-spacing: .08em; }
.service-row > p { color: var(--muted); }
.service-row ul { display: grid; align-content: start; gap: 7px; margin: 0; padding: 0; list-style: none; color: #c5d7e6; font-size: .88rem; }
.service-row li::before { content: "·"; margin-right: 8px; color: var(--mint); }

.approach-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--cyan); font: 700 .77rem ui-monospace, monospace; }
.process-list h3 { margin-bottom: 6px; font-size: 1.35rem; }
.process-list p { max-width: 540px; margin-bottom: 0; color: var(--muted); }
.principles-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding: clamp(32px, 6vw, 68px); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.principles-list { display: grid; align-content: center; }
.principles-list p { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.principles-list p:first-child { border-top: 1px solid var(--line); }
.principles-list b { display: block; color: var(--text); }
.contact-section { padding-top: 30px; }
.contact-panel { padding: clamp(42px, 8vw, 92px); border-radius: 8px; color: var(--ink); background: var(--cyan); }
.contact-panel .section-label, .contact-panel > p { color: #17344b; }
.contact-panel h2 { max-width: 780px; }
.contact-panel .button { margin-top: 18px; }
.site-footer { padding: 32px 0 42px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; color: var(--muted); font-size: .85rem; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

.page-hero { min-height: 600px; display: grid; align-items: center; padding: 150px 0 95px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; }
.narrow-copy { max-width: 940px; margin-inline: auto; }
.detail-section { border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.detail-heading { position: sticky; top: 120px; align-self: start; }
.detail-heading h2 { margin-bottom: 18px; font-size: clamp(2.4rem, 4.7vw, 4rem); line-height: 1.03; letter-spacing: -.048em; }
.detail-heading > p:last-child { max-width: 470px; color: var(--muted); }
.detail-body { display: grid; gap: 18px; }
.detail-body h3 { margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.12rem; }
.detail-body h3:first-child { margin-top: 0; }
.check-list { display: grid; gap: 13px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--mint); }
.compact-contact { padding-block: clamp(42px, 6vw, 72px); }
.editorial-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.editorial-grid h2 { max-width: 520px; font-size: clamp(2.35rem, 4.7vw, 4.2rem); line-height: 1.04; letter-spacing: -.05em; }
.prose { max-width: 690px; font-size: 1.08rem; }
.prose p { color: var(--muted); }
.fit-grid { display: grid; grid-template-columns: 1.2fr .8fr; border-top: 1px solid var(--line); }
.fit-grid article { min-height: 220px; padding: 30px 40px 30px 0; border-bottom: 1px solid var(--line); }
.fit-grid article:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
.fit-grid h3 { font-size: 1.3rem; }
.fit-grid p { max-width: 460px; color: var(--muted); }
.principles-list.standalone { align-content: start; }
.contact-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 100px; align-items: center; }
.contact-brief { padding-left: 48px; border-left: 1px solid var(--line); }
.contact-brief ol { margin: 0; padding: 0; list-style: none; }
.contact-brief li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-brief li:last-child { border-bottom: 1px solid var(--line); }
.contact-brief li > span { color: var(--cyan); font: 700 .72rem ui-monospace, monospace; }
.contact-brief p { margin: 0; }
.contact-brief b, .contact-brief small { display: block; }
.contact-brief small { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.legal-hero { min-height: 460px; }
.legal-copy { max-width: 790px; }
.legal-copy h2 { margin: 46px 0 12px; font-size: 1.45rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { color: var(--muted); }
.legal-copy a { color: var(--cyan); }

.reveal { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 18px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,17,31,.98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-cta { text-align: center; margin-top: 5px; }
  .hero { min-height: auto; }
  .hero-grid, .approach-grid, .principles-panel { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { max-width: 720px; }
  .hero::before { display: none; }
  .engagement-note { max-width: 620px; padding-left: 0; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row ul { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .detail-grid, .editorial-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .detail-heading { position: static; }
  .contact-brief { padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .hero { padding-top: 122px; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .section { padding: 84px 0; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-row ul { grid-column: auto; margin-top: 5px; }
  .button { width: 100%; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-grid article, .fit-grid article:nth-child(even) { min-height: 0; padding: 26px 0; border-left: 0; }
  .page-hero { min-height: 520px; }
}

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