/* Homepage-only enhancement. The existing desktop composition is untouched. */
.home-event-thumb, .home-mobile-pause { display: none; }

/* Remove the visible carousel control, retaining a discoverable keyboard stop. */
.partners .partners__toggle:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  body { min-width: 0; }
  .home-hero {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 0;
    color: var(--white);
    background: var(--ink);
  }
  .home-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    z-index: -1;
  }
  .home-hero__media::after {
    background: linear-gradient(180deg, rgba(15,17,18,.12), rgba(15,17,18,.7) 27%, rgba(15,17,18,.94) 65%, #111315);
  }
  .home-hero__slides { bottom: auto; height: min(100%, 390px); }
  .home-hero__slide { filter: none; animation: none !important; }
  .home-hero__slide--audience { object-position: 59% 45%; }
  .home-hero__slide--laughter { object-position: 50% 43%; }
  .home-hero__slide--stage { object-position: 50% 42%; }
  .home-hero__slide--expo { object-position: 57% 45%; }
  .home-hero__copy {
    position: relative;
    width: 100%;
    max-width: 640px;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(96px, 16svh, 128px) var(--gutter) 2.5rem;
    background: transparent;
    animation: none !important;
  }
  .home-hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.35rem, 10.5vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }
  .home-hero h1 span { color: #f2cba1; }
  .home-hero__copy > p {
    max-width: 48ch;
    margin-bottom: 1.25rem;
    color: #eeeae3;
    font-size: 1rem;
    line-height: 1.5;
  }
  .home-hero .hero__ctas { gap: .35rem 1rem; margin: 0; }
  .home-hero .hero__ctas .btn { min-height: 48px; padding: .75rem 1rem; font-size: .95rem; }
  .home-hero .hero__ctas .btn--primary { grid-column: 1 / -1; }
  .home-hero .hero__ctas .home-hero__secondary {
    grid-column: 1;
    width: auto;
    justify-self: start;
    padding-inline: 0;
    color: var(--white);
    background: transparent;
    border-color: transparent;
  }
  .home-hero .hero__ctas .btn--donate {
    grid-column: 2;
    min-height: 48px;
    width: auto;
    justify-self: end;
    padding-inline: 0;
    color: #e0dbd4;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 500;
  }
  .home-hero .hero__ctas .btn:not(.btn--primary):hover { text-decoration: underline; text-underline-offset: 4px; }
  .home-hero__copy .home-hero__inclusive {
    margin: .25rem 0 0 !important;
    padding: 0;
    border: 0;
    color: #d1cbc3;
    font-family: "DM Sans", sans-serif;
    font-size: .8rem !important;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
  }
  .home-hero__inclusive span { display: none; }
  .home-hero__media figcaption, .home-hero__media .flag-bars { display: none; }
  .home-mobile-pause:not([hidden]) {
    position: absolute;
    z-index: 5;
    top: 1rem;
    right: var(--gutter);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: white;
    background: rgba(15,17,18,.62);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    cursor: pointer;
  }
  .home-mobile-pause svg { width: 16px; height: 16px; fill: currentColor; }
  .home-mobile-pause .pause-play { display: none; }
  .home-mobile-pause[data-paused="true"] .pause-bars { display: none; }
  .home-mobile-pause[data-paused="true"] .pause-play { display: block; }
  .home-hero :focus-visible { outline-color: white; box-shadow: 0 0 0 2px var(--ink); }

  #main > .section, #main > .partners { padding-block: 2.75rem; }
  #main .chapter-heading { display: block; margin-bottom: 1.5rem; }
  #main .chapter-heading > span { display: none; }
  #main .chapter-heading h2, .partners__head h2 { max-width: 22ch; font-size: clamp(1.85rem, 7.2vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
  #main .eyebrow { font-size: .65rem; letter-spacing: .09em; }
  #main .section-lede { margin-top: .75rem; font-size: .95rem; line-height: 1.5; }

  .pillars { border: 0; gap: 0; }
  .pillar, .pillar.pillar--focus {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: .35rem 1rem;
    padding: 1.1rem 0;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
  }
  .pillar:last-child { border-bottom: 0; padding-bottom: 0; }
  .pillar__num { display: none; }
  .pillar .pillar__mark { grid-column: 1; grid-row: 1 / 3; width: 26px; height: 36px; margin: 2px 0 0; }
  .pillar__mark::before { left: 7px; right: 7px; top: 7px; bottom: 7px; border-width: 3px; }
  .pillar--focus .pillar__mark { color: var(--ink); }
  .pillar h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.22rem; line-height: 1.2; }
  .pillar p, .pillar.pillar--focus p { grid-column: 2; grid-row: 2; max-width: none; color: #58564f; font-size: .9rem; line-height: 1.5; }

  .events-section .chapter-heading--spread .btn { margin-top: 1rem; min-height: 44px; padding: .6rem 0; border: 0; font-size: .9rem; }
  .home-event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, 45%)), 1fr)); gap: 1.5rem 1rem; margin: 0; border: 0; }
  .home-event-list a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
  }
  .home-event-list a:hover { padding: 0; }
  .home-event-list .home-event-thumb { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; margin-bottom: .3rem; }
  .home-event-list a > span { font-size: .65rem; letter-spacing: .015em; color: var(--muted); }
  .home-event-list h3 { min-width: 0; max-width: 100%; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .home-event-list em { display: none; }
  .home-event-list b { font-size: .78rem; font-weight: 500; color: var(--red); }
  .home-event-thumb--ai { object-position: center 53%; }
  .home-event-thumb--chivichyan { object-position: center 40%; }

  #main > .network { padding-bottom: 1.5rem; background: var(--paper); }
  .network__grid { gap: 1.25rem; }
  .network__copy .lead { max-width: none; margin: 0; font-size: 1rem; line-height: 1.55; }
  .network__copy .button-row { display: none; }
  .network__media { grid-template-columns: min(38vw, 170px) minmax(0, 1fr); gap: 1.25rem; border: 0; align-items: center; }
  .network__media-info { display: block; }
  .network__media figcaption { padding: 0; border: 0; gap: .75rem; }
  .network__media figcaption::after, .network__photo-strip { display: none; }
  .network__story-note p { font-family: "DM Sans", sans-serif; font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
  .network__caption-label, .network__caption-meta { font-size: .62rem; letter-spacing: 0; }
  #main > .founder-section { padding-top: 0; background: var(--paper); color: var(--ink); }
  .founder-split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 600px; padding-top: 1rem; border: 0; }
  .founder-photo { display: block; max-width: none; padding: 0; border: 0; }
  .founder-photo img { width: 100%; height: clamp(230px, 62vw, 250px); aspect-ratio: auto; object-fit: cover; object-position: center 36%; filter: none; }
  .founder-photo figcaption { max-width: none; min-height: 0; padding: 1rem 0 0; border: 0; font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
  .founder-photo__separator { display: none; }
  .founder-photo__role { display: block; margin-top: .25rem; color: #58564f; font-size: .85rem; font-weight: 400; letter-spacing: 0; }
  .founder-text { display: block; min-width: 0; }
  .founder-text .eyebrow { display: none; }
  .founder-text blockquote { min-width: 0; margin: 0 0 1.25rem; font-size: clamp(1.375rem, 5.65vw, 1.5rem); line-height: 1.35; letter-spacing: -.025em; text-wrap: pretty; overflow-wrap: break-word; }
  .founder-text blockquote em { color: inherit; font-family: inherit; font-style: normal; font-weight: inherit; }
  .founder-text > p { color: #58564f; font-size: .95rem; line-height: 1.6; margin: 0 0 1rem; }
  .founder-text > p:last-child { margin-bottom: 0; }
  .quiz-feature__layout { gap: 0; }
  .quiz-feature__layout .chapter-heading { margin-bottom: .25rem !important; }
  .quiz-feature .btn { min-height: 48px; font-size: .95rem; }

  .partners { border-top: 0; }
  .partners__head { margin-bottom: 1.25rem; }
  .partners__head > div { min-width: 0; max-width: 100%; }
  .partners__head h2 { margin-bottom: 0; overflow-wrap: anywhere; }
  .partners__toggle { min-height: 44px; padding: .5rem 0; font-size: .65rem; }
  .partners__viewport--logos { --carousel-fade: 1rem; }
  .partner-logo-list { --logo-gap: 1.5rem; }
  .partners__list .partner-logo, .partners__list .partner-name { height: auto; min-height: 64px; }
  .partner-logo img { width: min(90px, calc(30px * var(--logo-ratio, 1))); max-width: 90px; max-height: 30px; object-fit: contain; }
  .partner-logo--round img { width: 44px; height: 44px; max-width: none; max-height: none; }
  .partners__list .partner-logo--firmpoint { width: max(126px, 8rem); gap: 3px; }
  .partner-logo--firmpoint img { width: 90px; max-width: none; max-height: none; }
  .partner-logo__descriptor { max-width: 17ch; font-size: .8125rem; line-height: 1.2; white-space: normal; }
  .partner-logo--wide img { width: 106px; max-width: 106px; }
  .collaborators__head { display: block; margin-top: 1.5rem; padding-top: 1.5rem; }
  .collaborators__head p { margin-top: .5rem; font-size: .9rem; line-height: 1.5; }
  #collaboratorsTrack .partner-logo, #collaboratorsTrack .partner-name { height: auto; min-height: 52px; }
  .final-cta { padding-block: 2.5rem; }
  .final-cta__inner { gap: 1rem; }
  .final-cta h2 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.08; }
  .final-cta__content p { font-size: 1rem; line-height: 1.5; }
  .final-cta .btn { min-height: 48px; font-size: .9rem; }
}

@media (min-width: 601px) and (max-width: 820px) {
  .home-hero__copy { padding-top: 112px; }
  .home-hero .hero__ctas { grid-template-columns: auto auto auto; gap: 1rem; }
  .home-hero .hero__ctas .btn--primary { grid-column: 1; }
  .home-hero .hero__ctas .home-hero__secondary { grid-column: 2; }
  .home-hero .hero__ctas .btn--donate { grid-column: 3; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .pillar, .pillar.pillar--focus { border: 0; }
  .network__media { max-width: 540px; }
  .founder-photo img { height: 300px; }
}

@media (max-width: 374px) {
  .home-hero__copy { padding-top: 96px; }
  .home-hero h1 { font-size: 2.2rem; }
  .home-event-list { gap: 1.4rem .75rem; }
  .home-event-list h3 { font-size: 1rem; }
}

@media (max-width: 820px) and (forced-colors: active) {
  .home-hero, .home-hero__copy { background: Canvas; color: CanvasText; }
  .home-hero__copy > p, .home-hero h1 span { color: CanvasText; }
  .home-mobile-pause:not([hidden]) { color: ButtonText; background: ButtonFace; border: 1px solid ButtonText; }
}
