/* ==========================================================================
   Rajarshi Ray — portfolio design system
   ========================================================================== */

:root {
  --bg: #050509;
  --bg-2: #0a0a14;
  --bg-3: #0e0e1c;
  --text: #eef0fa;
  --muted: #a3a8c3;
  --faint: #6d7190;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --magenta: #f472b6;
  --emerald: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan) 55%, var(--magenta));
  /* SceneSense.AI app palette (mirrors the live product) */
  --ss-purple-700: #6d28d9;
  --ss-purple-600: #7c3aed;
  --ss-purple-500: #8b5cf6;
  --ss-purple-100: #ede9fe;
  --ss-purple-50: #f5f3ff;
  --ss-ink: #1f2330;
  --ss-ink-muted: #6b7280;
  --ss-border: #e7e5ef;
  --ss-bg: #fafafc;
  --ss-card: #ffffff;
  --ss-shadow: 0 1px 2px rgba(24, 16, 60, 0.05), 0 8px 24px -12px rgba(109, 40, 217, 0.18);
  --font-app: "Manrope", "Inter", system-ui, sans-serif;
  --grad-scene: linear-gradient(135deg, var(--ss-purple-600), var(--ss-purple-500));
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* --------------------------------------------------------------------------
   Atmosphere: aurora blobs + grain + grid
   -------------------------------------------------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.13), transparent 70%),
    var(--bg);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.aurora-1 {
  width: 55vw; height: 55vw;
  top: -20vw; left: -12vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 45vw; height: 45vw;
  top: 20vh; right: -18vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
  animation: drift-2 32s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 40vw; height: 40vw;
  bottom: -18vw; left: 25vw;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.16), transparent 65%);
  animation: drift-3 38s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-10vw, -8vh) scale(1.2); } }
@keyframes drift-3 { to { transform: translate(-12vw, -10vh) scale(0.9); } }

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* particle canvas sits behind hero content */
#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Custom cursor (fine pointers only)
   -------------------------------------------------------------------------- */

.cursor-dot, .cursor-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 7px; height: 7px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  }
  .cursor-ring {
    width: 38px; height: 38px;
    border: 1.5px solid rgba(139, 92, 246, 0.55);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
                border-color 0.25s, background 0.25s;
  }
  .cursor-ring.is-hovering {
    width: 62px; height: 62px;
    border-color: rgba(34, 211, 238, 0.8);
    background: rgba(34, 211, 238, 0.07);
  }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 5, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}

.nav-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #08080f;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--glass-2); }
.nav-links a.is-active { color: var(--text); background: var(--glass-2); }
.nav-links a.nav-scene {
  background: linear-gradient(100deg, rgba(124, 58, 237, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}
.nav-links a.nav-scene:hover { border-color: rgba(139, 92, 246, 0.6); color: #ddd6fe; }

.nav-cta {
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0b0b14;
  background: var(--grad);
  background-size: 160% 100%;
  transition: background-position 0.4s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 22px rgba(139, 92, 246, 0.35);
  white-space: nowrap;
}
.nav-cta:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.4);
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px; height: 42px;
  place-items: center;
  color: var(--text);
}
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .nav { background: rgba(5, 5, 9, 0.72); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  /* opaque: at 0.97 the hero portrait ghosted through the menu */
  background: #07070d;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 4px;
  /* landscape phones are shorter than the link list */
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 14px 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15.5px;
  border: none;
  position: relative;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #0b0b14;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 38px rgba(34, 211, 238, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, 0.25); }

.btn-scene {
  color: #fff;
  background: var(--grad-scene);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.4);
}
.btn-scene:hover { box-shadow: 0 10px 38px rgba(124, 58, 237, 0.5); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--pulse-c, rgba(139, 92, 246, 0.55)); }
  70% { box-shadow: 0 0 0 11px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: grad-shift 7s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }

