/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — sophisticated charcoal + warm gold */
  --ink:      #0d0f14;
  --ink2:     #13161e;
  --ink3:     #1c2130;
  --surface:  #1e2436;
  --line:     rgba(255,255,255,0.07);
  --line2:    rgba(255,255,255,0.12);

  --gold:     #c9a84c;
  --gold2:    #e8c96d;
  --gold-dim: rgba(201,168,76,0.12);
  --gold-glow:rgba(201,168,76,0.2);

  --text:     #eef0f5;
  --text2:    #9ba3b8;
  --text3:    #5c6478;

  --radius:   4px;
  --shadow:   0 2px 24px rgba(0,0,0,0.4);
  --shadow-lg:0 8px 48px rgba(0,0,0,0.6);
  --tr:       0.22s cubic-bezier(0.4,0,0.2,1);
  --font:     'DM Sans', system-ui, sans-serif;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --max:      1180px;
}

html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #000; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink3); border-radius: 99px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--gold2); font-family: var(--serif); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ===========================
   TYPOGRAPHY
=========================== */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}
.body-lg { font-size: 17px; color: var(--text2); margin-bottom: 16px; }
p { color: var(--text2); font-size: 16px; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: var(--tr);
}
.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--line2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold2); }

/* ===========================
   NAV
=========================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--tr), padding var(--tr), border-color var(--tr);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 2px;
  background: var(--gold);
  color: #000;
  font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { font-size: 14px; font-weight: 500; color: var(--text2); display: none; }
@media (min-width: 640px) { .logo-text { display: block; } }

.nav-links { display: none; list-style: none; gap: 2px; align-items: center; }

/* All nav links — base state */
.nav-links a {
  padding: 8px 14px; border-radius: 3px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  transition: color var(--tr), background var(--tr);
  outline: none;
}

/* Hover + active section: identical gold filled pill */
.nav-links a:hover,
.nav-links a.nav-active {
  background: var(--gold);
  color: #000;
  font-weight: 600;
}
html.light .nav-links a:hover,
html.light .nav-links a.nav-active { background: var(--gold); color: #000; }

/* Connect is now a plain nav link — no special styling */

/* Remove browser default focus ring on all nav items */
.nav-links a:focus { outline: none; }
.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  /* on mobile: pushed to far right via order */
  order: 3;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text2); border-radius: 2px; transition: var(--tr);
}

/* Mobile: logo(order 1) | theme toggle(order 2) | hamburger(order 3) */
@media (max-width: 767px) {
  .nav-inner { gap: 0; }
  .nav-logo   { order: 1; flex: 1; }
  .theme-toggle { order: 2; margin-left: 0; margin-right: 12px; }
  .nav-toggle { order: 3; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
#navbar.open .nav-links {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(13,15,20,0.97);
  backdrop-filter: blur(24px);
  padding: 16px 28px 20px;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
#navbar.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }

/* ===========================
   HERO
=========================== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}
/* diagonal accent bar */
#hero::before {
  content: '';
  position: absolute; right: -100px; top: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, var(--ink2) 0%, var(--ink3) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
@media (max-width: 900px) { #hero::before { display: none; } }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative; z-index: 1;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-layout { grid-template-columns: 1fr 420px; gap: 40px; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-name em {
  display: block;
  font-style: italic;
  color: var(--gold2);
}
.hero-tagline {
  font-size: 17px; color: var(--text2);
  max-width: 500px; margin-bottom: 32px; line-height: 1.65;
}
.hero-divider {
  width: 48px; height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}
.hero-stats {
  display: flex; gap: 36px; margin-bottom: 40px; flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 44px; font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-num sup { font-size: 22px; }
.stat-label {
  display: block; margin-top: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Photo frame */
.hero-right {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-photo-frame {
  position: relative;
  width: 340px; max-width: 100%;
}
.hero-photo {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: top;
  border-radius: 3px;
  position: relative; z-index: 1;
  filter: grayscale(15%) contrast(1.05);
}
.photo-fallback {
  display: none;
  width: 100%; aspect-ratio: 4/5;
  background: var(--ink3);
  border-radius: 3px;
  align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 72px; color: var(--gold);
  border: 1px solid var(--line2);
}
.hero-photo-frame.no-photo .hero-photo { display: none; }
.hero-photo-frame.no-photo .photo-fallback { display: flex; }
.photo-border {
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  z-index: 0;
  opacity: 0.4;
}
.photo-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 80px; height: 80px;
  background: var(--gold-dim);
  border-radius: 50%;
  filter: blur(24px);
}

.hero-credential-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  padding: 5px 14px;
  border: 1px solid var(--line2);
  border-radius: 2px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text3);
  background: rgba(255,255,255,0.02);
}

.hero-scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text3); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}
.scroll-dot { animation: scrollDot 2.5s ease-in-out infinite; }
@keyframes scrollDot {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===========================
   ABOUT
=========================== */
#about { padding: 100px 0; background: var(--ink2); }
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 60px; align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-left .section-title { max-width: 420px; }

.value-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  margin-bottom: 16px;
  transition: border-color var(--tr), background var(--tr);
}
.value-card:last-child { margin-bottom: 0; }
.value-card:hover { background: rgba(255,255,255,0.04); border-color: var(--line2); border-left-color: var(--gold2); }
.value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 3px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.value-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.value-card p { font-size: 14px; margin: 0; }

