/* ================================================
   DESIGN TOKENS — unfold.co inspired
   ================================================ */
:root {
  --bg: #fff9f1;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #eadfce;
  --accent: #665cf6;
  --accent-soft: #eeecff;
  --coral: #ff795f;
  --coral-soft: #ffe5de;
  --mint: #43b995;
  --mint-soft: #dcf6ed;
  --sun: #f3b83f;
  --sun-soft: #fff0c7;
  --sky: #5aa9ea;
  --sky-soft: #dff1ff;
  --radius: 20px;
}

/* ================================================
   BASE RESET
   ================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.04em; margin: 0; }
p { margin: 0 0 16px; }
ul { padding: 0; }
li { margin: 0; }

/* ================================================
   NAVIGATION
   ================================================ */
.nav-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.nav-mark span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  letter-spacing: -0.08em;
  font-weight: 800;
}
.nav-mark-name { font-weight: 750; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.84rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.18s ease; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  padding: 10px 16px;
  border: 1.2px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink) !important;
  font-weight: 650;
  transition: all 0.18s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: white !important;
  border-color: var(--ink);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(40px, 7vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__text { max-width: 680px; }
.hero__kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(3.6rem, 8vw, 8rem);
  font-weight: 780;
  letter-spacing: -0.08em;
  line-height: 0.92;
  margin: 0 0 28px;
}
.hero__lede {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.35;
}
.hero__sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 0 36px;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}
.btn--dark {
  background: var(--ink);
  color: white;
}
.btn--dark:hover {
  background: #3c3d44;
  transform: translateY(-1px);
}
.text-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
}
.text-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.18s ease;
}
.text-link:hover span { transform: translateX(4px); }

.hero__image {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
  aspect-ratio: 0.85;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px 24px 40px 40px;
  filter: saturate(0.88);
}
.portrait-halo {
  position: absolute;
  inset: -6% 4% 0 8%;
  border-radius: 24px 24px 40px 40px;
  background: var(--accent-soft);
  transform: rotate(4deg);
  z-index: -1;
}

/* ================================================
   SECTION
   ================================================ */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 56px);
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section__head h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 1;
}

/* ================================================
   PROJECT CARDS
   ================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.project-card {
  display: block;
  color: var(--ink);
}
.project-card__art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.4;
  border-radius: 22px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover .project-card__art {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(20, 22, 40, 0.12);
}
.project-card__art--clinic {
  background: #d8eef5;
}
.project-card__art--clinic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.65), transparent 50%),
    radial-gradient(circle at 75% 20%, #f0c4a8 0 12%, transparent 12%),
    radial-gradient(circle at 20% 78%, #a8d4cf 0 15%, transparent 15%);
}
/* childandkid card uses a real photo — suppress the decorative green/orange dots */
.project-card__art--clinic.project-card__image::before {
  content: none;
  background: none;
}
.project-card__art--course {
  background: #161522;
}
.project-card__art--course::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(92, 108, 255, 0.75), transparent 36%),
    radial-gradient(circle at 16% 88%, rgba(255, 140, 95, 0.5), transparent 35%);
}
.project-card__art--visionmatch {
  background: #0f1722;
}
.project-card__art--justsaylah {
  background: #fff1e8;
}
/* justsaylah card uses a real photo - suppress the decorative dots */
.project-card__art--justsaylah.project-card__image::before {
  content: none;
  background: none;
}
.project-card__art--finance {
  background: #0b1f17;
}
.project-card__art--finance::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 26%, rgba(16, 185, 129, 0.45), transparent 34%),
    radial-gradient(circle at 22% 80%, rgba(250, 204, 21, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(6, 95, 70, 0.3), transparent 55%);
}
.project-card__art--visionmatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(56, 189, 248, 0.55), transparent 34%),
    radial-gradient(circle at 24% 82%, rgba(16, 185, 129, 0.42), transparent 32%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.25), transparent 55%);
}
.project-card__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.project-card__type {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 8px;
}
.project-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 740;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}
.project-card__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1.2px solid var(--line);
  border-radius: 50%;
  margin-top: 4px;
  transition: all 0.18s ease;
  font-size: 1.1rem;
}
.project-card:hover .project-card__arrow {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ================================================
   ABOUT STATEMENT
   ================================================ */
.section--about {
  padding-top: 0;
  padding-bottom: clamp(80px, 14vw, 180px);
}
.about-statement {
  max-width: 1100px;
}
.about-statement__pre {
  color: var(--muted);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 0;
  line-height: 1.3;
}
.about-statement__headline {
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 1.02;
  margin: 0;
}
.about-statement__headline em {
  color: var(--accent);
  font-style: normal;
}

/* ================================================
   SPEAKING PAGE — sp-main & page-hero
   ================================================ */
.sp-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}
.page-hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(16px, 3vw, 32px);
  max-width: 800px;
}
.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.95;
  margin: 0 0 16px;
}
.page-hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}

