/* Alpha Paragrine — Direction A: Midnight institutional */

:root {
  --bg: #060A14;
  --bg-raised: #0B1120;
  --card: #0D1426;
  --card-hover: #111a31;
  --line: rgba(160, 178, 220, 0.12);
  --line-strong: rgba(160, 178, 220, 0.22);
  --text: #EAEEF6;
  --text-2: #A3AEC4;
  --text-3: #6F7B93;
  --brand: #0052FF;
  --brand-hover: #1F66FF;
  --accent: #6E95FF;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--font-body);
  padding: 14px 22px; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(110, 149, 255, .06); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(6, 10, 20, 0.88); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo svg { width: 22px; height: 30px; color: var(--brand); flex-shrink: 0; }
.logo span { font: 500 15px/1.05 var(--font-head); letter-spacing: 0.16em; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a.nav-link { font-size: 15px; color: var(--text-2); text-decoration: none; position: relative; padding: 6px 0; transition: color .2s; }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--text); }
.nav a.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--brand); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand); }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
.section-num { font: 400 13px/1 var(--font-mono); color: var(--accent); letter-spacing: 0.1em; padding-bottom: 10px; }
.section-num span { color: var(--text-3); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.section-head p { color: var(--text-2); margin-top: 16px; max-width: 620px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 10vw, 128px) 0 clamp(72px, 9vw, 112px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -320px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; margin: 28px 0 0; }
.hero h1 .line { display: block; }
@media (min-width: 1000px) { .hero h1 .line { white-space: nowrap; } }
.hero h1 .blue { color: var(--accent); }
.hero-sub { margin-top: 28px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-visual { position: absolute; right: calc(var(--gutter) - 40px); top: 50%; transform: translateY(-46%); width: min(560px, 46vw); aspect-ratio: 1 / 1; z-index: -1; opacity: .8; pointer-events: none; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }

.net-edge { stroke: rgba(110, 149, 255, 0.28); stroke-width: 1; fill: none; }
.net-edge.flow { stroke: rgba(110, 149, 255, 0.55); stroke-dasharray: 4 8; animation: flow 3.2s linear infinite; }
.net-node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.2; }
.net-node.on { fill: var(--brand); stroke: var(--brand); animation: pulse 3.6s ease-in-out infinite; }
.net-node.on.d2 { animation-delay: 1.2s; }
.net-node.on.d3 { animation-delay: 2.4s; }
.packet { fill: #fff; }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Intro ---------- */
.intro { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.intro-text { font: 400 clamp(22px, 2.6vw, 34px)/1.35 var(--font-head); letter-spacing: -0.015em; color: var(--text); }
.intro-text + .intro-text { margin-top: 24px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; font-family: var(--font-body); letter-spacing: 0; max-width: 820px; }
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.focus div { padding: 28px 28px 30px; background: var(--bg-raised); }
.focus div + div { border-left: 1px solid var(--line); }
.focus small { display: block; font: 400 12px/1 var(--font-mono); color: var(--accent); letter-spacing: .12em; margin-bottom: 18px; }
.focus strong { font: 500 20px/1.25 var(--font-head); letter-spacing: -0.01em; }

/* ---------- What we do ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 44px); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(110, 149, 255, .6), transparent); }
.pillar-icon { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: var(--accent); margin-bottom: 28px; }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: clamp(26px, 2.6vw, 32px); }
.pillar > p { color: var(--text-2); margin-top: 14px; }
.pillar ul { list-style: none; padding: 0; margin: 32px 0 0; }
.pillar li { padding: 20px 0; border-top: 1px solid var(--line); }
.pillar li:last-child { padding-bottom: 0; }
.pillar li b { display: block; font: 500 13px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--text); margin-bottom: 6px; }
.pillar li span { color: var(--text-2); font-size: 15px; }

/* ---------- Performance ---------- */
.perf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perf li { background: var(--card); padding: 28px 28px 30px; display: flex; flex-direction: column; }
.perf img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.perf h3 { font-size: 17px; letter-spacing: -0.005em; margin-top: 18px; }
.perf-label { font: 400 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--text-3); margin-top: auto; padding-top: 28px; }
.perf-value { font: 500 clamp(34px, 3.4vw, 46px)/1 var(--font-head); letter-spacing: -0.03em; margin-top: 10px; color: var(--text); }
.perf-period { font: 400 12px/1.4 var(--font-mono); color: var(--text-2); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.perf-period span { color: var(--text-3); }
.perf-note { margin-top: 20px; color: var(--text-2); font-size: 14.5px; }
.perf-note p + p { margin-top: 10px; }
mark.todo { background: rgba(250, 199, 117, .18); color: #FAC775; padding: 1px 4px; border-radius: 3px; }

/* ---------- Team ---------- */
.team-label { font: 400 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 20px; }
.team-label + .founders, .founders + .team-label { margin-top: 0; }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s; }
.person:hover { border-color: var(--line-strong); }
.founders .person { flex-direction: row; }
.person-photo { position: relative; overflow: hidden; background: #0a1020; aspect-ratio: 1 / 1; }
.founders .person-photo { width: 42%; aspect-ratio: auto; min-height: 100%; flex-shrink: 0; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05) brightness(.92); transition: filter .5s, transform .6s; }
.person:hover .person-photo img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.03); }
.person-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, .55)); pointer-events: none; }
.person-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.person h3 { font-size: 22px; letter-spacing: -0.01em; }
.role { font: 400 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.bio { color: var(--text-2); font-size: 15px; margin-top: 18px; }
.bio p + p { margin-top: 12px; }
.bio-more { margin-top: 12px; }
.bio-more summary { list-style: none; cursor: pointer; font: 500 14px/1 var(--font-body); color: var(--text); display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after { content: "+"; font: 400 18px/1 var(--font-mono); color: var(--accent); transition: transform .2s; }
.bio-more[open] summary::after { transform: rotate(45deg); }
.bio-more[open] summary .more { display: none; }
.bio-more:not([open]) summary .less { display: none; }

/* ---------- Providers ---------- */
.providers { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.provider-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; background: var(--bg-raised); }
.provider-row + .provider-row { border-top: 1px solid var(--line); }
.provider-row h3 { font: 400 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); padding: 0 28px; }
.logos { display: flex; flex-wrap: wrap; border-left: 1px solid var(--line); margin: 0; padding: 0; }
.logos li { list-style: none; flex: 1 1 160px; display: grid; place-items: center; padding: 22px 16px; min-height: 96px; }
.logos li + li { border-left: 1px solid var(--line); }
.logos img { width: 150px; height: auto; filter: brightness(0) invert(1); opacity: .62; transition: opacity .25s; }
.logos li:hover img { opacity: 1; }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.contact-main, .contact-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.6vw, 48px); }
.contact-main .label { font: 400 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.email { display: inline-block; margin-top: 18px; font: 500 clamp(22px, 3vw, 36px)/1.2 var(--font-head); letter-spacing: -0.02em; text-decoration: none; word-break: break-word; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; padding-bottom: 4px; }
.email:hover { background-size: 100% 1px; }
.contact-side { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: linear-gradient(160deg, rgba(0, 82, 255, .22), rgba(0, 82, 255, .04) 60%), var(--card); }
.contact-side h3 { font-size: clamp(24px, 2.4vw, 30px); }
.contact-side p { color: var(--text-2); margin-top: 10px; }
.disclaimer { margin-top: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-3); font-size: 13.5px; line-height: 1.6; display: flex; gap: 14px; }
.disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--text-3); }

