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

:root {
  --header-offset: 96px;
  --section-gap: 112px;
  --subsection-gap: 88px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

body {
  font-family: 'Inter', sans-serif;
  background: #0d1525;
  color: #cbd5e1;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: #38bdf8; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

a:focus-visible,
button:focus-visible,
.contact-btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.mobile-nav-toggle:focus-visible,
.rec-award-card:focus-visible,
.rec-row:focus-visible,
.rec-peer-item:focus-visible,
.cert-card:focus-visible,
.hql-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 8px;
}

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


/* =================== NAVIGATION =================== */
.site-header {
  position: fixed;
  top: 0; width: 100%;
  background: linear-gradient(180deg, rgba(13,21,37,0.95), rgba(13,21,37,0.82));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56,189,248,0.16);
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.28);
  z-index: 100;
}

.nav-inner {
  max-width: 1300px;
  margin: auto;
  padding: 14px 36px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-left {
  min-width: 170px;
  text-decoration: none;
  display: block;
}
.nav-left:hover .nav-name { color: #7dd3fc; }
.nav-left:focus-visible { outline: 2px solid #38bdf8; outline-offset: 4px; border-radius: 6px; }

.nav-name { font-size: 1.15rem; font-weight: 700; color: #f1f5f9; }
.nav-role { font-size: 0.72rem; color: #7dd3fc; margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 34px;
}
.nav-links a {
  position: relative;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding-bottom: 8px;
  transition: color .22s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.nav-links a:hover,
.nav-links a.nav-active { color: #38bdf8; }

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.nav-active::after,
.nav-links a[aria-current='page']::after {
  transform: scaleX(1);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  background: #0f192e;
  border-bottom: 1px solid rgba(56,189,248,0.1);
}
.mobile-nav-panel.is-open { display: flex; }
.mobile-nav-panel a {
  padding: 11px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #94a3b8;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible,
.mobile-nav-panel a.nav-active,
.mobile-nav-panel a[aria-current='page'] {
  color: #dbeafe;
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.35);
}


/* =================== HERO (REDESIGNED) =================== */
.hero-section {
  padding: 160px 36px 92px;
  min-height: calc(100vh - var(--header-offset) + 18px);
  position: relative;
  overflow: hidden;
  max-width: 1300px;
  margin: auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #38bdf8;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  color: #94a3b8;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s;
}
.btn-primary { background: #38bdf8; color: #0d1525; }
.btn-primary:hover { background: #7dd3fc; color: #0d1525; box-shadow: 0 4px 20px rgba(56,189,248,0.4); }
.btn-outline { border: 2px solid #38bdf8; color: #38bdf8; }
.btn-outline:hover { background: rgba(56,189,248,0.1); color: #7dd3fc; box-shadow: 0 4px 16px rgba(56,189,248,0.2); }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-pills span {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(56,189,248,0.08);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,0.18);
}

/* Hero bg glows */
.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.35;
  z-index: 1;
}
.glow-1 { width: 500px; height: 500px; background: #38bdf8; top: -180px; left: -160px; }
.glow-2 { width: 400px; height: 400px; background: #6366f1; right: -160px; top: 60px; }
.glow-3 { width: 350px; height: 350px; background: #22c55e; bottom: -160px; left: 38%; }

/* Upcoming speaking event highlight */
.speaking-event--upcoming {
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.03);
}
.speaking-upcoming-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.speaking-event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.speaking-event-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.07);
  border-radius: 8px;
  padding: 7px 14px;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.speaking-event-link:hover {
  background: rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.5);
  text-decoration: none;
  color: #fff;
}

/* ── Hero photo frame ── */
.hero-photo-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@keyframes heroRingPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(56,189,248,0.25), 0 0 120px rgba(99,102,241,0.12); }
  50%       { box-shadow: 0 0 90px rgba(56,189,248,0.45), 0 0 180px rgba(99,102,241,0.25); }
}

.hero-photo-ring {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #22c55e 100%);
  box-shadow: 0 0 60px rgba(56,189,248,0.25), 0 0 120px rgba(99,102,241,0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo-ring { animation: heroRingPulse 5s ease-in-out infinite; }
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #0d1525;
}

.hero-photo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 100px;
  padding: 4px 14px;
}

.hero-photo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
}

.hero-photo-role {
  font-size: 0.78rem;
  color: #8094aa;
  text-align: center;
  line-height: 1.5;
}

/* Quick-link buttons */
.hero-quicklinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.hql-btn {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.2);
  background: rgba(56,189,248,0.04);
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.hql-btn:hover {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.45);
  color: #fff;
  text-decoration: none;
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 2rem; }
  .hero-kicker,
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-pills { justify-content: center; }
  .hero-photo-ring { width: 200px; height: 200px; }
  .hero-quicklinks { max-width: 340px; margin: 8px auto 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.7rem; }
  .hero-photo-ring { width: 170px; height: 170px; }
}


/* =================== MAIN WRAPPER =================== */
.main-wrapper {
  max-width: 1150px;
  margin: auto;
  padding: 0 28px 80px;
}


/* =================== SECTION BASE =================== */
.section { margin-top: var(--section-gap); }

.main-wrapper > .section:first-of-type {
  margin-top: calc(var(--section-gap) - 16px);
}

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

.section-header h2 {
  font-size: clamp(1.85rem, 2.3vw, 2.25rem);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 14px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.05vw, 1.03rem);
  color: #9fb1c9;
  opacity: 0.94;
  max-width: 760px;
  line-height: 1.72;
}

.work-card h3,
.research-body h3,
.speaking-info h3,
.recognition-card h3,
.cert-card h3,
.blog-card h3 {
  letter-spacing: -0.01em;
  text-wrap: balance;
}


/* =================== ABOUT =================== */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

/* In styles.css — replace existing .about-photo */
.about-photo {
  width: 220px;
  height: auto;           /* ← key change: no fixed height */
  max-height: 300px;
  border-radius: 14px;
  object-fit: cover;
  object-position: top;  /* ← keeps face visible */
  border: 2px solid rgba(56,189,248,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transition: border-color .2s;
}

.about-photo:hover { border-color: #38bdf8; }

.about-text p {
  font-size: 0.97rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 18px;
}


/* =================== METRICS =================== */
.metrics-section { margin-top: var(--subsection-gap); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-box {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.metric-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 100%);
}
.metric-box:hover {
  transform: translateY(-5px);
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}
.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-label {
  font-size: 0.78rem;
  color: #8094aa;
  margin-top: 8px;
  line-height: 1.45;
}


/* =================== SKILL STRIP =================== */
.skill-strip {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a8fa6;
}

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

/* Cloud group — cyan */
.skill-tags span {
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(56,189,248,0.09);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(56,189,248,0.22);
  transition: background .2s, border-color .2s, color .2s;
}
.skill-tags span:hover {
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.45);
  color: #bae6fd;
}

/* AI group — purple */
.skill-tags--ai span {
  background: rgba(99,102,241,0.09);
  color: #a5b4fc;
  border-color: rgba(99,102,241,0.22);
}
.skill-tags--ai span:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.45);
  color: #c7d2fe;
}

/* Security group — green */
.skill-tags--security span {
  background: rgba(34,197,94,0.09);
  color: #86efac;
  border-color: rgba(34,197,94,0.22);
}
.skill-tags--security span:hover {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.45);
  color: #bbf7d0;
}