.hero-roles {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--cyan);
  min-height: 1.8em;
  margin-bottom: 22px;
}
.hero-roles .caret {
  display: inline-block;
  width: 10px;
  margin-left: 2px;
  border-bottom: 2px solid var(--cyan);
  animation: blink 1s steps(1) infinite;
  transform: translateY(-3px);
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.hero-socials {
  display: flex;
  gap: 10px;
}
.hero-socials a {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s, background 0.25s;
}
.hero-socials a:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-3px);
}
.hero-socials svg { width: 20px; height: 20px; }

/* portrait */
.hero-visual { position: relative; display: grid; place-items: center; }

.portrait-wrap {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
}
.portrait-ring {
  position: absolute;
  inset: -14px;
  border-radius: 36% 64% 60% 40% / 45% 38% 62% 55%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--magenta), var(--violet));
  animation: ring-spin 14s linear infinite, morph 12s ease-in-out infinite alternate;
  filter: blur(1px);
  opacity: 0.9;
}
.portrait-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: var(--bg);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.portrait {
  position: absolute;
  inset: 0;
  border-radius: 38% 62% 58% 42% / 47% 40% 60% 53%;
  overflow: hidden;
  animation: morph 12s ease-in-out infinite alternate;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

@keyframes morph {
  0%   { border-radius: 38% 62% 58% 42% / 47% 40% 60% 53%; }
  50%  { border-radius: 55% 45% 42% 58% / 40% 55% 45% 60%; }
  100% { border-radius: 45% 55% 60% 40% / 58% 45% 55% 42%; }
}

.float-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(12, 12, 22, 0.85);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
  z-index: 2;
}
.float-chip .chip-icon { font-size: 15px; }
.chip-1 { top: 4%; left: -14%; animation-delay: 0s; }
.chip-2 { bottom: 16%; left: -22%; animation-delay: 1.4s; }
.chip-3 { top: 32%; right: -18%; animation-delay: 2.6s; }
.chip-4 { bottom: -4%; right: -6%; animation-delay: 3.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-hint .mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--faint);
  border-radius: 14px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--cyan);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* stats strip */
.stats-strip {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  margin: -10px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--glass); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Institution logo strip
   -------------------------------------------------------------------------- */

.logo-strip {
  width: min(1200px, calc(100% - 48px));
  margin: 70px auto 0;
  text-align: center;
}
.logo-strip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}
.logo-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.logo-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  background: var(--glass-2);
}
.logo-tile img {
  height: 34px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1) invert(1) brightness(1.4);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.logo-tile:hover img { opacity: 1; }
/* detailed crests keep their colors on a small circular coin */
.logo-tile img.logo-coin {
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 50%;
  background: #fbfbfd;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.4);
  filter: none;
  opacity: 1;
}
.logo-tile .logo-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: left;
  line-height: 1.3;
}

/* small logo chip used inline (timeline, cards) */
.org-chip {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.org-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ac-icon.ac-logo {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line-strong);
  padding: 5px;
}
.ac-icon.ac-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.timeline-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.timeline-head .org-chip { width: 46px; height: 46px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 120px 0;
}
.section-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--grad);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 780px;
}
.section-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about-text p { color: var(--muted); margin-bottom: 20px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-text .hl {
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.25));
  padding: 1px 7px;
  border-radius: 6px;
  color: var(--text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.about-cards { display: grid; gap: 18px; }
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.about-card:hover {
  transform: translateX(6px);
  border-color: rgba(139, 92, 246, 0.45);
  background: var(--glass-2);
}
.about-card .ac-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.about-card h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.about-card p { font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Experience timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  max-width: 860px;
  padding-left: 44px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan), var(--magenta));
  opacity: 0.35;
}
.timeline-progress {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
}

.timeline-item {
  position: relative;
  padding-bottom: 56px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  /* pseudo-elements miss the global border-box reset: total width is 14px + 2×3px
     border = 20px, so -43px puts the 10px half-width on the line's center (11px) */
  left: -43px;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12), 0 0 18px rgba(34, 211, 238, 0.6);
}

