@layer reset, tokens, base, layout, components, utilities, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100vh; }
  img, svg, canvas, video { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  table { border-collapse: collapse; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--accent); color: var(--bg-0); }
}

@layer tokens {
  :root {
    --bg-0: #04070e;
    --bg-1: #070b16;
    --bg-2: #0b1220;
    --bg-3: #101a2e;
    --line: rgba(151, 177, 222, 0.10);
    --line-2: rgba(151, 177, 222, 0.20);
    --ink: #e8eef9;
    --ink-dim: #aab6c9;
    --muted: #78879f;
    --accent: #4ce0ff;
    --accent-2: #6d8dff;
    --amber: #ffb45e;
    --red: #ff6b7f;
    --green: #52e5a0;
    --violet: #b28dff;
    --grad: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 100%);
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --radius: 14px;
    --radius-sm: 9px;
    --nav-h: 74px;
    --wrap: 1200px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

@layer base {
  html { color-scheme: dark; }
  body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  body.is-locked { overflow: hidden; }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
  }
  h1 { font-size: clamp(2.6rem, 6.5vw, 4.9rem); }
  h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
  h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
  p + p { margin-top: 0.9em; }
  a { transition: color 0.25s var(--ease); }
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--bg-0); }
  ::-webkit-scrollbar-thumb { background: #1a2438; border-radius: 8px; border: 3px solid var(--bg-0); }
  ::-webkit-scrollbar-thumb:hover { background: #26344f; }
  code, .mono { font-family: var(--font-mono); }
  .mono { font-size: 0.86em; }
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .accent { color: var(--accent); }
  .muted { color: var(--muted); }
  .amber { color: var(--amber); }
  .green { color: var(--green); }
  .red { color: var(--red); }
  .violet { color: var(--violet); }
  .bg-grid {
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
  }
}

@layer layout {
  .wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
  .wrap--wide { max-width: 1380px; }
  .section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
  .section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
  .section--alt { background: var(--bg-1); border-block: 1px solid var(--line); }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
  .section-head h2 { margin-top: 0.35rem; }
  .section-head__meta { text-align: right; max-width: 340px; color: var(--muted); }
  .page-head {
    padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
  }
  .page-head__glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(720px 320px at 18% -10%, rgba(76, 224, 255, 0.10), transparent 62%),
      radial-gradient(640px 300px at 85% -20%, rgba(109, 141, 255, 0.10), transparent 60%);
  }
  .page-head h1 { margin-top: 0.6rem; max-width: 18ch; }
  .page-head .lede { margin-top: 1.1rem; max-width: 62ch; }
  .breadcrumb { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb .sep { color: var(--line-2); }
  .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-dim); }
}

@layer components {
  .kicker {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent);
  }
  .kicker::before { content: "//"; color: var(--muted); }

  .btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1.45rem; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
    border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
  }
  .btn svg { width: 16px; height: 16px; }
  .btn:hover { transform: translateY(-2px); }
  .btn--primary { background: var(--grad); color: #04101a; box-shadow: 0 10px 30px -12px rgba(76, 224, 255, 0.55); }
  .btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(76, 224, 255, 0.7); }
  .btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(151, 177, 222, 0.04); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(76, 224, 255, 0.06); }

  .chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em;
    color: var(--ink-dim); background: rgba(151, 177, 222, 0.06); border: 1px solid var(--line);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  }
  a.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
  .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .chip .dot--amber { background: var(--amber); }
  .chip .dot--green { background: var(--green); }
  .chip .dot--violet { background: var(--violet); }
  .chip .dot--red { background: var(--red); }

  .card {
    background: linear-gradient(180deg, rgba(151, 177, 222, 0.05), rgba(151, 177, 222, 0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--line-2);
    background: linear-gradient(180deg, rgba(151, 177, 222, 0.08), rgba(151, 177, 222, 0.02));
    box-shadow: var(--shadow);
  }
  .hud { position: relative; }
  .hud::before, .hud::after {
    content: ""; position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none;
    border: 2px solid var(--accent); opacity: 0.7;
  }
  .hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
  .hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
}

