:root {
  --navy: #071a3d;
  --navy-2: #0c2852;
  --teal: #0c7b90;
  --teal-bright: #0c7b90;
  --ice: #e8f4f5;
  --paper: #f7f9f8;
  --surface: #ffffff;
  --muted: #566477;
  --line: #cbd5d9;
  --text: #071a3d;
  --header-bg: rgba(247, 249, 248, .92);
  --hero-grid: rgba(7, 26, 61, .055);
  --hero-label: rgba(7, 26, 61, .62);
  --card-bg: rgba(255, 255, 255, .36);
  --field-bg: rgba(255, 255, 255, .08);
  color-scheme: light;
}

html[data-theme="dark"] {
  --teal: #55c7d4;
  --teal-bright: #3fc3d2;
  --paper: #06152d;
  --surface: #0c2344;
  --ice: #0a203b;
  --muted: #a9b9ca;
  --line: #2b4260;
  --text: #e8f1f5;
  --header-bg: rgba(6, 21, 45, .92);
  --hero-grid: rgba(255, 255, 255, .045);
  --hero-label: rgba(232, 241, 245, .68);
  --card-bg: rgba(255, 255, 255, .018);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "Manrope", sans-serif; font-size: 16px; transition: background-color .28s ease, color .28s ease; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; left: 18px; top: 14px; padding: 11px 15px; border-radius: 3px; background: var(--navy); color: white; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 78px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(14px); transition: background-color .28s ease, border-color .28s ease; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; font-size: 20px; white-space: nowrap; }
