/* Foundations */
:root { color-scheme: dark; --bg: #0b1220; --surface: #121e31; --text: #f0f5ff; --muted: #afbed3; --accent: #80b9ff; --line: #293c57; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not([hidden]) { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 550; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 108px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 16px; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; background: rgb(11 18 32 / 92%); backdrop-filter: blur(16px); transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 650; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { width: 33px; height: 33px; color: var(--accent); }
.brand-light { font-weight: 400; }
.brand-llc { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.desktop-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 24px; }
.desktop-nav a { white-space: nowrap; color: var(--muted); font-size: 16px; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .text-link:hover { color: var(--accent); }
.header-contact { display: flex; align-items: center; gap: 26px; border: 1px solid #3d5b80; padding: 9px 17px; border-radius: 5px; font-size: 16px; transition: border-color .2s, background .2s; }
.header-contact:hover { border-color: var(--accent); background: #192d49; }
.header-contact span { color: var(--accent); font-size: 19px; }

/* Hero and system illustration */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; padding-top: 86px; padding-bottom: 94px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(128 185 255 / 12%); }
h1 { margin-top: 26px; font-size: clamp(58px, 6.2vw, 84px); letter-spacing: -.065em; line-height: 1.06; }
h1 > span { color: var(--accent); }
.hero-description { max-width: 470px; margin-top: 25px; font-size: 18px; line-height: 1.85; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 23px; border: 1px solid transparent; border-radius: 5px; padding: 14px 20px; font-size: 16px; font-weight: 650; line-height: 1.5; transition: transform .2s, background .2s, box-shadow .2s; }
.button-primary { background: var(--accent); color: #0b1b33; }
.button-primary:hover { transform: translateY(-2px); background: #a6cfff; box-shadow: 0 6px 25px rgb(128 185 255 / 18%); }
.button span { font-size: 20px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; transition: color .2s; }
.text-link span { font-size: 17px; }
.hero-note { margin-top: 23px; color: #a1b4ce; font-size: 14px; letter-spacing: .02em; }
.system-visual { position: relative; width: 100%; max-width: 480px; justify-self: end; }
.visual-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(ellipse, rgb(80 149 255 / 15%), transparent 68%); pointer-events: none; }
.system-map { position: relative; width: 100%; height: auto; overflow: visible; }
.system-map text { fill: #a1bde0; font-family: var(--font); font-size: 12px; letter-spacing: 1px; }
.map-node > rect:first-child { fill: #142743; stroke: #375c8a; }
.map-node path, .map-node > rect:not(:first-child) { stroke: #b7d6ff; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.orbit-highlight, .orbit-spark { transform-origin: 240px 240px; animation: orbit 55s linear infinite; }
.visual-caption { display: flex; align-items: center; justify-content: center; gap: 7px; color: #a1b4ce; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: -8px; }
.visual-caption span { width: 4px; height: 4px; border-radius: 50%; background: #80b9ff; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* A quiet bridge between the introduction and services */
.principles-band { border-block: 1px solid var(--line); }
.principles-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding-block: 22px; font-size: 16px; }
.principles-inner > p { color: var(--text); font-size: 20px; font-weight: 500; }
.principles-inner > div { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; color: #c5d8f2; }
.band-cross { color: #7395c0; font-size: 17px; font-weight: 300; }

/* Expertise */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 38px; }
h2 { font-size: clamp(30px, 3.2vw, 43px); letter-spacing: -.045em; }
.section-heading h2, .approach h2 { margin-top: 16px; }
.section-heading > p { max-width: 290px; color: var(--muted); font-size: 16px; line-height: 1.8; padding-bottom: 3px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 31px 32px 28px; transition: border-color .25s, background .25s; }
.service-card:hover { border-color: #537fb8; background: #172942; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.card-top svg { width: 29px; height: 29px; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card-number { color: #a1b4ce; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.service-card h3 { font-size: 22px; letter-spacing: -.035em; }
.service-card > p { max-width: 460px; margin-top: 13px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { padding: 4px 9px; border: 1px solid #334e70; border-radius: 4px; color: #b8cbe4; font-size: 12px; letter-spacing: .015em; }
.security-card { border-color: #3d6292; background: linear-gradient(120deg, #192e4c, #121e31 75%); }
.security-card .card-number { color: var(--accent); }

/* Approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; border-top: 1px solid var(--line); padding-top: 84px; }
.approach-intro > p:last-child { max-width: 335px; color: var(--muted); font-size: 16px; line-height: 1.85; margin-top: 21px; }
.approach-steps { list-style: none; margin: 0; padding: 0; }
.approach-steps li { display: flex; gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.approach-steps li:first-child { padding-top: 0; }
.approach-steps li:last-child { border-bottom: none; padding-bottom: 0; }
.step-number { flex-shrink: 0; color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.approach-steps h3 { font-size: 18px; letter-spacing: -.025em; }
.approach-steps p { margin-top: 10px; max-width: 370px; color: var(--muted); font-size: 16px; line-height: 1.8; }

/* Contact and footer */
.contact { padding-bottom: 74px; }
.contact-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px; border: 1px solid #3d6292; border-radius: 10px; background: radial-gradient(ellipse at 90% 100%, rgb(80 149 255 / 15%), transparent 65%), #14243b; }
.contact h2 { margin-top: 15px; font-size: clamp(27px, 3vw, 38px); }
.contact-panel > div > p:last-child { color: #b8cbe4; font-size: 16px; line-height: 1.85; margin-top: 15px; }
.contact-actions { min-width: 0; flex-shrink: 0; text-align: center; }
.contact-actions .button { width: 100%; }
.email-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; color: #b8cbe4; font-size: 14px; }
.email-row a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.copy-email { display: inline-flex; padding: 5px; background: none; color: #b8cbe4; border: none; border-radius: 3px; }
.copy-email:hover { color: var(--accent); background: #244268; }
.copy-email[hidden] { display: none; }
.copy-email svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.2; }
.copy-status { position: absolute; margin-top: 5px; transform: translateX(-50%); color: var(--accent); font-size: 13px; white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 96px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.footer-brand span { color: #a1b4ce; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.site-footer > p { color: #a1b4ce; font-size: 13px; }
.back-top { display: flex; align-items: center; gap: 15px; color: #afbed3; font-size: 13px; }
.back-top:hover { color: var(--accent); }

/* Progressive enhancement: content stays visible without JavaScript. */
[data-reveal].reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

/* Tablet and mobile */
@media (min-width: 1600px) { .hero { padding-block: 110px 120px; } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 20px; }
  .desktop-nav { gap: 20px; margin-right: 0; }
  .hero { gap: 8px; padding-top: 65px; padding-bottom: 70px; }
  h1 { font-size: clamp(52px, 7vw, 70px); }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 20px; }
  .system-visual { margin-right: -12px; }
  .principles-inner { flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
  .principles-inner > div { gap: 12px 18px; }
  .section { padding-block: 78px; }
  .service-card { padding: 25px; }
  .approach { gap: 40px; }
  .contact-panel { padding: 36px; gap: 24px; }
  .contact h2 { font-size: 30px; }
}
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-wrap: wrap; padding-block: 24px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 82px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 78px; gap: 16px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-mark { width: 29px; height: 29px; }
  .desktop-nav { display: none; }
  .header-contact { font-size: 15px; gap: 13px; padding: 6px 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; padding-bottom: 40px; gap: 20px; }
  .hero .eyebrow { font-size: 13px; }
  h1 { margin-top: 22px; font-size: clamp(49px, 10.8vw, 73px); }
  .hero-description { max-width: 460px; font-size: 17px; margin-top: 22px; }
  .hero-actions { margin-top: 26px; gap: 23px; }
  .button { padding: 13px 16px; font-size: 15px; gap: 15px; }
  .text-link { font-size: 14px; gap: 9px; }
  .hero-note { margin-top: 20px; }
  .system-visual { max-width: 340px; justify-self: center; margin-right: 0; margin-top: 8px; }
  .visual-caption { margin-top: -3px; font-size: 12px; }
  .principles-inner { gap: 14px; padding-block: 24px; font-size: 16px; }
  .principles-inner > p { font-size: 18px; }
  .principles-inner > div { flex-direction: column; gap: 8px; font-size: 15px; }
  .principles-inner .band-cross { display: none; }
  .band-cross { font-size: 15px; }
  .section { padding-block: 62px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .section-heading > p { max-width: 390px; font-size: 16px; }
  .eyebrow { font-size: 13px; }
  h2 { font-size: 34px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 27px 25px; }
  .card-top { margin-bottom: 25px; }
  .service-card h3 { font-size: 22px; }
  .service-card > p { font-size: 16px; }
  .approach { grid-template-columns: 1fr; gap: 34px; }
  .approach-intro > p:last-child { max-width: 390px; font-size: 16px; }
  .contact { padding-bottom: 48px; }
  .contact-panel { flex-direction: column; align-items: flex-start; gap: 28px; padding: 30px 25px 36px; }
  .contact h2 { font-size: 30px; max-width: 310px; }
  .contact-actions { width: 100%; max-width: 290px; text-align: center; }
  .contact-panel > div > p:last-child { font-size: 15px; }
  .site-footer { flex-wrap: wrap; gap: 18px; padding-block: 27px; }
  .footer-brand { order: 0; }
  .back-top { margin-left: auto; order: 1; }
  .site-footer > p { order: 2; width: 100%; font-size: 13px; }
}
@media (max-width: 360px) {
  .brand-llc { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal].reveal-ready { opacity: 1; transform: none; }
}