@layer utilities {
  .grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .flex { display: flex; }
  .flex-col { flex-direction: column; }
  .flex-wrap { flex-wrap: wrap; }
  .items-center { align-items: center; }
  .justify-between { justify-content: space-between; }
  .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
  .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
  .mb-2 { margin-bottom: 1rem; }
  .text-center { text-align: center; }
  .no-wrap { white-space: nowrap; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.nav__logo { width: 38px; height: 38px; flex: none; }
.nav__brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.nav__brand-text .tld { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: clamp(0.15rem, 1vw, 0.9rem); }
.nav__link {
  position: relative; padding: 0.45rem 0.4rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--ink-dim); transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.1rem; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__side { display: flex; align-items: center; gap: 1rem; }
.nav__pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(82, 229, 160, 0.06);
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-dim);
}
.nav__pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(82, 229, 160, 0.6); animation: pulse 2.2s infinite; }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(151,177,222,0.04); }
.nav__burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99; visibility: hidden;
  background: rgba(4, 7, 14, 0.96);
  display: flex; flex-direction: column; justify-content: center; padding: 2rem;
  opacity: 0; transition: opacity 0.35s var(--ease), visibility 0.35s;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__links { display: flex; flex-direction: column; gap: 0.4rem; }
.drawer__link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 600;
  color: var(--ink); padding: 0.45rem 0; opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s var(--ease);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.drawer__link:hover { color: var(--accent); }
.drawer__foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; opacity: 0; transition: opacity 0.4s var(--ease) 0.25s; }
.drawer.is-open .drawer__foot { opacity: 1; }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer h4 { font-size: 0.95rem; margin-bottom: 1rem; }
.footer__blurb { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-top: 0.8rem; }
.footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.5rem; }
.footer__links a { font-size: 0.9rem; color: var(--ink-dim); }
.footer__links a:hover { color: var(--accent); }
.footer__contact li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-dim); padding: 0.32rem 0; }
.footer__contact a:hover { color: var(--accent); }
.footer__contact svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.footer__bar .mono { color: var(--ink-dim); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.to-top:hover { color: var(--accent); }

/* ============================ HERO (home) ============================ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--nav-h); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% 40%, rgba(76, 224, 255, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.55) 0%, rgba(4, 7, 14, 0.1) 30%, rgba(4, 7, 14, 0.1) 70%, var(--bg-0) 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2rem, 6vh, 4rem); }
.hero__prompt { font-size: 0.86rem; letter-spacing: 0.06em; color: var(--muted); }
.hero__prompt .ps { color: var(--accent); }
.hero__title { margin-top: 1rem; }
.hero__title .hl {
  background: linear-gradient(115deg, #eaf6ff 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__roles { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; min-height: 1.7em; }
.hero__roles .arrow { color: var(--green); }
.hero__roles .rot { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); }
.hero__roles .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--accent); vertical-align: -0.2em; animation: blink 1s step-end infinite; }
.hero__statement { margin-top: 1.4rem; max-width: 56ch; color: var(--ink-dim); font-size: clamp(1rem, 1.5vw, 1.13rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.dossier {
  position: relative; padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.85), rgba(7, 11, 22, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dossier::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.dossier__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; color: var(--muted); padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.dossier__head .tag { color: var(--red); }
.dossier__id { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }
.dossier dl { display: grid; gap: 0.85rem; padding-block: 1.2rem; }
.dossier dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.18rem; }
.dossier dd { font-size: 0.95rem; color: var(--ink); word-break: break-word; }
.dossier__scan {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(76, 224, 255, 0.7), transparent);
  animation: scan 4.5s var(--ease) infinite;
}
.hero__scroll {
  position: relative; z-index: 2; display: flex; justify-content: center; padding-bottom: 1.6rem; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 20px; height: 32px; border: 1px solid var(--line-2); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; margin-inline: auto; margin-bottom: 0.5rem; }
.hero__scroll .mouse span { width: 2px; height: 7px; background: var(--accent); border-radius: 2px; animation: scrollwheel 1.8s infinite; }

/* ============================ STATS ============================ */
.stat-band { position: relative; border-block: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.stat-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 44px;
}
.stat-band__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.8rem, 4vw, 2.8rem) 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.stat__num .sfx { color: var(--accent); }
.stat__label { display: block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ============================ CAPABILITY CARDS ============================ */
.cap-card { padding: 1.7rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; }
.cap-card::after {
  content: attr(data-seq); position: absolute; right: 0.8rem; top: 0.3rem;
  font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: transparent;
  -webkit-text-stroke: 1px rgba(151, 177, 222, 0.14);
}
.cap-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(76, 224, 255, 0.06); }
.cap-card__icon svg { width: 22px; height: 22px; color: var(--accent); }
.cap-card h3 { font-size: 1.12rem; }
.cap-card p { color: var(--muted); font-size: 0.92rem; }
.cap-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }

/* ============================ PIPELINE ============================ */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.pipeline::before { content: ""; position: absolute; top: 26px; left: 7%; right: 7%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); z-index: 0; }
.pipe-step { position: relative; z-index: 1; padding: 1.4rem 1.3rem; }
.pipe-step__num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.1rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--bg-0);
  background: var(--grad); box-shadow: 0 10px 26px -10px rgba(76, 224, 255, 0.6);
}
.pipe-step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pipe-step p { color: var(--muted); font-size: 0.9rem; }