/* ---------- About page ---------- */
.page-hero { padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); position: relative; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 800px; height: 800px; right: -300px; top: -380px; background: radial-gradient(circle, rgba(0, 82, 255, .2), transparent 60%); }
.page-hero h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -0.04em; margin-top: 28px; }
.page-hero .feather { position: absolute; right: var(--gutter); bottom: -40px; width: clamp(140px, 22vw, 300px); height: auto; color: rgba(110, 149, 255, .08); z-index: -1; }
.story { position: relative; padding-bottom: clamp(80px, 10vw, 128px); }
.story ol { list-style: none; margin: 0; padding: 0; position: relative; }
.story ol::before { content: ""; position: absolute; left: 199px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--brand), var(--line) 85%); }
.story li { display: grid; grid-template-columns: 200px 1fr; gap: 0; padding: 0 0 clamp(40px, 5vw, 64px); position: relative; }
.story li:last-child { padding-bottom: 0; }
.story .marker { font: 400 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 9px; position: relative; }
.story .marker::after { content: ""; position: absolute; right: -5px; top: 6px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--accent); }
.story li:last-child .marker::after { background: var(--brand); border-color: var(--brand); }
.story p { padding-left: clamp(28px, 4vw, 56px); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--text-2); max-width: 820px; }
.story li:first-child p { color: var(--text); font: 400 clamp(22px, 2.4vw, 30px)/1.4 var(--font-head); letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { text-decoration: none; color: var(--text-2); }
.footer-nav a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-visual { right: -140px; top: 0; transform: none; width: 440px; opacity: .35; }
  .section-head, .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-num { padding-bottom: 0; }
  .pillars, .contact-card { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-row { grid-template-columns: 1fr; }
  .provider-row h3 { padding: 22px 24px 0; }
  .logos { border-left: 0; }
  .logos li { padding: 18px 12px; min-height: 84px; }
  .story ol::before { left: 4px; }
  .story li { grid-template-columns: 1fr; padding-left: 32px; }
  .story .marker::after { right: auto; left: -32px; }
  .story p { padding-left: 0; margin-top: 14px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a.nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.nav-link[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 20px; justify-content: center; }
  .focus { grid-template-columns: 1fr; }
  .perf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perf li { padding: 22px 18px 24px; }
  .perf-value { font-size: 30px; }
  .perf li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .focus div + div { border-left: 0; border-top: 1px solid var(--line); }
  .founders .person { flex-direction: column; }
  .founders .person-photo { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .person-photo { aspect-ratio: 4 / 3; }
  .person-photo img { object-position: center 25%; }
  .team { grid-template-columns: 1fr; }
  .logos li { flex: 1 1 50%; }
  .logos li + li { border-left: 0; }
  .logos li:nth-child(even) { border-left: 1px solid var(--line); }
  .logos li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .logos img { width: 120px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .packet { display: none; }
}

/* ================= Motion layer (decorative only) ================= */
@keyframes ap-rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes ap-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ap-fade { from { opacity: 0; } }

/* Headline lines slide up out of a mask, one after another */
.hero h1 .line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; animation: ap-rise 1.1s cubic-bezier(.16, .84, .24, 1) .1s both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .22s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .34s; }
.hero .eyebrow, .page-hero .eyebrow { animation: ap-fade .6s ease both; }
.hero-sub { animation: ap-fade-up .9s cubic-bezier(.2, .7, .2, 1) .6s both; }
.hero-cta { animation: ap-fade-up .9s cubic-bezier(.2, .7, .2, 1) .75s both; }
.hero-visual { animation: ap-fade 1.8s ease .2s both; }
.page-hero h1 { animation: ap-fade-up 1s cubic-bezier(.16, .84, .24, 1) .1s both; }

/* Living network */
.net-edge { transition: stroke .45s, stroke-width .45s; }
.net-edge.lit { stroke: rgba(176, 198, 255, .95); stroke-width: 1.5; }
.net-node { transition: fill .35s, stroke .35s; }
.net-node.hit { fill: var(--accent); stroke: #fff; }
.net-ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.packet-halo { fill: rgba(110, 149, 255, .28); }

/* Spotlight cards */
.spot { position: relative; }
.spot-glow {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 82, 255, .11), transparent 45%);
}
.spot-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 170, 255, .9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover .spot-glow { opacity: 1; }

/* Self-drawing About timeline */
.story ol.tl-anim::before { background: var(--line-strong); }
.story ol.tl-anim::after {
  content: ""; position: absolute; left: 199px; top: 10px; width: 1px;
  height: calc((100% - 20px) * var(--p, 0));
  background: linear-gradient(var(--accent), var(--brand));
  box-shadow: 0 0 10px 1px rgba(0, 82, 255, .85);
}
.story ol.tl-anim li p { opacity: .3; transition: opacity .8s ease; }
.story ol.tl-anim li.lit p { opacity: 1; }
.story ol.tl-anim .marker { transition: color .5s; }
.story ol.tl-anim li:not(.lit) .marker { color: var(--text-3); }
.story ol.tl-anim .marker::after { transition: background .4s, border-color .4s, box-shadow .4s; }
.story ol.tl-anim li:not(.lit) .marker::after { background: var(--bg); border-color: var(--line-strong); }
.story ol.tl-anim li.lit .marker::after { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 82, 255, .18), 0 0 14px rgba(0, 82, 255, .8); }
@media (max-width: 960px) { .story ol.tl-anim::after { left: 4px; } }

/* Smooth page-to-page transitions (Chrome, Edge, Safari; others just load normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: ap-vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: ap-vt-in .5s cubic-bezier(0, 0, .2, 1) both; }
}
@keyframes ap-vt-out { to { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }
@keyframes ap-vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ================= Cyberpunk layer (decorative only) ================= */
:root { --cyan: #00E5FF; --magenta: #FF2D78; }

/* A. Particle feather */
.hero-visual .hero-particles { position: absolute; inset: -8%; width: 116%; height: 116%; }
.hero-visual.has-particles svg { opacity: .38; }
.feather-particles {
  position: absolute; right: calc(var(--gutter) - 60px); bottom: -30px; width: clamp(240px, 30vw, 420px); height: clamp(280px, 36vw, 500px);
  z-index: -1; pointer-events: none; opacity: .55;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%);
}
.page-hero.has-particles .feather { display: none; }
@media (max-width: 960px) { .feather-particles { opacity: .35; right: -60px; } }

/* B. Headline glitch: RGB split slices for a split second */
.hero h1 .line > span { position: relative; }
.hero h1.glitching .line > span { animation: ap-rise 1.1s cubic-bezier(.16, .84, .24, 1) both, ap-jitter .38s steps(3) 1; }
.hero h1.glitching .line > span::before,
.hero h1.glitching .line > span::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; mix-blend-mode: screen;
}
.hero h1.glitching .line > span::before { color: var(--cyan); animation: ap-slice-a .38s steps(4) both; }
.hero h1.glitching .line > span::after { color: var(--magenta); animation: ap-slice-b .38s steps(4) both; }
@keyframes ap-jitter { 0% { translate: 0; } 33% { translate: -2px 0; } 66% { translate: 2px 0; } 100% { translate: 0; } }
@keyframes ap-slice-a {
  0% { clip-path: inset(8% 0 62% 0); transform: translate(-5px, 0); }
  25% { clip-path: inset(48% 0 22% 0); transform: translate(4px, 0); }
  50% { clip-path: inset(26% 0 50% 0); transform: translate(-3px, 0); }
  75% { clip-path: inset(70% 0 6% 0); transform: translate(5px, 0); }
  100% { clip-path: inset(100% 0 0 0); transform: none; }
}
@keyframes ap-slice-b {
  0% { clip-path: inset(60% 0 12% 0); transform: translate(5px, 0); }
  25% { clip-path: inset(12% 0 70% 0); transform: translate(-4px, 0); }
  50% { clip-path: inset(40% 0 36% 0); transform: translate(3px, 0); }
  75% { clip-path: inset(4% 0 80% 0); transform: translate(-5px, 0); }
  100% { clip-path: inset(100% 0 0 0); transform: none; }
}