.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 30px 34px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.timeline-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--glass-2);
  transform: translateY(-3px);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 99px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.timeline-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}
.timeline-tag.tag-current {
  color: #fff;
  background: var(--ss-purple-600);
  border-color: transparent;
  font-weight: 600;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.timeline-card .tc-org {
  color: var(--muted);
  font-size: 15px;
  margin: 2px 0 16px;
}
.timeline-card .tc-org strong {
  color: var(--text);
  font-weight: 600;
}

.timeline-card ul { list-style: none; display: grid; gap: 10px; }
.timeline-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 15.5px;
}
.timeline-card li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.timeline-card li strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   SceneSense band (on index)
   -------------------------------------------------------------------------- */

.scene-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 20% 50%, rgba(124, 58, 237, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 90% at 80% 50%, rgba(139, 92, 246, 0.07), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.scene-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.scene-logo-mark {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--grad-scene);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-app);
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}
.scene-logo-mark svg { width: 26px; height: 26px; }
.scene-wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.scene-wordmark span {
  background: var(--grad-scene);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 99px;
  color: var(--ss-purple-500);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.35);
  margin-bottom: 20px;
}

.scene-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.scene-copy h2 span {
  background: var(--grad-scene);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scene-copy p { color: var(--muted); margin-bottom: 18px; max-width: 520px; }

.scene-points { list-style: none; display: grid; gap: 12px; margin: 26px 0 34px; }
.scene-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15.5px;
}
.scene-points li strong { color: var(--text); }
.scene-points .pt-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  margin-top: 2px;
}

/* demo window — SceneSense.AI window chrome framing the product demo video */
.chat-mock {
  border: 1px solid var(--ss-border);
  border-radius: 18px;
  background: var(--ss-bg);
  box-shadow: 0 30px 80px rgba(10, 8, 30, 0.45), var(--ss-shadow);
  overflow: hidden;
  font-family: var(--font-app);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ss-border);
  background: var(--ss-card);
}
.chat-brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad-scene);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.5);
}
.chat-head .chat-title {
  font-family: var(--font-app);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ss-ink);
}
.chat-head .chat-title .dot-ai { color: var(--ss-purple-600); }
.chat-head .chat-sub {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #9aa0b2;
}

/* demo wrapper: keeps the player inside the page's content column */
.demo-frame {
  align-self: stretch;
  width: 100%;
}

.demo-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Research cards
   -------------------------------------------------------------------------- */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.r-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 30px 28px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.r-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.r-card:hover::before { opacity: 1; }
.r-card:hover { border-color: rgba(139, 92, 246, 0.45); background: var(--glass-2); }

.r-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.r-card h3 {
  font-family: var(--font-display);
  font-size: 19.5px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.r-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

.r-badge {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.r-badge.b-pub { color: #fff; background: var(--ss-purple-600); font-weight: 700; }
.r-badge.b-active { color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); }
.r-badge.b-proj { color: var(--muted); border: 1px solid var(--line-strong); }

.r-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.r-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.r-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
}
.r-link svg { width: 14px; height: 14px; transition: transform 0.25s; }
.r-link:hover svg { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */

.pub-list { display: grid; gap: 18px; max-width: 900px; }

.pub-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.pub-item:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--glass-2);
  transform: translateX(6px);
}

.pub-year {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pub-venue {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 4px;
}

.pub-item h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; line-height: 1.35; }
.pub-item p { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 14px; }
.pub-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pub-links a:hover { text-decoration: underline; }
.pub-links svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Skills marquee
   -------------------------------------------------------------------------- */

.marquee-section { padding: 40px 0 110px; overflow: hidden; }

.marquee {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 8px 0;
}
.marquee-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-a { animation: marquee-left 38s linear infinite; }
.marquee-b { animation: marquee-right 42s linear infinite; }

