/* ============================================
   Mannish Gupta – Corporate Profile
   Standalone CSS (works without Tailwind CDN)
   ============================================ */

:root {
  --brand-50: #f8f5f0;
  --brand-100: #f0e9dc;
  --brand-200: #e0d2b8;
  --brand-300: #c9b08a;
  --brand-400: #b08f5e;
  --brand-500: #9a7548;
  --brand-600: #835c3a;
  --brand-700: #6b4a30;
  --brand-800: #583e2a;
  --brand-900: #4a3525;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-850: #172033;
  --slate-900: #0f172a;
  --slate-950: #0b1120;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--slate-950);
  color: var(--slate-200);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-300); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-200); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-sans { font-family: Inter, system-ui, sans-serif; }
.text-white { color: #fff; }
.text-slate-200 { color: var(--slate-200); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-brand-300 { color: var(--brand-300); }
.text-brand-400 { color: var(--brand-400); }
.text-brand-500 { color: var(--brand-500); }
.bg-slate-950 { background: var(--slate-950); }
.bg-slate-900 { background: var(--slate-900); }
.bg-slate-900\/95 { background: rgba(15,23,42,.95); }
.bg-brand-500 { background: var(--brand-500); }
.bg-brand-400 { background: var(--brand-400); }

/* Layout helpers */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-3\.5 { width: .875rem; } .h-3\.5 { height: .875rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.border { border-width: 1px; border-style: solid; }
.border-slate-600 { border-color: var(--slate-600); }
.border-slate-700 { border-color: var(--slate-700); }
.border-slate-800 { border-color: var(--slate-800); }
.border-t { border-top-width: 1px; border-top-style: solid; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .3); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .4); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); }
.transition { transition: all .2s ease; }
.transition-all { transition: all .3s ease; }
.opacity-0 { opacity: 0; }
.invisible { visibility: hidden; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.backdrop-blur { backdrop-filter: blur(8px); }

/* ========== HEADER ========== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11,17,32,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#header.scrolled {
  background: rgba(11,17,32,.95);
  border-bottom-color: var(--slate-800);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
#header .max-w-7xl { padding: 0 1rem; }
@media (min-width: 640px) { #header .max-w-7xl { padding: 0 1.5rem; } }
@media (min-width: 1024px) { #header .max-w-7xl { padding: 0 2rem; } }

#header .flex.items-center.justify-between {
  height: 4rem;
}
@media (min-width: 768px) {
  #header .flex.items-center.justify-between { height: 5rem; }
}

.nav-link {
  color: var(--slate-300);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #fff; }

/* Share dropdown – pure CSS */
.group { position: relative; }
.group > div.absolute {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  pointer-events: none;
}
.group:hover > div.absolute {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* PDF / Share / Connect buttons */
#download-pdf,
.group > button {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .75rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-600);
  color: var(--slate-300);
  font-size: .75rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
#download-pdf:hover,
.group > button:hover {
  border-color: rgba(176,143,94,.6);
  color: #fff;
}

a[href="#contact"].inline-flex {
  display: inline-flex;
  align-items: center;
  padding: .625rem 1.25rem;
  border-radius: 9999px;
  background: var(--brand-500);
  color: var(--slate-950);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(154,117,72,.25);
  transition: background .2s;
}
a[href="#contact"].inline-flex:hover {
  background: var(--brand-400);
  color: var(--slate-950);
}

/* Mobile menu */
#mobile-menu {
  background: rgba(15,23,42,.97);
  border-top: 1px solid var(--slate-800);
}
#mobile-menu a {
  display: block;
  padding: .5rem 0;
  color: var(--slate-300);
}
#mobile-menu a:hover { color: #fff; }

/* ========== HERO ========== */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
#home .max-w-7xl {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  #home .max-w-7xl {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

#home h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  #home h1 { font-size: 3.25rem; }
}
@media (min-width: 1024px) {
  #home h1 { font-size: 3.75rem; }
}

#home p.lead {
  font-size: 1.05rem;
  color: var(--slate-300);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

#home .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  background: var(--brand-500);
  color: var(--slate-950);
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 4px 20px rgba(154,117,72,.3);
  transition: background .2s, transform .2s;
}
#home .hero-cta:hover {
  background: var(--brand-400);
  transform: translateY(-1px);
  color: var(--slate-950);
}