/* ===========================
   EXPERIENCE
=========================== */
#experience { padding: 100px 0; background: var(--ink); }
.exp-grid { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 48px; }

.exp-card {
  padding: 36px 40px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: background var(--tr);
}
.exp-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.exp-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.exp-card:hover { background: var(--ink2); }
.exp-featured {
  background: var(--ink2);
  border-left: 3px solid var(--gold);
}
.exp-early { opacity: 0.75; }

.exp-header { margin-bottom: 16px; }
.exp-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.exp-tenure { font-size: 12px; font-weight: 500; color: var(--text3); letter-spacing: 0.3px; }
.exp-badge {
  padding: 3px 10px; border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.exp-badge.jio     { background: rgba(0,48,135,0.3); color: #6fa3ff; border: 1px solid rgba(0,48,135,0.5); }
.exp-badge.amazon  { background: rgba(255,153,0,0.15); color: #ffb833; border: 1px solid rgba(255,153,0,0.3); }
.exp-badge.quikr   { background: rgba(233,69,96,0.15); color: #f08090; border: 1px solid rgba(233,69,96,0.3); }
.exp-badge.yahoo   { background: rgba(162,0,214,0.2); color: #d580ff; border: 1px solid rgba(162,0,214,0.3); }
.exp-badge.mahindra{ background: rgba(183,28,28,0.2); color: #f08080; border: 1px solid rgba(183,28,28,0.3); }

.exp-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.exp-scope { font-size: 13px; color: var(--text3); }
.exp-summary { font-size: 15px; color: var(--text2); margin: 16px 0; }
.exp-achievements { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-achievements li {
  font-size: 14px; color: var(--text2);
  padding-left: 20px; position: relative;
}
.exp-achievements li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--gold); font-size: 13px;
}

/* ===========================
   BOARD
=========================== */
#board {
  padding: 100px 0;
  background: var(--ink2);
  position: relative; overflow: hidden;
}
#board::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.board-inner {
  display: grid; grid-template-columns: 1fr; gap: 60px; align-items: start;
}
@media (min-width: 900px) { .board-inner { grid-template-columns: 400px 1fr; } }
.board-left p { font-size: 16px; }

.board-value-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
@media (max-width: 640px) { .board-value-grid { grid-template-columns: 1fr; } }

.bv-item {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: background var(--tr);
}
.bv-item:hover { background: var(--ink3); }
.bv-num {
  font-family: var(--serif);
  font-size: 36px; font-weight: 600;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 12px;
  line-height: 1;
}
.bv-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.bv-item p { font-size: 13px; margin: 0; }

/* ===========================
   VENTURES / PORTFOLIO
=========================== */
#portfolio { padding: 100px 0; background: var(--ink); }
.section-sub { font-size: 16px; color: var(--text2); max-width: 560px; margin-bottom: 40px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text3);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--tr);
}
.filter-btn:hover { border-color: var(--line2); color: var(--text2); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 600; }

.ventures-grid {
  display: grid; grid-template-columns: 1fr; gap: 2px;
}
@media (min-width: 640px) { .ventures-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .ventures-grid { grid-template-columns: repeat(3,1fr); } }

.venture-card {
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  background: var(--ink);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transition: background var(--tr), border-color var(--tr);
}
.venture-card:hover { background: var(--ink2); border-color: var(--line2); }
.venture-card.hidden { display: none; }
.venture-highlight {
  border-top: 2px solid var(--gold);
}

.venture-flag {
  position: absolute; top: 0; right: 0;
  background: var(--gold); color: #000;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px;
  text-transform: uppercase;
}

.venture-top { display: flex; gap: 16px; align-items: center; }
.venture-icon {
  width: 48px; height: 48px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.venture-header h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.venture-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vtag {
  padding: 2px 8px; border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.vtag-ai    { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.vtag-web   { background: rgba(6,182,212,0.1);   color: #67e8f9; border: 1px solid rgba(6,182,212,0.2); }
.vtag-mobile{ background: rgba(16,185,129,0.1);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.vtag-kids  { background: rgba(245,158,11,0.1);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.vtag-live  { background: rgba(201,168,76,0.1);  color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }

.venture-card > p { font-size: 14px; line-height: 1.6; margin: 0; }
.venture-stack { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.venture-stack span {
  padding: 3px 9px;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px; font-weight: 500; color: var(--text3);
  font-family: 'SF Mono','Fira Code',monospace;
}

/* ===========================
   SKILLS
=========================== */
#skills { padding: 100px 0; background: var(--ink2); }
.skills-layout {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
@media (min-width: 768px) { .skills-layout { grid-template-columns: 280px 1fr; align-items: start; } }
.skills-left .section-title { font-size: clamp(28px, 3.5vw, 40px); }

.skills-right { display: flex; flex-direction: column; gap: 28px; }
.skill-group h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pills span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px; font-weight: 400; color: var(--text2);
  transition: border-color var(--tr), color var(--tr), background var(--tr);
  cursor: default;
}
.skill-pills span:hover {
  border-color: var(--gold);
  color: var(--gold2);
  background: var(--gold-dim);
}

/* ===========================
   EDUCATION
=========================== */
#education { padding: 100px 0; background: var(--ink); }
.edu-list { margin-top: 48px; }
.edu-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 24px; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--tr);
}
.edu-row:last-child { border-bottom: none; }
.edu-year {
  font-size: 12px; font-weight: 500;
  color: var(--text3); letter-spacing: 0.3px;
  font-family: 'SF Mono','Fira Code',monospace;
}
.edu-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.edu-body p { font-size: 13px; margin: 0; }
.edu-badge {
  text-align: right;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  font-family: 'SF Mono','Fira Code',monospace;
}

/* ===========================
   CONTACT
=========================== */
#contact { padding: 100px 0; background: var(--ink2); }
.contact-layout {
  display: grid; grid-template-columns: 1fr; gap: 60px;
}
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact-left .section-title { font-size: clamp(28px, 4vw, 48px); }

.contact-right { display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: border-color var(--tr), background var(--tr);
}
.contact-row:hover { border-color: var(--gold); background: var(--gold-dim); }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 2px; background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-row > div { flex: 1; }
.contact-row strong { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.contact-row span { font-size: 14px; color: var(--text2); }
.arrow { color: var(--text3); flex-shrink: 0; transition: transform var(--tr), color var(--tr); }
.contact-row:hover .arrow { transform: translateX(4px); color: var(--gold); }

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 40px 0 0;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding-bottom: 32px;
}
.footer-logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.footer-left p { font-size: 13px; color: var(--text3); margin: 0; }
.footer-right { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-right a { font-size: 13px; color: var(--text3); transition: color var(--tr); }
.footer-right a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.footer-bottom p { font-size: 12px; color: var(--text3); margin: 0; }

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.stagger.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:0.04s }
.stagger.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:0.10s }
.stagger.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:0.16s }
.stagger.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:0.22s }
.stagger.visible > *:nth-child(5) { opacity:1;transform:none;transition-delay:0.28s }
.stagger.visible > *:nth-child(6) { opacity:1;transform:none;transition-delay:0.34s }
.stagger.visible > *:nth-child(7) { opacity:1;transform:none;transition-delay:0.40s }

/* ===========================
   CAROUSEL
=========================== */
#carousel {
  padding: 80px 0 60px;
  background: var(--ink2);
  overflow: hidden;
}
.carousel-header { margin-bottom: 40px; }
.carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.carousel-track-wrap:active { cursor: grabbing; }
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: border-color var(--tr), transform var(--tr);
  position: relative;
}
@media (max-width: 900px) { .carousel-slide { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 560px) { .carousel-slide { flex: 0 0 calc(100% - 0px); } }
.carousel-slide:hover { border-color: var(--gold); transform: translateY(-3px); }
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.slide-caption {
  padding: 16px 20px 18px;
  background: var(--ink);
}
.slide-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.slide-caption h4 {
  font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 4px; line-height: 1.35;
}
.slide-caption p { font-size: 13px; color: var(--text3); margin: 0; }

.carousel-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: var(--ink);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--tr);
  z-index: 2;
  margin: 0 12px;
}
.carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 28px;
}
.c-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line2);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--tr), transform var(--tr);
}
.c-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}
.carousel-hint {
  text-align: center;
  font-size: 12px; color: var(--text3);
  margin-top: 20px; font-style: italic;
}
.carousel-hint code {
  font-family: 'SF Mono','Fira Code',monospace;
  background: var(--ink3); padding: 1px 5px; border-radius: 3px;
}