@keyframes marquee-left { to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}
.skill-pill:hover { border-color: rgba(139, 92, 246, 0.6); color: var(--text); }
.skill-pill .sp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  text-align: center;
  position: relative;
}
.contact .section-eyebrow { justify-content: center; }
.contact .section-eyebrow::after {
  content: "";
  width: 42px; height: 1px;
  background: var(--grad);
}
.contact .section-title { margin-inline: auto; }
.contact .section-lede { margin-inline: auto; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}

.contact-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 20px;
  text-align: left;
}
.track-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 26px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.track-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.track-action svg { width: 15px; height: 15px; transition: transform 0.25s; }
.track-card:hover .track-action svg { transform: translateX(4px); }
.t-phd .track-action { color: var(--violet); }
.t-startup .track-action { color: var(--cyan); }
.track-card:hover { transform: translateY(-4px); }
.track-card.t-phd:hover { border-color: rgba(139, 92, 246, 0.5); }
.track-card.t-startup:hover { border-color: rgba(34, 211, 238, 0.5); }
.track-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.track-card p { font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--faint);
  font-size: 14px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-inview { opacity: 1; transform: translateY(0); }

.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-left.is-inview, .reveal-right.is-inview { transform: translateX(0); }

.reveal-scale { transform: scale(0.92); }
.reveal-scale.is-inview { transform: scale(1); }