/* Portrait frame */
.portrait-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--brand-500), transparent 60%);
  opacity: .4;
  z-index: 0;
}
.portrait-frame {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
  border: 1px solid rgba(176,143,94,.25);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Decorative blob */
.hero-blob {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  max-width: 420px;
  height: 50%;
  background: radial-gradient(circle, rgba(154,117,72,.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 0;
  position: relative;
}
@media (min-width: 768px) {
  section { padding: 6rem 0; }
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: .75rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}
.section-desc {
  color: var(--slate-400);
  max-width: 40rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Cards / grids */
.card {
  background: rgba(15,23,42,.7);
  border: 1px solid var(--slate-800);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(176,143,94,.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

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

.venture-card {
  background: rgba(15,23,42,.75);
  border: 1px solid var(--slate-800);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.venture-card:hover {
  border-color: rgba(176,143,94,.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.venture-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.05);
}
.venture-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}
.venture-card p {
  font-size: .9rem;
  color: var(--slate-400);
  line-height: 1.6;
  flex-grow: 1;
}
.venture-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-400);
  background: rgba(154,117,72,.12);
  padding: .25rem .6rem;
  border-radius: 9999px;
}

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: .25rem;
  bottom: .25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-500), var(--slate-700));
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: .4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-500);
  border: 2px solid var(--slate-950);
  transform: translateX(-4px);
}
.timeline-year {
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-400);
  margin-bottom: .25rem;
}
.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .35rem;
}
.timeline-body {
  font-size: .9rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--slate-400);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: .75rem;
  color: #fff;
  font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-500);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  background: var(--brand-500);
  color: var(--slate-950);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 9999px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover {
  background: var(--brand-400);
  transform: translateY(-1px);
}

/* Footer */
footer {
  border-top: 1px solid var(--slate-800);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--slate-500);
  font-size: .85rem;
}

/* Responsive nav visibility */
@media (min-width: 1024px) {
  nav.hidden.lg\:flex { display: flex !important; }
  #menu-btn { display: none !important; }
  .hidden.sm\:flex { display: flex !important; }
}
@media (max-width: 1023px) {
  nav.hidden.lg\:flex { display: none !important; }
}
@media (min-width: 640px) {
  .hidden.sm\:flex { display: flex !important; }
}
@media (max-width: 639px) {
  .hidden.sm\:flex { display: none !important; }
}

/* Print / PDF — A4 portrait, standard margins, modest images */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #header, #mobile-menu, #download-pdf, .group, #menu-btn, .hero-blob,
  #contact form, .share-menu, nav, footer .socials { display: none !important; }
  #home { min-height: auto !important; padding-top: 0.5rem !important; }
  a { color: #111 !important; text-decoration: none !important; }
  .card, .venture-card, article {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  /* Keep images modest — not oversized */
  .edu-logo { width: 36px !important; height: 36px !important; padding: 3px !important; }
  .edu-logo img { width: 30px !important; height: 30px !important; max-width: 30px !important; max-height: 30px !important; }
  .logo-badge { height: 40px !important; padding: 6px 10px !important; }
  .logo-badge img { height: 22px !important; max-width: 120px !important; }
  .logo-chip { height: 28px !important; padding: 4px 8px !important; }
  .logo-chip img { height: 16px !important; max-width: 80px !important; }
  #home img, .hero img, picture img {
    max-height: 160px !important;
    width: auto !important;
  }
  .gallery img, #moments img {
    max-height: 140px !important;
    width: auto !important;
  }
  section { padding-top: 12px !important; padding-bottom: 12px !important; }
  h1 { font-size: 18pt !important; }
  h2 { font-size: 13pt !important; }
  h3 { font-size: 11pt !important; }
}

/* html2pdf export mode (class toggled in JS) */
body.pdf-exporting #header,
body.pdf-exporting #mobile-menu,
body.pdf-exporting #download-pdf,
body.pdf-exporting .group,
body.pdf-exporting #menu-btn,
body.pdf-exporting #contact form,
body.pdf-exporting nav {
  display: none !important;
}
body.pdf-exporting {
  background: #fff !important;
  color: #111 !important;
}
body.pdf-exporting .edu-logo { width: 40px; height: 40px; }
body.pdf-exporting .edu-logo img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; }
body.pdf-exporting #home img,
body.pdf-exporting .hero img {
  max-height: 180px !important;
  width: auto !important;
}
body.pdf-exporting #moments img {
  max-height: 150px !important;
}

/* ===== Extra layout rules matching actual markup ===== */

/* Grid */
.grid { display: grid; }
.lg\:grid-cols-2 { }
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:justify-end { justify-content: flex-end; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
.order-1 { order: 1; }
.order-2 { order: 2; }
@media (min-width: 1024px) {
  .order-1.lg\:order-2 { order: 2; }
  .order-2.lg\:order-1 { order: 1; }
}

/* Spacing variants */
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.md\:py-24 { }
.md\:py-28 { }
@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:w-80 { width: 20rem; }
  .sm\:h-96 { height: 24rem; }
}
.w-72 { width: 18rem; }
.h-80 { height: 20rem; }
.w-1\.5 { width: .375rem; }
.h-1\.5 { height: .375rem; }
.w-16 { width: 4rem; }
.h-0\.5 { height: 2px; }
.max-w-xl { max-width: 36rem; }
.max-w-5xl { max-width: 64rem; }