/* =================== FEATURED WORK =================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.work-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.work-card--featured {
  grid-column: span 2;
  border-color: rgba(56,189,248,0.2);
  background: rgba(56,189,248,0.04);
}

.work-card-meta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 10px;
}

.work-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 6px;
  line-height: 1.4;
}

.work-scale {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 14px;
  font-style: italic;
}

.work-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 14px;
  line-height: 1.65;
}

.work-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-bullets li {
  font-size: 0.84rem;
  color: #94a3b8;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.work-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 0.6rem;
  top: 5px;
}

.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags span {
  background: rgba(56,189,248,0.08);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(56,189,248,0.18);
}


/* =================== RESEARCH =================== */
.research-list { display: flex; flex-direction: column; gap: 4px; }

.research-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.research-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(56,189,248,0.15);
}

.research-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 3px;
}

.research-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.research-badge.accepted {
  background: rgba(52,211,153,0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52,211,153,0.25);
}
.research-badge.article {
  background: rgba(56,189,248,0.1);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.2);
}

.research-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(148,163,184,0.2);
}

.research-body h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.45;
}
.research-body p {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 12px;
  line-height: 1.6;
}

.research-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.research-tags span {
  background: rgba(56,189,248,0.07);
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(56,189,248,0.15);
}


/* =================== SPEAKING =================== */
.speaking-list { display: flex; flex-direction: column; gap: 32px; }