/* ===========================
   AWARDS
=========================== */
#awards { padding: 100px 0; background: var(--ink); }

.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 48px;
}
@media (min-width: 640px) { .awards-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .awards-grid { grid-template-columns: repeat(3,1fr); } }

.award-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--ink2);
  position: relative;
  transition: background var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.award-card:hover {
  background: var(--ink3);
  border-color: var(--line2);
}
.award-gold { border-top: 2px solid var(--gold); }
.award-gold .award-icon { color: var(--gold); }

.award-year {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3);
  font-family: 'SF Mono','Fira Code',monospace;
  margin-bottom: 14px;
}
.award-icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}
.award-body h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
  line-height: 1.3;
}
.award-org {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; color: var(--gold);
  margin-bottom: 10px !important;
  text-transform: uppercase;
}
.award-body p { font-size: 13px; }

/* ===========================
   CERTIFICATIONS
=========================== */
#certifications { padding: 100px 0; background: var(--ink2); }

.cred-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 48px;
}
@media (min-width: 900px) { .cred-layout { grid-template-columns: 1fr 1fr; } }

.cred-group-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* edu-list reused from before */
.edu-list { }
.edu-row {
  display: grid;
  grid-template-columns: 76px 1fr 52px;
  gap: 20px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.edu-row:last-child { border-bottom: none; }
.edu-year {
  font-size: 11px; font-weight: 500; color: var(--text3);
  letter-spacing: 0.3px;
  font-family: 'SF Mono','Fira Code',monospace;
}
.edu-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.edu-body p { font-size: 13px; margin: 0; }
.edu-badge {
  text-align: right;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  font-family: 'SF Mono','Fira Code',monospace;
}

.cert-grid {
  display: flex; flex-direction: column; gap: 2px;
}
.cert-card {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: background var(--tr), border-color var(--tr);
}
.cert-card:hover { background: var(--ink3); border-color: var(--line2); }
.cert-logo {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  text-align: center;
}
.cert-logo-scrum { background: rgba(16,185,129,0.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.cert-logo-ms    { background: rgba(0,120,212,0.1);  color: #60a5fa; border: 1px solid rgba(0,120,212,0.2); }
.cert-logo-penn  { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }
.cert-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.cert-card p  { font-size: 12px; color: var(--text3); margin: 0; }

/* ===========================
   PUBLICATIONS
=========================== */
#publications { padding: 100px 0; background: var(--ink); }

.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 0;
}
@media (min-width: 640px)  { .pub-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .pub-grid { grid-template-columns: repeat(3,1fr); } }

.pub-card {
  display: flex; flex-direction: column;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  background: var(--ink2);
  transition: background var(--tr), border-color var(--tr);
  gap: 12px;
}
.pub-card:hover {
  background: var(--ink3);
  border-color: var(--line2);
}
.pub-featured {
  border-top: 2px solid var(--gold);
}
@media (min-width: 1024px) {
  .pub-featured {
    grid-column: span 2;
  }
}

.pub-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.pub-tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
}
.pub-date {
  font-size: 11px; color: var(--text3);
  font-family: 'SF Mono','Fira Code',monospace;
}
.pub-card h3 {
  font-family: var(--serif);
  font-size: 19px; font-weight: 600;
  color: var(--text); line-height: 1.3;
  margin: 0;
}
.pub-featured h3 { font-size: 22px; }
.pub-card p { font-size: 14px; flex: 1; margin: 0; }
.pub-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pub-read {
  font-size: 13px; font-weight: 500;
  color: var(--gold);
  transition: color var(--tr);
}
.pub-card:hover .pub-read { color: var(--gold2); }
.pub-note {
  margin-top: 24px;
  font-size: 13px; color: var(--text3); font-style: italic;
}
.pub-note a { color: var(--gold); }

/* ===========================
   PROJECT CARDS — image + CTA
=========================== */
.venture-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.venture-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.venture-card:hover .venture-img img {
  transform: scale(1.04);
}
.venture-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex; align-items: flex-end;
}
.venture-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.venture-body h3 {
  font-size: 18px; font-weight: 600;
  color: var(--text); margin: 0;
}
.venture-body > p {
  font-size: 14px; color: var(--text2);
  margin: 0; flex: 1;
  line-height: 1.6;
}
.venture-cta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.vcta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  border: none;
  text-decoration: none;
}
.vcta-primary {
  background: var(--gold);
  color: #000;
}
.vcta-primary:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}
.vcta-store {
  background: var(--ink3);
  border: 1px solid var(--line2);
  color: var(--text2);
  font-size: 12px;
  padding: 7px 14px;
}
.vcta-store:hover {
  border-color: var(--gold);
  color: var(--gold2);
}

