/* Neel Bansal — portfolio. "Lab log": blue-ink graph paper + instrument-cyan signal. */
:root {
  --paper: #10151c;
  --paper-2: #161d27;
  --paper-3: #1c2531;
  --ink: #eef2f7;
  --ink-dim: #97a4b6;
  --ink-faint: #66748a;
  --line: rgba(120, 150, 190, 0.14);
  --line-soft: rgba(120, 150, 190, 0.08);
  --signal: #35e0d0;
  --signal-2: #7aa2ff;
  --warn: #ffb454;
  --radius: 14px;
  --maxw: 1180px;
  --f-disp: "Space Grotesk", system-ui, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-disp);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
main, .nav, .footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--f-disp); font-size: 0.9rem; font-weight: 500;
  padding: 0.55em 1.05em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-live { background: var(--signal); color: #06251f; font-weight: 600; }
.btn-live:hover { background: #55efdf; }
.btn-demo { background: transparent; color: var(--signal); border-color: var(--signal); }
.btn-demo:hover { background: rgba(53, 224, 208, 0.12); }
.btn-ghost { background: var(--paper-3); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(16, 21, 28, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand { font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { font-family: var(--f-mono); color: var(--signal); letter-spacing: -1px; font-size: 0.95rem; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink-dim); font-size: 0.92rem; padding: 0.2rem 0; border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-color: var(--signal); }
.nav-cta { display: flex; gap: 0.6rem; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 5rem); max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badge { position: relative; z-index: 1; display: flex; justify-content: center; }
#telemetry { position: absolute; inset: auto 0 0 0; top: 8%; width: 100%; height: 78%; z-index: 0; opacity: 0.55; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow { font-family: var(--f-mono); font-size: 0.8rem; color: var(--signal); letter-spacing: 0.02em; margin: 0 0 1.1rem; }
.hero-title {
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 1.4rem;
}
.hero-title em { color: var(--signal); font-style: italic; font-weight: 500; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-dim); max-width: 58ch; margin: 0 0 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.8rem 2.6rem; margin-bottom: 2.2rem; }
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-v { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 500; color: var(--ink); line-height: 1; }
.stat-v .plus { color: var(--signal); }
.stat-l { font-size: 0.82rem; color: var(--ink-faint); max-width: 15ch; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { margin-bottom: 1.8rem; }
.section-head-sub { margin-top: 3.5rem; }
.section-head h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 0.3rem; letter-spacing: -0.01em; }
.section-sub { color: var(--ink-dim); margin: 0; max-width: 62ch; }

/* ---------- featured (Freshline) ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  background: linear-gradient(160deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
}
.featured-kicker { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--signal); margin-bottom: 0.8rem; }
.featured-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.featured-name { font-family: var(--f-serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin: 0 0 0.6rem; }
.featured-one { font-size: 1.15rem; color: var(--ink); margin: 0 0 1rem; font-weight: 500; }
.featured-body { color: var(--ink-dim); margin: 0 0 1rem; }
.featured-born { color: var(--ink-faint); font-size: 0.9rem; font-style: italic; margin: 0 0 1.2rem; }
.featured-note { font-family: var(--f-mono); font-size: 0.8rem; color: var(--signal-2); margin: 1rem 0 0; }
.featured-media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.featured-media .fm-main { grid-column: 1 / -1; }
.featured-media img { border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s, border-color .2s; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.featured-media img:hover { border-color: var(--signal); }

/* ---------- chips + badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.chip { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-dim); background: var(--paper-3); border: 1px solid var(--line-soft); padding: 0.25em 0.7em; border-radius: 6px; }
.badges { display: flex; gap: 0.5rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 600; padding: 0.25em 0.7em; border-radius: 999px; }
.badge-award { background: rgba(255, 180, 84, 0.14); color: var(--warn); border: 1px solid rgba(255, 180, 84, 0.35); }
.badge-private { background: var(--paper-3); color: var(--ink-faint); border: 1px solid var(--line); font-family: var(--f-mono); font-weight: 500; }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.card:hover { border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: zoom-in; background: var(--paper-3); border-bottom: 1px solid var(--line-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.gallery-open { position: absolute; right: 0.6rem; bottom: 0.6rem; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink); background: rgba(16, 21, 28, 0.82); border: 1px solid var(--line); border-radius: 6px; padding: 0.2em 0.6em; cursor: pointer; }
.gallery-open:hover { border-color: var(--signal); color: var(--signal); }
.card-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.card-head h3 { font-size: 1.2rem; font-weight: 600; margin: 0; }
.card-tag { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-faint); white-space: nowrap; }
.card-one { font-size: 1rem; font-weight: 500; color: var(--ink); margin: 0.6rem 0 0.5rem; }
.card-lede { color: var(--ink-dim); font-size: 0.93rem; margin: 0 0 0.5rem; }
.datum { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.4rem 0 0.2rem; padding: 0.5rem 0.7rem; background: var(--paper); border-left: 2px solid var(--signal); border-radius: 4px; }
.datum-v { font-size: 1.35rem; font-weight: 500; color: var(--signal); }
.datum-l { font-size: 0.8rem; color: var(--ink-dim); }
.card-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.9rem; }
.mono { font-family: var(--f-mono); }

/* ---------- live band ---------- */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.live-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.live-frame { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.live-poster { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.live-play { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; font-family: var(--f-disp); font-size: 0.9rem; font-weight: 600; color: #06251f; background: var(--signal); border: 0; border-radius: 999px; padding: 0.6em 1.2em; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.live-play:hover { background: #55efdf; }
.live-frame::after { content: ""; position: absolute; inset: 0; background: rgba(16,21,28,.35); transition: opacity .2s; }
.live-frame.loaded::after, .live-frame:hover::after { opacity: 0; }
.live-iframe { width: 100%; height: 100%; border: 0; background: #000; }
.live-frame.loaded { aspect-ratio: auto; height: 420px; }
.live-info { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.live-info h3 { margin: 0; font-size: 1.15rem; }
.live-info p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; flex: 1; }
.live-info .card-links { padding-top: 0.7rem; }

/* ---------- research ---------- */
.research-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 20px; padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.research-text h3 { font-size: 1.4rem; font-weight: 600; margin: 0.7rem 0 1rem; line-height: 1.3; }
.research-text p { color: var(--ink-dim); margin: 0 0 0.9rem; }
.research-text strong { color: var(--ink); font-weight: 600; }
.research-diagram { margin: 0; }
.research-diagram svg { width: 100%; height: auto; }
.research-diagram figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.8rem; text-align: center; }
.d-box { fill: var(--paper); stroke: var(--line); }
.d-frozen { fill: rgba(122, 162, 255, 0.1); stroke: var(--signal-2); }
.d-lora { fill: rgba(53, 224, 208, 0.12); stroke: var(--signal); }
.d-title { fill: var(--ink); font-family: var(--f-disp); font-size: 12px; font-weight: 600; }
.d-center { text-anchor: middle; }
.d-lbl { fill: var(--ink-faint); font-family: var(--f-mono); font-size: 10px; }
.d-sm { fill: var(--signal-2); font-family: var(--f-mono); font-size: 9.5px; }
.d-sm-a { fill: var(--signal); }
.d-flow { stroke: var(--signal-2); stroke-width: 1.5; }
.d-reset { fill: none; stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-reset-lbl { fill: var(--warn); font-family: var(--f-mono); font-size: 10px; text-anchor: end; }
.d-plot { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0.55; }

/* ---------- about ---------- */
.about-wrap { max-width: 760px; }
.about-text p { color: var(--ink-dim); margin: 0 0 1rem; max-width: 62ch; }
.about-text strong { color: var(--ink); }
.about-links { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.li-card { width: 100%; max-width: 320px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.li-head { display: inline-flex; align-items: center; gap: 0.5rem; color: #70b5f9; font-weight: 600; font-size: 0.95rem; }
.li-mark { width: 22px; height: 22px; }
.li-name { font-size: 1.3rem; font-weight: 600; margin: 0.9rem 0 0.3rem; color: var(--ink); }
.li-sub { color: var(--ink-dim); font-size: 0.88rem; margin: 0 0 1.2rem; }
.li-btn { width: 100%; justify-content: center; }
.li-embed { margin-top: 1rem; }
.li-embed:empty { display: none; }

/* ---------- footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; color: var(--ink-faint); font-size: 0.85rem; }
.footer-note { color: var(--ink-faint); }
.footer-top { margin-left: auto; color: var(--ink-dim); }
.footer-top:hover { color: var(--signal); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 500; background: rgba(6, 9, 13, 0.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none !important; }
.lb-img { max-width: 92vw; max-height: 84vh; border-radius: 8px; border: 1px solid var(--line); }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; background: var(--paper-3); border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.4rem; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--signal); color: var(--signal); }
.lb-cap { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-dim); }

/* ---------- placeholder / make cards ---------- */
.card-placeholder .card-media { cursor: default; }
.card-placeholder .card-media img { object-fit: cover; }
.media-tag { position: absolute; left: 0.6rem; bottom: 0.6rem; font-family: var(--f-mono); font-size: 0.7rem; color: var(--warn); background: rgba(16,21,28,.82); border: 1px solid rgba(255,180,84,.3); border-radius: 6px; padding: 0.2em 0.6em; }
.card-soon { margin-top: auto; padding-top: 0.9rem; font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- hackathons ---------- */
.hack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.hack-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; border-top: 2px solid var(--signal); }
.hack-card.accent-signal2 { border-top-color: var(--signal-2); }
.hack-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.hack-award { font-size: 0.95rem; font-weight: 600; color: var(--warn); }
.hack-venue { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-faint); text-align: right; }
.hack-name { margin: 0 0 0.6rem; font-size: 1.2rem; }
.hack-body { color: var(--ink-dim); font-size: 0.92rem; margin: 0 0 1rem; flex: 1; }
.hack-link { color: var(--signal); font-size: 0.88rem; font-weight: 500; }
.hack-card.accent-signal2 .hack-link { color: var(--signal-2); }
.hack-link:hover { text-decoration: underline; }

/* ---------- leadership ---------- */
.lead-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.lead-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; border-left: 2px solid var(--signal); }
.lead-card.accent-signal2 { border-left-color: var(--signal-2); }
.lead-featured { grid-column: 1 / -1; }
.lead-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.lead-head h3 { margin: 0; font-size: 1.25rem; }
.lead-role { font-family: var(--f-mono); font-size: 0.8rem; color: var(--signal); }
.lead-card.accent-signal2 .lead-role { color: var(--signal-2); }
.lead-body { color: var(--ink-dim); margin: 0 0 1rem; max-width: 70ch; }
.lead-timeline { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.lead-timeline li { position: relative; padding: 0.8rem 0.9rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 0.2rem; }
.lead-timeline li::before { content: ""; position: absolute; top: -1px; left: 0.9rem; width: 24px; height: 2px; background: var(--signal); }
.lt-when { font-size: 0.72rem; color: var(--signal); }
.lt-what { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

/* ---------- milestones ---------- */
.mile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mile-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.mile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.mile-head h3 { margin: 0; font-size: 1.2rem; }
.mile-tag { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; }
.mile-body { color: var(--ink-dim); font-size: 0.92rem; margin: 0 0 1rem; flex: 1; }
.mile-soon { font-family: var(--f-mono); font-size: 0.75rem; color: var(--warn); }

/* ---------- footer disclaimer ---------- */
.footer-disclaimer { width: 100%; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.6; max-width: 90ch; padding: 1rem 1.1rem; background: var(--paper-2); border: 1px solid var(--line-soft); border-left: 2px solid var(--signal); border-radius: 10px; margin-bottom: 1.4rem; }
.footer-disclaimer strong { color: var(--ink); }
.footer-row { display: flex; width: 100%; align-items: center; gap: 1rem; }

/* ---------- first-visit intro ---------- */
body.intro-active { overflow: hidden; }
#intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: radial-gradient(130% 100% at 50% 38%, #faf8f2 0%, #efece2 100%);
  color: #14181d; overflow: hidden;
  transition: opacity .55s ease, visibility .55s;
}
#intro.intro-out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
#intro.s-welcome .intro-constellation { opacity: 1; }
.intro-inner { text-align: center; width: min(92vw, 760px); padding: 2rem; position: relative; z-index: 1;
  transform: translateY(0); transition: transform .6s cubic-bezier(.16,1,.3,1); }
#intro.s-rise .intro-inner { transform: translateY(-6vh); }

.intro-welcome {
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.2rem, 6.5vw, 4rem);
  letter-spacing: -.01em; margin: 0 0 1.8rem; opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
#intro.s-welcome .intro-welcome { opacity: 1; transform: translateY(0); }

/* Domain lockup: "neelbansal" in black first; then ".dev" slides out after it in light blue, blurring into focus. */
.intro-domainwrap { display: flex; justify-content: center; margin-bottom: .5rem; }
.intro-domain {
  display: inline-flex; align-items: baseline;
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: -.01em; white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
#intro.s-domain .intro-domain { opacity: 1; transform: translateY(0); }
.intro-root { color: #14181d; }
/* the ".dev" suffix: hidden (width 0, blurred), then clip-reveals after the root and sharpens */
.intro-sub {
  color: #5aa7ec; display: inline-block; overflow: hidden;
  max-width: 0; opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(10px); transform: translateX(-.35em);
  transition: max-width .6s cubic-bezier(.16,1,.3,1) .05s, opacity .35s ease .05s, clip-path .6s cubic-bezier(.16,1,.3,1) .05s,
              filter .7s ease .15s, transform .6s cubic-bezier(.16,1,.3,1) .05s;
}
#intro.s-sub .intro-sub { max-width: 5ch; opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); transform: translateX(0); }
.intro-caret {
  display: inline-block; width: .09em; height: 1.05em; margin-left: .1em;
  background: #5aa7ec; transform: translateY(.12em);
  animation: introblink 1s steps(1) infinite;
}
#intro.s-rise .intro-caret { opacity: 0; }
@keyframes introblink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.intro-ask {
  margin-top: 2rem; opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .6s ease .05s, transform .6s cubic-bezier(.16,1,.3,1) .05s;
}
#intro.s-rise .intro-ask { opacity: 1; transform: translateY(0); pointer-events: auto; }
.intro-q { font-family: var(--f-disp); font-size: clamp(1rem, 2.4vw, 1.35rem); color: #3a4048; margin: 0 0 1.4rem; font-weight: 500; }
.intro-choices { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.intro-choice {
  font-family: var(--f-disp); font-size: 0.95rem; font-weight: 500; cursor: pointer;
  padding: 0.72em 1.5em; border-radius: 999px; border: 1.5px solid #14181d; background: transparent; color: #14181d;
  transition: background .18s, color .18s, transform .1s;
}
.intro-choice:hover { background: #14181d; color: #faf8f2; }
.intro-choice:active { transform: translateY(1px); }
.intro-skip { font-family: var(--f-mono); font-size: 0.75rem; color: #9a948a; margin: 1.6rem 0 0; }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  body.nav-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  body.nav-open .nav-links a { padding: 0.7rem clamp(1rem, 4vw, 2.5rem); }
  .featured-card, .research-card { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-badge { justify-content: flex-start; }
  .grid, .grid-2, .live-grid, .hack-grid, .lead-grid, .mile-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hack-grid, .mile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}