/* ============================ CREDENTIALS STRIP ============================ */
.cred-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, 4vw, 3rem); padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.cred-strip span { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); opacity: 0.85; transition: opacity 0.25s var(--ease), color 0.25s var(--ease); }
.cred-strip span:hover { opacity: 1; color: var(--ink); }
.cred-strip svg { width: 14px; height: 14px; }

/* ============================ MARQUEE ============================ */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.8rem; padding-inline: 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-dim); white-space: nowrap; }
.marquee__item .mark { color: var(--accent); font-size: 0.6rem; }
.marquee__item:hover { color: var(--ink); }

/* ============================ CTA BAND ============================ */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(640px 300px at 50% 110%, rgba(76, 224, 255, 0.12), transparent 65%),
    radial-gradient(500px 260px at 85% 0%, rgba(109, 141, 255, 0.08), transparent 60%);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { max-width: 52ch; margin: 1.2rem auto 0; }
.cta-band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.cta-band .cta-mono { margin-top: 1.8rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

/* ============================ PAGE HEAD ICON ROW ============================ */
.page-head__row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

/* ============================ TIMELINE (experience) ============================ */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 15px; width: 1px; background: linear-gradient(180deg, var(--accent) 0%, var(--line-2) 30%, var(--line-2) 80%, transparent); }
.tl-item { position: relative; padding: 0 0 3rem 52px; }
.tl-item:last-child { padding-bottom: 0.5rem; }
.tl-dot { position: absolute; left: 15px; top: 6px; width: 31px; height: 31px; transform: translateX(-50%); border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); }
.tl-dot svg { width: 14px; height: 14px; color: var(--accent); }
.tl-item.is-current .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(76, 224, 255, 0.12); }
.tl-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ring 2.4s var(--ease) infinite; }
.tl-item.is-current .tl-dot::after { opacity: 1; }
.tl-card { padding: 1.8rem 1.7rem 1.7rem; }
.tl-card__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.9rem; }
.tl-card__role { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
.tl-card__org { color: var(--accent); font-size: 0.98rem; }
.tl-period { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; white-space: nowrap; }
.tl-period .live { color: var(--green); }
.tl-summary { color: var(--ink-dim); font-size: 0.96rem; margin-bottom: 1rem; }
.tl-scope { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.tl-list { display: grid; gap: 0.6rem; }
.tl-list li { position: relative; padding-left: 1.4rem; color: var(--ink-dim); font-size: 0.94rem; }
.tl-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ============================ EDUCATION ============================ */
.edu-card { padding: 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; }
.edu-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.edu-card h3 { font-size: 1.12rem; }
.edu-card .deg { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--accent); }
.edu-card .uni { color: var(--ink); font-size: 0.95rem; }
.edu-card .sub { color: var(--muted); font-size: 0.9rem; }

/* ============================ SKILLS / TOOLS ============================ */
.tools-panel { position: relative; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-bottom: 1.8rem; }
.filter-chip {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--ink-dim);
  background: rgba(151, 177, 222, 0.04); transition: all 0.25s var(--ease);
}
.filter-chip:hover { border-color: var(--line-2); color: var(--ink); }
.filter-chip.is-active { background: var(--grad); color: var(--bg-0); border-color: transparent; font-weight: 600; }
.search-wrap { position: relative; flex: 1 1 260px; min-width: 200px; }
.search-wrap svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search-input {
  width: 100%; padding: 0.62rem 1rem 0.62rem 2.6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(151, 177, 222, 0.04); color: var(--ink);
  font-size: 0.9rem; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76, 224, 255, 0.1); }

.tools-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 1.2rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.tool-card {
  display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(151, 177, 222, 0.05), rgba(151, 177, 222, 0.015));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: default;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.tool-card__badge {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--bg-0);
}
.tool-card__name { font-size: 0.95rem; font-weight: 600; }
.tool-card__cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tool-card.is-hidden { display: none; }