/* ===========================
   THEME TOGGLE BUTTON
=========================== */
.theme-toggle {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
  margin-left: 8px;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
/* Icon visibility — moon in dark, sun in light */
.icon-sun  { display: none; }
.icon-moon { display: block; }
html.light .icon-sun  { display: block; }
html.light .icon-moon { display: none; }

/* ===========================
   LIGHT MODE — variables on
   :root so all var() refs
   automatically inherit
=========================== */
html.light {
  --ink:      #f8f9fb;
  --ink2:     #eef0f7;
  --ink3:     #e2e6f0;
  --surface:  #ffffff;
  --line:     rgba(0,0,0,0.08);
  --line2:    rgba(0,0,0,0.15);

  --gold:     #8a5e10;
  --gold2:    #6b4808;
  --gold-dim: rgba(138,94,16,0.09);
  --gold-glow:rgba(138,94,16,0.14);

  --text:     #0d0f14;
  --text2:    #3a3f58;
  --text3:    #72778e;
}

/* Because CSS variables inherit from :root,
   body background/color must explicitly read them */
html.light body {
  background: var(--ink);
  color: var(--text);
}

/* Hero diagonal panel */
html.light #hero::before {
  background: linear-gradient(135deg, #e6eaf4 0%, #d8deee 100%);
}
html.light .hero-lines {
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
}

/* Navbar */
html.light #navbar.scrolled {
  background: rgba(248,249,251,0.94);
}