/* C. HUD corner brackets */
.hud-card { position: relative; }
.hud {
  position: absolute; inset: 10px; z-index: 2; pointer-events: none; opacity: .55;
  --c: rgba(110, 149, 255, .7); --l: 12px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l) no-repeat;
  transition: inset .35s cubic-bezier(.2, .7, .2, 1), opacity .35s;
}
.hud-card:hover .hud { inset: 5px; opacity: 1; --c: rgba(170, 200, 255, 1); }

/* D. Scanlines + film grain over the whole page, and light streaks on dividers */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}
.cyber body::before {
  content: ""; position: fixed; left: -50%; top: -50%; width: 200%; height: 200%; z-index: 89; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: ap-grain .9s steps(5) infinite; will-change: transform;
}
@keyframes ap-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); } }
.intro, .section { position: relative; }
.streak::before {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), #fff, transparent) no-repeat;
  background-size: 260px 1px; background-position: -260px 1px;
  filter: drop-shadow(0 0 6px rgba(110, 149, 255, .9));
  animation: ap-streak 1.8s cubic-bezier(.5, 0, .2, 1) forwards;
}
@keyframes ap-streak { from { background-position: -260px 1px; opacity: 1; } 85% { opacity: 1; } to { background-position: calc(100% + 260px) 1px; opacity: 0; } }

