:root {
  color-scheme: dark;
  --bg: #0b0e0c;
  --bg-soft: #101411;
  --panel: #131815;
  --panel-light: #171d19;
  --text: #eff2eb;
  --muted: #a0aaa0;
  --subtle: #6e786f;
  --line: rgba(220, 235, 220, .12);
  --accent: #dd91ff;
  --accent-dark: #bd6ee8;
  --max-width: 77.5rem;
  --side-pad: clamp(1.375rem, 5.3vw, 5.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.625rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--side-pad); }
.section-pad { padding-block: clamp(5.5rem, 10vw, 9rem); }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: 0.75rem; transform: translateY(-160%); padding: 0.625rem 0.875rem; color: var(--bg); background: var(--accent); border-radius: 0.25rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; border-bottom: 0.0625rem solid rgba(220, 235, 220, .08); }
.header-inner { min-height: 5.125rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 1.4375rem; line-height: 1; font-weight: 750; letter-spacing: -.075em; }
.wordmark span { color: var(--accent); font-weight: 500; }
.primary-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.8vw, 3.25rem); color: #c0c7bf; font-size: 1rem; }
.primary-nav > a:not(.nav-cta) { transition: color .2s ease; }
.primary-nav > a:not(.nav-cta):hover, .back-to-top:hover { color: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; border: 0.0625rem solid var(--line); border-radius: 0.1875rem; color: var(--text); transition: border-color .2s ease, background .2s ease; }
.nav-cta:hover { border-color: var(--accent); background: rgba(221, 145, 255, .07); }
.nav-cta span { color: var(--accent); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 41.25rem; padding-top: clamp(4.75rem, 8vw, 7rem); padding-bottom: 5.375rem; overflow: hidden; }
.hero::before { position: absolute; z-index: 0; inset: 0; pointer-events: none; content: ""; background: radial-gradient(ellipse at 78% 43%, rgba(151, 75, 185, .13), transparent 38%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(3.125rem, 8vw, 7.1875rem); }
.hero-copy { max-width: 38.75rem; padding-block: 1.125rem; }
.eyebrow { margin: 0; color: var(--accent); font-size: 1rem; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; }
.eyebrow-dot { display: inline-block; width: 0.375rem; height: 0.375rem; margin: 0 0.5625rem 0.0625rem 0; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0.75rem rgba(221, 145, 255, .7); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 43.125rem; margin: 1.5625rem 0 1.375rem; font-size: clamp(3rem, 6.4vw, 5.1875rem); line-height: .99; letter-spacing: -.065em; font-weight: 560; }
h1 em, h2 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-intro { max-width: 31.875rem; margin-bottom: 1.9375rem; color: #b4bdb3; font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1.625rem; flex-wrap: wrap; }
.button { min-height: 3.125rem; display: inline-flex; justify-content: center; align-items: center; gap: 1.375rem; padding: 0 1.125rem; border: 0.0625rem solid transparent; border-radius: 0.1875rem; font-size: 1rem; line-height: 1.2; font-weight: 650; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-0.125rem); }
.button-primary { color: #12170c; background: var(--accent); }
.button-primary:hover { background: #e9baff; }
.button span { font-size: 1rem; }
.text-link { display: inline-flex; gap: 0.6875rem; align-items: center; color: #c4cbc1; font-size: 1rem; transition: color .2s ease; }
.text-link:hover { color: var(--accent); }
.text-link span { color: var(--accent); font-size: 1rem; }
.hero-note { display: flex; gap: 0.6875rem; align-items: center; margin-top: 3.25rem; color: var(--muted); font-size: 1rem; letter-spacing: .035em; }
.note-line { width: 1.75rem; height: 0.0625rem; background: var(--accent-dark); }

.hero-art { position: relative; min-height: 26.875rem; display: flex; align-items: center; justify-content: center; }
.system-map { position: relative; width: min(100%, 35rem); padding: clamp(1.25rem, 2.5vw, 2rem); overflow: hidden; border: 0.0625rem solid rgba(221, 239, 216, .13); border-radius: 0.375rem; background: linear-gradient(145deg, #151a16, #101410 72%, #0e120f); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .2); }
.system-map::after { position: absolute; right: -8rem; bottom: -9rem; width: 20rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(151, 75, 185, .1), transparent 68%); content: ""; pointer-events: none; }
.system-map-header, .system-map-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #a5ada5; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.system-map-label { display: inline-flex; align-items: center; gap: .625rem; }
.system-map-label i { width: .5rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent-dark); }
.system-map-index { color: #778176; }
.system-map-copy { position: relative; z-index: 1; margin-block: clamp(1.75rem, 4vw, 2.75rem); }
.system-map-copy > span { display: block; margin-bottom: .75rem; color: #a5ada5; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.system-map-copy p { max-width: 25rem; margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 550; }
.system-map-copy em { color: var(--accent-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.system-map-flow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 1.5vw, 1.125rem); }
.system-map-flow::before { position: absolute; top: 1.1875rem; left: 1.1875rem; right: calc(33.333% - 1.1875rem); border-top: 0.0625rem solid rgba(221, 145, 255, .22); content: ""; }
.system-map-step { position: relative; display: grid; justify-items: start; align-content: start; gap: .625rem; min-width: 0; }
.system-map-node { position: relative; z-index: 1; width: 2.375rem; height: 2.375rem; display: grid; place-items: center; border: 0.0625rem solid rgba(221, 145, 255, .25); border-radius: .25rem; background: #151a16; color: var(--accent-dark); font-family: ui-monospace, monospace; font-size: 1rem; line-height: 1; }
.system-map-step:nth-child(2) .system-map-node { border-color: rgba(221, 145, 255, .38); background: #1c1820; color: var(--accent); }
.system-map-step strong, .system-map-step small { display: block; font-size: 1rem; line-height: 1.5; }
.system-map-step strong { color: #e6ebe2; font-weight: 600; }
.system-map-step small { color: #a5ada5; }
.system-map-footer { justify-content: flex-start; margin-top: 2rem; padding-top: 1rem; border-top: 0.0625rem solid rgba(220, 235, 220, .1); color: var(--muted); letter-spacing: .02em; text-transform: none; }
.system-map-mark { margin-left: auto; color: var(--accent-dark); letter-spacing: .08em; text-transform: uppercase; }
.hero-bottom { position: absolute; right: 0; bottom: 1.75rem; left: 0; display: flex; align-items: center; gap: 0.875rem; color: #a5ada5; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-bottom-rule { width: 2.625rem; height: 0.0625rem; background: #374035; }

.intro { border-top: 0.0625rem solid var(--line); border-bottom: 0.0625rem solid var(--line); background: #0e120f; }
.intro-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9%; }
.section-index { padding-top: 0.75rem; }
.eyebrow > span { display: inline-block; margin-right: 0.75rem; color: #a5ada5; }
.intro-content h2, .section-heading h2, .approach-heading h2, .contact-copy h2 { max-width: 47.5rem; margin: 0 0 1.6875rem; font-size: clamp(2.25rem, 4.4vw, 3.625rem); line-height: 1.05; letter-spacing: -.055em; font-weight: 520; }
.intro-content > p { max-width: 42.5rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }

.capabilities { background: var(--bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2.5rem; margin-bottom: 3.375rem; }
.section-heading .eyebrow, .approach-heading .eyebrow, .contact-copy .eyebrow { margin-bottom: 1.4375rem; }
.section-heading h2 { margin-bottom: 0; }
.section-aside { max-width: 16.875rem; margin: 0 0 0.3125rem; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 0.0625rem solid var(--line); }
.capability-card { min-height: 20.25rem; display: flex; flex-direction: column; padding: clamp(1.4375rem, 3vw, 2.25rem); border-right: 0.0625rem solid var(--line); transition: background .25s ease; }
.capability-card:last-child { border-right: 0; }
.capability-card:hover { background: #101511; }
.capability-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.3125rem; }
.capability-number { color: #a9b3a7; font-size: 1rem; letter-spacing: .1em; }
.line-icon { width: 2.375rem; height: 2.375rem; display: grid; place-items: center; color: var(--accent); border: 0.0625rem solid rgba(221, 145, 255, .25); border-radius: 0.1875rem; font-family: ui-monospace, monospace; font-size: 1rem; }
.icon-window { position: relative; align-content: start; padding: 0.5rem 0.375rem; }
.icon-window::before { content: ""; width: 1.4375rem; height: 0.0625rem; margin-bottom: 0.1875rem; background: rgba(221, 145, 255, .6); }
.icon-window i { width: 1.4375rem; height: 0.9375rem; border: 0.0625rem solid rgba(221, 145, 255, .6); border-radius: 0.0625rem; }
.icon-nodes { display: flex; align-items: center; justify-content: center; gap: 0.1875rem; }
.icon-nodes i { position: relative; width: 0.375rem; height: 0.375rem; border: 0.0625rem solid var(--accent); border-radius: 50%; }
.icon-nodes i:nth-child(2) { width: 0.5rem; height: 0.5rem; background: rgba(221, 145, 255, .25); }
.icon-nodes i:not(:last-child)::after { position: absolute; top: 0.125rem; left: 0.3125rem; width: 0.25rem; border-top: 0.0625rem solid rgba(221, 145, 255, .5); content: ""; }
.capability-card h3 { margin: 0 0 0.6875rem; font-size: 1.25rem; font-weight: 520; letter-spacing: -.025em; }
.capability-card > p { min-height: 5.125rem; margin: 0 0 1.5rem; color: #9aa49a; font-size: 1rem; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4375rem; margin: auto 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 0.3125rem 0.5rem; color: #94a08f; border: 0.0625rem solid rgba(219, 235, 216, .1); border-radius: 0.125rem; font-size: 1rem; line-height: 1.4; }
.capabilities-foot { display: flex; gap: 0.9375rem; align-items: center; max-width: 40rem; margin: 1.75rem auto 0; color: #8e998e; text-align: center; }
.capabilities-foot p { margin: 0; font-size: 1rem; line-height: 1.7; }
.foot-mark { color: var(--accent); font-size: 1.0625rem; }

.approach { border-block: 0.0625rem solid var(--line); background: #0e120f; }
.approach-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 12%; }
.approach-heading h2 { margin-bottom: 1.4375rem; }
.approach-lead { max-width: 19.375rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.steps { border-top: 0.0625rem solid var(--line); }
.step { min-height: 5.8125rem; display: grid; grid-template-columns: 2.375rem 1fr 1.375rem; gap: 0.875rem; align-items: center; border-bottom: 0.0625rem solid var(--line); }
.step-number { align-self: start; padding-top: 1.625rem; color: #71806b; font-size: 1rem; }
.step h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 550; }
.step p { margin: 0; color: #8f9a8f; font-size: 1rem; line-height: 1.6; }
.step-mark { color: var(--accent); font-size: 1rem; opacity: .7; }

.contact { position: relative; overflow: hidden; }
.contact::after { position: absolute; top: -40%; right: -12%; z-index: 0; width: 55vw; max-width: 48.75rem; aspect-ratio: 1; border: 0.0625rem solid rgba(221, 145, 255, .07); border-radius: 50%; box-shadow: 0 0 0 4.25rem rgba(221, 145, 255, .025), 0 0 0 8.5rem rgba(221, 145, 255, .016); content: ""; pointer-events: none; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 12%; }
.contact-copy h2 { margin-bottom: 1.375rem; }
.contact-copy > p:not(.eyebrow) { max-width: 23.75rem; margin-bottom: 2.25rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.contact-aside { display: flex; gap: 0.625rem; align-items: center; color: #889387; font-size: 1rem; }
.contact-aside-mark { color: var(--accent); font-size: 1.0625rem; }
.contact-form { padding: clamp(1.5rem, 3.8vw, 2.625rem); border: 0.0625rem solid var(--line); border-radius: 0.25rem; background: rgba(18, 23, 19, .82); box-shadow: 0 1.125rem 3.75rem rgba(0, 0, 0, .12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1.1875rem; }
.field > span { display: block; margin-bottom: 0.5rem; color: #c6cec3; font-size: 1rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 2.8125rem; padding: 0.6875rem 0.75rem; color: var(--text); border: 0.0625rem solid rgba(220, 235, 220, .14); border-radius: 0.125rem; outline: none; background: rgba(10, 14, 11, .68); font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.field input::placeholder, .field textarea::placeholder { color: #646e64; }
.field select { color: #a8b1a7; }
.field select:invalid { color: #646e64; }
.field textarea { min-height: 6.5625rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(221, 145, 255, .76); box-shadow: 0 0 0 0.125rem rgba(221, 145, 255, .12); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 0.0625rem solid transparent; }
.optional { display: inline !important; margin-left: 0.3125rem; color: #778176 !important; font-size: 1rem !important; }
.form-submit-row { display: flex; align-items: center; gap: 1.0625rem; flex-wrap: wrap; }
.submit-button { min-height: 2.875rem; }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.form-privacy { max-width: 13.125rem; margin: 0; color: #a2aca0; font-size: 1rem; line-height: 1.55; }
.form-status { min-height: 1.125rem; margin: 0.75rem 0 0; color: var(--accent); font-size: 1rem; line-height: 1.6; }
.form-status[data-state="error"] { color: #ffb3a8; }

.site-footer { border-top: 0.0625rem solid var(--line); background: #090c0a; }
.footer-main { min-height: 6.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer-wordmark { font-size: 1.25rem; }
.footer-main > p { margin: 0; color: #879187; font-size: 1rem; }
.back-to-top { display: inline-flex; align-items: center; gap: 0.625rem; color: #9ca69b; font-size: 1rem; transition: color .2s ease; }
.back-to-top span { color: var(--accent); font-size: 1rem; }
.footer-legal { min-height: 3.0625rem; display: flex; align-items: center; justify-content: space-between; border-top: 0.0625rem solid rgba(220, 235, 220, .07); color: #a2aca0; font-size: 1rem; }

:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.25rem; }

@media (min-width: 90em) {
  .hero { min-height: 45.3125rem; }
  .hero-art { min-height: 30.3125rem; }
}

@media (max-width: 56.25em) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 1.75rem; }
  .hero-art { min-height: 23.125rem; }
  .system-map { padding: 1.4375rem; }
  .intro-grid, .approach-grid, .contact-grid { gap: 7%; }
  .capability-card { padding: 1.5rem 1.1875rem; }
}

@media (max-width: 42.5em) {
  html { scroll-padding-top: 4.5rem; }
  .section-pad { padding-block: 5.125rem; }
  .header-inner { min-height: 4.375rem; }
  .wordmark { font-size: 1.3125rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.6875rem; padding: 0.625rem 0 0.625rem 0.75rem; color: var(--text); border: 0; background: transparent; cursor: pointer; }
  .menu-toggle-label { font-size: 1rem; }
  .menu-icon { width: 1.125rem; display: grid; gap: 0.3125rem; }
  .menu-icon i { display: block; height: 0.0625rem; background: var(--accent); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(0.1875rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-0.1875rem) rotate(-45deg); }
  .primary-nav { position: absolute; top: 4.3125rem; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 0.5rem var(--side-pad) 1.25rem; border-bottom: 0.0625rem solid var(--line); background: #0d110e; }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav > a:not(.nav-cta) { padding: 0.8125rem 0; border-bottom: 0.0625rem solid rgba(220, 235, 220, .08); }
  .nav-cta { justify-content: space-between; margin-top: 0.875rem; }
  .hero { min-height: auto; padding-top: 3.75rem; padding-bottom: 5rem; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0.625rem; }
  .hero-copy { padding: 0; }
  h1 { max-width: 35rem; margin-top: 1.3125rem; font-size: clamp(3rem, 12.5vw, 4.5rem); }
  .hero-intro { max-width: 27.5rem; font-size: 1rem; }
  .hero-note { margin-top: 2rem; }
  .hero-art { width: min(100%, 30rem); min-height: auto; align-self: center; margin-top: 1.75rem; }
  .system-map { padding: 1.25rem; }
  .system-map-copy { margin-block: 1.75rem; }
  .system-map-flow { gap: .5rem; }
  .system-map-footer { margin-top: 1.5rem; }
  .hero-bottom { bottom: 1.5625rem; }
  .hero-bottom-rule, .hero-bottom span:last-child { display: none; }
  .intro-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .section-index { padding: 0; }
  .intro-content h2, .section-heading h2, .approach-heading h2, .contact-copy h2 { font-size: clamp(2.4375rem, 9.5vw, 3.375rem); }
  .intro-content > p { font-size: 1rem; }
  .section-heading { display: block; margin-bottom: 2.125rem; }
  .section-aside { max-width: 21.875rem; margin-top: 1.375rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: auto; padding: 1.5625rem; border-right: 0; border-bottom: 0.0625rem solid var(--line); }
  .capability-card:last-child { border-bottom: 0; }
  .capability-top { margin-bottom: 1.5625rem; }
  .capability-card > p { min-height: 0; margin-bottom: 1.375rem; }
  .capabilities-foot { align-items: flex-start; text-align: left; }
  .approach-grid { gap: 2.625rem; }
  .step { min-height: 5.5625rem; grid-template-columns: 1.875rem 1fr 1.125rem; gap: 0.5625rem; }
  .contact-grid { gap: 2.375rem; }
  .contact-copy > p:not(.eyebrow) { margin-bottom: 1.5rem; }
  .contact-form { padding: 1.4375rem 1.1875rem; }
}

@media (max-width: 26.25em) {
  :root { --side-pad: 1.25rem; }
  .hero-actions { gap: 1.125rem; }
  .button { min-height: 2.9375rem; }
  .system-map { padding: 1rem; }
  .system-map-header, .system-map-footer { gap: .625rem; }
  .system-map-flow { gap: .375rem; }
  .system-map-node { width: 2.125rem; height: 2.125rem; }
  .system-map-flow::before { top: 1.0625rem; left: 1.0625rem; right: calc(33.333% - 1.0625rem); }
  .system-map-footer { align-items: flex-start; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { min-height: 5.875rem; flex-wrap: wrap; justify-content: space-between; }
  .footer-main > p { order: 3; width: 100%; margin-top: -1.4375rem; }
  .footer-legal { flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem 1rem; padding-block: 0.625rem; }
}

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