/* ============================================
   Shubhransh Gupta — Cofounder-inspired portfolio
   ============================================ */

:root {
  --bg-deep: #f5f5f2;
  --bg-surface: #fbfbf8;
  --bg-elevated: #ffffff;
  --bg-card: #fbfbf8;
  --border: rgba(38, 35, 35, 0.08);
  --border-strong: rgba(38, 35, 35, 0.14);
  --border-card: #dee2de;
  --text-primary: rgba(38, 35, 35, 0.92);
  --text-secondary: rgba(38, 35, 35, 0.72);
  --text-muted: rgba(38, 35, 35, 0.55);
  --text-on-hero: #fbfbf8;
  --accent: #34a853;
  --accent-soft: #2d9348;
  --accent-warm: #a76451;
  --accent-glow: rgba(52, 168, 83, 0.22);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --nav-height: 72px;
  --header-height: var(--nav-height);
  --container: min(1120px, 92vw);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease-out);
  --reveal-duration: 0.7s;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---- Cofounder-style page background ---- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__base {
  position: absolute;
  inset: 0;
  background:
    url('../images/cofounder-scene/section-bg.avif') center top / cover no-repeat,
    linear-gradient(180deg, #eef3ea 0%, var(--bg-deep) 28%, var(--bg-deep) 100%);
}

.page-bg__decor {
  position: absolute;
  width: min(34vw, 420px);
  opacity: 0.55;
  filter: saturate(1.05);
}

.page-bg__decor--left {
  top: 8%;
  left: -4%;
}

.page-bg__decor--right {
  top: 14%;
  right: -4%;
}

/* ---- Hero cartoon scene (index) ---- */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #8ecae6;
}

.hero-scene__video {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  transform: translateX(18%);
}

.hero-scene__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 28, 22, 0.78) 0%, rgba(18, 28, 22, 0.42) 42%, rgba(18, 28, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 35%, rgba(245, 245, 242, 0.15) 100%);
}

.hero-scene__pixels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 92px;
  background: url('../images/cofounder-scene/hero-pixels.png') repeat-x center bottom;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
}

.site-header,
main,
body > section,
.footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(52, 168, 83, 0.22);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(38, 35, 35, 0.06);
}

.has-hero-scene .site-header:not(.scrolled) .nav-brand-name,
.has-hero-scene .site-header:not(.scrolled) .nav-link {
  color: rgba(251, 251, 248, 0.92);
}

.has-hero-scene .site-header:not(.scrolled) .nav-link:hover,
.has-hero-scene .site-header:not(.scrolled) .nav-link.active {
  color: #fff;
  background: rgba(251, 251, 248, 0.12);
}

.has-hero-scene .site-header:not(.scrolled) .nav-toggle span {
  background: #fbfbf8;
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 32px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(38, 35, 35, 0.18);
}

.nav-brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(38, 35, 35, 0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  min-width: 112px;
  height: 40px;
  padding: 0 20px;
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  border-radius: 999px;
  transition: var(--transition);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ---- Typography ---- */
.eyebrow,
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 16px;
}

.section-title,
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  max-width: 14ch;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 20px;
  max-width: 18ch;
}

.section-desc,
.hero-lede {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  max-width: 56ch;
  line-height: 1.7;
}

.section-desc {
  margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn,
.nav-cta,
.contact-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before,
.nav-cta::before,
.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(38, 35, 35, 0.22);
}

.btn-download {
  background: rgba(52, 168, 83, 0.08);
  color: var(--accent-soft);
  border: 1px solid rgba(52, 168, 83, 0.24);
}

.btn-download:hover {
  transform: translateY(-2px);
  background: rgba(52, 168, 83, 0.14);
  border-color: rgba(52, 168, 83, 0.38);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(38, 35, 35, 0.22);
}

.btn:hover::before,
.nav-cta:hover::before,
.contact-link:hover::before {
  animation: btn-shimmer 0.75s ease;
}