/* hero entrance */
.intro-item {
  opacity: 0;
  transform: translateY(30px);
  animation: intro-up 1s var(--ease-out) forwards;
  animation-delay: var(--intro-delay, 0s);
}
@keyframes intro-up {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   SceneSense page
   -------------------------------------------------------------------------- */

/* Light app theme — the page wears the product's own skin */
.scene-page {
  --bg: var(--ss-bg);
  --bg-2: #ffffff;
  --bg-3: var(--ss-purple-50);
  --text: var(--ss-ink);
  --muted: var(--ss-ink-muted);
  --faint: #9aa0b2;
  --line: var(--ss-border);
  --line-strong: #d9d5e8;
  --glass: #ffffff;
  --glass-2: var(--ss-purple-50);
  --font-display: var(--font-app);
  --font-body: var(--font-app);
  background: var(--bg);
  color: var(--text);
}
.scene-page .atmosphere {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.08), transparent 70%),
    var(--bg);
}
.scene-page .aurora { opacity: 0.35; }
.scene-page .grid-overlay {
  background-image:
    linear-gradient(rgba(31, 35, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 48, 0.035) 1px, transparent 1px);
}
.scene-page .noise { opacity: 0.03; }
.scene-page .nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--ss-border);
}
@media (max-width: 940px) {
  .scene-page .nav { background: rgba(255, 255, 255, 0.88); border-bottom-color: var(--ss-border); }
}
.scene-page .mobile-menu { background: #ffffff; }
.scene-page .nav-logo .logo-mark { color: #fff; font-weight: 800; box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.5); }
.scene-page .cursor-dot { background: var(--ss-purple-600); box-shadow: 0 0 12px rgba(124, 58, 237, 0.7); }
.scene-page .cursor-ring { border-color: rgba(124, 58, 237, 0.45); }
.scene-page .cursor-ring.is-hovering { border-color: rgba(124, 58, 237, 0.7); background: rgba(124, 58, 237, 0.06); }
.scene-page .hero-eyebrow {
  background: var(--ss-card);
  border-color: var(--ss-border);
  color: var(--ss-ink-muted);
  box-shadow: var(--ss-shadow);
}
.scene-page .pulse-dot {
  background: var(--ss-purple-500);
  animation: pulse-violet 2.2s infinite;
}
@keyframes pulse-violet {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
  70% { box-shadow: 0 0 0 11px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
.scene-page .section-eyebrow { color: var(--ss-purple-600); }
.scene-page .section-eyebrow::before { background: var(--grad-scene); }
.scene-page .btn-ghost {
  background: var(--ss-card);
  border-color: #d9d5e8;
  color: var(--ss-ink);
  box-shadow: 0 1px 2px rgba(24, 16, 60, 0.05);
}
.scene-page .btn-ghost:hover { background: var(--ss-purple-50); border-color: #c9c2e6; }
.scene-page .chat-mock { box-shadow: var(--ss-shadow); }
.scene-page .step-card,
.scene-page .pain-card,
.scene-page .feature-card,
.scene-page .aud-card,
.scene-page .founder-note {
  background: var(--ss-card);
  box-shadow: var(--ss-shadow);
}
.scene-page .step-card:hover { border-color: rgba(124, 58, 237, 0.45); }
.scene-page .step-num {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.75), rgba(124, 58, 237, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
}
.scene-page .feature-card::before {
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.07), transparent 45%);
}
.scene-page .feature-card:hover { border-color: rgba(124, 58, 237, 0.4); background: var(--ss-card); }
.scene-page .feature-card .f-icon {
  background: linear-gradient(135deg, var(--ss-purple-50), var(--ss-purple-100));
  border-color: rgba(124, 58, 237, 0.25);
}
.scene-page .pain-card:hover { border-color: rgba(219, 39, 119, 0.4); }
.scene-page .pain-card .p-icon { background: rgba(219, 39, 119, 0.08); border-color: rgba(219, 39, 119, 0.28); }
.scene-page .aud-card:hover { border-color: rgba(124, 58, 237, 0.4); }
.scene-page .a-status.now { color: #fff; background: var(--ss-purple-600); }
.scene-page .a-status.pilot { color: var(--ss-purple-600); border-color: rgba(124, 58, 237, 0.4); }

.scene-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
}
.scene-hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scene-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.scene-hero h1 span {
  background: var(--grad-scene);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-shift 6s ease-in-out infinite alternate;
}
.scene-hero .hero-sub { margin-inline: auto; max-width: 640px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 34px 30px 30px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.step-card:hover { border-color: rgba(124, 58, 237, 0.45); transform: translateY(-5px); }
.step-num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.65), rgba(124, 58, 237, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.step-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--muted); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 30px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.pain-card:hover { border-color: rgba(244, 114, 182, 0.4); transform: translateY(-5px); }
.pain-card .p-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.3);
}
.pain-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.pain-card p { font-size: 14.5px; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 34px 32px;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: rgba(124, 58, 237, 0.4); background: var(--glass-2); }
.feature-card .f-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.feature-card h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--muted); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.aud-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 32px 30px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.aud-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.4); }
.aud-card .a-icon { font-size: 30px; margin-bottom: 16px; }
.aud-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.aud-card p { font-size: 14.5px; color: var(--muted); }
.aud-card .a-status {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
}
.a-status.now { color: #fff; background: var(--ss-purple-600); font-weight: 700; }
.a-status.pilot { color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); }
.a-status.later { color: var(--faint); border: 1px solid var(--line-strong); }

.founder-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  padding: 40px 44px;
}
.founder-note img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: var(--grad-scene) border-box;
}
.founder-note blockquote {
  font-size: 17px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 14px;
}
.founder-note cite {
  font-style: normal;
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
}
.founder-note cite span { color: var(--faint); font-weight: 400; }

/* --------------------------------------------------------------------------
   Music page
   -------------------------------------------------------------------------- */

:root {
  --grad-music: linear-gradient(100deg, var(--amber), #fb7185);
}

.music-page .section-eyebrow { color: var(--amber); }
.music-page .section-eyebrow::before { background: var(--grad-music); }

.music-hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 70px;
}
.music-hero-inner {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.music-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 24px;
}
.music-hero h1 span {
  background: var(--grad-music);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-shift 6s ease-in-out infinite alternate;
}

