/* =========================================================
   Stijn Van Severen - personal system
   Dark, analytical. Brain-network background.
   ========================================================= */

:root {
  --bg: #05070e;
  --bg-2: #070b16;
  --panel: rgba(15, 22, 38, 0.55);

  --ink: #eef4ff;
  --ink-soft: #aebbd6;
  --ink-mute: #6c7a99;
  --line: rgba(126, 158, 214, 0.14);
  --line-soft: rgba(126, 158, 214, 0.08);

  --cyan: #3be7ff;
  --blue: #5b8cff;
  --violet: #9b6cff;
  --mint: #7cffbf;

  --grad: linear-gradient(120deg, #3be7ff 0%, #5b8cff 48%, #9b6cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(59, 231, 255, .16), rgba(155, 108, 255, .16));

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 80% -8%, rgba(91, 140, 255, .12), transparent 60%),
    radial-gradient(900px 620px at 6% 8%, rgba(59, 231, 255, .09), transparent 55%),
    radial-gradient(1000px 900px at 50% 120%, rgba(155, 108, 255, .1), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(59, 231, 255, .26); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- background ---- */
#neural-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.field-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 45%, rgba(5, 7, 14, .45) 100%),
    linear-gradient(180deg, transparent 64%, rgba(5, 7, 14, .78) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: rgba(126, 158, 214, .08); }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--grad); box-shadow: 0 0 14px rgba(59, 231, 255, .55); transition: width .12s linear; }