/* ================================================
   EVENT POST CARDS
   ================================================ */
.posts-grid {
  display: grid;
  gap: 0;
}
.event-post-card {
  border-top: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px) 0;
}
.event-post-card:last-child {
  border-bottom: 1px solid var(--line);
}
.post-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.post-author-info { flex: 1; min-width: 0; }
.post-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.post-author-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.4;
}
.post-date {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.post-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 10px;
}
.post-body p:last-child { margin: 0; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.post-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 750;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.event-link-row { margin: 0; }
.next-training-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 36px;
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--accent-soft, #eef2ff);
  border: 1px solid var(--accent, #4f46e5);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.next-training-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18);
}
.next-training-banner__label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #4f46e5);
}
.next-training-banner__title {
  flex: 1 1 240px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink, #1a1b1f);
}
.next-training-banner__cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent, #4f46e5);
  white-space: nowrap;
}
.post-linkedin-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.84rem;
  transition: color 0.18s ease;
}
.post-linkedin-link:hover {
  color: var(--accent);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 56px) 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-links { display: flex; align-items: center; gap: 12px; }
.footer-links a:hover { color: var(--ink); }
.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-icon:hover { border-color: currentColor; transform: translateY(-2px); }
.social-icon:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.sp-footer-links { display: flex; align-items: center; gap: 12px; }

/* ================================================
   DARK MODE
   ================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e12;
    --surface: #181820;
    --ink: #eaeaf0;
    --muted: #8a8b94;
    --line: #2a2a34;
    --accent-soft: #25264a;
  }
  .nav-mark span:first-child { background: var(--ink); }
  .nav-cta { background: var(--surface); color: var(--ink) !important; }
  .nav-cta:hover { background: var(--ink); color: white !important; }
  .btn--dark { background: var(--ink); color: var(--bg); }
  .btn--dark:hover { background: #3c3d44; }
  .text-link { color: var(--ink); }
  .project-card { color: var(--ink); }
  .project-card:hover .project-card__arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .site-footer { border-color: var(--line); }
  .event-post-card { color: var(--ink); }
  .post-avatar { background: var(--ink); color: var(--bg); }
  .post-author-name { color: var(--ink); }
  .post-linkedin-link { color: var(--ink); }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   MOBILE
   ================================================ */
