/* Editorial refinements preserve the desktop composition and supplied artwork. */
.section-top {
  flex-wrap: wrap;
  gap: 16px 24px;
}
.section-top .eyebrow {
  white-space: nowrap;
}
.film-heading {
  gap: 32px;
}
.film-heading > * {
  min-width: 0;
}
.event-info {
  min-width: 0;
}
.event-link {
  flex-shrink: 0;
}
.kala-language-en .film-heading h2 {
  max-width: 62%;
}
.kala-language-en .host-link,
.kala-language-en .event-link {
  letter-spacing: 0.03em;
}
/* On tablets, retain the photo/text arrangement without shrinking body copy. */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-scene {
    min-height: 500px;
  }
  .hero-intro,
  .kala-language-en .hero-intro {
    font-size: 14px;
    max-width: 48vw;
  }
  .hero-kicker,
  .prologue-label,
  .route,
  .scroll-cue,
  .mini-label {
    font-size: 11px;
  }
  .button {
    min-height: 44px;
    font-size: 14px;
    padding: 12px 22px;
  }
  .prologue {
    min-height: 500px;
  }
  .prologue-body {
    font-size: 15px;
    line-height: 1.85;
  }
  .scene {
    height: auto;
    min-height: calc(998 * var(--u));
  }
  .founder,
  .origin,
  .india-intro,
  .art,
  .question {
    min-height: calc(996 * var(--u));
  }
  .scene-copy {
    padding-bottom: 48px;
  }
  .founder .scene-copy {
    margin-left: 58%;
    width: 38%;
  }
  .scene .body-copy br {
    display: none;
  }
  .scene .body-copy br + br {
    display: block;
    content: "";
    margin-bottom: 1em;
  }
  .origin h2 br {
    display: none;
  }
  .origin h2 {
    text-wrap: balance;
  }
  .origin::after,
  .invitation::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .origin::after {
    background: linear-gradient(
      90deg,
      transparent 30%,
      rgba(231, 225, 213, 0.72) 65%
    );
  }
  .invitation::after {
    background: linear-gradient(
      90deg,
      rgba(8, 20, 15, 0.82),
      rgba(8, 20, 15, 0.65) 45%,
      transparent 75%
    );
  }
  .invitation .scene-image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .story-bridge,
  .scene .body-copy,
  .kala-language-en .scene .body-copy,
  .community .body-copy,
  .film-heading > p,
  .crew-profile > p:last-child,
  .kala-language-en .crew-profile > p:last-child,
  .host-copy > p {
    font-size: 15px;
    line-height: 1.8;
  }
  .section-top .eyebrow,
  .scene .eyebrow,
  .film > .eyebrow,
  .screening .eyebrow,
  .host-heading .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    gap: 14px;
  }
  .scene .eyebrow::after {
    width: 48px;
  }
  .scene h2,
  .kala-language-en .scene h2 {
    font-size: clamp(28px, 3.5vw, 40px);
  }
  .founder h2,
  .kala-language-en .founder h2 {
    font-size: 36px;
  }
  .founder .latin,
  .community-date,
  .india-map-row,
  .india-map-row span {
    font-size: 13px;
  }
  .art h2 {
    white-space: normal;
  }
  .portrait-caption {
    left: auto;
    right: 24px;
    width: 140px;
    font-size: 12px;
  }
  .portrait-caption p:first-child {
    font-size: 17px;
  }
  .portrait-caption .latin {
    font-size: 13px;
  }
  .scene-location {
    font-size: 10px;
  }
  .years {
    min-height: max(600px, calc(998 * var(--u)));
    background: var(--ink);
  }
  .years .scene-image {
    /* Keep the illustrated ground level aligned when text needs extra height. */
    height: calc(998 * var(--u));
    mask-image: linear-gradient(#000 85%, transparent);
  }
  .community .body-copy {
    max-width: 68ch;
  }
  .crew-credit .eyebrow,
  .crew-credit .mini-label {
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .crew-credit h3 {
    font-size: 24px;
  }
  .crew-credit h3 span {
    font-size: 13px;
  }
  .crew-awards,
  .stills-grid figcaption,
  .screening-next p:nth-child(2),
  .credits,
  .film-specs,
  .companies > div > p:first-child {
    font-size: 12px;
  }
  .crew-credit,
  .statement-producer .crew-credit {
    grid-template-columns: minmax(0, 1fr) 150px minmax(150px, 0.8fr);
  }
  .statement-director .crew-credit {
    grid-template-columns: 150px minmax(150px, 0.8fr) minmax(0, 1fr);
  }
  .event-bottom {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .event-info p,
  .event-info p:nth-child(2),
  .event-info p:last-child,
  .screening-next p:last-child,
  .festival {
    font-size: 15px;
    line-height: 1.8;
  }
  .screening-panel-top,
  .festival-label,
  .festival-row,
  .festival-detail p + p {
    font-size: 12px;
  }
  .festival-detail p:first-child,
  .host-link {
    font-size: 14px;
  }
  .festival-row {
    grid-template-columns: 140px 105px minmax(0, 1fr) auto;
    gap: 16px;
  }
  .festival-date {
    font-size: 17px;
  }
  .host-heading h2 {
    font-size: 27px;
  }
  .event-date small {
    font-size: 15px;
  }
  .host-link {
    min-height: 48px;
  }
}
/* The five bios use the existing portrait cards where the mosaic gets too small. */
@media (max-width: 1199px) {
  .person .person-bio,
  .kala-language-en .person .person-bio {
    font-size: 14px;
    line-height: 1.85;
  }
  .person .person-role,
  .kala-language-en .person .person-role {
    font-size: 14px;
    line-height: 1.6;
  }
  .kala-language-en .person h3 {
    font-size: 29px;
    line-height: 1.25;
    margin: 8px 0;
  }
  .person-profile-link {
    min-height: 44px;
    font-size: 14px;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .people-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-inline: 32px;
  }
  .people-intro {
    grid-column: auto;
    min-height: 600px;
    padding-block: 48px;
  }
  .people-intro > p:last-child,
  .kala-language-en .people-intro > p:last-child {
    max-width: 56ch;
    font-size: 15px;
    line-height: 1.85;
  }
  .people-intro h2,
  .kala-language-en .people-intro h2 {
    font-size: 36px;
  }
  .person {
    margin: 0;
  }
  .people-footer .eyebrow {
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .origin::after {
    background: none;
  }
  .origin h2,
  .kala-language-en .origin h2 {
    text-wrap: balance;
  }
  .origin h2 br {
    display: none;
  }
  .origin .scene-copy::before {
    /* Follow the actual copy height so neither language falls onto the dark tree. */
    content: "";
    position: absolute;
    z-index: -1;
    inset: -40px -24px -70px;
    background: linear-gradient(
      #efd9ba,
      rgba(239, 217, 186, 0.9) calc(100% - 70px),
      transparent
    );
    pointer-events: none;
  }
  .hero-intro,
  .prologue-body {
    font-size: 14px;
  }
  .people-footer .eyebrow {
    font-size: 10px;
  }
  .crew-profile > p:last-child,
  .kala-language-en .crew-profile > p:last-child,
  .film-heading > p,
  .host-copy > p,
  .kala-language-en .host-copy > p {
    font-size: 14px;
    line-height: 1.85;
  }
  .crew-awards {
    font-size: 12px;
    line-height: 1.85;
  }
  .kala-language-en .film-heading h2 {
    max-width: none;
  }
  .section-top .mini-label {
    font-size: 10px;
  }
  .footer-bottom {
    font-size: 10px;
    line-height: 1.7;
  }
  .festival-detail p + p {
    font-size: 12px;
  }
  .contact-field label {
    line-height: 1.7;
  }
}

/* Prefer phrase boundaries in the Japanese origin headline on narrow screens. */
@media (max-width: 1199px) {
  .kala-language-ja .origin h2 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 767px) {
  .kala-language-ja .origin h2 {
    font-size: clamp(23px, 6.9vw, 27px);
  }
  .kala-language-ja .origin h2 br {
    display: initial;
  }
}