.speaking-event {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
  padding: 28px 32px 28px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.speaking-event:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.28);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.speaking-main-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.speaking-main-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
/* For images that must not be cropped (e.g. speaker lineup posters) */
.speaking-main-photo--contain {
  object-fit: contain;
  background: rgba(10,14,26,0.5);
}

.speaking-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.speaking-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.speaking-thumbs img:hover {
  border-color: #38bdf8;
  transform: scale(1.06);
}

.speaking-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #38bdf8;
  margin-bottom: 6px;
}
/* Dot separators between meta segments */
.speaking-event-meta::before {
  content: none;
}

.speaking-event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #8094aa;
  margin-bottom: 12px;
}

.speaking-format-pill {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.speaking-format-pill--inperson {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.28);
}
.speaking-format-pill--virtual {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.28);
}

.speaking-info h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 10px;
  line-height: 1.4;
}
.speaking-info p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.68;
  margin-bottom: 14px;
}

.speaking-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.speaking-tags span {
  background: rgba(56,189,248,0.08);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(56,189,248,0.18);
}

.gallery-btn {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.08);
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.gallery-btn:hover,
.gallery-btn:focus-visible {
  background: rgba(56,189,248,0.16);
  border-color: rgba(56,189,248,0.45);
  color: #dbeafe;
}

.image-unavailable {
  opacity: 0.75;
  filter: grayscale(15%);
}