.brand-mark { width: 43px; height: 43px; }
.brand-mark path:first-child { fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.brand-mark .axis { fill: none; stroke: var(--teal); stroke-width: 3; }
.brand-mark .node { fill: var(--paper); stroke-width: 3; }
.brand-mark .teal { stroke: var(--teal); }
.brand-mark .hub { stroke: var(--text); stroke-width: 4; }
.brand-mark .core { fill: var(--teal); }
nav { display: flex; flex: 0 0 auto; align-items: center; gap: 35px; margin-left: auto; font-size: 14px; font-weight: 600; }
nav > a:not(.nav-cta):hover { color: var(--teal); }
.nav-cta { margin-left: 4px; background: var(--navy); color: white; padding: 13px 20px; border-radius: 2px; }
.nav-cta:hover { background: var(--teal); }
.header-social { display: flex; align-items: center; gap: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
.header-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: color .2s, background-color .2s, transform .2s; }
.header-social a:hover { color: var(--teal); background: var(--ice); transform: translateY(-2px); }
.header-social svg { width: 18px; height: 18px; fill: currentColor; }
.header-social .dev-icon { width: 21px; }
.header-actions { display: flex; align-items: center; margin-left: 22px; }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { color: var(--teal); border-color: var(--teal); transform: rotate(8deg); }
.theme-toggle svg { grid-area: 1/1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .3s; }
.moon-icon { opacity: 0; transform: scale(.65) rotate(-20deg); }
html[data-theme="dark"] .sun-icon { opacity: 0; transform: scale(.65) rotate(20deg); }
html[data-theme="dark"] .moon-icon { opacity: 1; transform: scale(1); }
.menu-button { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; color: var(--text); cursor: pointer; }
.menu-button span { width: 24px; height: 2px; background: currentColor; display: block; margin: 5px auto; transition: transform .2s, opacity .2s; }
.site-header.open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; }
.hero-copy { padding: clamp(72px, 8vw, 116px) 5vw clamp(70px, 8vw, 108px) clamp(24px, 8vw, 120px); }
.eyebrow, .section-number { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .13em; font-size: 13px; color: var(--teal); font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { display: block; width: 38px; height: 1px; background: var(--teal); }
h1 { font-size: clamp(58px, 7vw, 104px); line-height: .94; letter-spacing: -.067em; margin: 31px 0 33px; font-weight: 500; }
h1 em, .contact h2 em { font-style: normal; color: var(--teal-bright); }
.hero-lede { max-width: 620px; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.62; color: var(--muted); margin: 0 0 23px; }
.audience-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font: 500 11px/1.3 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.audience-line i { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; padding: 17px 22px; border: 0; border-radius: 2px; font-weight: 700; min-width: 190px; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: var(--teal); transform: translateY(-2px); }
.text-link { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); padding: 16px 0; }
.text-link span { margin-left: 16px; color: var(--teal); }
.hero-visual { position: relative; background: var(--paper); min-height: 600px; display: grid; place-items: center; overflow: hidden; transition: background-color .28s; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px); background-size: 54px 54px; }
.code-stream { position: absolute; inset: 20% 8% auto; margin: 0; min-height: 12em; color: var(--teal-bright); font: 500 clamp(12px, 1.15vw, 16px)/2.15 "DM Mono", monospace; letter-spacing: .02em; white-space: pre-wrap; opacity: .15; z-index: 0; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.code-stream::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: currentColor; animation: cursor-blink 1.1s steps(1, end) infinite; }
.orbit { position: absolute; border: 1px solid rgba(25, 168, 189, .27); border-radius: 50%; }
.orbit-a { width: min(39vw, 510px); height: min(39vw, 510px); animation: orbit-breathe 9s ease-in-out infinite; }
.orbit-b { width: min(26vw, 340px); height: min(26vw, 340px); animation: orbit-breathe 9s ease-in-out -4.5s infinite reverse; }
.orbiter { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.orbiter::before { content: ""; position: absolute; left: 50%; top: 0; border-radius: 50%; transform: translate(-50%, -50%); background: var(--teal-bright); box-shadow: 0 0 0 5px rgba(25, 168, 189, .11), 0 0 18px rgba(25, 168, 189, .5); }
.orbiter-a { width: min(39vw, 510px); height: min(39vw, 510px); animation: node-orbit 22s linear infinite; }
.orbiter-a::before { width: 10px; height: 10px; }
.orbiter-b { width: min(26vw, 340px); height: min(26vw, 340px); animation: node-orbit 15s linear infinite reverse; }
.orbiter-b::before { width: 8px; height: 8px; background: var(--text); box-shadow: 0 0 0 4px rgba(25, 168, 189, .1); }
.orbiter-c { width: min(32vw, 425px); height: min(32vw, 425px); animation: node-orbit 28s linear -11s infinite; }
.orbiter-c::before { width: 6px; height: 6px; }
.meridian-line { position: absolute; width: 1px; height: 100%; background: linear-gradient(transparent, var(--teal), transparent); animation: meridian-glow 5s ease-in-out infinite; }
.hero-mark { width: min(31%, 185px); z-index: 2; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .23)); animation: mark-float 7s ease-in-out infinite; transform-origin: center; }
.hero-bracket, .hero-axis, .hero-node { fill: none; stroke-linecap: round; }
.hero-bracket { stroke: var(--text); stroke-width: 14; }
.hero-bracket.right { stroke: var(--teal-bright); }
.hero-axis { stroke: var(--teal-bright); stroke-width: 5; }
.hero-node.end { fill: var(--paper); stroke: var(--teal-bright); stroke-width: 6; }
.hero-node.ring { fill: var(--paper); stroke: var(--text); stroke-width: 9; }
.hero-node.center { fill: var(--teal-bright); }
.visual-label { position: absolute; font: 11px "DM Mono", monospace; letter-spacing: .12em; color: var(--hero-label); text-transform: uppercase; animation: label-drift 6s ease-in-out infinite; }
.label-one { left: 10%; top: 17%; }
.label-two { right: 11%; top: 48%; animation-delay: -2s; }
.label-three { left: 13%; bottom: 15%; animation-delay: -4s; }

