:root {
  --bg: #07101f;
  --bg-2: #0a1426;
  --bg-3: #0e1930;
  --surface: rgba(14, 27, 49, .72);
  --surface-strong: #101e35;
  --border: rgba(148, 180, 216, .18);
  --border-strong: rgba(100, 167, 231, .55);
  --ink: #edf3fa;
  --muted: #91a1b7;
  --blue: #3d7ab8;
  --blue-bright: #64a7e7;
  --blue-soft: #a5d3ff;
  --green: #4ade80;
  --red: #f87171;
  --radius: 18px;
  --font-head: "Sora", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 300;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #07101f;
  font-weight: 700;
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 4px;
}

#progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 250;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .35s ease, visibility .35s ease;
}
.boot.is-hidden { opacity: 0; visibility: hidden; }
.boot-inner {
  display: grid;
  gap: 14px;
  width: min(360px, calc(100% - 48px));
  color: var(--muted);
  font: 600 .73rem/1 var(--font-head);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.boot-inner span:last-child { color: var(--blue-bright); }
.boot-line { height: 1px; background: linear-gradient(90deg, transparent, var(--blue-bright), transparent); animation: bootLine .65s ease both; }
@keyframes bootLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.site-nav {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 94px;
  padding: 0 max(32px, calc((100vw - var(--wrap)) / 2));
  border-bottom: 1px solid transparent;
  transition: min-height .25s, background .25s, border-color .25s, backdrop-filter .25s;
}
.site-nav.is-scrolled {
  min-height: 72px;
  background: rgba(7, 16, 31, .78);
  border-color: var(--border);
  backdrop-filter: blur(18px);
}
.logo {
  justify-self: start;
  color: var(--ink);
  font: 800 1.35rem/1 var(--font-head);
  letter-spacing: -.04em;
  text-decoration: none;
}
.logo em { color: var(--blue-bright); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 99px;
  color: #c0cbd9;
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cv-button, .menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--blue-bright);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(7, 16, 31, .55);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.cv-button:hover { background: rgba(100,167,231,.09); box-shadow: 0 0 25px rgba(100,167,231,.12); }
.cv-button:active, .menu-button:active { transform: scale(.98); }
.cv-button i:first-child { font-size: 1.25rem; }
.cv-button i:last-child { margin-left: 4px; }
.menu-button { display: none; width: 48px; padding: 0; font-size: 1.35rem; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 18px;
  width: min(310px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(9, 20, 38, .97);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(20px);
}
.mobile-menu a, .mobile-menu button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: rgba(255,255,255,.06); }

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 126px max(32px, calc((100vw - var(--wrap)) / 2)) 112px;
  isolation: isolate;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  z-index: -4;
  inset: 0;
  background-image: linear-gradient(rgba(100,167,231,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(100,167,231,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}
.hero-glow { position: absolute; z-index: -3; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.hero-glow-a { width: 560px; height: 560px; top: -300px; right: -100px; background: rgba(23,83,146,.24); }
.hero-glow-b { width: 380px; height: 380px; left: -250px; bottom: -160px; background: rgba(20,64,110,.3); }
.hero-layout {
  width: 100%;
  max-width: var(--wrap);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(560px, 1.05fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 4; transform: translateY(40px); }
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--green);
  font-size: .91rem;
  font-weight: 500;
}
.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(74,222,128,.08), 0 0 16px rgba(74,222,128,.45);
  animation: availabilityPulse 2.2s ease-in-out infinite;
}
.availability b { color: var(--muted); font-weight: 400; }
@keyframes availabilityPulse { 50% { box-shadow: 0 0 0 9px rgba(74,222,128,0), 0 0 22px rgba(74,222,128,.65); } }
.hero h1 {
  max-width: 680px;
  margin: 0;
  font: 700 clamp(3.2rem, 5.35vw, 5.45rem)/1.06 var(--font-head);
  letter-spacing: -.065em;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, #eaf5ff 0%, #4d9aeb 45%, #2576cf 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-role { margin: 26px 0 0; color: #b8c5d5; font-size: clamp(.95rem, 1.25vw, 1.1rem); }
.hero-lead { display: none; max-width: 570px; margin: 13px 0 0; color: var(--muted); font-size: .94rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.99); }
.button-primary { background: linear-gradient(135deg, #3b91e8, #226bb8); color: #fff; box-shadow: 0 12px 34px rgba(44,126,207,.26); }
.button-primary:hover { box-shadow: 0 17px 42px rgba(44,126,207,.36); }
.button-secondary { border-color: rgba(160,184,214,.34); background: rgba(8,18,34,.7); color: var(--ink); }
.button-secondary:hover { border-color: var(--blue-bright); background: rgba(100,167,231,.07); }

.constellation-wrap {
  position: relative;
  min-width: 0;
  height: min(650px, 64vh);
  min-height: 520px;
  transform: translate(-46px, -34px) scale(1.06);
  transform-origin: center;
}
#network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-node {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 124px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: 600 .91rem/1.2 var(--font-head);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: color .2s, filter .2s;
}
.network-node:hover { color: var(--blue-soft); filter: drop-shadow(0 0 15px rgba(100,167,231,.2)); }
.node-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(128,190,250,.55);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, rgba(100,167,231,.25), rgba(17,37,64,.9) 62%, rgba(8,18,34,.96));
  box-shadow: inset 0 0 0 7px rgba(100,167,231,.06), 0 0 28px rgba(100,167,231,.13);
  font-size: 1.7rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.node-orb::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(100,167,231,.16);
  border-radius: inherit;
}
.network-node:hover .node-orb, .network-node:focus-visible .node-orb { transform: scale(1.09); border-color: var(--blue-soft); box-shadow: inset 0 0 0 7px rgba(100,167,231,.09), 0 0 34px rgba(100,167,231,.35); }
.node-autopinner .node-orb { width: 84px; height: 84px; font-size: 2rem; }
.node-shop { left: 59%; top: 15%; }
.node-privadspy { left: 19%; top: 34%; }
.node-montessori { left: 88%; top: 37%; }
.node-autopinner { left: 52%; top: 54%; }
.node-shopify { left: 17%; top: 77%; }
.node-marocshops { left: 78%; top: 77%; }

.metric-rail {
  width: 100%;
  max-width: var(--wrap);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(148,180,216,.08);
  padding-top: 28px;
}
.metric-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 2.4vw, 36px);
  border-right: 1px solid rgba(148,180,216,.28);
}
.metric-item:first-child { padding-left: 0; }
.metric-item:last-child { border-right: 0; padding-right: 0; }
.metric-item > i {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(128,190,250,.35);
  border-radius: 50%;
  color: #cfe7ff;
  font-size: 1.35rem;
}
.metric-item p { margin: 0; color: #c0cad7; white-space: nowrap; }
.metric-item strong { color: #4a9cf1; font: 700 1.9rem/1 var(--font-head); letter-spacing: -.04em; }

.tech-rail { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tech-track { display: flex; width: max-content; gap: 36px; padding: 16px 0; animation: techScroll 32s linear infinite; }
.tech-track span { display: flex; align-items: center; gap: 36px; color: #8d9db2; font: 600 .82rem/1 var(--font-head); white-space: nowrap; }
.tech-track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.tech-rail:hover .tech-track { animation-play-state: paused; }
@keyframes techScroll { to { transform: translateX(-50%); } }

.section { position: relative; padding: 112px 24px; }
.section-wrap { width: 100%; max-width: 1160px; margin: 0 auto; }
.section-heading { max-width: 750px; margin-bottom: 44px; }
.eyebrow { margin: 0 0 10px; color: var(--blue-bright); font: 700 .72rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; }
.section h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.2rem)/1.12 var(--font-head); letter-spacing: -.05em; }
.section-heading > p:last-child { max-width: 610px; margin: 16px 0 0; color: var(--muted); }
.products-section, .journey-section { background: var(--bg-2); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.022);
  overflow: hidden;
  transition: transform .25s, border-color .25s, opacity .25s, box-shadow .25s;
}
.product-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(100,167,231,.1), transparent 45%); opacity: 0; transition: opacity .25s; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(100,167,231,.48); box-shadow: 0 22px 54px rgba(0,0,0,.24); }
.product-card:hover::before { opacity: 1; }
.product-card.is-muted { opacity: .22; transform: scale(.98); }
.product-card.is-match { border-color: var(--blue-bright); box-shadow: 0 0 0 1px rgba(100,167,231,.22), 0 20px 55px rgba(0,0,0,.25); }
.product-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.product-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(100,167,231,.36); border-radius: 50%; color: var(--blue-soft); background: rgba(100,167,231,.06); font-size: 1.3rem; }
.status-pill { padding: 5px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: .68rem; }
.status-pill.active { color: #8ee6ad; border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.05); }
.product-card h3 { margin: 30px 0 10px; font: 700 1.18rem/1.25 var(--font-head); }
.product-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.product-card strong { display: block; margin-top: auto; padding-top: 24px; color: var(--blue-bright); font-size: .82rem; }
.product-card > button { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 0; border: 0; color: var(--ink); background: transparent; font-weight: 600; cursor: pointer; }
.product-card > button:hover { color: var(--blue-bright); }

.about-layout { display: grid; grid-template-columns: .85fr 1.25fr .75fr; gap: 48px; align-items: start; }
.about-layout .section-heading { margin: 0; }
.about-copy p { margin: 0; color: var(--muted); }
.about-copy p + p { margin-top: 18px; }
.about-copy strong { color: var(--ink); }
.profile-facts { margin: 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.profile-facts div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.profile-facts div:last-child { border: 0; }
.profile-facts dt { color: var(--muted); font-size: .73rem; }
.profile-facts dd { margin: 2px 0 0; color: var(--ink); font-size: .88rem; font-weight: 600; }

.stack-section { background: radial-gradient(circle at 80% 30%, rgba(31,84,137,.12), transparent 40%), var(--bg); }
.stack-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: stretch; }
.stack-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack-group { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.stack-group h3 { margin: 0 0 14px; color: var(--blue-bright); font: 700 .72rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list button, .reset-filter { min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 99px; color: #b9c5d4; background: rgba(255,255,255,.025); font-size: .78rem; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.skill-list button:hover, .skill-list button.active { color: #fff; border-color: var(--blue-bright); background: rgba(100,167,231,.12); }
.reset-filter { grid-column: 1 / -1; justify-self: start; }
.stack-map { display: flex; flex-direction: column; justify-content: center; padding: 34px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: radial-gradient(circle at 70% 20%, rgba(100,167,231,.12), transparent 45%), rgba(7,16,31,.7); }
.stack-map-label { margin: 0; color: var(--blue-bright); font: 700 .68rem/1 var(--font-head); letter-spacing: .18em; }
.stack-map > p:nth-child(2) { margin: 20px 0 32px; color: var(--ink); font: 600 1.25rem/1.5 var(--font-head); }
.stack-map a { color: var(--blue-soft); font-weight: 600; text-decoration: none; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 34px 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--blue-bright), rgba(100,167,231,.15)); }
.timeline li { position: relative; padding: 28px 30px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -33px; left: 0; width: 12px; height: 12px; border: 3px solid var(--bg-2); border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(100,167,231,.12), 0 0 20px rgba(100,167,231,.35); }
.timeline span { color: var(--blue-bright); font: 700 .68rem/1 var(--font-head); letter-spacing: .08em; }
.timeline h3 { margin: 12px 0 8px; font: 700 .98rem/1.35 var(--font-head); }
.timeline p { margin: 0; color: var(--muted); font-size: .85rem; }

.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; padding: clamp(30px, 5vw, 62px); border: 1px solid var(--border); border-radius: 26px; background: radial-gradient(circle at 10% 0%, rgba(65,139,214,.18), transparent 38%), var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.contact-copy h2 { margin-top: 0; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); }
.contact-copy ul { margin: 26px 0 0; padding: 0; list-style: none; }
.contact-copy li { display: flex; gap: 10px; padding: 5px 0; color: #b9c5d4; font-size: .88rem; }
.contact-copy li::before { content: "✓"; color: var(--green); font-weight: 700; }
#contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#contact-form label { display: grid; gap: 6px; color: var(--muted); font-size: .77rem; font-weight: 600; }
#contact-form input, #contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; outline: none; background: rgba(255,255,255,.04); color: var(--ink); padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
#contact-form textarea { min-height: 118px; resize: vertical; }
#contact-form input:focus, #contact-form textarea:focus { border-color: var(--blue-bright); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(100,167,231,.1); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #3b91e8, #226bb8); color: #fff; font-weight: 700; cursor: pointer; }
.submit-button:disabled { opacity: .6; cursor: wait; }
#form-status { min-height: 20px; margin: 0; font-size: .83rem; }
#form-status.ok { color: var(--green); }
#form-status.err { color: var(--red); }
altcha-widget { --altcha-max-width: 100%; --altcha-border-width: 1px; --altcha-border-radius: 10px; --altcha-color-base: rgba(255,255,255,.04); --altcha-color-border: var(--border); --altcha-color-text: var(--ink); --altcha-color-border-focus: var(--blue-bright); --altcha-color-checkbox-fg: var(--blue-bright); display: block; }

footer { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 46px 24px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; }
footer p { margin: 0; font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.overlay-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  color: var(--ink);
  background: radial-gradient(circle at 78% 0%, rgba(57,126,195,.17), transparent 40%), #091426;
  box-shadow: 0 30px 100px rgba(0,0,0,.62);
  overflow: auto;
}
.overlay-dialog[open] { animation: dialogIn .28s ease both; }
.overlay-dialog::backdrop { background: rgba(2,7,15,.78); backdrop-filter: blur(9px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.03); cursor: pointer; font-size: 1.2rem; }
.dialog-kicker { color: var(--blue-bright); font: 700 .7rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
.overlay-dialog h2 { max-width: 700px; margin: 15px 0 12px; font: 700 clamp(2rem, 5vw, 3.35rem)/1.1 var(--font-head); letter-spacing: -.05em; }
.dialog-lead { max-width: 700px; margin: 0; color: var(--muted); font-size: 1rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 38px 0 24px; }
.case-grid > div { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.case-grid span { color: var(--blue-bright); font: 700 .63rem/1 var(--font-head); letter-spacing: .15em; }
.case-grid p { margin: 12px 0 0; color: #c0cbd9; font-size: .86rem; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-tags span { padding: 5px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: .7rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.mission-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0; padding: 26px; border: 1px solid var(--border); border-radius: 16px; color: var(--blue-soft); background: rgba(100,167,231,.035); font-size: 1.55rem; }
.mission-preview .ph-arrow-right { color: #527396; font-size: 1rem; }
.mission-head { display: flex; align-items: center; justify-content: space-between; }
.mission-head p:last-child { margin: 0; color: var(--muted); font-size: .8rem; }
.route-line { display: flex; flex-wrap: wrap; gap: 10px; min-height: 72px; margin: 28px 0; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.02); }
.route-chip { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 99px; color: var(--blue-soft); background: rgba(100,167,231,.11); font-size: .76rem; }
.route-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route-option { min-height: 82px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.route-option:hover { transform: translateY(-2px); border-color: var(--blue-bright); background: rgba(100,167,231,.07); }
.route-option strong { display: block; font-family: var(--font-head); }
.route-option span { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.mission-feedback { min-height: 28px; color: var(--muted); }
.mission-feedback.ok { color: var(--green); }
.mission-feedback.err { color: #f6a5a5; }
.complete-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 30px; border: 1px solid rgba(74,222,128,.4); border-radius: 50%; color: var(--green); background: rgba(74,222,128,.08); font-size: 2rem; box-shadow: 0 0 35px rgba(74,222,128,.1); }

.cv-dialog { width: min(940px, calc(100vw - 32px)); }
.cv-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cv-header h2 { margin-bottom: 8px; }
.cv-header p { margin: 0; color: var(--muted); }
.cv-summary { max-width: 720px; margin: 30px 0; color: #c2cedc; }
.cv-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 36px; }
.cv-metrics strong { padding: 15px; border-top: 1px solid var(--blue-bright); color: var(--blue-soft); font: 600 .9rem/1.3 var(--font-head); }
.cv-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cv-columns h3 { margin: 0 0 12px; font: 700 .88rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.cv-columns h3:not(:first-child) { margin-top: 28px; }
.cv-columns p { color: var(--muted); font-size: .86rem; }
.cv-columns b { color: var(--ink); }

@media (max-width: 1180px) {
  .hero-layout { grid-template-columns: .95fr 1.05fr; gap: 10px; }
  .hero h1 { font-size: clamp(3rem, 5.25vw, 4.5rem); }
  .constellation-wrap { transform: translateX(-12px) scale(.92); transform-origin: center; }
  .metric-item { gap: 11px; padding-inline: 16px; }
  .metric-item > i { flex-basis: 46px; width: 46px; height: 46px; }
  .metric-item strong { font-size: 1.55rem; }
  .about-layout { grid-template-columns: 1fr 1.2fr; }
  .profile-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
  .profile-facts div { border-bottom: 0; border-right: 1px solid var(--border); padding: 10px 16px; }
  .profile-facts div:last-child { border-right: 0; }
}

@media (max-width: 900px) {
  .site-nav { min-height: 74px; grid-template-columns: 1fr auto; padding-inline: 20px; }
  .nav-links, .cv-button { display: none; }
  .menu-button { display: grid; }
  .hero { padding: 112px 22px 78px; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { max-width: 700px; transform: none; }
  .hero h1 { font-size: clamp(3rem, 9vw, 5rem); }
  .hero-lead { display: block; }
  .hero-actions { margin-top: 36px; }
  .constellation-wrap { width: 100%; height: 520px; min-height: 0; transform: none; margin-top: 34px; }
  .metric-rail { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 20px; }
  .metric-item { padding: 18px 14px; border-bottom: 1px solid var(--border); }
  .metric-item:nth-child(2) { border-right: 0; }
  .metric-item:nth-child(3), .metric-item:nth-child(4) { border-bottom: 0; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .about-layout, .stack-layout, .contact-panel { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .timeline::before { display: none; }
  .timeline li { padding-top: 18px; border-top: 1px solid var(--border); }
  .timeline li::before { top: -7px; }
}

@media (max-width: 620px) {
  .hero { padding-inline: 18px; }
  .availability { align-items: flex-start; font-size: .8rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); line-height: 1.04; }
  .hero-role { font-size: .85rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .constellation-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
    height: auto;
    margin-top: 52px;
  }
  #network-canvas { display: none; }
  .network-node { position: static; min-width: 0; transform: none; }
  .node-orb, .node-autopinner .node-orb { width: 62px; height: 62px; font-size: 1.45rem; }
  .metric-rail { margin-top: 46px; }
  .metric-item { align-items: flex-start; padding: 18px 8px; }
  .metric-item > i { display: none; }
  .metric-item strong { display: block; font-size: 1.45rem; }
  .metric-item p { white-space: normal; font-size: .75rem; }
  .section { padding: 82px 18px; }
  .product-grid, .stack-groups, .timeline, .route-options, .cv-columns { grid-template-columns: 1fr; }
  .product-card { min-height: 300px; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .profile-facts div { border-right: 0; border-bottom: 1px solid var(--border); }
  .contact-panel { padding: 28px 18px; }
  .form-row, .case-grid { grid-template-columns: 1fr; }
  .overlay-dialog { max-height: calc(100svh - 16px); width: calc(100vw - 16px); padding: 48px 20px 24px; border-radius: 18px; }
  .dialog-actions, .cv-header { flex-direction: column; }
  .cv-header .button { width: auto; }
  .cv-metrics { grid-template-columns: 1fr 1fr; }
  .mission-preview { padding: 18px 12px; font-size: 1.15rem; }
}

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

@media print {
  body > * { display: none !important; }
  #cv-dialog { display: block !important; position: static; width: 100%; max-height: none; border: 0; box-shadow: none; color: #111; background: #fff; }
  #cv-dialog .dialog-close, #cv-dialog [data-print-cv] { display: none !important; }
  #cv-dialog, #cv-dialog * { color: #111 !important; }
  #cv-dialog .button { display: none !important; }
}