/* =================== COMMUNITY =================== */
.comm-stats-row {
  display: flex;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.comm-stat-box { display: flex; flex-direction: column; gap: 3px; }

.csv {
  font-size: 1.8rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.csl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.comm-timeline { display: flex; flex-direction: column; gap: 36px; }

.comm-year-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(56,189,248,0.15);
}

.comm-rows { display: flex; flex-direction: column; }

.comm-row {
  display: grid;
  grid-template-columns: 155px 1fr 200px 90px;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.comm-row:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(56,189,248,0.12);
}

.comm-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  white-space: nowrap;
}
.comm-badge.chair    { background: rgba(56,189,248,0.12);  color: #38bdf8;  border: 1px solid rgba(56,189,248,0.3); }
.comm-badge.committee{ background: rgba(167,139,250,0.12); color: #c4b5fd;  border: 1px solid rgba(167,139,250,0.3); }
.comm-badge.invited  { background: rgba(251,191,36,0.12);  color: #fcd34d;  border: 1px solid rgba(251,191,36,0.3); }
.comm-badge.technical{ background: rgba(56,189,248,0.08);  color: #7dd3fc;  border: 1px solid rgba(56,189,248,0.2); }
.comm-badge.judging  { background: rgba(52,211,153,0.1);   color: #6ee7b7;  border: 1px solid rgba(52,211,153,0.25); }

.comm-name  { font-size: 0.86rem; font-weight: 600; color: #e2e8f0; }
.comm-place { font-size: 0.76rem; color: #64748b; }

.comm-cert-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  transition: color .2s;
  white-space: nowrap;
}
.comm-cert-link:hover { color: #fff; }

.comm-cert-thumb {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(56,189,248,0.2);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.comm-cert-thumb:hover {
  border-color: #38bdf8;
  transform: scale(1.08);
}


/* =================== PEER REVIEW =================== */
.peer-review-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.peer-stat-box {
  min-width: 170px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(56,189,248,0.14);
  border-radius: 10px;
}

.peer-stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.2;
}

.peer-stat-label {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.peer-country-list {
  margin: -6px 0 24px;
  font-size: 0.84rem;
  color: #9fb1c9;
  line-height: 1.7;
}

.peer-country-list strong {
  color: #dbeafe;
}

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

.peer-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.peer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.peer-card-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 10px;
}

.peer-card h3 {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 8px;
}

.peer-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 14px;
}

.peer-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
}

.peer-link:hover {
  color: #dbeafe;
}


/* =================== RECOGNITIONS =================== */
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.recognition-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.recognition-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.25);
}

.recognition-card--featured {
  border-color: rgba(56,189,248,0.2);
  background: rgba(56,189,248,0.04);
}

.recognition-year {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 10px;
}

.recognition-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.4;
}

.recognition-impact {
  font-size: 0.76rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 10px;
  opacity: 0.85;
}

.recognition-card p {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 16px;
}

.recognition-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  padding: 5px 14px;
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 100px;
  transition: background .2s, color .2s;
  display: inline-block;
}
.recognition-link:hover {
  background: rgba(56,189,248,0.1);
  color: #fff;
}

.recognition-note {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 28px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid rgba(56,189,248,0.2);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}


/* =================== INSPIRATION & RECOGNITION =================== */

/* Sub-blocks (Awards / Committee / Peer Review) */
.ir-block {
  margin-top: 56px;
}
.ir-block:first-of-type {
  margin-top: 32px;
}

.ir-block-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ir-block-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.ir-block-header p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* Grids */
.ir-grid {
  display: grid;
  gap: 18px;
}
.ir-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.ir-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =================== INSPIRATION & RECOGNITION =================== */

/* Sub-block wrapper — visual separator between the 3 blocks */
.rec-block {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.rec-block:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}

/* Sub-block header — left cyan accent bar */
.rec-block-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  padding-left: 14px;
  border-left: 3px solid #38bdf8;
  line-height: 1.3;
}
.rec-block-sub {
  font-size: 0.8rem;
  color: #8094aa; /* lifted from #64748b → 4.6:1 contrast on #0d1525 */
  margin-bottom: 24px;
  padding-left: 17px; /* aligns with title text (14px border + 3px) */
}