@keyframes btn-shimmer {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* ---- Hero ---- */
.command-hero {
  position: relative;
  min-height: calc(100vh - 0px);
  min-height: calc(100dvh - 0px);
  padding: calc(var(--header-height) + 56px) 0 88px;
  overflow: hidden;
  color: var(--text-on-hero);
}

.has-hero-scene .command-hero > .container {
  padding-inline: clamp(24px, 5vw, 56px);
}

.has-hero-scene .command-hero .eyebrow {
  color: rgba(251, 251, 248, 0.78);
}

.has-hero-scene .command-hero .hero-title,
.has-hero-scene .command-hero .hero-lede {
  color: var(--text-on-hero);
}

.has-hero-scene .command-hero .hero-lede {
  color: rgba(251, 251, 248, 0.82);
}

.has-hero-scene .command-hero .stat-strip {
  border-top-color: rgba(251, 251, 248, 0.18);
}

.has-hero-scene .command-hero .stat-number,
.has-hero-scene .command-hero .stat-label {
  color: var(--text-on-hero);
}

.has-hero-scene .command-hero .stat-label {
  color: rgba(251, 251, 248, 0.72);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-inline: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.has-hero-scene .command-hero .hero-title {
  max-width: 22ch;
  text-align: left;
  margin-inline: 0;
}

.has-hero-scene .command-hero .hero-lede {
  text-align: left;
  margin-inline: 0;
}

.has-hero-scene .command-hero .hero-actions {
  justify-content: flex-start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-demo {
  position: relative;
  z-index: 1;
}

.demo-shell {
  background: rgba(251, 251, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 80px rgba(38, 35, 35, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
  color: var(--text-primary);
}

.demo-shell:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.demo-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(38, 35, 35, 0.04);
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.demo-dot:first-child { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }

.demo-title {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-body {
  padding: 28px 24px 24px;
}

.demo-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.shimmer-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.shimmer-line span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-soft), var(--accent-warm), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.demo-prompt {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.demo-options {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.demo-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.demo-option span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.demo-option.is-active {
  border-color: rgba(52, 168, 83, 0.42);
  background: rgba(52, 168, 83, 0.08);
  color: var(--text-primary);
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.demo-status {
  color: #6ee7b7;
  font-weight: 600;
}

.hero-stats {
  margin-top: 72px;
  position: relative;
  z-index: 1;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Story carousel ---- */
.story-section {
  padding: 96px 0;
  background:
    url('../images/cofounder-scene/behind-the-books.webp') center top / cover no-repeat,
    linear-gradient(180deg, rgba(245, 245, 242, 0.4) 0%, var(--bg-deep) 100%);
}

.story-header {
  margin-bottom: 48px;
}

.story-counter {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.story-carousel {
  position: relative;
}

.story-track {
  position: relative;
  min-height: 280px;
}

.story-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.story-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.story-slide-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.story-slide-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 48ch;
}

.mini-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(38, 35, 35, 0.08);
}

.mini-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.mini-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mini-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.story-controls {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.story-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.story-btn:hover {
  background: rgba(52, 168, 83, 0.12);
  border-color: rgba(52, 168, 83, 0.35);
}

/* ---- Sections ---- */
.section-block {
  padding: 96px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
}

/* ---- Timeline ---- */
.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(38, 35, 35, 0.04);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-strong);
  background: #fff;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.timeline-company {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline-role {
  font-size: 0.875rem;
  color: var(--accent-soft);
  font-weight: 500;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.timeline-points {
  display: grid;
  gap: 12px;
}

.timeline-points li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 999px;
}

/* ---- Feature tabs ---- */
.feature-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(38, 35, 35, 0.05);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(38, 35, 35, 0.03);
}

.tab-btn {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(38, 35, 35, 0.05);
}

.tab-btn.is-active {
  color: var(--text-primary);
  background: rgba(52, 168, 83, 0.12);
  box-shadow: inset 0 0 0 1px rgba(52, 168, 83, 0.28);
}

.tab-panels {
  position: relative;
  min-height: 180px;
}

.tab-panel {
  position: absolute;
  inset: 0;
  padding: 32px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.tab-panel.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tab-panel-lede {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 52ch;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: rgba(52, 168, 83, 0.38);
  background: rgba(52, 168, 83, 0.08);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out), border-color var(--transition);
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  border-color: var(--border-strong);
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ---- Proxy cross-sell (promo slot) ---- */
.proxy-cross-sell-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(38, 35, 35, 0.06);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(198, 167, 154, 0.14);
  color: var(--accent-warm);
  border: 1px solid rgba(198, 167, 154, 0.32);
}

.promo-badge--try {
  background: rgba(52, 168, 83, 0.12);
  color: var(--accent-soft);
  border-color: rgba(52, 168, 83, 0.28);
}

.promo-badge--new {
  background: rgba(110, 231, 183, 0.14);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.32);
}

.project-card-new {
  position: relative;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.08), rgba(255, 255, 255, 0.035));
  border-color: rgba(110, 231, 183, 0.28);
}

.project-card-new:hover {
  border-color: rgba(110, 231, 183, 0.45);
}

.project-card-new .promo-badge--corner {
  top: 24px;
  right: 24px;
}

.promo-badge--corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.proxy-cross-sell-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.proxy-cross-sell-header .eyebrow {
  margin-bottom: 0;
}

.proxy-cross-sell-icon {
  border-radius: 16px;
}

.proxy-cross-sell-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.proxy-cross-sell-copy p {
  color: var(--text-secondary);
  max-width: 52ch;
}

.proxy-cross-sell-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Projects ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(38, 35, 35, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out), border-color var(--transition);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--border-strong);
  background: #fff;
}

.project-card-featured {
  grid-column: 1 / -1;
  position: relative;
  background: linear-gradient(135deg, rgba(52, 168, 83, 0.08), var(--bg-card));
  border-color: rgba(52, 168, 83, 0.22);
}

.project-card-featured .promo-badge--corner {
  top: 24px;
  right: 24px;
}

.project-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-soft);
  background: rgba(52, 168, 83, 0.08);
  border: 1px solid rgba(52, 168, 83, 0.22);
  border-radius: 999px;
  transition: var(--transition);
}

