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

:root {
  --navy:       #111111;
  --teal:       #ce1126;
  --teal-light: #e8243a;
  --green:      #007a3d;
  --gray:       #888888;
  --light:      #f5f5f5;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --border:     #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }

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

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  height: 46px;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.nav-brand {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
  text-decoration: none;
  white-space: nowrap;
}

/* hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #aaaaaa;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* animate to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: #aaaaaa;
  font-size: .85rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */
section {
  padding: 80px 2rem;
}

section:nth-child(even) {
  background: var(--light);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

/* fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   HERO
   ============================================= */
.banner-credit {
  position: absolute;
  bottom: .6rem;
  right: .9rem;
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
  z-index: 1;
  pointer-events: none;
}

#about {
  position: relative;
  color: var(--white);
  padding: 100px 2rem;
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.82) 50%, rgba(0,0,0,.55));
  pointer-events: none;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--teal);
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--teal);
  background: #1a1a1a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .8rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.hero-text h1 span { color: var(--teal); }

.hero-full-name {
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  letter-spacing: .08em;
  margin: -.3rem 0 .6rem;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #aaaaaa;
  margin-bottom: .4rem;
}

.hero-location {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.hero-location svg { vertical-align: middle; margin-right: 4px; }

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.2rem;
  border-radius: 24px;
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); color: var(--white); }

.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* =============================================
   MISSION / VALUES
   ============================================= */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.mission-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.mission-card p { font-size: .84rem; color: #4a4a4a; margin: 0; line-height: 1.55; }

/* =============================================
   WORK EXPERIENCE — TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--teal);
  opacity: .3;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-logo-link {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.timeline-logo-link:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.timeline-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  padding: 4px;
}
.timeline-item:has(.timeline-logo) {
  padding-right: 68px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-period {
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: .2rem;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.timeline-org {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: .6rem;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
}

.timeline-bullets li {
  font-size: .9rem;
  padding-left: 1.2rem;
  position: relative;
  color: #4a4a4a;
  margin-bottom: .25rem;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
}

.timeline-detail {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.timeline-detail p {
  font-size: .88rem;
  color: #4a4a4a;
  margin-bottom: .6rem;
  line-height: 1.6;
}

.timeline-detail .impact {
  font-size: .88rem;
  color: #4a4a4a;
  background: var(--light);
  border-left: 3px solid var(--teal);
  padding: .5rem .75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: .75rem;
}

.timeline-detail .timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.timeline-ext-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s;
}
.timeline-ext-link:hover { opacity: 1; }

/* =============================================
   PROFILE PAGE BANNER
   ============================================= */
.profile-page-banner {
  background: var(--teal);
  padding: 1rem 2rem;
}

.profile-page-label {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .3px;
}

.profile-page-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  margin-top: .2rem;
}

/* =============================================
   PROFILE SNAPSHOT
   ============================================= */
.snapshot-intro {
  color: #4a4a4a;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.snapshot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.snapshot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  color: inherit;
}

.snapshot-card-icon { display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; margin-bottom: .35rem; color: var(--teal); }

.snapshot-card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.snapshot-card-summary {
  font-size: .85rem;
  color: #4a4a4a;
  flex: 1;
  line-height: 1.5;
}

.snapshot-card-link {
  font-size: .82rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: .5rem;
}

/* =============================================
   CONTRIBUTIONS
   ============================================= */
.contributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contribution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.contribution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  color: inherit;
}

.contribution-card-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--teal);
  margin-bottom: .5rem;
}

.contribution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.contribution-card p {
  font-size: .88rem;
  color: #4a4a4a;
  flex: 1;
  margin-bottom: 1rem;
}

.contribution-card-footer {
  font-size: .82rem;
  color: var(--teal);
  font-weight: 600;
}

/* =============================================
   SKILLS
   ============================================= */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-group h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gray);
  margin-bottom: .75rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.skill-tag {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .8rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-weight: 500;
}

/* =============================================
   EDUCATION
   ============================================= */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.education-year {
  min-width: 60px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
  padding-top: .15rem;
}

.education-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.education-item p {
  font-size: .88rem;
  color: var(--gray);
}

.education-logo {
  flex-shrink: 0;
  margin-left: auto;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  padding: 4px;
}