/* Sections that have hard-coded dark backgrounds */
html.light #about,
html.light #carousel,
html.light #board,
html.light #certifications,
html.light #publications { background: var(--ink2); }

html.light #experience,
html.light #portfolio,
html.light #awards,
html.light #contact,
html.light #skills { background: var(--ink); }

/* Cards & surfaces — because they use hardcoded bg vars */
html.light .exp-card          { background: var(--surface); }
html.light .exp-card:hover    { background: var(--ink2); }
html.light .exp-featured      { background: var(--ink2); border-left-color: var(--gold); }
html.light .venture-card      { background: var(--surface); }
html.light .venture-card:hover{ background: var(--ink2); }
html.light .bv-item           { background: var(--surface); }
html.light .bv-item:hover     { background: var(--ink3); }
html.light .value-card        { background: var(--surface); }
html.light .award-card        { background: var(--surface); }
html.light .award-card:hover  { background: var(--ink2); }
html.light .cert-card         { background: var(--ink2); }
html.light .cert-card:hover   { background: var(--ink3); }
html.light .pub-card          { background: var(--surface); }
html.light .pub-card:hover    { background: var(--ink2); }
html.light .contact-row       { background: var(--surface); }
html.light .contact-row:hover { background: var(--gold-dim); }
html.light .carousel-slide    { background: var(--surface); }
html.light .slide-caption     { background: var(--surface); }
html.light .carousel-btn      { background: var(--surface); }
html.light .skill-pills span  { background: var(--surface); }
html.light .chip              { background: var(--ink3); border-color: var(--line2); }
html.light footer             { background: var(--ink2); border-top-color: var(--line); }
html.light .photo-fallback    { background: var(--ink3); color: var(--gold); border-color: var(--line2); }

/* Smooth transition on theme switch */
*, *::before, *::after {
  transition-property: background-color, border-color, color;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

/* ===========================
   EXPERIENCE — THEME LAYOUT
=========================== */
.exp-theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 48px;
}
@media (min-width: 860px) {
  .exp-theme-grid { grid-template-columns: repeat(2, 1fr); }
  /* card 1 spans full width */
  .exp-theme-card:first-child { grid-column: span 2; }
  /* philosophy card spans full width */
  .exp-theme-philosophy { grid-column: span 2; }
}

.exp-theme-card {
  display: flex;
  gap: 28px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  background: var(--ink);
  transition: background var(--tr), border-color var(--tr);
  align-items: flex-start;
}
.exp-theme-card:hover { background: var(--ink2); }

.exp-theme-featured {
  border-left: 3px solid var(--gold);
  background: var(--ink2);
}
.exp-theme-philosophy {
  background: var(--ink2);
}

.exp-theme-num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
  padding-top: 4px;
}