/* equalizer bars */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-bottom: 30px;
}
.equalizer i {
  width: 6px;
  border-radius: 3px;
  background: var(--grad-music);
  animation: eq-bounce 1.1s ease-in-out infinite;
  transform-origin: bottom;
}
.equalizer i:nth-child(1) { height: 40%; animation-delay: 0s; }
.equalizer i:nth-child(2) { height: 75%; animation-delay: 0.12s; }
.equalizer i:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.equalizer i:nth-child(4) { height: 60%; animation-delay: 0.36s; }
.equalizer i:nth-child(5) { height: 85%; animation-delay: 0.48s; }
.equalizer i:nth-child(6) { height: 45%; animation-delay: 0.6s; }
.equalizer i:nth-child(7) { height: 70%; animation-delay: 0.72s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* story */
.music-story {
  max-width: 720px;
  margin: 0 auto;
}
.music-story p {
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.85;
  margin-bottom: 26px;
}
.music-story p strong { color: var(--text); font-weight: 600; }
.music-story .drop {
  font-size: 21px;
  color: var(--text);
}
.music-story .pullquote {
  border-left: 3px solid;
  border-image: var(--grad-music) 1;
  padding: 6px 0 6px 26px;
  margin: 36px 0;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.5;
  color: var(--text);
  font-style: normal;
}

/* radio milestone */
.radio-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(251, 191, 36, 0.08), transparent 60%),
    rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(12px);
}
.radio-card .radio-video { min-height: 320px; }
.radio-copy { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.radio-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 7px 16px;
  border-radius: 99px;
  color: #ffd9a8;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin-bottom: 20px;
}
.radio-live .pulse-dot { background: var(--amber); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); --pulse-c: rgba(251, 191, 36, 0.55); }
.radio-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.radio-copy p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.radio-copy p strong { color: var(--text); }
.radio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.radio-meta span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* video facade grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #000;
  border: none;
  padding: 0;
  width: 100%;
  display: block;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.yt-facade:hover img { opacity: 1; transform: scale(1.045); }
.yt-facade .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--grad-music);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(251, 113, 133, 0.5);
  transition: transform 0.3s var(--ease-out);
}
.yt-facade:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); }
.yt-facade .play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.yt-facade iframe, .radio-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.radio-video .yt-facade { height: 100%; aspect-ratio: auto; min-height: 320px; }