.project-badge:hover {
  background: rgba(52, 168, 83, 0.14);
}

/* ---- Education ---- */
.edu-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.edu-icon {
  font-size: 2rem;
}

.edu-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.degree {
  color: var(--accent-soft);
  font-weight: 500;
  margin-bottom: 6px;
}

.details {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.awards-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.award-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
}

.award-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.award-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.award-text strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rec-excerpt {
  color: var(--text-secondary);
  font-style: italic;
}

.rec-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---- CTA / Contact ---- */
.cta-section {
  padding: 120px 0;
  background:
    url('../images/cofounder-scene/footer-bg.webp') center bottom / cover no-repeat,
    linear-gradient(180deg, var(--bg-deep) 0%, #eef3ea 100%);
  text-align: center;
}

.cta-inner .section-title,
.cta-inner .section-desc {
  margin-inline: auto;
}

.cta-inner .hero-actions {
  justify-content: center;
  margin-top: 32px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  transition: var(--transition);
}

.contact-link:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: #fff;
}

.contact-section {
  text-align: center;
}

.contact-section .section-desc {
  margin-inline: auto;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(251, 251, 248, 0.82);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--accent-soft);
}

.footer-text a:hover {
  color: var(--text-primary);
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="120"] { transition-delay: 0.12s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }

/* ---- Contributions / Recommendations pages ---- */
.page-hero {
  padding: calc(var(--header-height) + 64px) 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 245, 242, 0.72) 0%, rgba(245, 245, 242, 0.92) 100%),
    url('../images/cofounder-scene/hero-poster.webp') right center / cover no-repeat;
  z-index: -1;
}