.exp-theme-body { flex: 1; }
.exp-theme-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
}
.exp-theme-body > p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Platform logos row */
.exp-platform-logos {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.exp-logo {
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.exp-logo-jio     { background: rgba(0,48,135,0.25); color: #6fa3ff; border: 1px solid rgba(0,48,135,0.4); }
.exp-logo-amazon  { background: rgba(255,153,0,0.12); color: #ffb833; border: 1px solid rgba(255,153,0,0.3); }
.exp-logo-yahoo   { background: rgba(162,0,214,0.15); color: #d580ff; border: 1px solid rgba(162,0,214,0.3); }
.exp-logo-quikr   { background: rgba(233,69,96,0.12); color: #f08090; border: 1px solid rgba(233,69,96,0.3); }

/* Bullet list inside theme cards */
.exp-theme-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.exp-theme-list li {
  font-size: 14px;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.exp-theme-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 12px;
  top: 1px;
}

/* Impact list — 2-col on wide screens */
@media (min-width: 700px) {
  .exp-impact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 32px;
  }
}

/* Domain tags */
.exp-domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.exp-domain-tags span {
  padding: 6px 14px;
  border: 1px solid var(--line2);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: var(--ink3);
  transition: border-color var(--tr), color var(--tr);
}
.exp-domain-tags span:hover {
  border-color: var(--gold);
  color: var(--gold2);
}

/* Philosophy pills */
.exp-philosophy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.exp-philosophy-pills span {
  padding: 8px 18px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold2);
  background: var(--gold-dim);
}

/* Light mode overrides */
html.light .exp-theme-card          { background: var(--surface); }
html.light .exp-theme-card:hover    { background: var(--ink2); }
html.light .exp-theme-featured,
html.light .exp-theme-philosophy    { background: var(--ink2); }
html.light .exp-domain-tags span    { background: var(--ink3); }

/* ── Project card section labels & features ──────────────────────────────── */
.venture-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  margin-bottom: 2px;
}
.venture-features {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}
.venture-body > p {
  font-size: 14px;
  color: var(--text2);
  margin: 0;
  line-height: 1.6;
}
html.light .venture-section-label { color: var(--gold); }

/* ── Projects — row layout ───────────────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
}

.project-row {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 2px;
  min-height: 220px;
}
.project-row.hidden { display: none; }

/* Identity card — image + name + stack + CTA */
.project-identity {
  display: flex;
  flex-direction: column;
  background: var(--ink2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.project-img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.project-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.project-row:hover .project-img img { transform: scale(1.04); }

.project-name-block {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-name-block h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Featured inline badge */
.venture-flag-inline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: #000;
  padding: 2px 8px;
  border-radius: 2px;
  align-self: flex-start;
}

/* Sub-cards — build and benefit */
.project-sub-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--tr), border-color var(--tr);
}
.project-sub-card:hover {
  background: var(--ink3);
  border-color: var(--line2);
}
.project-sub-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0;
}

/* Separator line between rows */
.project-row + .project-row {
  margin-top: 0;
}

/* Mobile — stack to single column */
@media (max-width: 860px) {
  .project-row {
    grid-template-columns: 1fr;
  }
  .project-identity {
    flex-direction: row;
    align-items: stretch;
  }
  .project-img {
    width: 140px;
    flex-shrink: 0;
  }
  .project-img img {
    aspect-ratio: unset;
    height: 100%;
  }
}
@media (max-width: 560px) {
  .project-identity {
    flex-direction: column;
  }
  .project-img { width: 100%; }
  .project-img img { aspect-ratio: 16/9; height: auto; }
}

/* Light mode */
html.light .project-identity  { background: var(--surface); border-color: var(--line); }
html.light .project-sub-card  { background: var(--surface); border-color: var(--line); }
html.light .project-sub-card:hover { background: var(--ink2); }

/* ── Flip Cards ──────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }

.pcard {
  perspective: 1200px;
  min-height: 520px;
}
.pcard.hidden { display: none; }

.pcard-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 520px;
}

/* Hover flip — desktop only */
@media (hover: hover) {
  .pcard:hover .pcard-inner { transform: rotateY(180deg); }
}
/* Tap flip — touch devices */
.pcard.flipped .pcard-inner { transform: rotateY(180deg); }

.pcard-front,
.pcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line);
  background: var(--ink2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pcard-back {
  transform: rotateY(180deg);
  background: var(--ink3);
  border-color: var(--gold-dim);
}

/* Image area */
.pcard-img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.pcard-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-tags {
  position: absolute;
  bottom: 8px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pcard-img .venture-flag-inline {
  position: absolute;
  top: 10px; right: 10px;
}

/* Front body */
.pcard-front-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pcard-front-body h3 {
  font-size: 18px; font-weight: 600;
  color: var(--text); margin: 0;
}
.pcard-front-body p,
.pcard-front-body .venture-features {
  font-size: 13.5px; color: var(--text2);
  line-height: 1.65; margin: 0;
}

/* Back body */
.pcard-back-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pcard-back-body h3 {
  font-size: 18px; font-weight: 600;
  color: var(--text); margin: 0;
}
.pcard-back-body p {
  font-size: 13.5px; color: var(--text2);
  line-height: 1.65; margin: 0;
  flex: 1;
}

/* Flip hint */
.pcard-flip-hint {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Touch hint — only show on touch devices */
@media (hover: hover) {
  .pcard-flip-hint { display: none; }
}

/* Light mode */
html.light .pcard-front { background: var(--surface); }
html.light .pcard-back  { background: var(--ink2); border-color: rgba(201,168,76,0.2); }

/* ── Press / Products in the News ───────────────────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 40px;
}
@media (max-width: 900px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .press-grid { grid-template-columns: 1fr; } }

.press-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  background: var(--ink2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background var(--tr), border-color var(--tr);
}
.press-card:hover {
  background: var(--ink3);
  border-color: var(--line2);
}
.press-card-featured {
  border-top: 2px solid var(--gold);
  grid-column: span 1;
}

.press-pub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.press-pub-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.press-date {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
}

.press-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}
.press-card p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.press-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.press-tag {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
}
.press-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.press-card:hover .press-read { color: var(--gold2); }

/* Light mode */
html.light .press-card       { background: var(--surface); }
html.light .press-card:hover { background: var(--ink2); }

/* ── Award card image ────────────────────────────────────────────────────── */
.award-img {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}
.award-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.award-card:hover .award-img img { transform: scale(1.04); }

/* ── Carousel — press card slides ───────────────────────────────────────── */
.carousel-slide-press {
  background: var(--ink2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slide-press-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 20px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: background var(--tr);
}
.slide-press-link:hover { background: var(--ink3); }

.slide-press-pub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.carousel-slide-press h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}
.carousel-slide-press p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.slide-press-tag {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
html.light .carousel-slide-press { background: var(--surface); }

/* ── Global font-size bumps ──────────────────────────────────────────────── */
.exp-summary        { font-size: 16px; }
.exp-achievements li{ font-size: 15px; }
.exp-scope          { font-size: 14px; }
.exp-theme-list li  { font-size: 15px; }
.exp-domain-tags span { font-size: 14px; }

.pcard-front-body p,
.pcard-front-body .venture-features,
.pcard-back-body p  { font-size: 15px; }

.press-card h3      { font-size: 16px; }
.press-card p       { font-size: 15px; }

.award-body p       { font-size: 15px; }
.pub-card p         { font-size: 15px; }

.bv-item p          { font-size: 15px; }
.board-left p       { font-size: 16px; }

.cert-card p        { font-size: 14px; }
.edu-body p         { font-size: 15px; }

.section-sub        { font-size: 16px; }

.carousel-slide-press p { font-size: 14px; }
.slide-caption p    { font-size: 14px; }

.contact-left p     { font-size: 16px; }

/* ── Executive Journey — Horizontal Accordion ───────────────────────────── */
.ej-grid { display: none; } /* old grid hidden — accordion replaces it */

/* ── Card shell ── */
.ej-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color var(--tr), box-shadow var(--tr);
  min-height: 200px;
}
.ej-card:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

/* ── Left panel ── */
.ej-panel {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 24px;
  background: var(--ink3);
  position: relative;
  overflow: hidden;
  transition: background var(--tr);
  /* subtle diagonal stripe texture */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255,255,255,0.012) 8px,
      rgba(255,255,255,0.012) 9px
    ),
    linear-gradient(180deg, var(--ink3) 0%, #141824 100%);
}
/* gold accent line on right edge of panel */
.ej-panel::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ej-card:hover .ej-panel::after { opacity: 1; }

/* hover: panel goes gold */
.ej-card:hover .ej-panel {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(0,0,0,0.04) 8px,
      rgba(0,0,0,0.04) 9px
    ),
    linear-gradient(180deg, #b8922a 0%, #c9a84c 50%, #9a7520 100%);
}
.ej-card:hover .ej-panel-num   { color: rgba(0,0,0,0.25); }
.ej-card:hover .ej-panel-icon  { color: #000; border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.1); }
.ej-card:hover .ej-panel-title { color: #000; }

/* panel number — large, faint, top */
.ej-panel-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text3);
  text-transform: uppercase;
  transition: color var(--tr);
}

/* panel icon box */
.ej-panel-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.25);
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: color var(--tr), background var(--tr), border-color var(--tr);
}

/* panel title — vertical on wide panels */
.ej-panel-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
  line-height: 1.35;
  margin: 0;
  transition: color var(--tr);
}