@media (max-width: 820px) {
  /* Hamburger nav: collapse links into a dropdown panel */
  .nav-bar { position: relative; padding: 16px clamp(18px, 5vw, 32px); }
  .nav-mark-name { display: none; }
  .nav-toggle {
    display: inline-flex;
    order: 3;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    align-items: center;
  }
  .nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-bar.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-bar.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-bar.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    right: clamp(18px, 5vw, 32px);
    left: clamp(18px, 5vw, 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(20, 22, 40, .14);
    z-index: 40;
  }
  .nav-bar.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--ink);
  }
  .nav-links a:hover { background: var(--accent-soft); }
  .nav-cta { width: 100%; text-align: center; border-color: transparent; }
  /* Theme toggle sits in the nav-bar beside the hamburger, not inside the dropdown */
  .theme-toggle {
    display: inline-flex;
    order: 2;
    width: auto;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: 700 .76rem/1 inherit;
    gap: 6px;
  }
  .nav-bar .theme-toggle { margin-left: auto; }
}
@media (max-width: 760px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: clamp(20px, 5vw, 36px);
    padding-bottom: clamp(28px, 7vw, 56px);
  }
  .interior-main, .sp-main { padding-bottom: clamp(48px, 9vw, 88px); }
  .interior-hero { padding: clamp(32px, 8vw, 56px) 0 clamp(24px, 5vw, 40px); }
  .interior-hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .section-block { padding: 0 0 clamp(32px, 7vw, 56px); }
  .section-block > h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 16px; }
  .profile-grid { gap: clamp(24px, 6vw, 40px); }
  .profile-sidebar { padding: 20px; }
  .timeline-item { padding: 16px 18px; }
  .creds-list li { padding: 9px 0; }
  .tool-chip { padding: 7px 11px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
    padding-bottom: 24px;
    gap: 16px;
  }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); margin-bottom: 14px; }
  .hero__image {
    justify-self: start;
    width: min(58vw, 230px);
    margin: 0;
  }
  /* Remove decorative halos/blobs on mobile - they read as empty whitespace */
  .portrait-halo, .hero::before, .hero__image::before { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .section { padding-left: 20px; padding-right: 20px; }
  .section__head { flex-direction: column; gap: 8px; }
  .site-footer { flex-direction: column; gap: 12px; }
  .page-hero { padding-left: 0; padding-right: 0; }
  .event-post-card { padding-left: 0; padding-right: 0; }
  .post-header { gap: 10px; }
}

/* Interior pages */
.interior-main, .sp-main { max-width:1320px; margin:0 auto; padding:0 clamp(24px,5vw,56px) clamp(72px,10vw,128px); }
.interior-hero { max-width:820px; padding:clamp(40px,7vw,80px) 0 clamp(32px,5vw,56px); }
.interior-hero h1 { font-size:clamp(3.5rem,8vw,7rem); font-weight:780; letter-spacing:-.075em; line-height:.94; margin-bottom:20px; }
.interior-hero > p:last-child { max-width:600px; color:var(--muted); font-size:clamp(1rem,1.7vw,1.22rem); }
.project-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-card__image img { transform:scale(1.025); }
.project-card h2 { font-size:clamp(1.35rem,2.4vw,2rem); font-weight:740; letter-spacing:-.05em; margin:0 0 8px; }

/* Full profile */
.profile-grid { display:grid; grid-template-columns:minmax(240px,.65fr) minmax(0,1.5fr); gap:clamp(28px,5vw,64px); align-items:start; }
.profile-sidebar { position:sticky; top:32px; padding:28px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.profile-sidebar h2 { font-size:1.7rem; margin:18px 0 6px; }
.lt-avatar { width:74px; height:74px; display:grid; place-items:center; border-radius:22px; background:var(--ink); color:var(--bg); font-weight:800; }
.lt-tagline { color:var(--muted); font-size:.86rem; }
.creds-list { list-style:none; margin:24px 0 0; border-top:1px solid var(--line); }
.creds-list li { padding:9px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:.82rem; }
.section-block { padding:0 0 clamp(36px,5vw,64px); }
.section-block > h2 { font-size:clamp(2rem,4vw,3.6rem); margin-bottom:24px; }
.section-block > p { color:var(--muted); max-width:760px; }
.timeline { display:grid; gap:14px; }
.timeline-item { padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.36); }
.timeline-item h3 { font-size:1.08rem; letter-spacing:-.025em; margin-bottom:10px; }
.timeline-item p { color:var(--muted); font-size:.9rem; margin-bottom:9px; }
.tools-grid { display:flex; flex-wrap:wrap; gap:8px; }
.tool-chip { padding:9px 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font-size:.8rem; font-weight:650; }
.button { display:inline-flex; justify-content:center; padding:12px 18px; border-radius:999px; font-size:.82rem; font-weight:700; }
.button.primary { background:var(--ink); color:var(--bg); }
.button.secondary { border:1px solid var(--line); background:var(--surface); }
.contact-block { display:grid; grid-template-columns:1fr auto; gap:24px; padding:26px; border:1px solid var(--line); border-radius:20px; }
.contact-form { display:flex; gap:10px; align-items:center; }