/* Gradient text */
.text-transparent { color: transparent; }
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--brand-300), var(--brand-500)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, var(--brand-500))); }

/* Hero specific polish */
#home {
  position: relative;
  min-height: 100vh;
  padding-top: 5rem;
}
#home h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
#home .inline-flex.items-center.gap-2.px-6 {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all .2s;
}
#home a[href="#ventures"] {
  background: var(--brand-500);
  color: var(--slate-950);
  box-shadow: 0 4px 20px rgba(154,117,72,.3);
}
#home a[href="#ventures"]:hover {
  background: var(--brand-400);
  color: var(--slate-950);
}

/* Portrait sizing */
#home .relative.w-72 {
  width: 18rem;
  height: 20rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(51,65,85,.5);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  background: var(--slate-900);
}
@media (min-width: 640px) {
  #home .relative.w-72 {
    width: 20rem;
    height: 24rem;
  }
}

/* Stats row */
#home .mt-10.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Badge */
.inline-flex.items-center.gap-2.px-3.py-1.rounded-full {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  border-radius: 9999px;
  background: rgba(154,117,72,.1);
  border: 1px solid rgba(154,117,72,.3);
  color: var(--brand-300);
  font-size: .75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Location badge under portrait */
#home .absolute.-bottom-4 {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--slate-700);
  border-radius: .75rem;
  padding: .75rem 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

/* Section backgrounds */
.bg-slate-900\/50 { background: rgba(15,23,42,.5); }
.bg-slate-900\/80 { background: rgba(15,23,42,.8); }

/* Quote */
blockquote {
  font-style: italic;
  font-weight: 300;
  color: var(--slate-300);
  line-height: 1.7;
}

/* Strong text inside paragraphs */
strong.text-white { color: #fff; font-weight: 600; }
strong.text-brand-300 { color: var(--brand-300); font-weight: 600; }

/* Simple animate pulse for the badge dot */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

/* Ensure main content has top padding so it isn't under fixed header */
main, body > section:first-of-type, #home {
  /* already handled */
}

/* Hide mobile menu by default properly */
#mobile-menu.hidden { display: none; }
#mobile-menu:not(.hidden) { display: block; }

/* Share menu links */
.group .absolute a {
  display: block;
  padding: .5rem 1rem;
  font-size: .875rem;
  color: var(--slate-300);
}
.group .absolute a:hover {
  background: var(--slate-800);
  color: #fff;
}
.group .absolute {
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: .75rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.4);
  width: 11rem;
  margin-top: .5rem;
  padding: .5rem 0;
  z-index: 50;
}

/* ===== Logo display – consistent size + readable on dark ===== */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 60px;
  max-width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,.30);
  overflow: hidden; /* white only inside rounded container */
}
.logo-badge img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
/* Project chips under Fusion */
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
}
.logo-chip img {
  height: 22px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: transparent;
}
/* Education logos — fixed compact size (mobile Safari safe) */
#education .edu-logo,
section#education .edu-logo,
.edu-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 4px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  overflow: hidden !important;
  margin: 0 0 12px 0 !important;
  flex: 0 0 40px !important;
  box-sizing: border-box !important;
}
#education .edu-logo img,
section#education .edu-logo img,
.edu-logo img {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  margin: 0 !important;
}
/* Mobile / Safari: keep seals tiny */
@media screen and (max-width: 767px) {
  #education .edu-logo,
  section#education .edu-logo,
  .edu-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
    padding: 3px !important;
  }
  #education .edu-logo img,
  section#education .edu-logo img,
  .edu-logo img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
}

a.logo-badge, a.logo-chip {
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
a.logo-badge:hover, a.logo-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Vertical chronology (Wikipedia-style career timeline) */
.chrono {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid rgba(154, 117, 72, 0.35);
}
.chrono-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.chrono-item:last-child { padding-bottom: 0; }
.chrono-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: -7px;
  border-radius: 999px;
  background: #9a7548;
  box-shadow: 0 0 0 4px rgba(154, 117, 72, 0.2);
}
.chrono-year {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c4a574;
  margin-bottom: 0.25rem;
}
.chrono-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.chrono-role {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}
.chrono-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* Device orientation & modern browsers */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  #home { min-height: auto; padding-top: 4rem; padding-bottom: 2rem; }
}
img, video { max-width: 100%; height: auto; }