/* ── Wide cards: taller panel, title horizontal ── */
.ej-card-wide .ej-panel {
  width: 240px;
}

/* ── Right content area ── */
.ej-body {
  flex: 1;
  padding: 36px 36px 32px;
  background: var(--ink2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  transition: background var(--tr);
}
.ej-card:hover .ej-body { background: #161b28; }

.ej-body > p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 0;
}
.ej-body > p strong { color: var(--gold2); font-weight: 500; }

/* ── Bullet list ── */
.ej-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ej-list li {
  font-size: 15px;
  color: var(--text2);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.ej-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 13px;
}

/* 2-col impact list */
@media (min-width: 640px) {
  .ej-list-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
  }
}

/* ── Philosophy card ── */
.ej-card-philosophy .ej-body {
  background: linear-gradient(135deg, #161b28 0%, var(--ink2) 100%);
}

/* ── Watermark hidden (kept in HTML for semantics) ── */
.ej-watermark { display: none; }
.ej-num       { display: none; }
.ej-icon      { display: none; } /* old icon class — panel-icon used instead */
.ej-title-row { display: contents; } /* passthrough — panel handles layout */

/* ── Mobile: stack panel on top ── */
@media (max-width: 599px) {
  .ej-card { flex-direction: column; min-height: unset; }
  .ej-panel {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 20px 24px;
  }
  .ej-panel::after { top: auto; bottom: 0; right: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  }
  .ej-panel-title { text-align: left; font-size: 16px; }
  .ej-panel-num   { display: none; }
  .ej-panel-icon  { width: 44px; height: 44px; flex-shrink: 0; }
  .ej-body { padding: 24px; }
  .ej-card-wide .ej-panel { width: 100%; }
}

/* ── Light mode ── */
html.light .ej-panel        { background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0,0,0,0.012) 8px, rgba(0,0,0,0.012) 9px), linear-gradient(180deg, #e8e4da 0%, #d8d2c4 100%); }
html.light .ej-panel-num    { color: rgba(0,0,0,0.3); }
html.light .ej-panel-icon   { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.3); }
html.light .ej-panel-title  { color: #444; }
html.light .ej-body         { background: #f5f3ee; }
html.light .ej-card:hover .ej-body { background: #edeae2; }
html.light .ej-body > p     { color: #444; }

/* ════════════════════════════════════════════════════════════════════════════
   HORIZONTAL ACCORDION — Executive Journey
   ════════════════════════════════════════════════════════════════════════════ */
.ej-accordion {
  display: flex;
  flex-direction: row;
  height: 480px;
  margin-top: 52px;
  border: 1px solid var(--line2);
  overflow: hidden;
  border-radius: 4px;
}

/* ── Each tab (collapsed = slim vertical strip) ── */
.ej-tab {
  flex: 0 0 64px;          /* collapsed width */
  display: flex;
  flex-direction: row;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: flex var(--tr);
}
/* gold separator between tabs via ::after pseudo on the label */
.ej-tab:not(:last-child) .ej-tab-label::after {
  content: '';
  position: absolute;
  top: 12%;
  right: 0;
  width: 1px;
  height: 76%;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.45;
}
.ej-tab-active .ej-tab-label::after,
.ej-tab-active + .ej-tab .ej-tab-label::after { opacity: 0; }

/* Active tab expands */
.ej-tab-active {
  flex: 1 1 auto;
  cursor: default;
}

/* ── Vertical label strip ── */
.ej-tab-label {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 28px 0 28px;
  background: var(--ink3);
  position: relative;
  border-top: 2px solid rgba(201,168,76,0.35);
  transition: background var(--tr), border-color var(--tr);
  /* diagonal stripe texture */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 8px,
      rgba(255,255,255,0.013) 8px,
      rgba(255,255,255,0.013) 9px
    ),
    linear-gradient(180deg, var(--ink3) 0%, #141824 100%);
}

/* gold top-edge on active */
.ej-tab-active .ej-tab-label {
  border-top-color: var(--gold);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 8px,
      rgba(0,0,0,0.04) 8px,
      rgba(0,0,0,0.04) 9px
    ),
    linear-gradient(180deg, #b8922a 0%, #c9a84c 50%, #9a7520 100%);
}
.ej-tab:not(.ej-tab-active):hover .ej-tab-label {
  border-top-color: var(--gold);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 8px,
      rgba(255,255,255,0.018) 8px,
      rgba(255,255,255,0.018) 9px
    ),
    linear-gradient(180deg, #1e2436 0%, #1a2030 100%);
  border-right-color: rgba(201,168,76,0.3);
}

/* number badge */
.ej-tab-num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text3);
  transition: color var(--tr);
}
.ej-tab-active .ej-tab-num { color: rgba(0,0,0,0.3); }

/* icon circle */
.ej-tab-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.25);
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: color var(--tr), background var(--tr), border-color var(--tr);
}
.ej-tab-active .ej-tab-icon {
  color: #000;
  background: rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.2);
}

