:root {
  --ink: #07111f;
  --ink-soft: #0b1728;
  --panel: #0d1b2c;
  --text: #f4f7fa;
  --muted: #9daec3;
  --cyan: #38d9f5;
  --green: #80e1a5;
  --line: #20324a;
  --paper: #f3f6f8;
  --paper-text: #0b1728;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--cyan); color: var(--ink); }
.shell { width: min(100% - 8rem, 1320px); margin-inline: auto; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 48%, rgba(25, 76, 113, .22), transparent 37%),
    linear-gradient(135deg, #06101e 0%, #07111f 58%, #081524 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(56,217,245,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(56,217,245,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 5%, black 55%, black 100%);
}
.site-header {
  height: 76px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 10;
}
.wordmark { font-size: .78rem; font-weight: 700; letter-spacing: .28em; }
nav { display: flex; gap: 2.8rem; color: #b9c7d7; font-size: .92rem; }
nav a, .footer-links a, .text-link { position: relative; transition: color .2s ease; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.55rem;
  height: 1px; background: var(--cyan); transition: right .25s ease;
}
nav a:hover, nav a:focus-visible, .text-link:hover { color: var(--cyan); }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.hero-grid {
  min-height: calc(100svh - 76px); display: grid; grid-template-columns: 52% 48%;
  align-items: center; position: relative; z-index: 2; padding-block: 5rem 7rem;
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow { color: var(--cyan); font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 1.7rem; }
h1 { font-size: clamp(4.6rem, 7.5vw, 7.2rem); line-height: .91; letter-spacing: -.065em; margin: 0; font-weight: 720; }
.hero-summary { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.34rem); line-height: 1.6; max-width: 610px; margin: 2rem 0 0; }
.hero-copy .employment-note { max-width: 610px; margin: 1.35rem 0 0; padding: .85rem 1rem; border-left: 2px solid var(--green); background: rgba(128,225,165,.07); color: #c1ced8; font-size: .92rem; line-height: 1.6; }
.hero-copy .employment-note strong { color: var(--green); }
.hero-actions { display: flex; gap: 1.3rem; margin-top: 1.8rem; }
.button { min-height: 60px; display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 0 1.8rem; border-radius: 7px; font-weight: 620; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.button span { font-size: 1.4rem; transition: transform .2s ease; }
.button:hover span { transform: translateX(4px); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--ink); border: 1px solid var(--cyan); min-width: 260px; }
.button-primary:hover { background: #70e6fa; }
.location { color: var(--muted); margin: 2.6rem 0 0; display: flex; align-items: center; gap: .65rem; }
.location span { color: var(--green); font-size: 1.4rem; }

.topology { position: absolute; width: 58%; height: 78%; right: -5%; top: 13%; opacity: .85; transform: rotate(-2deg); }
.route { position: absolute; height: 1px; transform-origin: left center; background: linear-gradient(90deg, transparent, rgba(56,217,245,.9), rgba(128,225,165,.25), transparent); box-shadow: 0 0 12px rgba(56,217,245,.18); }
.route::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--cyan); top: -3px; left: 62%; transform: rotate(45deg); background: var(--ink); }
.route-1 { width: 95%; top: 25%; left: 0; transform: rotate(-23deg); }
.route-2 { width: 88%; top: 43%; left: 4%; transform: rotate(17deg); }
.route-3 { width: 90%; top: 59%; left: 8%; transform: rotate(-32deg); background: linear-gradient(90deg, transparent, rgba(128,225,165,.75), rgba(56,217,245,.4), transparent); }
.route-4 { width: 72%; top: 71%; left: 12%; transform: rotate(12deg); opacity: .5; }
.route-5 { width: 66%; top: 35%; left: 23%; transform: rotate(40deg); opacity: .55; }
.node { position: absolute; border: 1px solid var(--cyan); border-radius: 50%; width: 11px; height: 11px; background: var(--ink); box-shadow: 0 0 18px rgba(56,217,245,.45); }
.node::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); position: absolute; inset: 3px; }
.node-1 { left: 15%; top: 57%; }.node-2 { left: 39%; top: 29%; }.node-3 { left: 54%; top: 52%; border-color: var(--green); }.node-4 { left: 71%; top: 22%; }.node-5 { left: 80%; top: 66%; border-color: var(--green); }.node-6 { left: 46%; top: 78%; }
.grid-dots { position: absolute; width: 92px; height: 72px; opacity: .45; background-image: radial-gradient(var(--cyan) 1px, transparent 1.2px); background-size: 12px 12px; }
.dots-1 { right: 16%; top: 12%; }.dots-2 { left: 38%; bottom: 5%; background-image: radial-gradient(var(--green) 1px, transparent 1.2px); }
.scroll-cue { position: absolute; z-index: 5; right: 4rem; bottom: 2.1rem; display: flex; align-items: center; gap: .8rem; color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .2em; }