main { position: relative; z-index: 2; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(var(--maxw), calc(100% - 28px)); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(9, 13, 24, .58); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); transition: transform .5s var(--ease), opacity .4s var(--ease), box-shadow .4s var(--ease); }
.nav.is-scrolled { box-shadow: 0 18px 50px -28px rgba(0, 0, 0, .9); }
.nav.is-hidden { transform: translate(-50%, -160%); opacity: 0; }
.nav-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-glyph { position: relative; width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.brand-glyph i { position: absolute; border-radius: 50%; border: 1.4px solid transparent; }
.brand-glyph i:nth-child(1) { inset: 9px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.brand-glyph i:nth-child(2) { inset: 4px; border-color: rgba(91, 140, 255, .8); animation: spin 9s linear infinite; }
.brand-glyph i:nth-child(3) { inset: 0; border-color: rgba(155, 108, 255, .55); animation: spin 14s linear infinite reverse; }
.brand-glyph.small { width: 18px; height: 18px; }
.brand-glyph.small i:nth-child(1) { inset: 6px; }
.brand-glyph.small i:nth-child(2) { inset: 3px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); background: rgba(126, 158, 214, .1); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; transform: translateX(-50%); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-resume { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); transition: color .25s, border-color .25s, background .25s; }
.nav-resume svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-resume:hover { color: var(--ink); border-color: rgba(59, 231, 255, .4); background: rgba(59, 231, 255, .06); }
.nav-contact { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; font-weight: 600; color: #04121a; cursor: pointer; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 26px -10px rgba(59, 231, 255, .7); transition: transform .25s var(--ease), box-shadow .25s; }
.nav-contact:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(59, 231, 255, .85); }
.nav-contact .ping { width: 7px; height: 7px; border-radius: 50%; background: #04121a; position: relative; }
.nav-contact .ping::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(4, 18, 26, .5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 760px) { .nav-links { display: none; } .brand-name { display: none; } .nav-resume span { display: none; } .nav-resume { padding: 8px; } }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .3s, border-color .3s, background .3s, color .3s; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.lg { padding: 15px 26px; font-size: 15px; }
.btn-primary { color: #04121a; background: var(--grad); box-shadow: 0 14px 34px -14px rgba(59, 231, 255, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(59, 231, 255, .95); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(126, 158, 214, .05); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(59, 231, 255, .45); background: rgba(59, 231, 255, .07); }
.btn-line { color: var(--ink); border-color: rgba(126, 158, 214, .28); background: transparent; }
.btn-line:hover { transform: translateY(-2px); border-color: var(--cyan); color: #fff; }

/* =========================================================
   HERO (split: copy left, portrait right)
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: clamp(120px, 15vh, 180px) var(--gutter) 96px; }
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(24px, 5vw, 70px); align-items: center; width: 100%; max-width: var(--maxw); }
.hero-copy { text-align: left; }

[data-rise] { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero-eyebrow { animation-delay: .15s; }
#hero-title { animation-delay: .28s; }
.hero-focus { animation-delay: .4s; }
.hero-lede { animation-delay: .52s; }
.hero-actions { animation-delay: .64s; }
.hero-metrics { animation-delay: .76s; }
.hero-portrait { animation-delay: .35s; }
.scroll-cue { animation-delay: 1s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 2.6px; color: var(--ink-mute); margin-bottom: 18px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

#hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: .98; letter-spacing: -.02em; background: linear-gradient(180deg, #ffffff 0%, #c7d7f5 70%, #8fa6cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* focus display with clock brackets */
.hero-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; font-family: var(--mono); font-size: clamp(.92rem, 2.1vw, 1.08rem); color: var(--ink-mute); }
.focus-display { display: inline-flex; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 10px; }
.focus-display .brk { font-family: var(--display); font-weight: 600; font-size: 1.5em; line-height: 0; color: var(--cyan); opacity: .55; animation: brkPulse 2.4s steps(1) infinite; }
.focus-display .brk:last-child { animation-delay: .1s; }
@keyframes brkPulse { 0%, 60% { opacity: .55; } 70%, 100% { opacity: 1; } }
.focus-rotator { position: relative; display: inline-grid; overflow: hidden; text-align: left; height: 1.55em; transition: width .4s var(--ease); }
.focus-rotator span { grid-area: 1 / 1; align-self: center; width: max-content; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: opacity .45s var(--ease), transform .45s var(--ease); font-weight: 600; letter-spacing: .3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.focus-rotator span.is-active { opacity: 1; transform: translateY(0); }
.focus-rotator span.is-out { opacity: 0; transform: translateY(-70%); }

.hero-lede { max-width: 540px; margin: 22px 0 0; font-size: clamp(1rem, 2.2vw, 1.16rem); color: var(--ink-soft); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px); margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.hero-metrics dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 1.95rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-metrics dd { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

/* portrait */
.hero-portrait { position: relative; justify-self: center; width: clamp(260px, 34vw, 420px); will-change: transform; }
.pf-glow { position: absolute; left: 50%; top: 42%; width: 120%; height: 120%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(59, 231, 255, .26), rgba(91, 140, 255, .12) 45%, transparent 68%); filter: blur(14px); z-index: -2; animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.pf-scan { position: absolute; left: 4%; right: 4%; height: 24%; z-index: 2; pointer-events: none; border-radius: 50%; background: linear-gradient(180deg, transparent, rgba(59, 231, 255, .14), transparent); mix-blend-mode: screen; opacity: 0; animation: scan 6s ease-in-out infinite; }
@keyframes scan { 0% { top: 4%; opacity: 0; } 12% { opacity: .8; } 80% { opacity: .8; } 100% { top: 78%; opacity: 0; } }
.pf-img { position: relative; z-index: 1; width: 100%; height: auto; display: block; -webkit-mask: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%); mask: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%); filter: drop-shadow(0 26px 60px rgba(0, 0, 0, .6)) saturate(1.04) contrast(1.02); }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ink-mute); }
.scroll-cue .sc-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; }
.scroll-cue .sc-rail { width: 22px; height: 34px; border-radius: 999px; border: 1px solid var(--line); display: grid; justify-items: center; padding-top: 6px; }
.scroll-cue .sc-dot { width: 4px; height: 7px; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: scDrop 1.8s var(--ease) infinite; }
@keyframes scDrop { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }
.scroll-cue:hover { color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .hero-copy { text-align: center; order: 2; }
  .hero-portrait { order: 1; width: clamp(220px, 62vw, 320px); }
  .hero-eyebrow, .hero-focus, .hero-actions, .hero-metrics { justify-content: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
}

/* =========================================================
   BLOCK SCAFFOLD
   ========================================================= */
.block { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 10vh, 124px) var(--gutter); }
.block-head { margin-bottom: 44px; }
.block-head.centered { text-align: center; display: flex; flex-direction: column; align-items: center; }
.block-head .idx { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 3px; }
.block-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 2.9rem); letter-spacing: -.02em; line-height: 1.05; margin-top: 8px; }
.head-sub { max-width: 600px; margin-top: 14px; color: var(--ink-soft); font-size: clamp(.96rem, 2vw, 1.08rem); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-mute); }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   PROFILE MATRIX (centered tabs)
   ========================================================= */