/* ── Role pill shared ── */
.rec-role-pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.6;
}
.rec-role-pill--award     { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.rec-role-pill--chair     { background: rgba(168,85,247,0.14); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.rec-role-pill--invited   { background: rgba(34,197,94,0.13);  color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.rec-role-pill--committee { background: rgba(59,130,246,0.13); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.rec-role-pill--technical { background: rgba(6,182,212,0.13);  color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }
.rec-role-pill--judging   { background: rgba(249,115,22,0.13); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }

/* ── AWARD CARDS (3 columns) ── */
.rec-award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rec-award-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.025);
  text-decoration: none;
  color: inherit;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.rec-award-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 14px 36px rgba(0,0,0,0.38);
  text-decoration: none;
}

/* Gold visual — taller, has a star icon via pseudo */
.rec-award-visual {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.rec-award-visual--gold {
  background: linear-gradient(140deg, #3c1502 0%, #92400e 50%, #6b3000 100%);
}
.rec-award-visual--gold::before {
  content: '★';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.9rem;
  color: rgba(253,211,77,0.4);
}
.rec-award-label {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fcd34d;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.rec-award-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(253,211,77,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Photo visual — actual certificate image */
.rec-award-visual--photo {
  padding: 0;
  background: #070d1b;
}
.rec-award-visual--photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Judge award visual — orange gradient matching judging pill */
.rec-award-visual--judge {
  background: linear-gradient(140deg, #431407 0%, #9a3412 50%, #7c2d12 100%);
}
.rec-award-visual--judge::before {
  content: '⚖';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.9rem;
  color: rgba(251,146,60,0.4);
}
.rec-award-visual--judge .rec-award-label {
  color: #fed7aa;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.rec-award-visual--judge .rec-award-year {
  color: rgba(253,186,116,0.7);
}

/* Judge award visual — orange gradient matching judging pill */
.rec-award-visual--judge {
  background: linear-gradient(140deg, #431407 0%, #9a3412 50%, #7c2d12 100%);
}
.rec-award-visual--judge::before {
  content: '⚖';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.9rem;
  color: rgba(251,146,60,0.4);
}
.rec-award-visual--judge .rec-award-label {
  color: #fed7aa;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.rec-award-visual--judge .rec-award-year {
  color: rgba(253,186,116,0.7);
}

.rec-award-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.rec-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}
.rec-card-meta {
  font-size: 0.75rem;
  color: #64748b;
}

/* ── COMMITTEE TABLE ── */
.rec-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Group section header row */
.rec-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rec-group-header:first-child {
  border-top: none;
}
.rec-group-count {
  font-size: 0.67rem;
  color: #7a8fa6;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* Data rows — pill removed to group header, so 3-col layout */
.rec-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  background: transparent;
}
.rec-row:last-child { border-bottom: none; }
.rec-row:hover {
  background: rgba(56,189,248,0.06);
  text-decoration: none;
}
.rec-row-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.4;
}
.rec-row-meta {
  font-size: 0.75rem;
  color: #7a8fa6; /* lifted from #475569 → passes 4.5:1 AA */
  text-align: right;
  white-space: nowrap;
}
.rec-row-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  text-align: right;
  white-space: nowrap;
}

/* ── PEER REVIEW ── */
.rec-peer-stats {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.rec-peer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.rec-peer-stat:last-child { border-right: none; }
.rec-peer-val {
  font-size: 2rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rec-peer-lbl {
  font-size: 0.7rem;
  color: #8094aa; /* lifted from #64748b */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}
.rec-peer-countries {
  font-size: 0.78rem;
  color: #8094aa;
  margin-bottom: 22px;
  line-height: 1.7;
}
.rec-peer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.rec-peer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.rec-peer-item:nth-child(2n) { border-right: none; }
.rec-peer-item:nth-last-child(-n+2) { border-bottom: none; }
.rec-peer-item:hover {
  background: rgba(56,189,248,0.05);
  text-decoration: none;
}
.rec-peer-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.rec-peer-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: #cbd5e1;
  flex: 1;
  line-height: 1.4;
}
.rec-peer-link {
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Footer note */
.rec-note {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 44px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid rgba(56,189,248,0.2);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}
.cert-logo {
  height: 56px;
  min-width: 56px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 8px;
  padding: 6px;
}

.cert-logo--exin,
.cert-logo--ibm {
  background: #ffffff;
  border-color: rgba(148,163,184,0.45);
  padding: 3px;
  filter: contrast(1.14) saturate(1.08);
}

.cert-logo--ibm {
  padding: 2px;
}

/* =================== CREDENTIALS / CERTIFICATIONS =================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  padding: 24px 22px 20px;
  gap: 0;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 100%);
  opacity: 0;
  transition: opacity .22s;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.28);
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
}
.cert-card:hover::before {
  opacity: 1;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cert-issuer {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.cert-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 6px;
  line-height: 1.4;
  flex: 1;
}

.cert-card p {
  font-size: 0.76rem;
  color: #8094aa;
  margin-bottom: 18px;
  margin-top: 2px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: auto;
  transition: color .18s, gap .18s;
}
.cert-link:hover {
  color: #fff;
  gap: 7px;
}


/* =================== BLOG =================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.2);
}

.blog-card--featured {
  grid-column: span 2;
  border-color: rgba(56,189,248,0.25);
  background: rgba(255,255,255,0.025);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
/* Diagonal gradient accent in top-right corner */
.blog-card--featured::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.blog-card--featured:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.blog-card--featured h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  max-width: 80%;
}
.blog-card--featured p {
  font-size: 0.92rem;
  max-width: 82%;
}

/* Featured eyebrow row */
.blog-featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.blog-badge-featured {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.35);
}
.blog-featured-status {
  font-size: 0.72rem;
  color: #475569;
  font-style: italic;
}

.blog-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fcd34d;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 10px;
  line-height: 1.45;
}

.blog-card p {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.blog-tags span {
  background: rgba(56,189,248,0.07);
  color: #7dd3fc;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(56,189,248,0.15);
}

.blog-link-disabled {
  font-size: 0.76rem;
  color: #7a8fa6;
  font-style: italic;
}


/* =================== CONTACT STRIP =================== */
.contact-strip {
  margin-top: var(--section-gap);
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 16px;
  padding: 52px 48px;
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.contact-text h2 {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.contact-text p {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 500px;
  line-height: 1.65;
}

.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56,189,248,0.3);
  color: #38bdf8;
  transition: background .2s, color .2s, border-color .2s;
}
.contact-btn:hover {
  background: rgba(56,189,248,0.12);
  color: #fff;
  border-color: #38bdf8;
}


/* =================== FOOTER =================== */
.footer {
  margin-top: 96px;
  border-top: 1px solid rgba(56,189,248,0.14);
  background: linear-gradient(180deg, rgba(13,21,37,0.45), rgba(8,13,26,0.85));
  padding: 44px 0 34px;
}

.footer-inner {
  max-width: 1150px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links a,
.footer-socials a,
.footer-copy a {
  text-underline-offset: 3px;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.8rem;
  color: #64748b;
  transition: color .2s;
}
.footer-links a:hover { color: #38bdf8; }

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-socials a {
  color: #64748b;
  display: flex;
  align-items: center;
  transition: color .2s, transform .2s;
}
.footer-socials a:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.76rem;
  color: #475569;
}
.footer-copy a { color: #475569; }
.footer-copy a:hover { color: #38bdf8; }


/* =================== LIGHTBOX =================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.lightbox-close {
  position: fixed;
  top: 22px; right: 28px;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0.6;
  pointer-events: none;
}
.lightbox:hover .lightbox-close { opacity: 1; }


/* =================== MINI GALLERY MODAL =================== */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-modal[hidden] {
  display: none !important;
}

.gallery-panel {
  width: min(840px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(13,21,37,0.98), rgba(7,14,28,0.98));
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 14px;
  box-shadow: 0 28px 64px rgba(2, 8, 23, 0.55);
  padding: 18px;
}

.gallery-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.gallery-panel-header h3 {
  font-size: 1rem;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.gallery-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(56,189,248,0.28);
  border-radius: 10px;
  background: rgba(56,189,248,0.1);
  color: #dbeafe;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-stage {
  padding: 0;
  border: 1px solid rgba(56,189,248,0.24);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  cursor: zoom-in;
}

.gallery-stage img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  background: rgba(10,14,26,0.7);
  display: block;
}

.gallery-caption {
  font-size: 0.78rem;
  color: #9fb1c9;
  margin-bottom: 12px;
}

.gallery-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 8px;
  background: rgba(56,189,248,0.1);
  color: #e2e8f0;
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-tile {
  padding: 0;
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}

.gallery-tile.is-active {
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.4);
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(10,14,26,0.7);
  transition: transform .2s;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.03);
}


/* =================== SCROLL REVEAL =================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0d1525; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }


/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  :root {
    --header-offset: 88px;
    --section-gap: 96px;
    --subsection-gap: 76px;
  }
  .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    padding: 8px;
    border: 1px solid rgba(56,189,248,0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(12, 25, 46, 0.98), rgba(7, 15, 29, 0.98));
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.55);
    gap: 4px;
    backdrop-filter: blur(10px);
  }
  .mobile-nav-panel a {
    border-bottom: 0;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .hero-title { font-size: 2.6rem; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: auto; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--featured { grid-column: span 1; }
  .speaking-event { grid-template-columns: 1fr; }
  .speaking-main-photo { aspect-ratio: 16 / 9; }
  .speaking-thumbs img { aspect-ratio: 16 / 10; }
  .recognition-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; }
  .contact-inner { flex-direction: column; text-align: center; }
  .comm-row { grid-template-columns: 130px 1fr 60px; }
  .comm-place { display: none; }
  .peer-country-list { margin-bottom: 20px; }
  .peer-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-award-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-row-meta { display: none; }
  .rec-peer-stat { padding: 18px 20px; }
  .rec-peer-list { grid-template-columns: 1fr; }
  .rec-peer-item:nth-child(2n) { border-right: none; }
  .rec-peer-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .rec-peer-item:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  :root {
    --header-offset: 82px;
    --section-gap: 84px;
    --subsection-gap: 64px;
  }
  .nav-inner { padding: 12px 16px; }
  .nav-left { min-width: 0; }
  .nav-name { font-size: 1.02rem; }
  .nav-role { font-size: 0.66rem; }
  .mobile-nav-panel {
    left: 10px;
    right: 10px;
    border-radius: 12px;
  }
  .hero-section {
    padding: 120px 20px 72px;
    min-height: calc(100vh - var(--header-offset) + 4px);
  }
  .hero-title { font-size: 2rem; }
  .main-wrapper > .section:first-of-type { margin-top: calc(var(--section-gap) - 12px); }
  .metrics-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .research-card { grid-template-columns: 1fr; gap: 10px; }
  .speaking-main-photo { aspect-ratio: 16 / 10; }
  .speaking-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .speaking-thumbs img { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-viewer { grid-template-columns: 34px 1fr 34px; }
  .gallery-nav-btn { width: 34px; height: 34px; }
  .cert-logo { width: 50px; height: 50px; }
  .comm-row { grid-template-columns: 110px 1fr 50px; }
  .peer-review-stats { gap: 10px; }
  .peer-stat-box {
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
  }
  .peer-country-list {
    font-size: 0.8rem;
    margin-bottom: 18px;
  }
  .peer-grid { grid-template-columns: 1fr; }
  .rec-award-grid { grid-template-columns: 1fr; }
  .rec-award-visual,
  .rec-award-visual--photo img { height: 110px; }
  /* Committee rows: name flex + meta hidden + link */
  .rec-row { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px 12px 20px; }
  .rec-row-meta { display: none; }
  /* Peer stats: vertical stack on very small screens */
  .rec-peer-stats { flex-direction: column; }
  .rec-peer-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 16px 20px; flex-direction: row; align-items: baseline; gap: 10px; }
  .rec-peer-stat:last-child { border-bottom: none; }
  .rec-peer-val { font-size: 1.5rem; }
  .rec-peer-list { grid-template-columns: 1fr; }
  .rec-peer-item:nth-child(2n) { border-right: none; }
  .rec-peer-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .rec-peer-item:last-child { border-bottom: none; }
  .contact-strip { padding: 32px 20px; }
}

@media (max-width: 360px) {
  .rec-award-grid { grid-template-columns: 1fr; }
  .rec-row { gap: 8px; padding: 10px 12px 10px 16px; }
  .hero-photo-ring { width: 148px; height: 148px; }
  .hero-quicklinks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =================== PRINT STYLESHEET =================== */
@media print {
  /* Page setup */
  @page {
    margin: 18mm 14mm;
    size: A4;
  }

  /* Reset colors for print */
  *, *::before, *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #ccc !important;
    color: #000 !important;
  }

  body {
    font-size: 10pt;
    line-height: 1.55;
    color: #000 !important;
    background: #fff !important;
  }

  /* Hide interactive / decorative chrome */
  .site-header,
  .mobile-nav-toggle,
  .mobile-nav-panel,
  .hero-bg,
  .hero-quicklinks,
  .hero-buttons,
  .hero-pills,
  .hero-right,
  .gallery-btn,
  .rec-row-link,
  .rec-peer-link,
  .cert-link,
  .contact-strip,
  footer,
  #lightbox,
  #galleryModal,
  .blog-link-disabled,
  .blog-card--featured::before,
  .metric-box::before,
  .cert-card::before,
  .blog-featured-status {
    display: none !important;
  }

  /* Flatten layout — single column */
  .main-wrapper {
    padding: 0;
    max-width: 100%;
  }

  .section {
    padding: 0;
    margin-top: 24pt;
    page-break-inside: avoid;
  }

  .section-header h2 {
    font-size: 14pt;
    font-weight: 700;
    border-bottom: 1.5pt solid #000;
    padding-bottom: 4pt;
    margin-bottom: 10pt;
  }

  /* Hero — show as simple name header */
  .hero-section {
    padding: 0 0 12pt;
    min-height: unset;
    margin-bottom: 0;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-kicker {
    font-size: 8pt;
    color: #444 !important;
    margin-bottom: 4pt;
  }
  .hero-title {
    font-size: 22pt;
    margin-bottom: 6pt;
  }
  .hero-desc {
    font-size: 10pt;
    max-width: 100%;
  }

  /* About — stack photo + text */
  .about-grid {
    grid-template-columns: 100px 1fr;
    gap: 16pt;
  }
  .about-photo {
    width: 90pt;
    max-height: 120pt;
    border: 1pt solid #ccc;
  }

  /* Metrics — 4 inline boxes */
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8pt;
  }
  .metric-box {
    border: 1pt solid #ccc;
    padding: 8pt;
    border-radius: 4pt;
  }
  .metric-value {
    font-size: 14pt;
    font-weight: 700;
  }

  /* Skill strip — inline tags */
  .skill-tags span {
    border: 1pt solid #888;
    padding: 2pt 6pt;
    border-radius: 3pt;
    font-size: 8pt;
    margin: 2pt;
  }

  /* Cards — flatten to single column */
  .work-grid,
  .cert-grid,
  .blog-grid,
  .rec-award-grid,
  .rec-peer-list {
    grid-template-columns: 1fr !important;
    gap: 8pt;
  }
  .work-card--featured,
  .blog-card--featured {
    grid-column: span 1 !important;
  }

  .work-card,
  .cert-card,
  .blog-card,
  .rec-award-card {
    border: 1pt solid #ccc;
    padding: 10pt;
    border-radius: 4pt;
    page-break-inside: avoid;
  }

  /* Speaking — stack photo + info */
  .speaking-event {
    grid-template-columns: 1fr;
    border: 1pt solid #ccc;
    padding: 10pt;
    page-break-inside: avoid;
  }
  .speaking-main-photo,
  .speaking-thumbs {
    display: none;
  }

  /* Research cards */
  .research-card {
    border-bottom: 0.5pt solid #ccc;
    padding: 8pt 0;
    page-break-inside: avoid;
  }

  /* Committee table */
  .rec-table {
    border: 1pt solid #ccc;
  }
  .rec-row {
    grid-template-columns: 1fr auto;
    border-bottom: 0.5pt solid #eee;
    padding: 6pt 8pt;
  }
  .rec-group-header {
    background: #f5f5f5 !important;
    padding: 5pt 8pt;
  }

  /* Peer review stats */
  .rec-peer-stats {
    flex-direction: row;
    border: 1pt solid #ccc;
  }
  .rec-peer-stat {
    border-right: 0.5pt solid #ccc;
    padding: 8pt 16pt;
  }
  .rec-peer-val {
    font-size: 14pt;
    font-weight: 700;
  }

  /* Tags — flatten */
  .work-tags span,
  .speaking-tags span,
  .research-tags span,
  .blog-tags span {
    border: 0.5pt solid #888;
    font-size: 7pt;
    padding: 1pt 5pt;
  }

  /* Links — show href inline */
  a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
    color: #444 !important;
  }
  /* But not nav/internal links */
  a[href^="#"]::after,
  .rec-row::after,
  .cert-link::after {
    content: none;
  }

  /* Ensure reveal elements are visible */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

