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

:root {
  --navy:       #1f1412;
  --teal:       #d73f3f;
  --teal-light: #e86060;
  --gray:       #9e8a8a;
  --light:      #fff7f6;
  --white:      #ffffff;
  --text:       #2c1a1a;
  --border:     #f0d8d8;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(100,20,20,.07);
  --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: #c49898;
  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: #c49898;
  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(20,8,8,.82) 50%, rgba(20,8,8,.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: #3a1a1a;
  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: #3a1a1a;
  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: #c49898;
  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: #5a3e3e; 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-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: #5a3e3e;
  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: #5a3e3e;
  margin-bottom: .6rem;
  line-height: 1.6;
}

.timeline-detail .impact {
  font-size: .88rem;
  color: #5a3e3e;
  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;
}

/* =============================================
   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: #5a3e3e;
  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(100,20,20,.12);
  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: #5a3e3e;
  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(100,20,20,.12);
  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: #5a3e3e;
  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);
}

.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: #5a3e3e;
  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 {
  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 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: #5a3e3e; }

/* =============================================
   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: #5a3e3e; }

/* =============================================
   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 #d73f3f;
  border-radius: 10px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: 0 1px 6px rgba(100,20,20,.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: #d73f3f; }
.talk-card.tag-event     { border-left-color: #2980b9; }
.talk-card.tag-training  { border-left-color: #e67e22; }
.talk-card.tag-interview { border-left-color: #27ae60; }

.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(100,20,20,.14);
  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(215,63,63,.1);   color: #c0392b; }
.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(39,174,96,.11);  color: #1a7a47; }

.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: #8a6a6a;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.talk-card.tag-talk      .talk-card-role { color: #c0392b; }
.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: #1a7a47; }
.talk-card-role {
  font-size: .72rem;
  font-weight: 600;
}

.talk-card-desc {
  font-size: .78rem;
  color: #6a4a4a;
  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(100,20,20,.1);
  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(215,63,63,.12); color: #c0392b; }
.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(39,174,96,.12);  color: #1a7a47; }

.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: #f8f0f0;
  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(215,63,63,.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: #c49898;
  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: #5a3e3e;
  margin-bottom: 1rem;
}

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

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

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

.tech-tag {
  background: var(--navy);
  color: #f0b8b8;
  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: #f0b8b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

/* impact highlight box */
.impact-highlight {
  background: #fff0ef;
  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 #e8d0d0;
  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: #7a5555;
  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: #7a5555;
  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: #f0b8b8;
  font-size: .95rem;
  margin-bottom: .3rem;
}

.osm-syria-join-text p {
  color: #c8a0a0;
  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 #e8d0d0;
  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(31, 20, 18, 0.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; }
}