.certifications {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.certifications h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cert-list li {
  font-size: .9rem;
  color: #4a4a4a;
  padding-left: 1.2rem;
  position: relative;
}

.cert-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* =============================================
   VOLUNTEERING
   ============================================= */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.volunteer-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.volunteer-card:has(.volunteer-logo) { padding-right: 5rem; }

.volunteer-logo {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  padding: 4px;
  border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
a.volunteer-logo:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.volunteer-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.volunteer-card .period { font-size: .8rem; color: var(--teal); font-weight: 600; margin-bottom: .4rem; }
.volunteer-card p { font-size: .88rem; color: #4a4a4a; }

/* =============================================
   TALKS & ARTICLES
   ============================================= */
.talks-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.talk-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.talk-year {
  min-width: 50px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
  padding-top: .1rem;
}

.talk-item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.talk-item p { font-size: .88rem; color: #4a4a4a; }

/* =============================================
   TALKS CAROUSEL
   ============================================= */
.talks-carousel-wrap {
  position: relative;
  padding: 0 40px;
  width: calc(100% + 4rem);
  margin-left: -2rem;
}

/* fade masks to hint overflow */
.talks-carousel-wrap::before,
.talks-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 16px;
  width: 52px;
  z-index: 2;
  pointer-events: none;
  transition: opacity .25s ease;
}
.talks-carousel-wrap::before {
  left: 40px;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.talks-carousel-wrap::after {
  right: 40px;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}
.talks-carousel-wrap.at-start::before { opacity: 0; }
.talks-carousel-wrap.at-end::after   { opacity: 0; }

.talks-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 1rem;
  padding: 0 1rem 16px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.talks-carousel::-webkit-scrollbar { display: none; }
.talks-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.talks-carousel.is-dragging .talk-card { pointer-events: none; }

/* ── cards ── */
.talk-card {
  flex: 0 0 min(310px, calc(100vw - 96px));
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid #ce1126;
  border-radius: 10px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .22s ease, transform .22s ease;
}
.talk-card.tag-talk      { border-left-color: #ce1126; }
.talk-card.tag-event     { border-left-color: #2980b9; }
.talk-card.tag-training  { border-left-color: #e67e22; }
.talk-card.tag-interview { border-left-color: #007a3d; }

.talk-card-thumb {
  margin: -1.1rem -1.15rem .5rem;
  height: 148px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  flex-shrink: 0;
  background: #f0f0f0;
}
.talk-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.talk-card:hover .talk-card-thumb img { transform: scale(1.04); }

.talk-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-3px);
  color: inherit;
}

.talk-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.talk-tag {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 20px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.talk-tag.tag-talk      { background: rgba(206,17,38,.1);   color: #a50e1f; }
.talk-tag.tag-event     { background: rgba(41,128,185,.11); color: #1a6fa0; }
.talk-tag.tag-training  { background: rgba(230,115,0,.12);  color: #b35a00; }
.talk-tag.tag-interview { background: rgba(0,122,61,.11);  color: #006633; }

.talk-card-year {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray);
  flex-shrink: 0;
}

.talk-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.38;
  margin: 0;
}

.talk-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .55rem;
}
.talk-card-location {
  font-size: .72rem;
  color: #6a6a6a;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.talk-card.tag-talk      .talk-card-role { color: #a50e1f; }
.talk-card.tag-event     .talk-card-role { color: #1a6fa0; }
.talk-card.tag-training  .talk-card-role { color: #b35a00; }
.talk-card.tag-interview .talk-card-role { color: #006633; }
.talk-card-role {
  font-size: .72rem;
  font-weight: 600;
}

.talk-card-desc {
  font-size: .78rem;
  color: #555555;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.talk-card-arrow {
  align-self: flex-end;
  color: var(--gray);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.talk-card:hover .talk-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── nav arrows ── */
.carousel-btn {
  position: absolute;
  top: calc(50% - 10px);
  transform: translateY(-50%);
  z-index: 3;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  transition: background .2s, color .2s, border-color .2s, opacity .25s;
}
.carousel-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.carousel-btn.disabled { opacity: 0; pointer-events: none; }
.carousel-btn-prev { left: 2px; }
.carousel-btn-next { right: 2px; }

/* ── progress bar ── */
.carousel-progress-wrap {
  margin-top: .9rem;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.carousel-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width .2s ease;
  width: 0%;
}

/* talk detail pages */
.talk-page .talk-page-type {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.talk-page .tag-talk     { background: rgba(206,17,38,.12); color: #a50e1f; }
.talk-page .tag-event    { background: rgba(41,128,185,.12); color: #1a6fa0; }
.talk-page .tag-training { background: rgba(230,138,0,.13);  color: #b35a00; }
.talk-page .tag-interview{ background: rgba(0,122,61,.12);  color: #006633; }

.talk-page-source {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
  margin-top: .5rem;
}
.talk-page-source:hover { background: var(--teal-light); color: #fff; }

.talk-featured-img {
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  line-height: 0;
}
.talk-featured-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.talk-featured-img.is-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  height: 180px;
}
.talk-featured-img.is-logo img {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.talk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.talk-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  max-width: 48%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.talk-nav-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(206,17,38,.05); }
.talk-nav-btn svg { flex-shrink: 0; }
.talk-nav-btn.talk-nav-next { margin-left: auto; }

.talk-featured-img figcaption {
  font-size: 0.72rem;
  color: var(--gray);
  padding: 0.35rem 0.75rem 0.5rem;
  background: rgba(0,0,0,.03);
  line-height: 1.4;
}

.talk-featured-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
}
.talk-featured-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.talk-featured-gallery figcaption {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--gray);
  padding: 0.35rem 0.75rem 0.5rem;
  background: rgba(0,0,0,.03);
  line-height: 1.4;
}
@media (max-width: 500px) {
  .talk-featured-gallery { grid-template-columns: 1fr; }
  .talk-featured-gallery img { height: 200px; }
}

/* =============================================
   CONTACT
   ============================================= */
#contact { background: var(--navy); color: var(--white); }

#contact .section-title { color: var(--white); }

.contact-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #aaaaaa;
  font-size: .95rem;
  transition: color var(--transition);
}

.contact-link:hover { color: var(--teal); }

.contact-link svg { flex-shrink: 0; }

/* =============================================
   CONTRIBUTION DETAIL PAGE
   ============================================= */
.contribution-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--teal);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding: .4rem .8rem;
  border: 1px solid var(--teal);
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.back-link:hover {
  background: var(--teal);
  color: var(--navy);
}

.contribution-page header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.contribution-page .page-tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: .5rem;
}

.contribution-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}

.contribution-page .subtitle {
  font-size: 1rem;
  color: var(--gray);
}

.contribution-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.meta-item label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: .2rem;
}

.meta-item span {
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
}

.contribution-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}

.contribution-body p {
  font-size: .95rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.contribution-body ul {
  margin: 0 0 1rem 1.2rem;
}

.contribution-body li {
  font-size: .95rem;
  color: #4a4a4a;
  margin-bottom: .35rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.tech-tag {
  background: var(--navy);
  color: #cccccc;
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 20px;
}

/* fAIr stat grid */
.fair-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.fair-stat-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.fair-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: .35rem;
}

.fair-stat-label {
  font-size: .78rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

/* impact highlight box */
.impact-highlight {
  background: #fff3f4;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
}

/* pillar grid (fAIr 5 pillars) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.75rem;
}

.pillar-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .4rem;
  color: var(--teal);
}

.pillar-item strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .35rem;
}

.pillar-item p {
  font-size: .82rem;
  color: #5a5a5a;
  margin: 0;
  line-height: 1.5;
}

/* workflow steps */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1rem 0 2rem;
}

.workflow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  margin-top: .1rem;
}

.step-body strong {
  display: block;
  font-size: .92rem;
  color: var(--navy);
  margin-bottom: .2rem;
}

.step-body p {
  font-size: .88rem;
  color: #5a5a5a;
  margin: 0;
  line-height: 1.6;
}

/* OSM Syria join banner */
.osm-syria-join {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0 2.5rem;
}
.osm-syria-join-text {
  flex: 1;
  min-width: 0;
}

.osm-syria-join-text strong {
  display: block;
  color: #cccccc;
  font-size: .95rem;
  margin-bottom: .3rem;
}

.osm-syria-join-text p {
  color: #aaaaaa;
  font-size: .85rem;
  margin: 0;
  line-height: 1.5;
}

.osm-syria-join-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: .65rem 1.2rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}

.osm-syria-join-btn:hover {
  background: var(--teal-light);
}

@media (max-width: 560px) {
  .osm-syria-join { flex-direction: column; align-items: flex-start; }
}

/* fAIr links with icons */
.fair-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.fair-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: .5rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.fair-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.fair-link svg { flex-shrink: 0; }

/* placeholder notice */
.placeholder-notice {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-left: 4px solid #ffc107;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: .9rem;
  color: #5a4000;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  color: var(--gray);
  text-align: center;
  padding: 1.5rem;
  font-size: .82rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
  /* nav: switch to hamburger */
  .nav {
    position: relative;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 1.25rem;
    gap: 0;
  }

  .nav.scrolled { min-height: 48px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: .5rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .nav-links.open {
    display: flex;
    background: rgba(10,10,10,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(0,0,0,.45);
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: .6rem .25rem;
    font-size: .9rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: .75rem;
    transition: color var(--transition), border-color var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: transparent;
    border-left-color: var(--teal);
  }

  /* hero */
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-links { justify-content: center; }
  .timeline { padding-left: 1.5rem; }
  .education-item { flex-direction: column; gap: .25rem; }
  .talk-item { flex-direction: column; gap: .25rem; }
  .contact-grid { flex-direction: column; gap: 1rem; }
  .contribution-meta { flex-direction: column; gap: 1rem; }
  .fair-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: 1fr; }
}

/* =============================================
   PROFILE PAGE — STICKY SECTION LABELS
   ============================================= */

.profile-page .section-inner {
  display: grid;
  grid-template-columns: 170px 1fr;
  column-gap: 3rem;
  align-items: start;
}

.profile-page .section-title {
  position: sticky;
  top: 80px;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: none;
  border-left: 3px solid var(--teal);
  padding-left: .7rem;
  padding-bottom: 0;
  margin-bottom: 0;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .profile-page .section-inner {
    display: block;
  }
  .profile-page .section-title {
    position: static;
    display: inline-block;
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: 0;
    border-left: none;
    border-bottom: 3px solid var(--teal);
    padding-left: 0;
    margin-bottom: 2rem;
  }
}

/* =============================================
   LIGHTBOX
   ============================================= */

/* Clickable hint on figure images */
.talk-featured-img img,
.talk-featured-gallery img {
  cursor: zoom-in;
  transition: opacity var(--transition), transform var(--transition);
}
.talk-featured-img img:hover,
.talk-featured-gallery img:hover {
  opacity: .9;
  transform: scale(1.012);
}

/* Overlay */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 8, 7, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* Stage */
.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 90vw;
}

.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6);
  transition: opacity 0.12s ease;
  display: block;
}
.lb-img.lb-switching { opacity: 0; }

.lb-caption {
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
  text-align: center;
  max-width: 72ch;
  line-height: 1.5;
}

/* Close button */
.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.lb-close svg { width: 1.1rem; height: 1.1rem; }
.lb-close:hover { background: rgba(255, 255, 255, .18); }

/* Prev / Next */
.lb-nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.lb-nav svg { width: 1.2rem; height: 1.2rem; }
.lb-nav:hover { background: rgba(255, 255, 255, .18); }

@media (max-width: 540px) {
  .lb-nav { display: none !important; }
  .lb-img { max-height: 75vh; border-radius: 4px; }
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10,10,10,.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, .35);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner--show { transform: translateY(0); }
.cookie-banner--hide { transform: translateY(100%); }

/* ---- Compact bar (always visible) ---- */
.cookie-banner__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, .9);
}
.cookie-banner__text strong { color: #fff; }

.cookie-banner__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  opacity: .7;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.cookie-btn {
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
  line-height: 1;
  border: none;
}

/* "More details" — text-link style */
.cookie-btn--more {
  background: transparent;
  color: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 500;
}
.cookie-btn--more:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }

/* Accept (compact bar) */
.cookie-btn--accept {
  background: var(--teal);
  color: #fff;
}
.cookie-btn--accept:hover { opacity: .88; }

/* ---- Details panel ---- */
.cookie-banner__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 0 1.5rem;
}
.cookie-banner__details--open {
  max-height: 600px;
  padding: 1.25rem 1.5rem 1.5rem;
}

.cookie-details__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.cookie-details__intro {
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  margin-bottom: .85rem;
}
.cookie-details__intro strong { color: #fff; }

.cookie-details__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}
.cookie-details__list li {
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  display: flex;
  gap: .5rem;
}
.cookie-details__list li strong { color: #fff; }
.cookie-check {
  color: #5ecfb0;
  flex-shrink: 0;
  font-weight: 700;
}

.cookie-details__tech {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.cookie-details__tech strong { color: rgba(255, 255, 255, .75); }
.cookie-details__tech code {
  background: rgba(255, 255, 255, .1);
  padding: .1em .35em;
  border-radius: 3px;
  font-family: monospace;
  font-size: .95em;
}

.cookie-details__withdraw {
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cookie-details__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Accept (large, in details panel) */
.cookie-btn--accept-lg {
  padding: .6rem 1.75rem;
  font-size: .9375rem;
}

/* "No thanks, decline" — details panel */
.cookie-btn--decline-text {
  background: transparent;
  color: rgba(255, 255, 255, .4);
  font-size: .8125rem;
  font-weight: 400;
  padding: .4rem .25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btn--decline-text:hover { color: rgba(255, 255, 255, .65); }

@media (max-width: 540px) {
  .cookie-btn--decline-text {
    color: rgba(255, 255, 255, .7);
    font-size: .875rem;
    padding: .6rem .25rem;
  }
}

@media (max-width: 540px) {
  .cookie-banner__bar { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cookie-details__actions { flex-direction: column; align-items: flex-start; }
  .cookie-btn--accept-lg { width: 100%; text-align: center; }
}