/* E. Performance tiles boot: scan beam + neon flicker-on */
.perf li { position: relative; overflow: hidden; }
.perf.pre-boot .perf-value { opacity: 0; }
.perf.boot li::after {
  content: ""; position: absolute; left: 0; right: 0; top: -45%; height: 45%; pointer-events: none;
  background: linear-gradient(transparent, rgba(110, 149, 255, .1) 70%, rgba(170, 200, 255, .5));
  animation: ap-scan 1.1s ease-in calc(var(--i) * 110ms) both;
}
.perf.boot .perf-value { animation: ap-neon 1.3s linear calc(var(--i) * 110ms + .45s) both; }
@keyframes ap-scan { from { top: -45%; } to { top: 100%; } }
@keyframes ap-neon {
  0% { opacity: 0; } 6% { opacity: 1; text-shadow: 0 0 18px rgba(110, 149, 255, .9); } 10% { opacity: .15; }
  18% { opacity: 1; } 24% { opacity: .35; } 32% { opacity: 1; text-shadow: 0 0 22px rgba(110, 149, 255, .8); }
  100% { opacity: 1; text-shadow: 0 0 0 rgba(110, 149, 255, 0); }
}

/* F. Running light around the primary buttons */
@property --ap-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-primary { position: relative; isolation: isolate; transition: background .2s, box-shadow .3s, transform .2s; }
.btn-primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ap-ang), transparent 0 60%, rgba(191, 224, 255, 0) 62%, #CFE6FF 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ap-spin 3.4s linear infinite;
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(110, 149, 255, .45), 0 0 30px rgba(0, 82, 255, .55); }
@keyframes ap-spin { to { --ap-ang: 360deg; } }

/* G. Team photos: scan-line wipe + glitch jolt as colour comes in */
.person-photo::before {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 2; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(170, 200, 255, .18) 0 1px, transparent 1px 3px), linear-gradient(transparent, rgba(110, 149, 255, .35) 85%, rgba(220, 235, 255, .9));
}
.person:hover .person-photo::before { animation: ap-wipe .75s cubic-bezier(.4, 0, .2, 1); }
.person:hover .person-photo img { animation: ap-photo-glitch .42s steps(2) 1; }
@keyframes ap-wipe { 0% { top: -30%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes ap-photo-glitch {
  0% { clip-path: inset(0 0 0 0); translate: 0; }
  20% { clip-path: inset(18% 0 52% 0); translate: -6px 0; }
  40% { clip-path: inset(56% 0 14% 0); translate: 5px 0; }
  60% { clip-path: inset(30% 0 36% 0); translate: -3px 0; }
  100% { clip-path: inset(0 0 0 0); translate: 0; }
}
@media (max-width: 960px) { .hero-visual .hero-particles { opacity: .55; } }