/* slim title overlay — the video owns the card */
.vc-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 42px 16px 13px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-grid .grid-fallback {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.video-grid .grid-fallback a { color: var(--amber); text-decoration: underline; }

/* dynamic card entrance */
.vc-in {
  opacity: 0;
  transform: translateY(24px);
  animation: intro-up 0.7s var(--ease-out) forwards;
}

.music-cta-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.music-cta-note strong { color: var(--text); }

.btn-music {
  color: #331303;
  background: var(--grad-music);
  box-shadow: 0 6px 28px rgba(251, 191, 36, 0.35);
}
.btn-music:hover { box-shadow: 0 10px 38px rgba(251, 113, 133, 0.45); }

@media (max-width: 940px) {
  .radio-card { grid-template-columns: 1fr; }
  .radio-card .radio-video { min-height: 0; }
  .radio-video .yt-facade { min-height: 0; height: auto; width: 100%; aspect-ratio: 16 / 9; }
  .video-grid { grid-template-columns: 1fr; }
  .logo-row { gap: 12px; }
  .logo-tile { padding: 12px 18px; }
  .logo-tile img { height: 27px; max-width: 150px; }
}
@media (min-width: 641px) and (max-width: 1080px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .hero-inner .hero-sub,
  .hero-inner .hero-actions,
  .hero-inner .hero-socials { margin-inline: auto; justify-content: center; }
  .hero-visual { order: -1; margin-top: 20px; }
  .portrait-wrap { width: min(280px, 66vw); }
  .chip-1 { left: -8%; } .chip-2 { left: -12%; } .chip-3 { right: -10%; } .chip-4 { right: -4%; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(n+3) { border-bottom: none; }
  .about-grid, .scene-grid { grid-template-columns: 1fr; gap: 44px; }
  .step-grid, .pain-grid, .audience-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-tracks { grid-template-columns: 1fr; }
  .founder-note { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 34px 26px; }
  .section { padding: 90px 0; }
  /* flex-wrap strands the 4th tile alone on its own row; a 2-col grid stays even */
  .logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .logo-tile { justify-content: center; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* vertical rhythm: desktop spacing leaves huge dead gaps on a phone */
  .section { padding: 68px 0; }
  .section-eyebrow { font-size: 11.5px; letter-spacing: 0.22em; gap: 10px; margin-bottom: 14px; }
  .section-eyebrow::before, .contact .section-eyebrow::after { width: 26px; }
  .section-title { margin-bottom: 16px; }
  .section-lede { font-size: 16.5px; margin-bottom: 36px; }

  .nav-burger { width: 44px; height: 44px; }
  .mobile-menu { padding: 8px 20px calc(22px + env(safe-area-inset-bottom)); }

  /* hero */
  .hero { padding: calc(var(--nav-h) + 24px) 0 52px; }
  .hero-inner { gap: 40px; }
  .hero-visual { margin-top: 4px; }
  .portrait-wrap { width: min(236px, 62vw); }
  .hero-eyebrow { font-size: 11.5px; padding: 7px 15px; margin-bottom: 20px; line-height: 1.6; }
  .hero-title { font-size: clamp(2.9rem, 12vw, 4.2rem); margin-bottom: 16px; }
  .hero-roles { font-size: 1rem; margin-bottom: 18px; }
  .hero-sub { font-size: 16.5px; margin-bottom: 28px; }
  .hero-actions { gap: 12px; margin-bottom: 24px; }
  .hero-socials { gap: 8px; }
  .hero-socials a { width: 44px; height: 44px; border-radius: 12px; }
  .scroll-hint { display: none; }
  .float-chip { display: none; }

  /* stacked CTAs: ragged button widths are the thing that reads as "broken" */
  .hero-actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }
  .btn { padding: 14px 24px; font-size: 15px; }

  /* stats */
  .stats-strip { margin-top: 0; border-radius: 18px; }
  .stat { padding: 22px 14px; }
  .stat-value { font-size: 1.9rem; }
  .stat-label { font-size: 12.5px; line-height: 1.45; margin-top: 4px; }

  /* institution strip: flex-wrap left orphan tiles centred on their own rows */
  .logo-strip { margin-top: 48px; }
  .logo-strip-label { font-size: 11px; letter-spacing: 0.24em; margin-bottom: 18px; }
  .logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-tile { justify-content: center; padding: 14px 12px; gap: 10px; min-height: 78px; }
  .logo-tile img { height: 24px; max-width: 118px; }
  .logo-tile img.logo-coin { width: 36px; height: 36px; }
  .logo-tile .logo-name { font-size: 10px; }

  /* about */
  .about-card { padding: 20px 18px; gap: 14px; }
  .about-card .ac-icon { width: 40px; height: 40px; font-size: 18px; }

  /* experience */
  .timeline { padding-left: 34px; }
  .timeline-item { padding-bottom: 40px; }
  .timeline-item::before { left: -33px; }
  .timeline-card { padding: 22px 20px; }
  .timeline-meta { gap: 8px; margin-bottom: 12px; }
  .timeline-date, .timeline-tag { font-size: 11.5px; padding: 4px 11px; }
  .timeline-head { flex-direction: column; gap: 12px; }
  .timeline-head .org-chip { width: 40px; height: 40px; }
  .timeline-card h3 { font-size: 20px; line-height: 1.28; }
  .timeline-card .tc-org { font-size: 14.5px; margin-bottom: 14px; }
  .timeline-card li { font-size: 15px; padding-left: 20px; }

  /* SceneSense band */
  .scene-logo-row { gap: 11px; margin-bottom: 18px; }
  .scene-logo-mark { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
  .scene-logo-mark svg { width: 22px; height: 22px; }
  .scene-wordmark { font-size: 24px; }
  .scene-badge { font-size: 10.5px; letter-spacing: 0; padding: 7px 14px; border-radius: 14px; line-height: 1.6; }
  .scene-copy p { font-size: 16.5px; }
  .scene-points { gap: 14px; margin: 22px 0 28px; }
  .scene-points li { font-size: 15px; }

  /* research + publications */
  .research-grid { grid-template-columns: 1fr; }
  .r-card { padding: 26px 22px; }
  .r-badge { top: 18px; right: 18px; max-width: calc(100% - 96px); }
  .r-icon { width: 46px; height: 46px; font-size: 21px; margin-bottom: 16px; }
  .pub-item { grid-template-columns: 1fr; gap: 10px; padding: 24px 22px; }
  .pub-year { font-size: 23px; }

  /* skills marquee */
  .marquee-section { padding: 24px 0 72px; }
  .skill-pill { padding: 10px 18px; font-size: 13px; }

  /* contact + footer */
  .contact-actions { gap: 12px; margin-bottom: 32px; }
  .track-card { padding: 22px 20px; }
  .track-card h3 { align-items: flex-start; font-size: 17px; }
  .footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; font-size: 13.5px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }

  /* SceneSense page */
  .scene-hero { min-height: 0; padding: calc(var(--nav-h) + 40px) 0 56px; }
  .scene-hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.2rem); margin-bottom: 18px; }
  .step-card { padding: 26px 22px; }
  .step-num { font-size: 46px; margin-bottom: 10px; }
  .step-card h3, .feature-card h3 { font-size: 18.5px; }
  .pain-card, .feature-card, .aud-card { padding: 26px 22px; }
  .pain-card .p-icon, .feature-card .f-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 14px; }
  .founder-note { padding: 28px 22px; gap: 22px; border-radius: 20px; }
  .founder-note img { width: 96px; height: 96px; }
  .founder-note blockquote { font-size: 16px; }

  /* music page */
  .music-hero { min-height: 0; padding: calc(var(--nav-h) + 40px) 0 52px; }
  .music-hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.2rem); margin-bottom: 18px; }
  .equalizer { height: 36px; margin-bottom: 24px; }
  .music-story p { font-size: 17px; line-height: 1.75; margin-bottom: 22px; }
  .music-story .drop { font-size: 18.5px; }
  .music-story .pullquote { font-size: 19px; padding-left: 18px; margin: 28px 0; }
  .radio-copy { padding: 28px 22px; }
  /* these labels wrap on a phone; a rounded rect reads better than a broken pill */
  .radio-live { font-size: 11px; padding: 7px 13px; margin-bottom: 16px; border-radius: 14px; line-height: 1.6; }
  .music-cta-note { font-size: 16.5px; }
  .vc-title { font-size: 13px; padding: 36px 14px 11px; }
}

/* ---- small phones ---- */
@media (max-width: 420px) {
  .nav-inner,
  .hero-inner,
  .stats-strip,
  .logo-strip,
  .section-inner,
  .footer-inner { width: calc(100% - 36px); }
  .scene-hero-inner, .music-hero-inner { width: calc(100% - 36px); }

  .nav-logo { font-size: 19px; gap: 8px; }
  .nav-logo .logo-mark { width: 30px; height: 30px; font-size: 12.5px; border-radius: 9px; }
  .hero-title { font-size: 2.75rem; }
  .stat { padding: 18px 10px; }
  .stat-value { font-size: 1.7rem; }
  .stat-label { font-size: 12px; }
  .logo-tile { padding: 12px 8px; gap: 8px; }
  .logo-tile img { max-width: 96px; }
  .logo-tile .logo-name { font-size: 9.5px; }
  /* dot is 14px + 2x3px border = 20px wide; -33 puts its centre on the rail */
  .timeline { padding-left: 28px; }
  .timeline::before, .timeline-progress { left: 4px; }
  .timeline-item::before { left: -33px; }
  .section-title { font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .intro-item { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