.matrix-tabs { position: relative; display: inline-flex; gap: 4px; margin-top: 26px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(9, 13, 24, .5); backdrop-filter: blur(10px); }
.m-tab { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-mute); cursor: pointer; padding: 10px 18px; border: 0; background: transparent; border-radius: 999px; transition: color .3s; }
.m-tab b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-mute); opacity: .8; }
.m-tab:hover { color: var(--ink-soft); }
.m-tab.is-active { color: #04121a; }
.m-tab.is-active b { color: rgba(4, 18, 26, .7); }
.m-indicator { position: absolute; z-index: 1; top: 6px; left: 0; height: calc(100% - 12px); border-radius: 999px; background: var(--grad); box-shadow: 0 8px 22px -10px rgba(59, 231, 255, .8); transition: transform .45s var(--ease), width .45s var(--ease); }
@media (max-width: 540px) { .matrix-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .matrix-tabs::-webkit-scrollbar { display: none; } .m-tab { padding: 9px 13px; font-size: 13px; white-space: nowrap; } }

.matrix-stage { position: relative; }
.m-panel { animation: panelIn .55s var(--ease); }
.m-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* timeline */
.timeline { position: relative; list-style: none; padding-left: 6px; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(180deg, transparent, rgba(91, 140, 255, .55) 12%, rgba(155, 108, 255, .4) 80%, transparent); }
.t-item { position: relative; display: grid; grid-template-columns: 172px 1fr; gap: 28px; padding: 16px 0 30px 34px; }
.t-dot { position: absolute; left: 0; top: 23px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid rgba(126, 158, 214, .5); display: grid; place-items: center; transition: border-color .4s, box-shadow .4s; }
.t-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); transition: background .4s, box-shadow .4s; }
.t-item:hover .t-dot { border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(59, 231, 255, .08); }
.t-item:hover .t-dot::after { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.t-item.is-present .t-dot { border-color: var(--cyan); }
.t-item.is-present .t-dot::after { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 231, 255, .5); } 50% { box-shadow: 0 0 0 5px rgba(59, 231, 255, 0); } }
.t-item time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); padding-top: 22px; letter-spacing: .3px; }
.t-body h3 { font-size: clamp(1.08rem, 2.4vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.t-org { font-size: 13.5px; color: var(--blue); margin-top: 5px; font-weight: 500; }
.t-desc { margin-top: 10px; color: var(--ink-soft); font-size: 15px; max-width: 64ch; }
.t-skills { display: flex; align-items: baseline; gap: 9px; max-width: 72ch; margin-top: 9px; color: var(--ink-mute); font-size: 12.25px; line-height: 1.5; }
.t-skills strong { flex: none; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .85px; text-transform: uppercase; color: var(--cyan); }
.t-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 720px; margin-top: 16px; }
.t-project { min-width: 0; padding: 11px 12px 12px; border: 1px solid rgba(126, 158, 214, .14); border-radius: 10px; background: rgba(8, 13, 25, .48); transition: border-color .3s ease, background .3s ease, transform .3s var(--ease); }
.t-project:hover { transform: translateY(-2px); border-color: rgba(59, 231, 255, .32); background: rgba(12, 20, 35, .7); }
.t-project h4 { color: var(--ink); font-size: 12.5px; line-height: 1.35; letter-spacing: -.005em; }
.t-project p { margin-top: 6px; color: var(--ink-mute); font-size: 11.75px; line-height: 1.55; }
@media (max-width: 900px) { .t-projects { grid-template-columns: 1fr; max-width: 64ch; } }
@media (max-width: 720px) { .t-item { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; } .t-item time { padding-top: 0; margin-bottom: 4px; } .t-dot { top: 5px; } .t-skills { align-items: flex-start; } }

/* shared repo link */
.repo-link { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; color: var(--ink-mute); transition: color .25s; }
.repo-link > svg:first-child { width: 16px; height: 16px; flex: none; fill: currentColor; }
.repo-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-path b { color: var(--ink-soft); font-weight: 500; }
.repo-arrow { width: 13px; height: 13px; flex: none; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.repo-link:hover { color: var(--cyan); }
.repo-link:hover .repo-path b { color: var(--cyan); }
.repo-link:hover .repo-arrow { transform: translate(2px, -2px); }

/* =========================================================
   MANUSCRIPT RADAR
   ========================================================= */
.radar-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.radar { position: relative; width: min(440px, 80vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; }
.radar-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(91, 140, 255, .16); }
.radar-ring.r1 { width: 33%; height: 33%; }
.radar-ring.r2 { width: 66%; height: 66%; }
.radar-ring.r3 { width: 100%; height: 100%; border-color: rgba(91, 140, 255, .24); }
.radar-cross { position: absolute; left: 50%; top: 50%; background: rgba(91, 140, 255, .12); }
.radar-cross.x { width: 100%; height: 1px; transform: translate(-50%, -50%); }
.radar-cross.y { width: 1px; height: 100%; transform: translate(-50%, -50%); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(59, 231, 255, .32), rgba(59, 231, 255, .05) 26%, transparent 42%); -webkit-mask: radial-gradient(circle, transparent 0, #000 0); animation: spin 8s linear infinite; pointer-events: none; }
.radar-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; text-align: center; width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(10, 16, 30, .9), rgba(10, 16, 30, .2)); }
.radar-core b { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.radar-core small { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }
.radar-blips { position: absolute; inset: 0; }
.blip { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; cursor: pointer; border: 0; background: none; padding: 0; }
.blip-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--bc, var(--cyan)); box-shadow: 0 0 10px var(--bc, var(--cyan)); flex: none; transition: transform .25s; }
.blip-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--bc, var(--cyan)); opacity: 0; animation: blipPing 8s linear infinite; animation-delay: var(--pd, 0s); }
@keyframes blipPing { 0% { opacity: .85; transform: scale(.4); } 12% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; transform: scale(1.7); } }
.blip-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .4px; color: var(--ink-soft); white-space: nowrap; padding: 3px 7px; border-radius: 6px; background: rgba(9, 13, 24, .6); border: 1px solid var(--line-soft); transition: color .25s, border-color .25s; }
.blip.left { flex-direction: row-reverse; }
.blip:hover .blip-dot, .blip.is-active .blip-dot { transform: scale(1.35); }
.blip:hover .blip-label, .blip.is-active .blip-label { color: var(--ink); border-color: var(--bc); }
.blip.is-active .blip-dot { box-shadow: 0 0 16px var(--bc); }