/* Past events: strong visual rhythm and scroll reveal */
.event-list { gap:18px; padding-bottom:72px; }
.event-post-card { position:relative; overflow:hidden; padding:clamp(24px,4vw,42px); border:1px solid var(--line) !important; border-radius:22px; background:var(--surface); box-shadow:0 1px 0 rgba(20,20,25,.03); }
.event-post-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--accent); opacity:.78; }
.event-post-card:nth-child(even)::before { background:#e88b63; }
.event-post-card .post-body { max-width:840px; margin:18px 0; }
@supports (animation-timeline:view()) {
  .event-post-card { animation:event-reveal linear both; animation-timeline:view(); animation-range:entry 8% cover 28%; }
  @keyframes event-reveal { from { opacity:.88; transform:translateY(24px) scale(.99); } to { opacity:1; transform:none; } }
}

@media (max-width:760px) {
  .nav-bar { align-items:flex-start; }
  .nav-links { justify-content:flex-end; row-gap:8px; }
  .nav-links a:nth-child(2), .nav-links a:nth-child(3) { display:inline; }
  .nav-cta { display:none; }
  .profile-grid { grid-template-columns:1fr; }
  .profile-sidebar { position:static; }
  .contact-block { grid-template-columns:1fr; }
  .contact-form { align-items:stretch; flex-direction:column; }
  .event-post-card { padding:22px 20px 22px 24px; }
}

/* 2026 friendly colour layer */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255,121,95,.13), transparent 25rem),
    radial-gradient(circle at 92% 14%, rgba(90,169,234,.12), transparent 26rem),
    var(--bg);
}
.nav-bar { position:relative; z-index:10; }
.nav-mark span:first-child {
  background:linear-gradient(145deg,var(--accent),#8b80ff);
  box-shadow:0 8px 22px rgba(102,92,246,.24);
  transform:rotate(-3deg);
}
.nav-links a[aria-current="page"] { color:var(--accent); }
.nav-cta {
  border-color:transparent;
  background:var(--sun-soft);
  color:#79520b !important;
  box-shadow:0 6px 18px rgba(243,184,63,.16);
}
.nav-cta:hover { background:var(--sun); color:#352100 !important; border-color:transparent; transform:translateY(-2px); }
.hero { position:relative; }
.hero::before {
  content:""; position:absolute; width:150px; height:150px; left:45%; top:8%; z-index:-1;
  border-radius:44% 56% 62% 38%; background:var(--mint-soft); transform:rotate(18deg);
}
.hero__kicker { color:var(--coral); }
.hero h1 { color:var(--ink); text-shadow:0 2px 0 rgba(255,255,255,.7); }
.hero__lede { color:var(--accent); }
.btn--dark {
  background:linear-gradient(135deg,var(--accent),#8177ff);
  color:#fff; box-shadow:0 12px 28px rgba(102,92,246,.25);
}
.btn--dark:hover { background:linear-gradient(135deg,#554ae8,#766af8); box-shadow:0 16px 34px rgba(102,92,246,.32); }
.hero__image::before {
  content:""; position:absolute; inset:-16px 12px 14px -16px; z-index:-1;
  border-radius:42px 30px 52px 34px; background:linear-gradient(145deg,var(--sun-soft),var(--coral-soft)); transform:rotate(-3deg);
}
.hero__image img { border:5px solid #fff; box-shadow:0 22px 55px rgba(73,55,36,.16); }
.section--projects { position:relative; }
.section--projects::before {
  content:""; position:absolute; inset:7% clamp(10px,2vw,28px) 3%; z-index:-1;
  border-radius:42px; background:rgba(255,255,255,.55); border:1px solid rgba(234,223,206,.75);
}
.section__head h2, .interior-hero h1, .page-hero h1 { color:var(--ink); }
.project-card__art { border:1px solid rgba(23,32,51,.06); box-shadow:0 12px 30px rgba(64,47,28,.08); }
.project-card__art--clinic { background:linear-gradient(145deg,var(--sky-soft),var(--mint-soft)); }
.project-card__art--clinic::before {
  background:
    radial-gradient(circle at 76% 23%, var(--coral) 0 10%, transparent 10.5%),
    radial-gradient(circle at 23% 76%, var(--mint) 0 14%, transparent 14.5%),
    linear-gradient(135deg,rgba(255,255,255,.78),transparent 52%);
}
.project-card__art--course { background:linear-gradient(140deg,#302965,#665cf6 58%,#ff795f); }
.project-card__type { color:var(--coral); }
.project-card:nth-child(2) .project-card__type { color:var(--accent); }
.project-card__arrow { background:var(--surface); border-color:transparent; box-shadow:0 5px 16px rgba(23,32,51,.1); }
.project-card:hover .project-card__arrow { background:var(--coral); border-color:var(--coral); }
.profile-sidebar { background:linear-gradient(160deg,#fff,var(--sky-soft)); border-color:#cde8fa; box-shadow:0 18px 45px rgba(62,121,161,.1); }
.lt-avatar { background:linear-gradient(145deg,var(--accent),#8a7fff); box-shadow:0 10px 24px rgba(102,92,246,.22); }
.timeline-item { background:#fff; box-shadow:0 8px 24px rgba(63,48,31,.055); transition:transform .2s ease,border-color .2s ease; }
.timeline-item:nth-child(4n+1) { border-left:4px solid var(--coral); }
.timeline-item:nth-child(4n+2) { border-left:4px solid var(--accent); }
.timeline-item:nth-child(4n+3) { border-left:4px solid var(--mint); }
.timeline-item:nth-child(4n) { border-left:4px solid var(--sun); }
.timeline-item:hover { transform:translateY(-2px); border-color:rgba(102,92,246,.25); }
.tool-chip:nth-child(4n+1) { background:var(--coral-soft); border-color:transparent; }
.tool-chip:nth-child(4n+2) { background:var(--accent-soft); border-color:transparent; }
.tool-chip:nth-child(4n+3) { background:var(--mint-soft); border-color:transparent; }
.tool-chip:nth-child(4n) { background:var(--sun-soft); border-color:transparent; }
.contact-block { background:linear-gradient(135deg,var(--accent-soft),var(--sky-soft)); border-color:transparent; }
.event-post-card { box-shadow:0 12px 32px rgba(63,48,31,.07); }
.event-post-card:nth-child(4n+1) { background:linear-gradient(120deg,#fff,var(--coral-soft)); }
.event-post-card:nth-child(4n+2) { background:linear-gradient(120deg,#fff,var(--accent-soft)); }
.event-post-card:nth-child(4n+3) { background:linear-gradient(120deg,#fff,var(--mint-soft)); }
.event-post-card:nth-child(4n) { background:linear-gradient(120deg,#fff,var(--sun-soft)); }
.event-post-card:nth-child(4n+1)::before { background:var(--coral); }
.event-post-card:nth-child(4n+2)::before { background:var(--accent); }
.event-post-card:nth-child(4n+3)::before { background:var(--mint); }
.event-post-card:nth-child(4n)::before { background:var(--sun); }
.post-avatar { background:linear-gradient(145deg,var(--accent),#887dff); }
.post-tag { background:#fff; color:var(--ink); box-shadow:0 3px 10px rgba(23,32,51,.08); }
.site-footer { margin-bottom:18px; border-top-color:rgba(234,223,206,.9); }

@media (prefers-color-scheme: dark) {
  body { background:linear-gradient(145deg,#15182a,#1e1930); }
  .section--projects::before { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.08); }
  .timeline-item, .event-post-card, .profile-sidebar { background:#202337; }
  .event-post-card:nth-child(n) { background:linear-gradient(120deg,#202337,#29263d); }
  .post-tag { background:#30344d; color:#f4f1ff; }
  .hero__image img { border-color:#292a3b; }
}

/* Manual light / dark background control */
.theme-toggle {
  appearance:none; border:1px solid var(--line); background:var(--surface); color:var(--ink);
  min-height:38px; padding:8px 12px; border-radius:999px; display:inline-flex; align-items:center;
  justify-content:center; gap:7px; font:700 .76rem/1 inherit; cursor:pointer;
  box-shadow:0 5px 16px rgba(23,32,51,.08); transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.theme-toggle:hover { transform:translateY(-1px); border-color:var(--accent); }
.theme-toggle:focus-visible { outline:3px solid color-mix(in srgb,var(--accent) 35%,transparent); outline-offset:3px; }
.theme-toggle span:first-child { font-size:1rem; line-height:1; }

html[data-theme="light"] {
  --bg:#fff9f1; --surface:#ffffff; --ink:#172033; --muted:#586174; --line:#e3d6c3;
  --accent:#665cf6; --accent-soft:#eeecff; color-scheme:light;
}
html[data-theme="light"] body {
  background:radial-gradient(circle at 8% 4%,rgba(255,121,95,.13),transparent 25rem),radial-gradient(circle at 92% 14%,rgba(90,169,234,.12),transparent 26rem),var(--bg);
}
html[data-theme="light"] .nav-mark span:first-child { background:linear-gradient(145deg,var(--accent),#8b80ff); color:#fff; }
html[data-theme="light"] .nav-cta { background:var(--sun-soft); color:#704900 !important; }
html[data-theme="light"] .btn--dark { background:linear-gradient(135deg,var(--accent),#8177ff); color:#fff; }
html[data-theme="light"] .event-post-card { color:var(--ink); }
html[data-theme="light"] .timeline-item {
  background:#fff;
  border-color:#e3d6c3;
  box-shadow:0 8px 24px rgba(63,48,31,.055);
  color:var(--ink);
}
html[data-theme="light"] .profile-sidebar { color:var(--ink); background:linear-gradient(160deg,#fff,var(--sky-soft)); }

html[data-theme="dark"] {
  --bg:#121522; --surface:#202436; --ink:#f7f7fb; --muted:#c4cad7; --line:#41475d;
  --accent:#a69eff; --accent-soft:#302e52; --coral:#ff9a84; --coral-soft:#402b31;
  --mint:#72d8ba; --mint-soft:#203a38; --sun:#ffd06a; --sun-soft:#3e3524;
  --sky:#85c8ff; --sky-soft:#22394c; color-scheme:dark;
}
html[data-theme="dark"] body {
  background:radial-gradient(circle at 8% 4%,rgba(255,121,95,.11),transparent 25rem),radial-gradient(circle at 92% 14%,rgba(102,92,246,.18),transparent 28rem),var(--bg);
}
html[data-theme="dark"] .nav-mark span:first-child { background:linear-gradient(145deg,#8177ff,#b3adff); color:#121522; }
html[data-theme="dark"] .nav-links a[aria-current="page"] { color:#c0bbff; }
html[data-theme="dark"] .nav-cta { background:#493e22; color:#ffe39b !important; border-color:#6a592e; }
html[data-theme="dark"] .nav-cta:hover { background:var(--sun); color:#2d2108 !important; }
html[data-theme="dark"] .theme-toggle { background:#282d42; border-color:#4b526a; color:#fff; }
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section__head h2,
html[data-theme="dark"] .interior-hero h1,
html[data-theme="dark"] .page-hero h1 { color:#fff; text-shadow:none; }
html[data-theme="dark"] .hero__lede { color:#b9b3ff; }
html[data-theme="dark"] .btn--dark { background:linear-gradient(135deg,#8177ff,#a69eff); color:#121522; }
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .project-card h2,
html[data-theme="dark"] .project-card h3 { color:#f7f7fb; }
html[data-theme="dark"] .hero__image img { border-color:#30354a; }
html[data-theme="dark"] .section--projects::before { background:rgba(255,255,255,.035); border-color:#34394e; }
html[data-theme="dark"] .profile-sidebar { background:linear-gradient(160deg,#22283a,#213747); border-color:#3c5a6c; color:#fff; }
html[data-theme="dark"] .profile-sidebar h2,
html[data-theme="dark"] .section-block h2,
html[data-theme="dark"] .timeline-item h3,
html[data-theme="dark"] .contact-block h2 { color:#fff; }
html[data-theme="dark"] .lt-tagline,
html[data-theme="dark"] .creds-list li,
html[data-theme="dark"] .section-block > p,
html[data-theme="dark"] .timeline-item p,
html[data-theme="dark"] .contact-block p,
html[data-theme="dark"] .profile-bio { color:#cbd1dc; }
html[data-theme="dark"] .timeline-item { background:#22273a; border-color:#41485f; color:#f7f7fb; box-shadow:none; }
html[data-theme="dark"] .tool-chip { color:#f7f7fb; border-color:transparent; }
html[data-theme="dark"] .contact-block { background:linear-gradient(135deg,#302e52,#22394c); color:#f7f7fb; }
html[data-theme="dark"] .button.primary { background:#a69eff; color:#121522; }
html[data-theme="dark"] .button.secondary { background:#2b3045; color:#fff; border-color:#555d76; }
html[data-theme="dark"] .event-post-card:nth-child(n) { background:linear-gradient(120deg,#202436,#292d42); border-color:#424960 !important; color:#f7f7fb; }
html[data-theme="dark"] .post-author-name,
html[data-theme="dark"] .post-linkedin-link { color:#fff; }
html[data-theme="dark"] .post-author-title,
html[data-theme="dark"] .post-date,
html[data-theme="dark"] .post-body p { color:#cbd1dc; }
html[data-theme="dark"] .post-tag { background:#353b52; color:#f7f7fb; box-shadow:none; }
html[data-theme="dark"] .project-card__arrow { background:#292e43; color:#fff; }
html[data-theme="dark"] .site-footer { color:#c4cad7; border-color:#41475d; }

@media (max-width:760px) {
  .theme-toggle { padding:8px 10px; }
  .theme-toggle span:last-child { display:none; }
}

/* Body identity marks and explicit light-mode event contrast */
.lt-avatar { overflow:hidden; padding:0; border:3px solid #fff; }
.lt-avatar img { width:100%; height:100%; object-fit:cover; object-position:center 22%; border-radius:inherit; }
.post-avatar--event { font-size:1.15rem; font-weight:800; background:linear-gradient(145deg,var(--accent),var(--coral)); color:#fff; }

html[data-theme="light"] .event-post-card:nth-child(4n+1) { background:linear-gradient(120deg,#fff,#fff1ed); }
html[data-theme="light"] .event-post-card:nth-child(4n+2) { background:linear-gradient(120deg,#fff,#f2f0ff); }
html[data-theme="light"] .event-post-card:nth-child(4n+3) { background:linear-gradient(120deg,#fff,#eaf9f4); }
html[data-theme="light"] .event-post-card:nth-child(4n) { background:linear-gradient(120deg,#fff,#fff7df); }
html[data-theme="light"] .event-post-card { color:#172033; border-color:#d8dce5 !important; }
html[data-theme="light"] .post-author-name,
html[data-theme="light"] .post-linkedin-link { color:#172033; }
html[data-theme="light"] .post-author-title,
html[data-theme="light"] .post-date,
html[data-theme="light"] .post-body p { color:#4f596c; }
html[data-theme="light"] .post-tag { background:#fff; color:#273149; border:1px solid #d8dce5; }
html[data-theme="light"] .post-avatar--event { background:linear-gradient(145deg,#665cf6,#ff795f); color:#fff; }
html[data-theme="light"] .event-post-card a:not(.post-tag) { color:#273149; }
html[data-theme="dark"] .lt-avatar { border-color:#3a4158; }

/* Profile focus strip: uses the desktop breathing room as a useful signal, not dead space. */
.profile-signal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: -12px 0 clamp(52px, 8vw, 96px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: 0 18px 42px rgba(55, 43, 29, .07);
}
.profile-signal > div {
  min-height: 150px;
  padding: 24px;
  background: rgba(255,255,255,.76);
}
.profile-signal > div:nth-child(1) { background: linear-gradient(145deg, #fff, var(--coral-soft)); }
.profile-signal > div:nth-child(2) { background: linear-gradient(145deg, #fff, var(--sky-soft)); }
.profile-signal > div:nth-child(3) { background: linear-gradient(145deg, #fff, var(--mint-soft)); }
.profile-signal-label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.profile-signal strong { display: block; margin-bottom: 7px; font-size: 1.1rem; letter-spacing: -.03em; }
.profile-signal > div > span:last-child { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
@media (max-width: 760px) {
  .profile-signal { grid-template-columns: 1fr; margin-top: 0; }
  .profile-signal > div { min-height: 0; }
}
html[data-theme="dark"] .profile-signal { background: var(--line); }
html[data-theme="dark"] .profile-signal > div,
html[data-theme="dark"] .profile-signal > div:nth-child(n) { background: #252a3d; }

/* ============ Hamburger (hidden on desktop only) ============ */
@media (min-width: 821px) {
  .nav-toggle { display: none; }
}

/* ============ /now landing: tighten header whitespace ============ */
.landing-wrap {
  min-height: auto;
  padding: clamp(28px, 6vw, 72px) 20px clamp(48px, 8vw, 96px);
}
.landing-avatar { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 22px; }
.landing-name { margin: 0 0 6px; }
.landing-tagline { margin: 0 auto 12px; }
.landing-bio { margin: 0 auto 24px; }

/* ============ Global mobile tightening ============ */
@media (max-width: 760px) {
  .section { padding-left: 20px; padding-right: 20px; padding-top: clamp(48px, 12vw, 80px); padding-bottom: clamp(48px, 12vw, 80px); }
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .interior-hero { padding: clamp(40px, 9vw, 72px) 0 clamp(32px, 6vw, 56px); }
  .project-grid { gap: 16px; }
  .site-footer { flex-direction: column; gap: 14px; text-align: center; }
  body { overflow-x: hidden; }
}
@media (max-width: 420px) {
  .landing-avatar { width: 72px; height: 72px; }
  .landing-name { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .landing-link { padding: 12px 14px; gap: 12px; }
  .landing-link__icon { width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ===== Scroll reveal (graceful load, like slide-in on scroll) =====
   Only active when JS adds .js-reveal to <html>, so content stays
   visible if JS fails. Honours prefers-reduced-motion. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.luma-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.luma-link svg { width: 20px; height: 20px; }
.social-icon svg { width: 20px; height: 20px; }

/* Homepage speaking impact counters */
.impact-stats {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: end;
}
.impact-stats__intro h2 {
  max-width: 650px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: .96;
}
.impact-stats__intro > p:last-child {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.impact-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--line);
  box-shadow: 0 22px 55px rgba(73,55,36,.1);
}
.impact-stat {
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--surface);
}
.impact-stat:first-child {
  grid-row: span 2;
  min-height: 381px;
  background: linear-gradient(145deg, var(--accent-soft), var(--sky-soft));
}
.impact-stat__number {
  display: block;
  color: var(--ink);
  font-size: clamp(3.2rem, 6.6vw, 7.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 790;
  letter-spacing: -.085em;
  line-height: .88;
}
.impact-stat:not(:first-child) .impact-stat__number { font-size: clamp(2.9rem, 5vw, 5.2rem); }
.impact-stat__label {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 750;
}
.impact-stat__detail {
  max-width: 300px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
}
html[data-theme="dark"] .impact-stats__grid { box-shadow: none; }
html[data-theme="dark"] .impact-stat:first-child { background: linear-gradient(145deg, var(--accent-soft), var(--sky-soft)); }

@media (max-width: 900px) {
  .impact-stats { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  .impact-stats__grid { grid-template-columns: 1fr; border-radius: 22px; }
  .impact-stat, .impact-stat:first-child { grid-row: auto; min-height: 155px; }
  .impact-stat__number, .impact-stat:not(:first-child) .impact-stat__number { font-size: clamp(3rem, 17vw, 5.2rem); }
}
.social-icon--youspot img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.social-icon--coffee img { width:22px; height:22px; border-radius:50%; object-fit:cover; }