/* rotated title on collapsed tabs — reads bottom-to-top */
.ej-tab-title {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: left;
  max-height: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--tr);
  margin-top: 4px;
}
.ej-tab-active .ej-tab-title { color: #000; }
.ej-tab:not(.ej-tab-active):hover .ej-tab-title { color: var(--text); }

/* ── Content panel (hidden when collapsed) ── */
.ej-tab-content {
  flex: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease 0s;
  background: var(--ink2);
  border-top: 2px solid var(--gold);
}
.ej-tab-active .ej-tab-content {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease 0.15s;
}

.ej-tab-inner {
  padding: 44px 48px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ej-tab-inner::-webkit-scrollbar { width: 4px; }
.ej-tab-inner::-webkit-scrollbar-thumb { background: var(--ink3); border-radius: 99px; }

.ej-tab-inner h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.ej-tab-inner p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin: 0;
}
.ej-tab-inner p strong { color: var(--gold2); font-weight: 500; }

/* lists inside accordion */
.ej-tab-inner .ej-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.ej-tab-inner .ej-list li {
  font-size: 15px;
  color: var(--text2);
  padding-left: 22px;
  position: relative;
  line-height: 1.65;
}
.ej-tab-inner .ej-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 13px;
}
@media (min-width: 640px) {
  .ej-tab-inner .ej-list-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
  }
}

/* ── Mobile: vertical accordion ── */
@media (max-width: 767px) {
  .ej-accordion {
    flex-direction: column;
    height: auto;
  }
  .ej-tab {
    flex: none;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .ej-tab:last-child { border-bottom: none; }
  .ej-tab-active { flex: none; }

  .ej-tab-label {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 24px;
    height: auto;
  }
  .ej-tab-title {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
    max-height: none;
    font-size: 14px;
  }
  .ej-tab-content {
    max-height: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  .ej-tab-active .ej-tab-content {
    max-height: 600px;
    opacity: 1;
  }
  .ej-tab-inner { padding: 28px 24px; }
  .ej-tab-num { display: none; }
}

/* ── Light mode ── */
html.light .ej-accordion { border-color: rgba(0,0,0,0.12); }
html.light .ej-tab { border-right-color: rgba(0,0,0,0.1); }
html.light .ej-tab-label {
  background-image:
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0,0,0,0.012) 8px, rgba(0,0,0,0.012) 9px),
    linear-gradient(180deg, #e8e4da 0%, #d8d2c4 100%);
}
html.light .ej-tab-num    { color: rgba(0,0,0,0.3); }
html.light .ej-tab-icon   { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.3); color: var(--gold); }
html.light .ej-tab-title  { color: #555; }
html.light .ej-tab-content { background: #f5f3ee; }
html.light .ej-tab-inner h3 { color: var(--ink); }
html.light .ej-tab-inner p  { color: #444; }
html.light .ej-tab-inner .ej-list li { color: #444; }