.radar-detail { min-height: 320px; }
.detail-card { animation: panelIn .4s var(--ease); }
.detail-top { display: flex; align-items: center; gap: 12px; }
.detail-year { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--bc, var(--cyan)); }
.detail-kind { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.detail-card h3 { margin-top: 14px; font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
.detail-card > p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }
.detail-fig { margin: 16px auto 0; position: relative; width: 100%; max-width: 326px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #f5f6fa; aspect-ratio: 1 / 1.414; box-shadow: 0 20px 50px -28px rgba(0, 0, 0, .8); }
.detail-fig img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.detail-fig img.loaded { opacity: 1; }
.detail-fig::after { content: "title page"; position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); padding: 4px 9px; border-radius: 999px; background: rgba(5, 8, 16, .72); border: 1px solid var(--line); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.detail-tags span { font-size: 11.5px; color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; background: rgba(126, 158, 214, .07); }
.radar-hint { text-align: center; margin-top: 30px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
@media (max-width: 820px) {
  .radar-shell { grid-template-columns: 1fr; gap: 28px; }
  .blip-label { display: none; }
  .radar { width: min(330px, 76vw); }
}

/* =========================================================
   EDUCATION RAIL
   ========================================================= */
.edu-rail { list-style: none; position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }
.edu-rail::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(180deg, var(--cyan), var(--violet), transparent); opacity: .5; }
.edu { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 24px; align-items: start; padding: 8px 0 26px 34px; }
.edu-node { position: absolute; left: 1px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--c, var(--cyan)); display: grid; place-items: center; }
.edu-node::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); }
.edu-year { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--c, var(--cyan)); padding-top: 2px; letter-spacing: -.01em; }
.edu-body { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); padding: 18px 20px; transition: transform .4s var(--ease), border-color .4s, background .4s; }
.edu:hover .edu-body { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: rgba(15, 22, 38, .72); }
.edu-body h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.edu-body h3 em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--c, var(--cyan)); padding: 4px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.edu-body .edu-distinction { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 9px; font-style: normal; letter-spacing: 1px; line-height: 1.2; text-transform: uppercase; color: var(--c, var(--cyan)); padding: 3px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.edu-org { color: var(--blue); font-size: 13px; font-weight: 500; margin-top: 6px; }
.edu-body p:last-child { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
@media (max-width: 640px) { .edu { grid-template-columns: 1fr; gap: 8px; } .edu-year { padding-top: 0; } }

/* =========================================================
   PROJECTS
   ========================================================= */
.cap-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.cap-tab { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(126, 158, 214, .04); transition: all .25s var(--ease); }
.cap-tab b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-mute); }
.cap-tab:hover { border-color: rgba(59, 231, 255, .4); color: var(--ink); transform: translateY(-2px); }
.cap-tab.is-active { color: #04121a; background: var(--grad); border-color: transparent; box-shadow: 0 12px 30px -14px rgba(59, 231, 255, .8); }
.cap-tab.is-active b { color: rgba(4, 18, 26, .65); }

.cap-stage { position: relative; max-width: 880px; margin: 0 auto; }
.cap-panel { animation: panelIn .5s var(--ease); }
.cap-panel[hidden] { display: none; }
.cap-lead { text-align: center; font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.4; color: var(--ink); margin: 0 auto 24px; max-width: 60ch; }
.cap-lead::first-letter { color: var(--cyan); }
.sys-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sys { padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(6px); transition: transform .4s var(--ease), border-color .4s, background .4s; }
.sys:hover { transform: translateY(-3px); border-color: rgba(59, 231, 255, .3); background: rgba(15, 22, 38, .72); }
.sys-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sys-head h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.sys-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); }
.sys > p { margin-top: 9px; color: var(--ink-soft); font-size: 14.5px; }
.sys-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.sys-tags span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); padding: 5px 10px; border-radius: 999px; background: rgba(126, 158, 214, .07); border: 1px solid var(--line); }
.sys-tags .tag-private { color: var(--violet); border-color: rgba(155, 108, 255, .4); background: rgba(155, 108, 255, .08); }
.sys .repo-link { margin-top: 14px; padding-top: 13px; }

