/* ==========================================================================
   Devavrath Sandeep · site styles
   Black canvas, white-alpha hairlines, Geist / Inter / JetBrains Mono,
   one violet accent.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-1: #050505;
  --bg-2: #0b0b0c;
  --panel: #0e0e10;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .18);
  --text: #ededed;
  --text-2: rgba(255, 255, 255, .62);
  --text-3: rgba(255, 255, 255, .40);
  --violet: #a78bfa;
  --violet-2: #c4b5fd;
  --indigo: #4f46e5;
  --font-head: "Geist", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(16px, 4.5vw, 112px);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(167, 139, 250, .35); }

/* ---------- frame: the hairline rails that run down the page ---------- */
.frame {
  position: relative;
  margin: 0 auto;
  padding: 0 clamp(8px, 1.1vw, 20px);
}
.rails {
  position: relative;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.rule { border-top: 1px solid var(--line); }
.inner { padding: 0 var(--pad); }

/* ---------- type ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--text-3); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow svg { width: 14px; height: 14px; opacity: .7; }
.display {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #f5f5f5 0%, #bdbdbd 60%, #8f8f8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-xl { font-size: clamp(44px, 5.6vw, 124px); }
.h-lg { font-size: clamp(36px, 4.6vw, 92px); }
.h-md {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 58px);
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
  color: #f2f2f2;
}
.lede { color: var(--text-2); font-size: clamp(16px, 1.2vw, 22px); line-height: 1.6; max-width: 40em; margin: 0; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 70px; padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2a2a2e, #0a0a0b);
  border: 1px solid var(--line-2);
  font: 600 11px/1 var(--font-mono); letter-spacing: 0; color: #fff;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; gap: 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 7px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #e9e9e9; background: rgba(255, 255, 255, .015);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .05); }
.btn-ghost svg { width: 13px; height: 13px; }
.menu-btn { display: none; }

.subnav {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.subnav a { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.subnav a::before { content: "›"; color: var(--text-3); font-size: 14px; line-height: 1; }
.subnav a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn-glow {
  display: inline-block; position: relative;
  padding: 5px; border-radius: 12px;
  background: linear-gradient(180deg, #1c1c22, #09090b);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 40px -10px rgba(79, 70, 229, .55);
}
.btn-glow span {
  display: block; padding: 16px 28px; border-radius: 8px;
  background: radial-gradient(120% 140% at 50% 0%, #6d5ff5 0%, #4338ca 55%, #2e2a8f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 26px rgba(99, 102, 241, .45);
  font: 600 13px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: #fff;
  transition: filter .2s, box-shadow .2s;
}
.btn-glow:hover span { filter: brightness(1.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 0 0 1px rgba(255,255,255,.1), 0 0 40px rgba(124, 108, 255, .6); }
.btn-sub { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
.btn-sub a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.btn-sub a:hover { color: #fff; }

/* ---------- pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .02); color: #d6d6d6;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: #d6d6d6; box-shadow: 0 0 8px rgba(255,255,255,.6); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 9vw, 112px) var(--pad) clamp(56px, 8vw, 104px);
  align-items: start;
}
.hero-copy .pill { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.display.has-morph { background: none; color: inherit; }
.display.has-morph .grad, .morph span {
  background: linear-gradient(180deg, #f5f5f5 0%, #bdbdbd 60%, #8f8f8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.morph { display: block; position: relative; height: 1.08em; }
.morph span {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; filter: blur(14px); transform: translateY(.12em) scale(.98);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease;
}
.morph span.on { opacity: 1; filter: blur(0); transform: none; }
.morph span.off { opacity: 0; filter: blur(14px); transform: translateY(-.12em) scale(1.02); }
.hero .lede { margin-bottom: 30px; }
.proof { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; color: var(--text-2); font-size: 14px; }
.proof-dots { display: flex; }
.proof-dots b {
  width: 32px; height: 32px; border-radius: 50%; margin-left: -8px; display: grid; place-items: center;
  border: 2px solid #000; font: 700 7.5px/1 var(--font-mono); letter-spacing: -.02em; color: #fff;
}
.proof-dots b:first-child { margin-left: 0; background: #9f1239; }
.proof-dots b:nth-child(2) { background: #1d4ed8; }
.proof-dots b:nth-child(3) { background: #047857; }
.proof strong { color: #fff; font-weight: 600; }

.hero-side { padding-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 14px 0 6px; }
.tile { text-align: center; }
.tile-face {
  position: relative; height: 54px; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #2a2a2e 0%, #18181b 50%, #0f0f11 50%, #1a1a1d 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.6);
  font: 400 clamp(20px, 2.2vw, 30px)/1 var(--font-head); letter-spacing: -.02em; color: #f4f4f4;
}
.tile-face::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.75); }
.tile-face { transition: transform .6s cubic-bezier(.3,.7,.2,1), filter .6s; }
.tile-face.pre { transform: perspective(300px) rotateX(85deg); filter: brightness(.4); }
.tile .mono { display: block; margin-top: 8px; font-size: 9.5px; color: var(--text-3); }
.side-block { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.side-block s { color: var(--text-3); font-size: 15px; }
.side-big { font: 400 clamp(26px, 2.8vw, 36px)/1.15 var(--font-head); letter-spacing: -.03em; color: #fff; margin-top: 2px; }
.wheel {
  position: relative; height: 210px; margin-top: 18px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.wheel::before {
  content: ""; position: absolute; left: 10%; right: 0; top: 50%; height: 120px; transform: translateY(-50%);
  background: radial-gradient(60% 50% at 40% 50%, rgba(139, 120, 255, .16), transparent 70%),
              repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  filter: blur(2px);
}
.wheel ul { list-style: none; margin: 0; padding: 0 0 0 36px; position: absolute; left: 0; right: 0; top: 50%; transition: transform .8s cubic-bezier(.6,.05,.2,1); }
.wheel li {
  height: 48px; display: flex; align-items: center;
  font: 400 clamp(20px, 2vw, 27px)/1 var(--font-head); letter-spacing: -.025em; white-space: nowrap;
  color: rgba(255,255,255,.22); filter: blur(3px); transition: color .6s, filter .6s;
}
.wheel li.on { color: #f1f1f1; filter: none; }
.wheel-mark { position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--text-2); }

/* ---------- typewriter + marquee ---------- */
.type-line { padding: 34px 16px 30px; text-align: center; color: var(--text-2); font-size: 13px; letter-spacing: .32em; }
.type-line u { text-decoration: none; border-bottom: 1px solid var(--text-2); }
.caret { display: inline-block; width: .62em; height: 1.15em; vertical-align: -.2em; background: var(--text-2); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.marquee { overflow: hidden; padding: 6px 0 46px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 500 22px/1 var(--font-head); letter-spacing: -.02em; color: rgba(255,255,255,.55); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.35); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head.center .eyebrow { justify-content: center; display: flex; }

/* monitors */
.monitors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); max-width: min(1320px, 100%); margin: 0 auto; }
.monitor {
  position: relative; display: flex; gap: 10px; padding: 12px;
  border-radius: 12px; background: linear-gradient(180deg, #232327, #121214);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -18px rgba(0,0,0,.9);
}
.screen {
  flex: 1; height: clamp(112px, 8vw, 168px); border-radius: 7px; display: grid; place-items: center; text-align: center; padding: 10px;
  background: radial-gradient(120% 120% at 50% 40%, #1d1d21, #060607);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.9), inset 0 0 24px rgba(0,0,0,.9);
  font: 700 clamp(15px, 1.7vw, 21px)/1.1 var(--font-head); letter-spacing: -.02em; color: rgba(255,255,255,.82);
  transition: color .3s, text-shadow .3s;
}
.screen small { display: block; margin-top: 6px; font: 500 9.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.monitor:hover .screen { color: #fff; text-shadow: 0 0 18px rgba(196, 181, 253, .45); }
.grill { width: 30px; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.grill i { display: block; height: 52px; background: radial-gradient(circle, rgba(0,0,0,.85) 1.1px, transparent 1.4px) 0 0/5px 5px; opacity: .9; }
.grill b { display: flex; gap: 5px; justify-content: center; }
.grill b::before, .grill b::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a3a40; box-shadow: inset 0 1px 1px rgba(0,0,0,.8); }

/* quote-style cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qcard {
  display: flex; flex-direction: column; min-height: 260px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0d0d0f, #070708);
  transition: border-color .25s, transform .25s;
}
.qcard:hover { border-color: var(--line-3); transform: translateY(-3px); }
.qcard-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.qcard-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: #18181b; border: 1px solid var(--line-2); color: var(--violet-2); }
.qcard-icon svg { width: 15px; height: 15px; }
.qcard-head strong { display: block; font: 500 14px/1.25 var(--font-head); color: #f1f1f1; }
.qcard-head .mono { font-size: 9.5px; color: var(--text-3); }
.qcard-body { flex: 1; padding: 20px 18px; color: #d4d4d4; font-size: 15px; line-height: 1.6; }
.qcard-foot { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 10px; }

/* course-style project cards */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #111114, #08080a);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.pcard:hover { border-color: rgba(196, 181, 253, .35); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(124, 108, 255, .35); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; }
.pcard-top .glyph { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: #1b1b1f; border: 1px solid var(--line-2); font: 600 12px/1 var(--font-mono); letter-spacing: 0; color: #e5e5e5; }
.badge { padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 9.5px; }
.pcard-text { padding: 16px 18px 18px; flex: 1; }
.pcard-text h3 { margin: 0 0 8px; font: 500 17px/1.3 var(--font-head); letter-spacing: -.015em; color: #f3f3f3; }
.pcard-text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.pcard-meta { display: flex; gap: 14px; padding: 0 18px 16px; color: var(--text-3); font-size: 10px; }
.pcard-media { position: relative; aspect-ratio: 16 / 9; margin: 0 10px 10px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); transition: transform .5s, filter .5s; }
.pcard:hover .pcard-media img { transform: scale(1.04); filter: saturate(1) brightness(.95); }
.pcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,.55) 0%, transparent 40%); }
.cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  background:
    radial-gradient(80% 90% at 85% 15%, rgba(124, 108, 255, .35), transparent 60%),
    radial-gradient(60% 60% at 10% 100%, rgba(56, 189, 248, .12), transparent 70%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/22px 22px,
    #0a0a0d;
}
.cover .mono { color: var(--violet-2); font-size: 10px; }
.cover strong { font: 600 26px/1 var(--font-head); letter-spacing: -.04em; color: #fff; margin-top: 6px; }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* tilted posters */
.posters { display: flex; justify-content: center; align-items: center; perspective: 1600px; margin: 0 auto; max-width: 1560px; padding: 10px 0 0; }
.poster {
  position: relative; flex: 0 1 clamp(300px, 27vw, 500px); aspect-ratio: 1.42; border-radius: 10px; overflow: hidden; padding: 22px;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.poster:nth-child(1) { transform: rotateY(28deg) rotateZ(-4deg) translateX(30px); z-index: 1; }
.poster:nth-child(2) { transform: translateY(-18px) rotateZ(1.5deg) scale(1.04); z-index: 2; }
.poster:nth-child(3) { transform: rotateY(-28deg) rotateZ(4deg) translateX(-30px); z-index: 1; }
.poster:hover { transform: translateY(-26px) rotate(0) scale(1.06); z-index: 3; }
.poster h3 { margin: 0; font: 400 clamp(30px, 3.4vw, 64px)/.88 "Anton", var(--font-head); text-transform: uppercase; letter-spacing: .005em; }
.poster .sketch { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; gap: 8px; align-items: flex-end; }
.poster .sketch i { flex: 1; display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .55; }
.poster-a { background: linear-gradient(160deg, #18322f, #0c1b1a); color: #9bd3c9; }
.poster-a h3 { color: transparent; -webkit-text-stroke: 1.2px #a7e3d8; }
.poster-a .sketch i:nth-child(1) { height: 38px; } .poster-a .sketch i:nth-child(2) { height: 62px; } .poster-a .sketch i:nth-child(3) { height: 26px; }
.poster-b { background: linear-gradient(160deg, #dfe4ea, #c7cfd8); color: #b0124f; }
.poster-b h3 { color: #c2185b; }
.poster-b h3 em { font-style: normal; color: #1e1e24; }
.poster-b .sketch i { border-color: #1e1e24; } .poster-b .sketch i:nth-child(1) { height: 30px; background: #c2185b33; } .poster-b .sketch i:nth-child(2) { height: 52px; } .poster-b .sketch i:nth-child(3) { height: 40px; background: #1e1e2422; }
.poster-c { background: linear-gradient(160deg, #efe4cf, #e2d3b6); color: #c62828; }
.poster-c h3 { color: #d32f2f; }
.poster-c .sketch i { border-color: #6b5a44; } .poster-c .sketch i:nth-child(1) { height: 56px; } .poster-c .sketch i:nth-child(2) { height: 22px; } .poster-c .sketch i:nth-child(3) { height: 44px; }
.poster .chip { position: absolute; top: 18px; right: 18px; font: 600 9px/1 var(--font-mono); letter-spacing: .14em; padding: 5px 7px; border: 1px solid currentColor; border-radius: 4px; opacity: .8; }
.stack-tabs { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1560px; margin: 64px auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stack-tabs div { padding: 20px 22px; border-right: 1px solid var(--line); background: #060607; }
.stack-tabs div:last-child { border-right: 0; }
.stack-tabs .mono { color: var(--text-3); font-size: 9.5px; display: block; margin-bottom: 10px; }
.stack-tabs strong { display: block; font: 500 13px/1.3 var(--font-mono); letter-spacing: .02em; color: #e9e9e9; margin-bottom: 6px; }
.stack-tabs p { margin: 0; font: 400 12.5px/1.6 var(--font-mono); color: var(--text-2); }

/* contact strip */
.cta-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta-links { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cta-links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #060607; transition: background .2s; }
.cta-links a:last-child { border-bottom: 0; }
.cta-links a:hover { background: #0e0e11; }
.cta-links span:first-child { color: var(--text-3); }
.cta-links span:last-child { color: #eee; font-size: 14px; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) var(--pad) clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}
.page-hero > * { position: relative; }
.page-hero .pill { margin-bottom: 24px; }
.page-hero h1 { margin-bottom: 22px; }
.page-hero-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.statlist { border-top: 1px solid var(--line); }
.statlist div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.statlist .mono { color: var(--text-3); font-size: 10px; }
.statlist b { font: 400 22px/1 var(--font-head); letter-spacing: -.02em; color: #fff; }

.block { padding: clamp(56px, 7vw, 96px) var(--pad); }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.block-head .eyebrow { margin-bottom: 14px; display: flex; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-2); transition: all .2s; }
.filters button:hover { color: #fff; border-color: var(--line-2); }
.filters button[aria-pressed="true"] { color: #fff; border-color: rgba(196,181,253,.5); background: rgba(167,139,250,.1); }

/* timeline rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row-when { color: var(--text-3); font-size: 10.5px; line-height: 1.8; }
.row-when b { display: block; color: var(--violet-2); font-weight: 500; }
.row h3 { margin: 0 0 4px; font: 500 20px/1.3 var(--font-head); letter-spacing: -.02em; color: #f3f3f3; }
.row .org { color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.row p { margin: 0; color: #cfcfcf; font-size: 15px; line-height: 1.65; max-width: 60em; }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edu-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #0f0f12, #070708); }
.edu-card .top { padding: 24px; }
.edu-card h3 { margin: 10px 0 6px; font: 500 22px/1.25 var(--font-head); letter-spacing: -.02em; }
.edu-card .deg { color: var(--violet-2); font-size: 14px; margin-bottom: 12px; }
.edu-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.edu-card .foot { display: flex; justify-content: space-between; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 10px; }

/* skill panels */
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #0d0d0f, #070708); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font: 500 17px/1.2 var(--font-head); letter-spacing: -.015em; }
.panel-head .mono { color: var(--text-3); font-size: 9.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 20px 20px; }
.chips span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); font: 400 12.5px/1.2 var(--font-mono); color: #dcdcdc; }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.courses div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #060607; }
.courses div:nth-child(3n) { border-right: 0; }
.courses div:nth-last-child(-n+3) { border-bottom: 0; }
.courses .mono { color: var(--violet-2); font-size: 10px; display: block; margin-bottom: 12px; }
.courses ul { list-style: none; margin: 0; padding: 0; }
.courses li { color: #cfcfcf; font-size: 14px; padding: 4px 0; }

/* publications */
.pubs { border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 160px 1fr auto; gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pub .mono { color: var(--text-3); font-size: 10.5px; }
.pub .mono b { color: var(--violet-2); font-weight: 500; display: block; }
.pub h3 { margin: 0 0 6px; font: 500 19px/1.35 var(--font-head); letter-spacing: -.015em; color: #f3f3f3; }
.pub p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.link-arrow { white-space: nowrap; color: var(--text-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.link-arrow:hover { color: #fff; border-color: var(--violet); }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cert { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #060607; }
.cert strong { display: block; font: 500 15px/1.3 var(--font-head); margin-bottom: 4px; }
.cert span { color: var(--text-2); font-size: 13px; }
.cert .mono { color: var(--text-3); font-size: 9.5px; display: block; margin-bottom: 10px; }
.icards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.icard { display: flex; flex-direction: column; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #0d0d0f, #070708); transition: border-color .25s, transform .25s; }
.icard:hover { border-color: rgba(196,181,253,.35); transform: translateY(-3px); }
.icard img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; filter: saturate(.8) brightness(.8); border-bottom: 1px solid var(--line); }
.icard div { padding: 18px 20px 20px; }
.icard h3 { margin: 0 0 8px; font: 500 17px/1.3 var(--font-head); color: #f3f3f3; }
.icard p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.icard .mono { color: var(--violet-2); font-size: 10px; }
.icard { cursor: pointer; }
.icard-actions { display: flex; gap: 18px; align-items: center; }
.icard-actions button { color: var(--violet-2); }

/* leadership */
.lcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lcard { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #0d0d0f, #070708); transition: border-color .25s; }
.lcard:hover { border-color: var(--line-3); }
.lcard .mono { color: var(--text-3); font-size: 9.5px; display: flex; justify-content: space-between; margin-bottom: 16px; }
.lcard h3 { margin: 0 0 8px; font: 500 18px/1.3 var(--font-head); letter-spacing: -.015em; }
.lcard p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.form-bezel { padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #19191d, #0a0a0b); }
.form-bezel .mono { display: block; padding: 8px 10px 12px; color: var(--text-3); font-size: 9.5px; }
.form-bezel iframe { display: block; width: 100%; height: 760px; border: 0; border-radius: 8px; background: #fff; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; overflow-y: auto; padding: clamp(16px, 5vw, 56px) 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal.open { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; max-width: 860px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 14px; background: #0a0a0c; box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.modal-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.modal-bar .dots { display: flex; gap: 6px; }
.modal-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2e; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 7px; color: var(--text-2); font-size: 18px; line-height: 1; }
.modal-close:hover { color: #fff; border-color: var(--line-3); }
.modal-media { height: clamp(180px, 32vw, 300px); position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); }
.modal-content { padding: clamp(22px, 4vw, 36px); }
.modal-content h2 { margin: 0 0 18px; font: 500 clamp(24px, 3vw, 32px)/1.15 var(--font-head); letter-spacing: -.03em; color: #fff; }
.prose { color: #cdcdcd; font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose h4 { margin: 26px 0 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); }
.prose ul { margin: 0 0 14px; padding-left: 18px; }
.prose li { margin: 0 0 9px; padding-left: 4px; }
.prose li::marker { color: var(--text-3); }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--violet-2); border-bottom: 1px solid rgba(196,181,253,.4); }
.prose code { font: 13px var(--font-mono); background: #17171a; padding: 2px 5px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px var(--pad) 40px; }
.footer-grid h4 { margin: 0 0 14px; color: var(--text-3); font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid li a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer-grid li a:hover { color: #fff; }
.footer-grid p { color: var(--text-2); font-size: 14px; margin: 12px 0 0; max-width: 26em; }
.engraved {
  font: 700 clamp(56px, 15.5vw, 210px)/.8 var(--font-head); letter-spacing: -.06em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 85%); -webkit-background-clip: text; background-clip: text;
  margin: 0 0 -.12em; user-select: none;
}
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px var(--pad); border-top: 1px solid var(--line); color: var(--text-3); font-size: 10px; }

/* ---------- motion (template families A + B) ----------
   Every hidden state is opt-in: html.rv is only set once GSAP has loaded,
   so if the script fails nothing stays invisible. */
.rv .reveal, .rv [data-intro] { opacity: 0; }
.rv [data-split] { opacity: 0; }
.ln { display: block; }
.rv .ln { overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.rv .ln > span { display: block; }
/* split gradient headings: the gradient moves onto each masked line */
.display.is-split { background: none; color: inherit; }
.display.is-split .ln > span {
  background: linear-gradient(180deg, #f5f5f5 0%, #bdbdbd 60%, #8f8f8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-par] { will-change: transform; }

/* film grain */
#grain { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; opacity: .045; mix-blend-mode: overlay; }

/* boot */
#boot { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; pointer-events: none; }
#boot.done { display: none; }
.b-in { display: flex; align-items: center; gap: 16px; }
.b-in .brand-mark { width: 22px; height: 22px; }
.b-rail { display: block; width: clamp(120px, 20vw, 240px); height: 1px; background: rgba(255,255,255,.13); position: relative; overflow: hidden; }
.b-rail i { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, rgba(255,255,255,.5), var(--violet)); }
.b-num { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- experience stack (pinned, scroll-exploded) ---------- */
.s-stack { position: relative; height: 420vh; }
.stk-pin { position: sticky; top: var(--hdr, 110px); height: calc(100vh - var(--hdr, 110px)); overflow: hidden; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: 24px; padding: 0 var(--pad); }
.stk-head .eyebrow { margin-bottom: 18px; display: flex; }
.stk-head h2 { margin-bottom: 30px; font-size: clamp(38px, 4.2vw, 76px); }
.stk-story { position: relative; height: clamp(290px, 33vh, 380px); max-width: 36em; }
.stk-story article { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.stk-story article.on { opacity: 1; transform: none; pointer-events: auto; }
.stk-story .mono { color: var(--violet-2); font-size: 12.5px; display: block; margin-bottom: 14px; }
.stk-story h3 { margin: 0 0 6px; font: 500 clamp(28px, 2.7vw, 46px)/1.15 var(--font-head); letter-spacing: -.025em; color: #fff; }
.stk-story .org { color: var(--text-2); font-size: clamp(16px, 1.2vw, 19px); margin-bottom: 16px; }
.stk-story p { margin: 0; color: #d6d6d6; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.6; }
.stk-nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.stk-arrow { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-3); color: #fff;
  background: rgba(255,255,255,.04); transition: background .2s, border-color .2s, transform .2s, opacity .2s; }
.stk-arrow svg { width: 20px; height: 20px; }
.stk-arrow:hover:not(:disabled) { background: rgba(167,139,250,.18); border-color: rgba(196,181,253,.7); transform: scale(1.06); }
.stk-arrow:disabled { opacity: .28; cursor: default; }
/* the next arrow pulses until the visitor has used the controls once */
.s-stack:not(.used) .stk-next:not(:disabled) { animation: stk-pulse 2.2s ease-out infinite; border-color: rgba(196,181,253,.6); }
@keyframes stk-pulse { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.55); } 70% { box-shadow: 0 0 0 14px rgba(167,139,250,0); } 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); } }
.stk-dots { display: flex; gap: 6px; }
.stk-dot { width: 22px; height: 22px; padding: 0; position: relative; }
.stk-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 3px; background: var(--line-3); transition: background .3s; }
.stk-dot:hover::before { background: rgba(196,181,253,.6); }
.stk-dot.on { width: 40px; }
.stk-dot.on::before { background: var(--violet); box-shadow: 0 0 10px rgba(167,139,250,.6); }
.stk-count { color: var(--text-3); font-size: 12px; letter-spacing: .14em; margin-left: 4px; white-space: nowrap; }
.stk-count b { color: #fff; font-weight: 500; }
.stk-hint { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--text-2); font-size: 11px; transition: opacity .5s, transform .5s; }
.stk-hint.gone { opacity: 0; transform: translateY(8px); }
.stk-mouse { width: 20px; height: 32px; flex: none; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.stk-mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #c4b5fd; animation: stk-wheel 1.6s ease-in-out infinite; }
@keyframes stk-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
/* dims the fixed background while the experience section is on screen */
#veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 65% 50%, rgba(0,0,0,.82), #000); opacity: 0; transition: opacity .25s linear; }
.stk-stage { position: relative; width: 88%; max-width: 900px; aspect-ratio: 1.14; justify-self: center; }
.stk-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The glass needs a solid black backdrop to refract. A sticky element is its own
   stacking context, so the blend goes on the pin: screen makes that black fall
   away and the page background shows around the lenses with no box. */
.stk-pin { mix-blend-mode: screen; }
.stk-stage.nogl .stk-gl { display: none; }
.stk-stage.nogl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(58% 58% at 38% 32%, rgba(196,181,253,.12), transparent 64%), linear-gradient(140deg, rgba(30,26,52,.55), rgba(8,8,14,.8));
  box-shadow: inset 0 0 0 1px rgba(220,214,255,.3), 0 14px 44px rgba(0,0,0,.5); }
.stk-lab { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: color .4s; }
.stk-lab i { display: block; height: 1px; width: 0; background: rgba(220,214,255,.34); }
.stk-lab b { font: 400 12px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62); transition: color .4s; }
.stk-lab em { font: normal 400 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--violet); margin-left: 6px; opacity: .8; }
.stk-lab.on b { color: #fff; }
.stk-lab.on em { opacity: 1; }
.stk-lab.on i { background: var(--violet); }
.stk-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 3vh; text-align: center; pointer-events: none; }
.stk-cap .mono { color: var(--text-2); font-size: 11.5px; }
.stk-cap a { pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn-ghost.hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(0,0,0,.96); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px;
  }
  .nav-links.open a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .hero-grid, .page-hero-split, .cta-band, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .pcards { grid-template-columns: repeat(2, 1fr); }
  .monitors { grid-template-columns: repeat(2, 1fr); }
  .lcards { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .courses div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .courses div:nth-child(2n) { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posters { flex-direction: column; gap: 18px; perspective: none; }
  .poster { flex: none; width: min(420px, 100%); }
  .poster:nth-child(n) { transform: rotate(-1.5deg); }
  .poster:nth-child(2) { transform: rotate(1.5deg); }
  .stack-tabs { grid-template-columns: 1fr; }
  .stack-tabs div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .s-stack { height: 520vh; }
  .stk-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 4vh; gap: 0; }
  .stk-story { height: 260px; }
  .stk-head h2 { font-size: clamp(32px, 9vw, 44px); margin-bottom: 18px; }
  .stk-story h3 { font-size: 26px; }
  .stk-story p { font-size: 16px; }
  .stk-arrow { width: 42px; height: 42px; }
  .stk-dot { width: 14px; } .stk-dot.on { width: 26px; }
  .stk-hint { display: none; }
  .stk-stage { width: min(78vw, 46vh); align-self: center; }
  .stk-lab { display: none; }
  .stk-cap { bottom: 3vh; }
}
@media (max-width: 640px) {
  .subnav { gap: 18px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; }
  .cards-3, .pcards, .panels, .edu, .icards, .lcards, .monitors { grid-template-columns: 1fr; }
  .tiles { gap: 5px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .pub { grid-template-columns: 1fr; gap: 10px; }
  .courses { grid-template-columns: 1fr; }
  .courses div { border-right: 0 !important; }
  .certs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .type-line { letter-spacing: .2em; font-size: 11px; }
  .h-xl { font-size: clamp(34px, 10.5vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv .reveal, .rv [data-intro], .rv [data-split] { opacity: 1 !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* sections that also carry .inner keep their side padding */
.section.inner { padding-left: var(--pad); padding-right: var(--pad); }

/* ==========================================================================
   Backgrounds
   ========================================================================== */
/* ambient particle field, fixed behind every page (Nexus template) */
#field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
#field.on { opacity: .5; }

/* hosted animated scenes (Unicorn Studio), hue-shifted to the violet accent */
.bg-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-scene > div { position: absolute; inset: 0; }
.hero > .bg-scene, .page-hero > .bg-scene { position: absolute; }
.hero-grid { z-index: 1; }
/* home hero: the eclipse scene from animation2_0 */
.bg-hero { filter: hue-rotate(90deg); opacity: .95;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); }
/* inner page heads: each page gets its own scene, hue, and orientation */
.bg-page { --hue: 55deg; --flip: 1; transform: scaleX(var(--flip));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%); }
.bg-streams { filter: hue-rotate(var(--hue)) saturate(.8) blur(6px) brightness(.85); opacity: .55; mix-blend-mode: screen; }
.bg-eclipse { filter: hue-rotate(var(--hue)) saturate(.9) brightness(.8); opacity: .6; mix-blend-mode: screen; }
[data-page="experience"] .bg-page   { --hue: 75deg;  --flip: -1; }
[data-page="projects"] .bg-page     { --hue: 95deg; }
[data-page="skills"] .bg-page       { --hue: -15deg; --flip: -1; }
[data-page="publications"] .bg-page { --hue: 235deg; }
[data-page="leadership"] .bg-page   { --hue: 150deg; --flip: -1; }
[data-page="contact"] .bg-page      { --hue: 40deg;  --flip: -1; }

/* animated data grid with light streams (amazing_animation CTA) */
.has-grid { position: relative; overflow: hidden; }
.has-grid > :not(.datagrid) { position: relative; z-index: 1; }
.datagrid { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; opacity: .9; }
.datagrid i { position: absolute; display: block; }
.dg-grid { inset: 0; background: linear-gradient(rgba(167,139,250,.06) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(167,139,250,.06) 1px, transparent 1px) 0 0 / 40px 40px; animation: dg-float 3s linear infinite; }
.dg-s { top: 0; width: 1px; animation: dg-flow 5s ease-in-out infinite; }
.dg-s.s1 { left: 15%; height: 40%; background: linear-gradient(transparent, #c4b5fd, transparent); box-shadow: 0 0 10px rgba(196,181,253,.8); animation-duration: 4s; }
.dg-s.s2 { left: 35%; height: 55%; background: linear-gradient(transparent, #8b7cf6, transparent); box-shadow: 0 0 10px rgba(139,124,246,.8); animation-duration: 6s; animation-delay: 1s; }
.dg-s.s3 { left: 65%; height: 35%; background: linear-gradient(transparent, #7dd3fc, transparent); box-shadow: 0 0 10px rgba(125,211,252,.7); animation-duration: 5s; animation-delay: 2s; }
.dg-s.s4 { left: 85%; height: 60%; background: linear-gradient(transparent, #c4b5fd, transparent); box-shadow: 0 0 10px rgba(196,181,253,.8); animation-duration: 7s; animation-delay: .5s; }
.dg-glows { left: 50%; top: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%); opacity: .6; }
.dg-glows b { position: absolute; inset: 0; animation: dg-spin 20s linear infinite; }
.dg-glows b:nth-child(1) { background: radial-gradient(circle at center, rgba(167,139,250,.16) 0%, transparent 50%); transform-origin: 40% 60%; }
.dg-glows b:nth-child(2) { background: radial-gradient(circle at center, rgba(125,211,252,.10) 0%, transparent 50%); transform-origin: 60% 40%; animation-duration: 25s; animation-direction: reverse; }
.dg-glows b:nth-child(3) { background: radial-gradient(circle at center, rgba(109,95,245,.12) 0%, transparent 40%); transform-origin: 30% 70%; animation-duration: 30s; }
.dg-fade { inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), transparent 40%, rgba(0,0,0,.92)), radial-gradient(circle at center, transparent 0%, #000 100%); opacity: .85; }
@keyframes dg-flow { 0% { transform: translateY(-100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(160%); opacity: 0; } }
@keyframes dg-float { to { background-position: 0 40px, 0 40px; } }
@keyframes dg-spin { 0% { transform: rotate(0deg) scale(1.5); } 50% { transform: rotate(180deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1.5); } }

/* diagonal hairline texture (Nexus collection section) */
.tex-diag { position: relative; }
.tex-diag::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 9px); }
.tex-diag > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .bg-hero { opacity: .55; } }

/* ==========================================================================
   Page swaps: content fades out and back in; the background never reloads
   ========================================================================== */
main.frame { transition: opacity .34s ease, filter .34s ease; }
main.frame.leaving { opacity: 0; filter: blur(8px); }

/* Skills: the full amazing_animation background, held outside the swapped content */
#ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  filter: saturate(.75) blur(8px) brightness(.85); mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%); }
#ambient.on { opacity: .75; }
#ambientScene { position: absolute; inset: 0; }

/* ==========================================================================
   Dev_OS: live workbench console
   ========================================================================== */
.devos { max-width: 1320px; margin: 0 auto; padding: 8px; border-radius: 30px; background: linear-gradient(180deg, #1c1c20, #0a0a0c);
  border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); }
.devos-in { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; min-height: 680px; border-radius: 23px; overflow: hidden; background: #0c0c0f; border: 1px solid var(--line); text-align: left; }
.devos svg { width: 16px; height: 16px; flex: none; }

.dv-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.dv-brand { font: 500 15px/1 var(--font-head); padding: 8px 10px 20px; color: #eee; }
.dv-caret-down { color: var(--text-3); margin-left: 4px; }
.dv-nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; border: 1px solid transparent; transition: color .2s; }
.dv-nav a:hover { color: #fff; }
.dv-nav a.on { color: #c4b5fd; background: linear-gradient(90deg, rgba(167,139,250,.14), rgba(167,139,250,.04)); border-color: rgba(167,139,250,.35); box-shadow: inset 2px 0 0 #a78bfa; }
.dv-group { display: flex; justify-content: space-between; align-items: center; padding: 22px 10px 8px; color: var(--text-3); font-size: 9.5px; }
.dv-group i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 5px; font-size: 12px; }
.dv-env { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 14px; color: #d4d4d4; }
.dv-env b { width: 7px; height: 7px; border-radius: 50%; }
.dv-env b.c { background: #7dd3fc; box-shadow: 0 0 8px #7dd3fc; }
.dv-env b.a { background: #fcd9a8; }
.dv-proj { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); border: 1px solid transparent; transition: color .25s, background .25s, border-color .25s; }
.dv-proj:hover { color: #fff; }
.dv-proj em { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; }
.dv-proj.on { color: #fff; background: rgba(255,255,255,.045); border-color: var(--line-2); }
.dv-proj.on em { background: #7dd3fc; box-shadow: 0 0 8px #7dd3fc; }
.dv-user { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 18px 10px 4px; border-top: 1px solid var(--line); }
.dv-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4338ca, #7c3aed); font: 600 11px/1 var(--font-mono); color: #fff; }
.dv-user strong { display: block; font: 500 13px/1.3 var(--font-head); }
.dv-user small { color: var(--text-3); font-size: 11px; }

.dv-main { min-width: 0; display: flex; flex-direction: column; }
.dv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.dv-crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-3); }
.dv-crumb-b { color: #eee; }
.dv-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(125,211,252,.35); color: #7dd3fc; font-size: 9.5px; background: rgba(125,211,252,.06); }
.dv-badge i { width: 5px; height: 5px; border-radius: 50%; background: #7dd3fc; animation: dv-blink 1.6s infinite; }
.devos.paused .dv-badge { color: #fcd9a8; border-color: rgba(252,217,168,.35); background: rgba(252,217,168,.06); }
.devos.paused .dv-badge i { background: #fcd9a8; animation: none; }
.dv-actions { display: flex; gap: 8px; }
.dv-btn { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 13px; color: #ddd; background: rgba(255,255,255,.02); transition: border-color .2s, color .2s; }
.dv-btn:hover { border-color: var(--line-3); color: #fff; }
.dv-btn svg { width: 14px; height: 14px; }
.dv-console.on { color: #7dd3fc; border-color: rgba(125,211,252,.45); background: rgba(125,211,252,.08); }
.devos.no-term .dv-console { color: #ddd; border-color: var(--line-2); background: rgba(255,255,255,.02); }
.dv-body { padding: 26px 28px 28px; }
.dv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.dv-title { margin: 0 0 10px; font: 500 clamp(22px, 2vw, 30px)/1.15 var(--font-head); letter-spacing: -.03em; color: #fff; }
.dv-meta { display: flex; gap: 10px; align-items: center; color: var(--text-3); font-size: 13px; }
.dv-meta > i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.dv-id { font: 12px/1.4 var(--font-mono); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 5px; color: #ccc; background: rgba(255,255,255,.03); }
.dv-chip { display: inline-flex; gap: 8px; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font: 12.5px/1 var(--font-mono); white-space: nowrap; color: #e5e5e5; }
.dv-chip svg { width: 14px; height: 14px; color: #7dd3fc; }
.dv-chip b { font-weight: 500; }
.dv-chart { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 0; overflow: hidden;
  background: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(180deg, #111116, #0b0b0e); }
.dv-chart-top { display: flex; justify-content: space-between; color: #bbb; font-size: 10px; }
.dv-chart-top i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; margin-right: 8px; vertical-align: middle; }
.dv-live { color: #a78bfa; }
.dv-bars { display: flex; align-items: flex-end; gap: 12px; height: 210px; padding-top: 16px; }
.dv-bar { flex: 1; height: 40%; border-radius: 6px 6px 0 0; border: 1px solid rgba(255,255,255,.08); border-bottom: 0;
  background: linear-gradient(180deg, rgba(148,163,184,.42), rgba(148,163,184,.08)); transition: height .9s cubic-bezier(.3,.8,.2,1), background .6s, box-shadow .6s; }
.dv-bar.peak { background: linear-gradient(180deg, rgba(167,139,250,.95), rgba(139,124,246,.25)); box-shadow: 0 0 28px rgba(167,139,250,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.dv-logs-h { display: flex; gap: 12px; align-items: center; margin: 26px 0 14px; }
.dv-logs-h strong { font: 500 15px/1 var(--font-head); }
.dv-logs-h .mono { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 9.5px; color: #bbb; }
.dv-logs-h .mono i { width: 5px; height: 5px; border-radius: 50%; background: #7dd3fc; animation: dv-blink 1.6s infinite; }
.dv-logs { position: relative; }
.dv-logs::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.dv-log { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 26px; padding: 10px 0; opacity: .32; transition: opacity .6s; }
.dv-log.on { opacity: 1; }
.dv-node { position: relative; z-index: 1; margin-top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-3); background: #0c0c0f; transition: box-shadow .5s, border-color .5s, transform .5s; }
.dv-log.on .dv-node { border: 2px solid #a78bfa; box-shadow: 0 0 14px rgba(167,139,250,.55); transform: scale(1.25); }
.dv-log-t { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.dv-log-h { font: 500 14px/1.3 var(--font-head); color: #f2f2f2; }
.dv-log-t small { color: var(--text-3); font-size: 9.5px; }
.dv-log-p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; max-width: 34em; }
.dv-log-p code { display: block; font: 12.5px/1.6 var(--font-mono); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); color: #cfcfcf; }
.dv-log-p b { color: #7dd3fc; font-weight: 600; }

.dv-params { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; border-left: 1px solid var(--line); background: rgba(255,255,255,.012); }
.dv-params-h { display: flex; justify-content: space-between; align-items: center; margin: 0 -20px 6px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: #ddd; }
.dv-params-h i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 7px; color: var(--text-2); }
.dv-params-h svg { width: 14px; height: 14px; }
.dv-label { color: var(--text-3); font-size: 9.5px; margin-top: 12px; }
.dv-label-sep { border-top: 1px solid var(--line); padding-top: 18px; }
.dv-stat { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); font-size: 13.5px; color: #ccc; }
.dv-stat svg { width: 15px; height: 15px; color: var(--text-3); }
.dv-stat b { margin-left: auto; font: 500 13px/1 var(--font-mono); color: #eee; }
.dv-stat-c b { color: #7dd3fc; }
.dv-slider { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.dv-slider-top { display: flex; justify-content: space-between; font-size: 13.5px; color: #ccc; margin-bottom: 14px; }
.dv-slider-top b { font-size: 12px; letter-spacing: .02em; color: #eee; }
.dv-track { position: relative; height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); }
.dv-slider-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #6d5ff5, #c4b5fd); transition: width .8s cubic-bezier(.3,.8,.2,1); }
.dv-slider-fill::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.dv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: #ccc; padding: 6px 2px; }
.dv-row b { padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; letter-spacing: .02em; color: #e9d5ff; background: rgba(167,139,250,.08); }
.dv-conn { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-conn span { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 13px; color: #ddd; background: rgba(255,255,255,.02); }

.dv-term { position: absolute; right: 26px; bottom: 26px; z-index: 3; width: min(480px, 42%); border-radius: 14px; border: 1px solid var(--line-2); background: rgba(8,8,10,.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 60px -12px rgba(0,0,0,.85); overflow: hidden; transition: opacity .35s, transform .35s; }
.devos.no-term .dv-term { opacity: 0; transform: translateY(14px); pointer-events: none; }
.dv-term-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font: 13px/1 var(--font-mono); color: #ccc; }
.dv-term-bar > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.dv-term-bar svg { width: 14px; height: 14px; color: #7dd3fc; }
.dv-term-dots i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2a2a30; margin-left: 6px; }
.dv-term-body { height: 220px; overflow: hidden; padding: 14px 18px; font: 12.5px/1.7 var(--font-mono); color: #d4d4d4; }
.dv-dim { color: var(--text-3); }
.dv-cmd { margin-top: 10px; color: #eee; }
.dv-arrow { color: #a78bfa; }
.dv-tilde { color: #7dd3fc; }
.dv-out { padding-left: 14px; color: #bdbdbd; }
.dv-info { color: #7dd3fc; }
.dv-warn { color: #fcd9a8; }
.dv-caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #c4b5fd; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes dv-blink { 50% { opacity: .25; } }

@media (max-width: 1180px) {
  .devos-in { grid-template-columns: 220px minmax(0, 1fr); }
  .dv-params { display: none; }
  .dv-term { width: min(420px, 52%); }
}
@media (max-width: 760px) {
  .devos { border-radius: 20px; padding: 5px; }
  .devos-in { grid-template-columns: 1fr; border-radius: 16px; min-height: 0; }
  .dv-side { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dv-brand, .dv-nav, .dv-group, .dv-env, .dv-user { display: none; }
  .dv-proj { width: auto; padding: 8px 10px; }
  .dv-top { padding: 12px 16px; flex-wrap: wrap; }
  .dv-body { padding: 20px 16px; }
  .dv-head { flex-direction: column; }
  .dv-bars { height: 150px; gap: 7px; }
  .dv-term { position: static; width: auto; margin: 0 12px 12px; }
  .devos.no-term .dv-term { display: none; }
}

/* ---------- the explore cat: strolls along the top of Dev_OS until someone clicks inside ---------- */
.devos { position: relative; }
.dv-cat { position: absolute; left: 4%; right: 4%; top: -44px; height: 46px; pointer-events: none; z-index: 4; transition: opacity .6s; }
.devos.explored .dv-cat { opacity: 0; }
.dv-cat-walk { position: absolute; bottom: 0; left: 0; width: 70px; animation: cat-path 18s ease-in-out infinite; }
.devos .dv-cat-svg { width: 70px; height: 44px; display: block; animation: cat-face 18s steps(1) infinite; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.dv-leg { transform-box: fill-box; transform-origin: 50% 0; animation: cat-step .5s ease-in-out infinite alternate; }
.dv-leg.l2 { animation-delay: -.25s; }
.dv-tail { transform-box: fill-box; transform-origin: 100% 100%; animation: cat-tail 1.8s ease-in-out infinite alternate; }
.dv-eye { transform-box: fill-box; transform-origin: center; animation: cat-blink 4.5s infinite; }
.dv-bubble { position: absolute; bottom: 52px; left: 50%; width: max-content; max-width: 230px; transform: translateX(-50%); padding: 9px 13px; border-radius: 12px;
  background: #f4f1ff; color: #1c1530; font: 500 13px/1.35 var(--font-body); box-shadow: 0 10px 30px -8px rgba(124,108,255,.55); animation: cat-bubble 18s ease-in-out infinite; }
.dv-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #f4f1ff; transform: rotate(45deg); border-radius: 2px; }
/* walk right, sit and talk, walk back, sit and talk */
@keyframes cat-path { 0% { left: 0; } 32% { left: calc(100% - 70px); } 50% { left: calc(100% - 70px); } 82% { left: 0; } 100% { left: 0; } }
@keyframes cat-face { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes cat-bubble { 0%, 31% { opacity: 0; transform: translate(-50%, 6px); } 34%, 48% { opacity: 1; transform: translate(-50%, 0); } 51%, 81% { opacity: 0; transform: translate(-50%, 6px); } 84%, 98% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes cat-step { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
@keyframes cat-tail { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes cat-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@media (max-width: 760px) { .dv-cat { top: -40px; } .dv-bubble { font-size: 12px; max-width: 180px; } }
@media (prefers-reduced-motion: reduce) {
  .dv-cat-walk { animation: none; left: 0; }
  .dv-bubble { animation: none; opacity: 1; transform: translateX(-30%); }
}

/* ---------- experience stack: milestones in amber ---------- */
:root { --amber: #7dd3fc; --amber-2: #bae6fd; } /* milestone accent: the cool sky blue from the dashboard */
.stk-kind { font-style: normal; display: inline-block; margin-right: 12px; padding: 3px 8px; border-radius: 5px; border: 1px solid rgba(196,181,253,.35); color: var(--violet-2); font-size: 10.5px; letter-spacing: .14em; }
.stk-story article[data-ms] .mono { color: var(--amber-2); }
.stk-story article[data-ms] .stk-kind { border-color: rgba(125,211,252,.55); color: var(--amber); background: rgba(125,211,252,.08); }
.stk-lab.ms b { color: rgba(206,236,252,.85); }
.stk-lab.ms em { color: var(--amber); }
.stk-lab.ms i { background: rgba(125,211,252,.45); }
.stk-lab.ms.on b { color: #fff; }
.stk-lab.ms.on i { background: var(--amber); }
.stk-dot.ms::before { background: rgba(125,211,252,.45); }
.stk-dot.ms.on::before { background: var(--amber); box-shadow: 0 0 10px rgba(125,211,252,.7); }
.s-stack.on-ms .stk-count b { color: var(--amber); }
.stk-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: var(--text-3); font-size: 10.5px; }
.stk-legend span { display: inline-flex; align-items: center; gap: 8px; }
.stk-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px rgba(167,139,250,.6); }
.stk-legend i.ms { background: var(--amber); box-shadow: 0 0 8px rgba(125,211,252,.7); }
.stk-dots { gap: 4px; }
.stk-dot { width: 18px; }
.stk-dot.on { width: 34px; }
@media (max-width: 900px) {
  .stk-dot { width: 11px; } .stk-dot.on { width: 22px; }
  .stk-dots { gap: 2px; }
  .stk-legend { font-size: 9.5px; margin-top: 10px; }
}
.stk-legend small { font-size: inherit; margin-left: -8px; }
@media (max-width: 900px) {
  .stk-legend small { display: none; }
  .stk-nav { gap: 8px; }
  .stk-arrow { width: 38px; height: 38px; }
  .stk-count { font-size: 11px; letter-spacing: .06em; margin-left: 0; }
  .stk-story { height: 262px; }
  .stk-story p { font-size: 15px; }
}

/* disks and their labels are clickable */
.stk-lab { pointer-events: auto; cursor: pointer; padding: 6px 0; }
.stk-lab:hover b { color: #fff; }
.stk-stage.hot { cursor: pointer; }

/* ---------- stack: view controls, marquee, skip bar ---------- */
.stk-stage { cursor: grab; touch-action: pan-y; }
.stk-stage.hot { cursor: pointer; }
.stk-stage.dragging { cursor: grabbing; }
.stk-views { position: absolute; z-index: 3; left: 50%; top: -6px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8,8,12,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 10.5px; white-space: nowrap; }
.stk-views-h { color: var(--text-3); padding: 0 8px 0 10px; }
.stk-views button { padding: 6px 11px; border-radius: 999px; color: var(--text-2); letter-spacing: .12em; transition: color .2s, background .2s; }
.stk-views button:hover { color: #fff; }
.stk-views button.on { color: #fff; background: rgba(167,139,250,.22); box-shadow: inset 0 0 0 1px rgba(196,181,253,.45); }
.stk-drag { color: var(--text-3); padding: 0 10px 0 8px; border-left: 1px solid var(--line-2); margin-left: 4px; }
.stk-stage.nogl .stk-views { display: none; }

.stk-marquee { position: absolute; z-index: 2; left: 0; right: 0; top: 2.2vh; overflow: hidden; pointer-events: none; padding: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

.stk-bar { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 3vh; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stk-bar #stkCap { color: var(--text-2); font-size: 11.5px; text-align: center; }
.stk-skip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 10.5px; letter-spacing: .14em;
  background: rgba(8,8,12,.6); transition: color .2s, border-color .2s, background .2s; }
.stk-skip svg { width: 13px; height: 13px; }
.stk-skip:hover { color: #fff; border-color: var(--line-3); background: rgba(255,255,255,.06); }
@media (max-width: 900px) {
  .stk-views { top: -2px; font-size: 9.5px; gap: 2px; padding: 3px; }
  .stk-views-h, .stk-drag { display: none; }
  .stk-views button { padding: 5px 8px; }
  .stk-marquee .marquee-track span { font-size: 16px; }
    .stk-bar #stkCap { display: none; }
  .stk-skip { padding: 8px 12px; font-size: 9.5px; }
}

/* the tools marquee runs across the top of the pinned section; content starts below it */
@media (min-width: 901px) { .stk-pin { padding-top: 46px; } }
@media (max-width: 900px) {
  .s-stack .stk-pin { padding-top: 54px; }
  .stk-marquee { top: 8px; }
  .stk-marquee .marquee-track span { font-size: 15px; }
  .stk-views { top: -2px; font-size: 9.5px; gap: 2px; padding: 3px; }
  .stk-views-h, .stk-drag { display: none; }
  .stk-views button { padding: 5px 8px; }
  .stk-bar #stkCap { display: none; }
  .stk-skip { padding: 8px 12px; font-size: 9.5px; white-space: nowrap; }
}

/* ---------- Skills: the three stack cards, populated ---------- */
.posters-full { max-width: none; padding: 30px 0 10px; }
.posters-full .poster { aspect-ratio: auto; min-height: 400px; flex-basis: clamp(320px, 30vw, 520px); display: flex; flex-direction: column; padding: 26px 26px 22px; }
.posters-full .poster h3 { margin-bottom: 14px; }
.poster-line { margin: 0 0 18px; font: 500 15px/1.45 var(--font-body); max-width: 26em; }
.poster-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.poster-tools span { padding: 6px 10px; border-radius: 6px; border: 1.3px solid currentColor; font: 500 12.5px/1.2 var(--font-mono); }
.poster-used { margin-top: 16px; padding-top: 12px; border-top: 1px solid currentColor; font-size: 10px; letter-spacing: .12em; opacity: .75; }
.poster-a .poster-line { color: #cfeee8; } .poster-a .poster-tools span { color: #a7e3d8; background: rgba(167,227,216,.06); } .poster-a .poster-used { color: #9bd3c9; }
.poster-b .poster-line { color: #3a3a46; } .poster-b .poster-tools span { color: #1e1e24; background: rgba(194,24,91,.07); } .poster-b .poster-tools span:nth-child(3n+1) { color: #b0124f; } .poster-b .poster-used { color: #6b2a45; }
.poster-c .poster-line { color: #5a4a36; } .poster-c .poster-tools span { color: #6b4a2e; background: rgba(211,47,47,.05); } .poster-c .poster-tools span:nth-child(3n+1) { color: #c62828; } .poster-c .poster-used { color: #8a3a2a; }
@media (max-width: 960px) { .posters-full .poster { width: min(520px, 100%); min-height: 0; height: auto; flex: 0 0 auto; } }

/* ---------- milestones: the patent as a solid, glowing button above the other two ---------- */
.patent-btn { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); max-width: 1080px; margin: 0 auto 16px; padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  border-radius: 18px; overflow: hidden; isolation: isolate; color: #fff; text-align: left;
  background: radial-gradient(120% 160% at 15% 0%, #7b6cff 0%, #4f46e5 45%, #2e2a8f 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 6px rgba(79,70,229,.12), 0 24px 70px -18px rgba(99,102,241,.75);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.patent-btn:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 0 0 8px rgba(79,70,229,.16), 0 32px 90px -16px rgba(124,108,255,.9); }
.patent-glow { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%) -150% 0 / 60% 100% no-repeat; animation: patent-sheen 5s ease-in-out infinite; }
@keyframes patent-sheen { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
.patent-icon { flex: none; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.patent-icon svg { width: 28px; height: 28px; }
.patent-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.patent-tag { font-size: 11px; color: rgba(255,255,255,.78); }
.patent-text strong { font: 500 clamp(19px, 1.9vw, 27px)/1.25 var(--font-head); letter-spacing: -.02em; }
.patent-sub { font-size: 14.5px; color: rgba(255,255,255,.8); }
.patent-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #fff; color: #2e2a8f; font-size: 11px; font-weight: 600; }
.patent-go svg { width: 15px; height: 15px; transition: transform .25s; }
.patent-btn:hover .patent-go svg { transform: translateX(3px); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 760px) {
  .patent-btn { flex-wrap: wrap; }
  .patent-icon { width: 46px; height: 46px; }
  .patent-go { width: 100%; justify-content: center; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .patent-glow { animation: none; } }

/* ---------- footer sign-off (replaces the engraved wordmark) ---------- */
.signoff { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 8px var(--pad) 28px; padding: 28px 32px; border: 1px solid var(--line-2); border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,108,255,.16), transparent 60%), rgba(255,255,255,.015); }
.signoff-name { display: block; font: 500 clamp(30px, 3.4vw, 52px)/1.05 var(--font-head); letter-spacing: -.035em;
  background: linear-gradient(180deg, #f5f5f5, #b9b4d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signoff-sub { display: block; margin-top: 10px; color: var(--text-2); font-size: 15px; }
.signoff-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #fff; color: #1e1b4b;
  font: 600 14px/1 var(--font-body); transition: transform .2s, box-shadow .2s; }
.signoff-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.signoff-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(124,108,255,.7); }
.signoff-cta:hover svg { transform: translateX(3px); }
@media (max-width: 640px) { .signoff { padding: 22px; } .signoff-cta { width: 100%; justify-content: center; } }

/* ---------- stat lists: the label matters as much as the number ---------- */
.statlist div { padding: 18px 0; align-items: center; }
.statlist .mono { font: 500 clamp(15px, 1.15vw, 18px)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: #d4d4d8; }
.statlist b { font-size: clamp(24px, 2vw, 32px); }

/* ---------- skill tags: a calm, readable sans instead of monospace ---------- */
.chips { gap: 8px; }
.chips span { font: 450 14.5px/1.3 var(--font-head); letter-spacing: -.005em; color: #e6e6ea; padding: 8px 13px; border-radius: 8px;
  background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
.panel-head h3 { font-size: 19px; }
.panel-head .mono { font: 400 13px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-3); }
/* stat rows: label and number share one size, so neither gets missed */
.statlist .mono, .statlist b { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.3; }
.statlist .mono { font-weight: 400; color: #d4d4d8; }
.statlist b { font-family: var(--font-head); font-weight: 500; letter-spacing: -.01em; color: #fff; }
.statlist div { padding: 14px 0; }
/* sidebar order: environments, active projects, then navigation */
.dv-side > .dv-group:first-of-type { padding-top: 6px; }
