/* =========================
   BASE / THEME (Earth tones)
   ========================= */

   :root{
    --bg: #f6f1e8;
    --bg-alt: #efe7dc;
    --card: rgba(255,255,255,0.62);
    --text: #1f1f1c;
    --muted: rgba(31,31,28,0.72);
  
    --accent: #7a5f42;        /* earth brown */
    --accent-2: #5f6b4f;      /* muted olive */
    --border: rgba(31,31,28,0.12);
  
    --shadow: 0 18px 40px rgba(20,20,20,0.08);
  
    --radius: 18px;
    --radius-lg: 26px;
  
    --max: 1120px;
  }
  
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
  }
  
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  
  .container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
  }
  
  /* =========================
     INTRO OVERLAY (DARK MAP -> WIPE REVEAL)
     ========================= */
  
  .intro-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #0f0f10;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform;
  }
  
  .intro-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  
    /* ✅ Use YOUR file name */
    background-image: url("assets/intro-map.png");
  
    /* ✅ Full landscape cover */
    background-size: cover;
    background-repeat: no-repeat;
  
    /* Center looks good for most maps */
    background-position: center;
  
    filter: brightness(0.62) contrast(1.02) saturate(1);
    transform: scale(0.94);
  }
  
  .intro-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 16, 0.22);
  }
  
  /* optional slight vignette for polish */
  .intro-overlay::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
  }
  
  .intro-overlay.is-leaving {
    animation: introWipeUp 1800ms cubic-bezier(.22, .9, .2, 1) forwards;
  }
  
  @keyframes introWipeUp {
    to { transform: translateY(-105%); }
  }
  
  body.is-locked { overflow: hidden; }
  
  /* Hold hero content until intro finishes */
  body.has-intro .hero-container {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 650ms ease, transform 650ms ease;
  }
  body.intro-done .hero-container {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* =========================
     NAVBAR
     ========================= */
  
  .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 241, 232, 0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
  }
  
  .nav-logo {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }
  
  .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
  }
  
  .nav-link {
    font-size: 0.95rem;
    color: rgba(31,31,28,0.76);
    padding: 8px 8px;
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease;
  }
  
  .nav-link:hover {
    background: rgba(122, 95, 66, 0.10);
    color: rgba(31,31,28,0.95);
  }
  
  .nav-link.active {
    color: rgba(31,31,28,0.95);
    background: rgba(122, 95, 66, 0.14);
  }
  
  /* Mobile nav toggle */
  .nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.55);
  }
  
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    margin: 4px auto;
    background: rgba(31,31,28,0.75);
    border-radius: 2px;
  }
  
  /* =========================
     HERO
     ========================= */
  
  .hero {
    padding: 56px 0 22px;
  }
  
  .hero-container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-top {
    display: grid;
    place-items: center;
    margin-top: 8px;
    margin-bottom: 18px;
  }
  
  .headshot {
    width: 164px;
    height: 164px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center 18%;
    border: 5px solid rgba(255,255,255,0.92);
    box-shadow: 0 22px 50px rgba(20,20,20,0.14);
    background: rgba(255,255,255,0.4);
  }
  
  .hero-name {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 10px 0 8px;
    letter-spacing: -0.02em;
  }
  
  .hero-headline {
    font-size: 1.08rem;
    font-style: italic;
    color: var(--accent);
    opacity: 0.9;
    margin: 0 auto 18px;
    max-width: 62ch;
  }
  
  .hero-summary {
    font-size: 0.98rem;
    color: rgba(31,31,28,0.72);
    max-width: 70ch;
    margin: 0 auto 22px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 18px 40px rgba(122, 95, 66, 0.22);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
  }
  
  /* story layout */
  .hero-story {
    margin: 42px auto 0;
    width: min(var(--max), calc(100% - 48px));
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 26px;
    text-align: left;
    align-items: start;
  }
  
  .story-title-wrap {
    position: relative;
    padding-left: 26px;
  }
  
  .story-title-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 3px;
    height: 70%;
    background: linear-gradient(
      to bottom,
      var(--accent),
      rgba(122, 95, 66, 0.25)
    );
    border-radius: 3px;
  }
  
  .story-title {
    font-size: clamp(3rem, 5vw, 4.6rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
  }
  
  .story-title span {
    font-weight: 500;
    color: rgba(31,31,28,0.72);
  }
  
  .hero-story-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 0.95;
    margin: 0;
    letter-spacing: -0.02em;
  }
  
  .hero-story-right p {
    margin: 0 0 14px;
    color: rgba(31,31,28,0.74);
    max-width: 72ch;
  }
  
  /* collapsed "more" section */
  .hero-story-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 380ms ease, opacity 260ms ease, transform 260ms ease;
  }
  
  .hero-story-more.is-open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* =========================
   ABOUT: show more / show less
   ========================= */
  .about-more{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 380ms ease, opacity 260ms ease, transform 260ms ease;
  }

  .about-more.is-open{
    max-height: 1000px; /* enough for all paragraphs */
    opacity: 1;
    transform: translateY(0);
  }


  /* "Read more" button */
  .link-button {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .link-button:hover {
    text-decoration: underline;
  }
  
  /* =========================
     SECTIONS
     ========================= */
  
  .section {
    padding: 72px 0;
  }
  
  .section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  
  .section-title {
    font-size: 1.8rem;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    align-items: start;
  }
  
  .about-values, .about-text {
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  
  .values-list, .topics-list, .audience-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(31,31,28,0.72);
  }
  
  /* Cards / grids */
  .projects-grid, .consulting-grid, .blog-grid, .cards-grid {
    display: grid;
    gap: 16px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-card, .service-card, .blog-card, .info-card {
    background: rgba(255,255,255,0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  
  .project-title { margin: 0 0 6px; }
  .project-location { margin: 0 0 10px; color: rgba(31,31,28,0.62); font-size: 0.92rem; }
  .project-description { margin: 0 0 12px; color: rgba(31,31,28,0.74); }
  .project-tag {
    display: inline-block;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(95,107,79,0.25);
    background: rgba(95,107,79,0.12);
    color: rgba(31,31,28,0.82);
  }
  
  .consulting-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 14px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-title { margin: 0 0 6px; }
  .blog-date { margin: 0 0 10px; color: rgba(31,31,28,0.60); font-size: 0.92rem; }
  .blog-summary { margin: 0; color: rgba(31,31,28,0.74); }
  
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Speaking layout */
  .speaking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  
  .events-list {
    display: grid;
    gap: 12px;
  }
  
  .event-item {
    background: rgba(255,255,255,0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  
  .event-location { margin: 0 0 6px; color: rgba(31,31,28,0.62); }
  .event-topic { margin: 0; color: rgba(31,31,28,0.74); }
  
  /* =========================
     CONTACT
     ========================= */
  
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  
  .contact-info, .contact-form {
    background: rgba(255,255,255,0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  
  .contact-item { margin: 10px 0; color: rgba(31,31,28,0.74); }
  .contact-item a { color: var(--accent); font-weight: 700; }
  
  .form-group { display: grid; gap: 6px; margin-bottom: 12px; }
  label { font-weight: 600; color: rgba(31,31,28,0.82); }
  
  input, textarea {
    border: 1px solid rgba(31,31,28,0.16);
    border-radius: 12px;
    padding: 11px 12px;
    background: rgba(255,255,255,0.7);
    outline: none;
    font: inherit;
  }
  
  input:focus, textarea:focus {
    border-color: rgba(122,95,66,0.5);
    box-shadow: 0 0 0 4px rgba(122,95,66,0.12);
  }
  
  .footer {
    padding: 22px 0;
    border-top: 1px solid var(--border);
    color: rgba(31,31,28,0.64);
  }
  
  /* =========================
     REVEAL ANIMATION
     ========================= */
  
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 650ms ease, transform 650ms ease;
    transition-delay: var(--delay, 0ms);
    will-change: opacity, transform;
  }
  
  .reveal.reveal--visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* =========================
     RESPONSIVE
     ========================= */
  
  @media (max-width: 980px) {
    .projects-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .consulting-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .speaking-content { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
  
    .hero-story {
      grid-template-columns: 1fr;
      gap: 14px;
    }
  }
  
  @media (max-width: 860px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .nav-menu {
      position: absolute;
      top: 64px;
      right: 24px;
      left: 24px;
      flex-direction: column;
      gap: 10px;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: rgba(246, 241, 232, 0.98);
      box-shadow: var(--shadow);
      display: none;
    }
    .nav-menu.active { display: flex; }
  }
  
  /* =========================
     GLOBAL DEVELOPMENT PROJECTS (Gallery + Modal)
     Only affects #projects section
     ========================= */
  
  /* ✅ CHANGED: projects gallery is now horizontal + square thumbs */
  #projects .projects-gallery{
    display: flex;              /* overrides grid */
    gap: 22px;
    overflow-x: auto;
    padding: 6px 0 10px;
    scroll-behavior: smooth;
  }
  
  /* ✅ CHANGED: fixed tile width so row is consistent */
  #projects .project-tile{
    display: block;
    width: 260px;
    flex: 0 0 auto;
    text-align: left;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }
  
  #projects .project-thumb{
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: rgba(255,255,255,0.45);
    aspect-ratio: 1 / 1;        /* ✅ square */
  }
  
  /* ✅ CHANGED: image fills square */
  #projects .project-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 240ms ease;
  }
  
  #projects .project-tile:hover .project-thumb img{
    transform: scale(1.02);
  }
  
  #projects .project-tile-title{
    margin-top: 10px;
    font-weight: 600;
    color: rgba(31,31,28,0.86);
    line-height: 1.25;
    font-size: 0.98rem;
  }
  
  /* ✅ CHANGED: snap on small screens (still horizontal) */
  @media (max-width: 980px){
    #projects .projects-gallery{
      scroll-snap-type: x mandatory;
    }
    #projects .project-tile{
      scroll-snap-align: start;
    }
  }
  
  /* -------- Modal (Projects only) -------- */
  
  .projects-modal{
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
  }
  
  .projects-modal.is-open{
    display: block;
  }
  
  .projects-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 16, 0.55);
    backdrop-filter: blur(6px);
  }
  
  .projects-modal__panel{
    position: relative;
    width: min(980px, calc(100% - 32px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    margin: 28px auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(246, 241, 232, 0.98);
    box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  }
  
  .projects-modal__close{
    position: sticky;
    top: 0;
    margin-left: auto;
    display: block;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    padding: 14px 16px;
    cursor: pointer;
    color: rgba(31,31,28,0.78);
  }
  
  .projects-modal__media{
    position: relative;
    padding: 0 18px 10px;
  }
  
  .projects-modal__image{
    width: 100%;
    height: min(440px, 55vh);
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.55);
  }
  
  .projects-modal__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.75);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: grid;
    place-items: center;
  }
  
  .projects-modal__nav--prev{ left: 28px; }
  .projects-modal__nav--next{ right: 28px; }
  
  .projects-modal__thumbs{
    display: flex;
    gap: 10px;
    padding: 10px 18px 0;
    overflow-x: auto;
  }
  
  .projects-modal__thumbs button{
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 auto;
    overflow: hidden;
  }
  
  .projects-modal__thumbs img{
    width: 96px;
    height: 64px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
  }
  
  .projects-modal__thumbs button.is-active img{
    opacity: 1;
  }
  
  .projects-modal__content{
    padding: 16px 18px 22px;
  }
  
  .projects-modal__title{
    margin: 6px 0 6px;
    letter-spacing: -0.01em;
  }
  
  .projects-modal__meta{
    margin: 0 0 14px;
    color: rgba(31,31,28,0.66);
    font-size: 0.95rem;
  }
  
  .projects-modal__text h4{
    margin: 16px 0 6px;
    font-size: 1rem;
  }
  
  .projects-modal__text p{
    margin: 0;
    color: rgba(31,31,28,0.76);
  }
  
  /* =========================
     Research section styling (list + toggles)
     Only affects #research
     ========================= */
  
  #research .research-list{
    display: grid;
    gap: 16px;
    margin-top: 10px;
  }
  
  /* Research items – clean list style (no cards) */
  #research .research-item{
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  
  /* Add separation between entries */
  #research .research-item:not(:last-child){
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  #research .research-title{
    font-size: 1.05rem;
    font-weight: 700;
  }
  
  #research .research-authors{
    font-size: 0.95rem;
    margin-top: 4px;
  }
  
  #research .research-venue{
    font-size: 0.9rem;
    margin-top: 2px;
    color: rgba(0,0,0,0.65);
  }
  
  #research .research-summary-toggle{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(122, 95, 66, 0.28);
    background: rgba(122, 95, 66, 0.08);
    color: rgba(31,31,28,0.92);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
  }
  
  #research .research-summary-toggle:hover{
    background: rgba(122, 95, 66, 0.12);
  }
  
  #research .research-summary{
    margin-top: 10px;
    padding-left: 14px;
    border-left: 3px solid rgba(122, 95, 66, 0.45);
  }
  
  #research .research-summary p{
    margin: 0;
    color: rgba(31,31,28,0.74);
  }
  
  #research .research-link-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: 1px solid transparent;
    margin-top: 12px;
    width: fit-content;
  }
  
  #research .research-link-btn:hover{
    transform: translateY(-1px);
  }
  
  #research .research-more-btn{
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.55);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }
  
  #research .research-more-btn:hover{
    background: rgba(255,255,255,0.70);
  }
  
  /* =========================
     Teaching (2-column list style)
     Only affects #teaching
     ========================= */
  
  #teaching .teaching-list {
    margin-top: 18px;
  }
  
  #teaching .teaching-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    padding: 26px 0;
    border-top: 1px solid var(--border);
  }
  
  #teaching .teaching-item:first-child {
    border-top: 1px solid var(--border);
  }
  
  #teaching .teach-org {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    line-height: 1.35;
  }
  
  #teaching .teach-term {
    margin-top: 8px;
    font-size: 0.86rem;
    color: rgba(31,31,28,0.62);
  }
  
  #teaching .teach-course {
    margin: 0 0 10px;
    font-size: 1.22rem;
    line-height: 1.25;
  }
  
  #teaching .teach-role {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(31,31,28,0.68);
    font-weight: 700;
    margin-bottom: 14px;
  }
  
  #teaching .teach-desc {
    margin: 0;
    color: rgba(31,31,28,0.74);
    max-width: 85ch;
  }
  
  #teaching .teach-muted {
    font-weight: 500;
    color: rgba(31,31,28,0.62);
    font-size: 0.95em;
  }
  
  /* responsive */
  @media (max-width: 980px) {
    #teaching .teaching-item {
      grid-template-columns: 1fr;
      gap: 12px;
    }
  }
  
  /* =========================
     Blog (Medium-style list)
     ========================= */
  
  #blog .blog-list{
    margin-top: 24px;
  }
  
  #blog .blog-item{
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  
  #blog .blog-thumb{
    width: 160px;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
  }
  
  #blog .blog-item:hover .blog-thumb{
    transform: scale(1.05);
  }
  
  #blog .blog-content{
    flex: 1;
  }
  
  #blog .blog-title{
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
  }
  
  #blog .blog-title a{
    color: #1f1f1c;
    font-weight: 700;
    text-decoration: none;
  }
  
  #blog .blog-title a:hover{
    text-decoration: underline;
  }
  
  #blog .blog-summary{
    margin-top: 8px;
    max-width: 620px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6b6b6b;
  }
  
  /* Mobile */
  @media (max-width: 768px){
    #blog .blog-item{
      flex-direction: column;
    }
  
    #blog .blog-thumb{
      width: 100%;
      height: 180px;
    }
  }
  
  /* =========================
     Awards (list style + show more/less)
     Only affects #awards
     ========================= */
  
  #awards .subsection-title{
    margin: 18px 0 8px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(31,31,28,0.70);
  }
  
  #awards .awards-list{
    margin-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  
  #awards .award-item{
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  #awards .award-icon{
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(122,95,66,0.12);
    border: 1px solid rgba(122,95,66,0.22);
    color: rgba(122,95,66,0.95);
    font-size: 1.05rem;
    margin-top: 2px;
  }
  
  #awards .award-year{
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(122,95,66,0.95);
    margin-bottom: 2px;
  }
  
  #awards .award-title{
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
  }
  
  #awards .award-giver{
    margin-top: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(31,31,28,0.55);
    font-weight: 700;
  }
  
  #awards .award-desc{
    margin: 12px 0 0;
    color: rgba(31,31,28,0.72);
    max-width: 95ch;
  }
  
  /* show/hide extra research awards */
  #awards [data-award-hidden]{
    display: none;
  }
  
  #awards .awards-more-btn{
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.55);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }
  
  #awards .awards-more-btn:hover{
    background: rgba(255,255,255,0.70);
  }
  
  /* mobile */
  @media (max-width: 700px){
    #awards .award-item{
      grid-template-columns: 52px 1fr;
      gap: 14px;
    }
  }
  
  /* =========================
     Speaking Engagements (image-only gallery)
     ========================= */
  
  #speaking .speaking-gallery{
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 24px;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding: 6px 0 10px;
  }
  
  #speaking .poster-card{
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: rgba(255,255,255,0.5);
    flex: 0 0 auto;
  }
  
  /* Square posters stay square */
  #speaking .poster-square{
    width: 260px;
    aspect-ratio: 1 / 1;
  }
  
  /* Wide posters keep natural rectangle */
  #speaking .poster-wide{
    width: 520px;
    height: auto;
    aspect-ratio: auto;
  }

  /* Vertical (portrait) posters */
  #speaking .poster-portrait{
    width: 300px;
    aspect-ratio: 3 / 4;
  }
  
  /* Portrait posters: fill the portrait box */
  #speaking .poster-portrait img{
    width: 100%;
    height: 100% !important;  /* overrides height:auto */
    object-fit: cover;
    object-position: top;
  }


  #speaking .poster-card img{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  /* Squares: fill the square nicely */
  #speaking .poster-square img{
    height: 100%;
    object-fit: cover;
  }
  
  /* Wides: show the full poster, no cropping */
  #speaking .poster-wide img{
    object-fit: contain;
  }
  
  #speaking .poster-card:hover img{
    transform: scale(1.03);
  }
  
  @media (max-width: 1100px){
    #speaking .speaking-gallery{
      scroll-snap-type: x mandatory;
    }
    #speaking .poster-card{
      scroll-snap-align: start;
    }
  }

  /* =========================
   FIX: no stagger in projects
   ========================= */
#projects .reveal[data-stagger]{
  --delay: 0ms !important;
}