/* =========================================================
   CONNECT
   ========================================================= */
.connect { padding-bottom: clamp(80px, 12vh, 140px); }
.connect-panel { position: relative; max-width: 880px; margin: 0 auto; text-align: center; padding: clamp(40px, 7vw, 72px) clamp(26px, 6vw, 70px); border-radius: var(--r-lg); border: 1px solid rgba(59, 231, 255, .22); background: radial-gradient(120% 120% at 50% -20%, rgba(91, 140, 255, .18), transparent 60%), linear-gradient(160deg, rgba(15, 24, 44, .85), rgba(10, 14, 26, .9)); overflow: hidden; box-shadow: 0 50px 120px -60px rgba(59, 231, 255, .5); }
.cp-glow { position: absolute; inset: -2px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none; }
.connect-panel .eyebrow { color: var(--cyan); }
.connect-panel h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; margin-top: 14px; background: linear-gradient(180deg, #fff, #bcd0f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.connect-lede { max-width: 540px; margin: 16px auto 0; color: var(--ink-soft); font-size: clamp(1rem, 2.2vw, 1.14rem); }
.connect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.connect-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; }
.cq { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(126, 158, 214, .04); cursor: pointer; transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.cq svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.cq svg.m { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cq:hover { color: var(--cyan); border-color: rgba(59, 231, 255, .4); background: rgba(59, 231, 255, .06); transform: translateY(-2px); }

/* =========================================================
   CONTACT OVERLAY
   ========================================================= */
.contact-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: rgba(3, 6, 12, .72); backdrop-filter: blur(10px); animation: overlayIn .3s var(--ease); }
.contact-overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.contact-card { position: relative; width: min(520px, 100%); padding: clamp(28px, 5vw, 42px); border-radius: var(--r-lg); border: 1px solid rgba(59, 231, 255, .25); background: radial-gradient(120% 90% at 50% -10%, rgba(91, 140, 255, .16), transparent 60%), linear-gradient(160deg, rgba(14, 20, 38, .96), rgba(8, 12, 22, .98)); box-shadow: 0 50px 130px -50px rgba(0, 0, 0, .9); animation: cardIn .45s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.contact-card .eyebrow { color: var(--cyan); }
.contact-card h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; margin-top: 10px; }
.contact-sub { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }
.contact-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; border: 1px solid var(--line); background: rgba(126, 158, 214, .05); color: var(--ink-soft); transition: all .25s; }
.contact-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.contact-close:hover { border-color: rgba(255, 120, 140, .5); color: #ff8fb0; transform: rotate(90deg); }
.contact-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.contact-facts > * { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(126, 158, 214, .04); color: var(--ink); font-family: var(--sans); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.contact-facts > *:hover { border-color: rgba(59, 231, 255, .4); background: rgba(59, 231, 255, .06); transform: translateX(3px); }
.cf-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--line); }
.cf-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cf-text { display: flex; flex-direction: column; gap: 1px; }
.cf-text small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mute); }
.cf-text strong { font-size: 14.5px; font-weight: 600; }
.cf-act { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-mute); opacity: 0; transition: opacity .25s; }
.contact-facts > *:hover .cf-act { opacity: 1; color: var(--cyan); }
.copy-status { min-height: 18px; margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--mint); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 30px var(--gutter) 50px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-mute); }
.ft-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 600; }
.ft-tag { font-family: var(--mono); letter-spacing: 1px; }
.ft-top { color: var(--ink-soft); transition: color .25s; }
.ft-top:hover { color: var(--cyan); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-rise], [data-reveal] { opacity: 1 !important; transform: none !important; }
}