.services { padding: 112px clamp(24px, 8vw, 120px) 105px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 62px; gap: 40px; }
.section-heading h2 { margin: 0; width: 58%; }
.section-kicker { max-width: 275px; margin: 17px 0 0; color: var(--muted); line-height: 1.6; }
h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -.055em; font-weight: 500; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.service-card { padding: 38px; min-height: 430px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--card-bg); transition: background-color .25s, transform .25s, box-shadow .25s; }
.service-card:last-child { border-right: 0; }
.service-card:hover, .service-card:focus-within { background: var(--surface); transform: translateY(-8px); box-shadow: 0 18px 45px rgba(7, 26, 61, .1); z-index: 2; }
.card-index { font: 12px "DM Mono", monospace; color: var(--teal); }
.mini-mark { font: 31px "DM Mono", monospace; letter-spacing: .15em; margin: 42px 0 30px; }
.mini-mark span { color: var(--teal); }
.service-card h3 { font-size: 25px; margin: 0 0 16px; letter-spacing: -.03em; }
.service-card p { color: var(--muted); line-height: 1.65; margin: 0 0 24px; }
.service-card ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.service-card li { font: 12px "DM Mono", monospace; padding: 9px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; }
.principles { display: grid; grid-template-columns: .8fr 2.2fr; gap: 55px; align-items: start; margin-top: 62px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.principle-list div { padding: 4px 28px 7px; border-left: 1px solid var(--line); }
.principle-list strong, .principle-list span { display: block; }
.principle-list strong { font-size: 15px; margin-bottom: 7px; }
.principle-list span { color: var(--muted); font: 12px/1.5 "DM Mono", monospace; }

.contact { position: relative; overflow: hidden; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(55px, 8vw, 120px); align-items: start; background: var(--navy); color: white; padding: 110px clamp(24px, 8vw, 120px) 118px; }
.contact-copy, .contact-form { position: relative; z-index: 2; }
.contact h2 { margin: 29px 0 28px; }
.contact-copy > p:not(.section-number) { color: #b8c6d9; font-size: 18px; line-height: 1.7; max-width: 590px; }
.contact-notes { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.contact-notes span { border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; padding: 8px 11px; color: #cbd6e4; font: 11px "DM Mono", monospace; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-social { margin-top: 34px; }
.social-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 12px 8px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 2px; color: #e8eef5; font-size: 13px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.social-links a:hover { background: rgba(255, 255, 255, .1); border-color: var(--teal-bright); color: white; transform: translateY(-2px); }
.social-mark { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; background: rgba(255, 255, 255, .1); color: var(--teal-bright); font: 700 10px "DM Mono", monospace; letter-spacing: -.03em; }
.contact-form { display: grid; gap: 20px; padding: 34px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 28px 70px rgba(0, 0, 0, .18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; color: #d9e1eb; font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid rgba(255, 255, 255, .24); border-radius: 2px; background: var(--field-bg); color: white; padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #b8c6d9 50%), linear-gradient(135deg, #b8c6d9 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.contact-form select option { color: #071a3d; background: white; }
.contact-form textarea { min-height: 134px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--teal-bright); box-shadow: 0 0 0 3px rgba(25, 168, 189, .22); background: rgba(255, 255, 255, .1); }
.contact-form [aria-invalid="true"] { border-color: #ffaca8; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-footer { display: flex; align-items: center; gap: 22px; }
.form-submit { background: white; color: var(--navy); }
.form-submit:hover { background: var(--teal-bright); color: var(--navy); transform: translateY(-2px); }
.form-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.form-status { min-height: 2.8em; margin: 0; color: #cbd6e4; font-size: 13px; line-height: 1.4; }
.form-status.success { color: #8fe0cd; }
.form-status.error { color: #ffb9b5; }
.contact-mark { position: absolute; width: 360px; height: 360px; right: -75px; bottom: -130px; opacity: .055; }
.contact-mark * { fill: none; stroke: white; stroke-width: 4; }

footer { display: flex; align-items: center; justify-content: space-between; padding: 36px clamp(24px, 5vw, 78px); font-size: 12px; color: var(--muted); gap: 24px; }
.footer-brand { font-size: 16px; color: var(--text); }
.footer-end { display: grid; justify-items: end; gap: 8px; }
.footer-end p { margin: 0; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.footer-social a:hover { color: var(--teal); text-decoration-color: currentColor; }
html[data-theme="dark"] .nav-cta, html[data-theme="dark"] .button.primary { background: var(--teal); }
html[data-theme="dark"] .nav-cta:hover, html[data-theme="dark"] .button.primary:hover { background: var(--teal-bright); color: var(--navy); }
html[data-theme="dark"] .service-card:hover, html[data-theme="dark"] .service-card:focus-within { box-shadow: 0 18px 45px rgba(0, 0, 0, .24); }
html[data-theme="dark"] .contact { background: #020d20; }
.motion-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .72s ease, transform .72s cubic-bezier(.2, .75, .25, 1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .service-card.reveal:nth-child(2) { transition-delay: .1s; }
.motion-ready .service-card.reveal:nth-child(3) { transition-delay: .2s; }

@keyframes mark-float { 50% { transform: translateY(-9px) rotate(.6deg); } }
@keyframes orbit-breathe { 0%, 100% { transform: scale(.96); opacity: .45; } 50% { transform: scale(1.045); opacity: 1; } }
@keyframes meridian-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes label-drift { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(7px); opacity: .85; } }
@keyframes node-orbit { to { transform: rotate(360deg); } }
@keyframes cursor-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }

@media (max-width: 980px) {
  html { scroll-padding-top: 74px; }
  .site-header { height: 74px; padding: 0 22px; }
  .site-header nav { display: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .menu-button { display: block; }
  .site-header.open nav { display: flex; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); padding: 20px 24px 26px; flex-direction: column; align-items: stretch; gap: 6px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(7, 26, 61, .1); }
  .site-header.open nav a { padding: 13px 8px; }
  .site-header.open nav .nav-cta { margin: 5px 0 0; text-align: center; padding: 14px 20px; }
  .site-header.open .header-social { justify-content: center; gap: 12px; margin-top: 10px; padding: 18px 8px 0; border-left: 0; border-top: 1px solid var(--line); }
  .site-header.open .header-social a { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 72px clamp(24px, 9vw, 88px) 70px; }
  .hero-visual { min-height: 470px; }
  .orbit-a, .orbiter-a { width: 460px; height: 460px; }
  .orbit-b, .orbiter-b { width: 310px; height: 310px; }
  .orbiter-c { width: 385px; height: 385px; }
  .hero-mark { width: 150px; }
  .section-heading { display: block; }
  .section-heading h2 { width: 100%; margin-top: 25px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: 360px; }
  .service-card:last-child { border-bottom: 0; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
  .contact-copy > p:not(.section-number) { max-width: 680px; }
}

@media (max-width: 620px) {
  .brand { font-size: 17px; }
  .brand-mark { width: 37px; height: 37px; }
  .hero-copy { padding: 58px 24px 62px; }
  h1 { font-size: clamp(53px, 16vw, 75px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 400px; }
  .orbit-a, .orbiter-a { width: 350px; height: 350px; }
  .orbit-b, .orbiter-b { width: 245px; height: 245px; }
  .orbiter-c { width: 300px; height: 300px; }
  .hero-mark { width: 122px; }
  .services { padding: 82px 24px 75px; }
  .section-heading { margin-bottom: 42px; }
  .service-card { padding: 30px; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact { padding: 82px 24px 88px; gap: 44px; }
  .contact-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-submit { width: 100%; }
  .contact-social { display: grid; grid-template-columns: 1fr; }
  .social-links a { justify-content: space-between; }
  footer { flex-direction: column; text-align: center; }
  .footer-end { justify-items: center; }
}

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