.section { padding: 8.5rem 0; }
.section-index { margin: 0 0 2rem; color: #638099; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 650; }
.section h2, .contact h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.25rem); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
.section-grid { display: grid; grid-template-columns: 47% 53%; gap: 5rem; }
.section-profile { background: var(--paper); color: var(--paper-text); }
.profile-copy { max-width: 650px; padding-top: 3.2rem; }
.profile-copy p { color: #4d6071; font-size: 1.08rem; line-height: 1.8; }
.profile-copy .lead { color: #0b1728; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.55; margin-top: 0; }
.signal-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.4rem; }
.signal-row span { border: 1px solid #c6d0d8; border-radius: 999px; padding: .65rem 1rem; color: #264158; font-size: .78rem; font-weight: 650; letter-spacing: .08em; }

.section-capabilities { background: var(--ink); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; margin-bottom: 4.5rem; }
.section-heading > p { color: var(--muted); max-width: 480px; line-height: 1.7; justify-self: end; margin: 0; }
.section-heading .section-index { grid-column: 1 / -1; justify-self: start; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 300px; padding: 2.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.capability-grid article:hover { background: #0d1b2c; transform: translateY(-3px); }
.card-number { color: var(--green); font-family: var(--font-geist-mono); font-size: .75rem; }
.capability-grid h3 { font-size: clamp(1.45rem, 2.5vw, 2.25rem); letter-spacing: -.03em; margin: 4rem 0 1.2rem; }
.capability-grid p { color: var(--muted); line-height: 1.75; max-width: 500px; margin: 0; }

.section-credentials { background: #091522; }
.credentials-heading { grid-template-columns: 1fr auto; }
.credentials-heading > div .section-index { margin-bottom: 2rem; }
.text-link { color: var(--green); font-weight: 600; padding-bottom: .4rem; border-bottom: 1px solid rgba(128,225,165,.45); }
.credential-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.credential-badge { min-width: 0; border: 1px solid var(--line); background: #0b1827; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.credential-badge:hover { transform: translateY(-4px); border-color: rgba(56,217,245,.55); background: #0d1c2d; }
.badge-embed-shell { min-height: 300px; display: grid; place-items: center; padding: 1.1rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 42%, rgba(56,217,245,.08), transparent 48%); overflow: hidden; }
.badge-embed-shell iframe { max-width: 100%; border: 0; }
.credential-details { padding: 1.5rem; }
.credential-code { color: var(--cyan); font-family: var(--font-geist-mono); font-size: .82rem; }
.credential-details h3 { min-height: 3.4rem; margin: .8rem 0 .6rem; font-size: 1.05rem; line-height: 1.35; }
.credential-details p { min-height: 2.8rem; margin: 0 0 1.2rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.credential-details a { display: inline-flex; gap: .5rem; color: var(--green); font-size: .82rem; font-weight: 650; }
.next-up { color: var(--muted); font-size: .9rem; margin: 2.2rem 0 0; }
.next-up span { color: var(--green); text-transform: uppercase; font-size: .68rem; font-weight: 700; letter-spacing: .16em; margin-right: 1rem; }

.site-footer { background: #091522; padding: 0 0 2rem; }
.footer { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; font-weight: 600; }
.footer-links a:hover { color: var(--cyan); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.reveal { animation: reveal .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 26px rgba(56,217,245,.8); } }
.node-2, .node-5 { animation: pulse 3.5s ease-in-out infinite; }

@media (max-width: 980px) {
  .shell { width: min(100% - 3rem, 880px); }
  nav { gap: 1.4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .topology { opacity: .25; width: 90%; right: -40%; }
  .section-grid { grid-template-columns: 1fr; }
  .profile-copy { padding-top: 0; }
  .credential-badges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 2rem, 640px); }
  .site-header { height: auto; min-height: 72px; align-items: flex-start; padding-block: 1.2rem; }
  .wordmark { font-size: .66rem; max-width: 150px; line-height: 1.6; }
  nav { display: grid; grid-template-columns: repeat(2, auto); gap: .65rem 1.1rem; font-size: .75rem; }
  .hero-grid { padding-block: 5rem 7rem; min-height: calc(100svh - 90px); }
  .eyebrow { line-height: 1.6; max-width: 330px; }
  h1 { font-size: clamp(3.7rem, 17vw, 5.4rem); }
  .hero-summary { max-width: 92%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .topology { width: 110%; height: 60%; top: 35%; right: -65%; opacity: .2; }
  .scroll-cue { display: none; }
  .section { padding-top: 6rem; padding-bottom: 6rem; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .section-heading > p { justify-self: start; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 250px; }
  .credentials-heading { grid-template-columns: 1fr; gap: 2rem; }
  .credential-badges { grid-template-columns: 1fr; }
  .credential-badge { display: grid; grid-template-columns: minmax(180px, .8fr) 1fr; }
  .badge-embed-shell { border-bottom: 0; border-right: 1px solid var(--line); }
  .next-up { line-height: 1.8; }
  .next-up span { display: block; margin-bottom: .4rem; }
  .footer { align-items: flex-start; gap: 1rem; }
  .footer-links { gap: .8rem 1.2rem; }
}

@media (max-width: 460px) {
  .credential-badge { display: block; }
  .badge-embed-shell { border-right: 0; border-bottom: 1px solid var(--line); }
}

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