.page-hero .hero-title {
  margin-inline: auto;
  max-width: none;
}

.page-hero .hero-subtitle,
.page-hero .section-desc {
  margin-inline: auto;
  text-align: center;
}

.page-hero .gradient {
  font-style: italic;
  color: var(--accent-soft);
}

.github-profiles {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
}

.github-profile {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(38, 35, 35, 0.05);
}

.github-profile--secondary {
  opacity: 0.92;
  border-style: dashed;
}

.github-profile-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.github-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.github-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.github-info p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.github-stats-row {
  display: flex;
  gap: 24px;
}

.github-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.github-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.repos-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.repos-section-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.repos-live-note {
  margin: -8px 0 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.repos-loading,
.repos-empty,
.repos-error {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-align: center;
}

.repos-error .project-badge {
  margin-top: 16px;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.repos-grid--featured {
  grid-template-columns: 1fr;
  max-width: 720px;
}

@media (min-width: 720px) {
  .repos-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.repos-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 64px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.repos-more p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.repo-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out), border-color var(--transition);
}

.repo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.repo-card-new {
  border-color: rgba(110, 231, 183, 0.28);
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.06), rgba(255, 255, 255, 0.03));
}

.repo-card-new .repo-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.repo-card-new .promo-badge--new {
  font-size: 0.58rem;
  padding: 3px 8px;
}

.repo-name {
  font-weight: 600;
  color: var(--accent-soft);
  overflow-wrap: anywhere;
}

.repo-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.repo-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.repo-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.medium-section {
  margin-top: 64px;
}

.medium-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.medium-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.medium-card:hover {
  border-color: var(--border-strong);
}

.medium-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.medium-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.rec-count-badge {
  display: inline-flex;
  padding: 8px 16px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.22);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rec-preview-grid {
  align-items: start;
}

.rec-text {
  position: relative;
}

.rec-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-full {
  display: none;
}

.rec-preview-grid.is-open .rec-excerpt {
  display: none;
}

.rec-preview-grid.is-open .rec-full {
  display: block;
}

.rec-profile-link {
  display: none;
}

.rec-preview-grid.is-open .rec-profile-link {
  display: inline-flex;
  margin-top: 12px;
}

.rec-expanded {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease-out), opacity 0.4s ease;
}

.rec-expanded.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 24px;
}

.rec-expanded-inner {
  overflow: hidden;
}

.rec-linkedin-note {
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-secondary);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .hero-scene__video {
    transform: none;
    width: max(100%, calc(max(100dvh, 620px) * 1.71));
  }
}

@media (max-width: 900px) {
  .story-slide,
  .proxy-cross-sell-inner {
    grid-template-columns: 1fr;
  }

  .demo-shell {
    transform: none;
  }

  .hero-title {
    max-width: none;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(251, 251, 248, 0.98);
    backdrop-filter: blur(18px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .hero-scene__video {
    transform: translateX(28%);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-cta {
    align-self: center;
    margin-left: 0;
    margin-inline: auto;
    width: fit-content;
    min-width: 112px;
    flex: 0 0 auto;
  }

  .tab-list {
    flex-direction: column;
  }

  .github-profile {
    flex-direction: column;
    text-align: center;
  }

  .github-stats-row {
    justify-content: center;
  }

  .edu-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .proxy-cross-sell-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scene__video {
    display: none;
  }

  .hero-scene {
    background:
      url('../images/cofounder-scene/hero-poster.webp') right center / cover no-repeat,
      #8ecae6;
  }

  .btn:hover::before,
  .nav-cta:hover::before,
  .contact-link:hover::before {
    animation: none;
  }

  .reveal,
  .timeline-item,
  .skill-card,
  .project-card,
  .award-item,
  .repo-card {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