.cat-va .tool-card__badge, .badge-va { background: var(--accent); }
.cat-net .tool-card__badge, .badge-net { background: var(--violet); }
.cat-ad .tool-card__badge, .badge-ad { background: var(--amber); }
.cat-script .tool-card__badge, .badge-script { background: var(--green); }
.cat-web .tool-card__badge, .badge-web { background: var(--accent-2); }
.cat-mobile .tool-card__badge, .badge-mobile { background: var(--red); }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.skill-card { padding: 1.5rem 1.4rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.skill-card__icon { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(151, 177, 222, 0.06); border: 1px solid var(--line); }
.skill-card__icon svg { width: 20px; height: 20px; color: var(--accent); }
.skill-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.skill-card p { color: var(--muted); font-size: 0.9rem; }

/* ============================ CERTIFICATIONS ============================ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cert-card { padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cert-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cert-card__badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--bg-0); background: var(--grad); flex: none;
}
.cert-card h3 { font-size: 1.08rem; line-height: 1.25; }
.cert-card__issuer { font-size: 0.92rem; color: var(--accent); }
.cert-card__id { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); word-break: break-all; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.cert-card__id .lab { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.15rem; color: var(--muted); opacity: 0.8; }
.cert-card__verify { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--ink-dim); }
.cert-card__verify:hover { color: var(--accent); }
.cert-card__verify svg { width: 13px; height: 13px; }

/* ============================ ENGAGEMENTS ============================ */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.sector-card { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.sector-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sector-card__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(151, 177, 222, 0.05); }
.sector-card__icon svg { width: 20px; height: 20px; color: var(--accent); }
.sector-card__count { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1; }
.sector-card__count small { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-left: 0.3rem; }
.sector-card h3 { font-size: 1.08rem; }
.sector-card__preview { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sector-card__preview .chip { font-size: 0.7rem; }

.eng-note { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 2rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.85rem; }
.eng-note svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 2px; }

/* ============================ CONTACT ============================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.chan-list { display: grid; gap: 0.9rem; }
.chan {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(151, 177, 222, 0.05), rgba(151, 177, 222, 0.015));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chan:hover { border-color: var(--line-2); transform: translateX(4px); box-shadow: var(--shadow); }
.chan__icon { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(76, 224, 255, 0.07); border: 1px solid var(--line); }
.chan__icon svg { width: 19px; height: 19px; color: var(--accent); }
.chan__body { min-width: 0; }
.chan__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chan__value { font-size: 0.94rem; word-break: break-word; }
.chan__value a:hover { color: var(--accent); }
.chan__copy { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all 0.25s var(--ease); }
.chan__copy:hover { color: var(--accent); border-color: var(--accent); }
.chan__copy svg { width: 15px; height: 15px; }
.chan__copy.is-copied { color: var(--green); border-color: var(--green); }

.form-panel { padding: 1.8rem 1.7rem; }
.form-panel h2 { font-size: 1.3rem; }
.form-panel > .lede { font-size: 0.95rem; margin-bottom: 1.6rem; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(151, 177, 222, 0.04); color: var(--ink);
  font-size: 0.94rem; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76, 224, 255, 0.1); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__error { display: none; font-family: var(--font-mono); font-size: 0.72rem; color: var(--red); margin-top: 0.35rem; }
.field.has-error .field__error { display: block; }
.form__note { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.form__note svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ============================ 404 ============================ */
.err-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; position: relative; overflow: hidden; }
.err-page .big { font-family: var(--font-mono); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================ REVEAL ============================ */
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal:not(.is-in)[data-dir="left"] { transform: translateX(-30px); }
.js .reveal:not(.is-in)[data-dir="right"] { transform: translateX(30px); }
.js .reveal:not(.is-in)[data-dir="zoom"] { transform: scale(0.94); }
.js .reveal.is-in { opacity: 1; }

/* ============================ KEYFRAMES ============================ */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(82, 229, 160, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(82, 229, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 229, 160, 0); } }
@keyframes scan { 0% { top: 8%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { top: 92%; opacity: 0; } }
@keyframes scrollwheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.anim-fade-in { animation: fadeIn 0.6s var(--ease) both; }
.anim-fade-up { animation: fadeInUp 0.8s var(--ease) both; animation-delay: var(--d, 0s); }

/* ============================ VIEW TRANSITIONS ============================ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 240ms var(--ease) both fadeOut; }
::view-transition-new(root) { animation: 360ms var(--ease) both fadeInUp; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1180px) {
  .nav__pill { display: none; }
}
@media (max-width: 1060px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__dossier-wrap { max-width: 460px; }
  .dossier { margin-top: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__meta { text-align: left; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .stat-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cert-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__pill { display: none; }
  .tl-item { padding-left: 46px; }
}
@media (max-width: 480px) {
  .hero__chips .chip { padding: 0.35rem 0.7rem; font-size: 0.7rem; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal:not(.is-in) { opacity: 1 !important; transform: none !important; }
  .hero__canvas, .hero__scroll, .dossier__scan, .nav__pill .pulse, .tl-dot::after { display: none !important; }
}
