/*
 * Mobile home: a village panorama with readable titles, then text and useful actions.
 * Forest/white identity, local type and existing photographs stay the material.
 * Every rule is bounded below the desktop composition; no content is duplicated.
 */
@media (max-width: 900px) {
  body.home-page .hero {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-content: start;
    align-items: start;
    min-height: 0;
    gap: 0;
    padding: 0 0 28px;
    overflow: hidden;
    background: var(--bg);
  }

  body.home-page .hero::after {
    content: none;
  }

  body.home-page .hero__grid,
  body.home-page .hero__copy {
    display: contents;
  }

  body.home-page .hero__copy > * {
    grid-column: 2;
    min-width: 0;
    max-width: none;
  }

  body.home-page .hero__copy > .eyebrow {
    position: relative;
    z-index: 2;
    grid-row: 1;
    align-self: start;
    order: 0;
    width: fit-content;
    margin: 20px 0 0;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(244, 247, 244, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.5;
  }

  body.home-page .hero__copy h1 {
    position: relative;
    z-index: 2;
    grid-row: 1;
    align-self: end;
    order: 1;
    width: auto;
    margin: 0 0 106px;
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    background: rgba(244, 247, 244, 0.86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: clamp(2.75rem, 12vw, 4.5rem);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
  }

  body.home-page .hero__copy h1 > br {
    display: none;
  }

  body.home-page .hero__copy h1 > span {
    display: block;
    margin-top: 8px;
    font-size: 0.64em;
    font-weight: 520;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  body.home-page .hero__stage {
    --hero-edge-mask: none;
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    order: 0;
    width: 100%;
    height: clamp(390px, 100vw, 540px);
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background: var(--paper);
    clip-path: none;
    isolation: isolate;
  }

  body.home-page .hero-slide {
    inset: 0 0 56px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body.home-page .hero-slide img {
    object-position: center 54%;
  }

  body.home-page .hero-slide:first-child img {
    object-position: 55% 56%;
  }

  body.home-page .hero__stage-wash {
    inset: 0 0 56px;
    background: linear-gradient(180deg, transparent 55%, rgba(9, 34, 24, 0.48));
    -webkit-mask-image: none;
    mask-image: none;
  }

  body.home-page .hero-controls {
    position: absolute;
    inset: auto 0 0;
    display: block;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 6px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
    backdrop-filter: none;
  }

  body.home-page .hero-controls__caption {
    position: absolute;
    right: 20px;
    bottom: calc(100% + 14px);
    left: 20px;
    display: block;
    padding: 0;
    color: var(--paper);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
  }

  body.home-page .hero-controls__caption > span {
    display: none;
  }

  body.home-page .hero-controls__caption strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 0.79rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.4;
  }

  body.home-page .hero-controls__buttons {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(44px, 1fr));
    align-items: center;
    gap: 0;
  }

  body.home-page .hero-controls__buttons button,
  body.home-page .hero-controls__buttons .hero-controls__pause {
    display: inline-flex;
    width: 100%;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  body.home-page .hero-controls__buttons button[aria-pressed="true"] {
    background: var(--accent-soft);
    color: var(--accent-deep);
  }

  body.home-page .hero-controls__buttons .hero-controls__pause {
    border-left: 1px solid var(--line);
    border-radius: 0;
    font-size: 0.9rem;
  }

  body.home-page .hero-controls__pause [data-hero-pause-label] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* The separate weather section remains available further down the page. */
  body.home-page .hero .weather-chip {
    display: none;
  }

  /* Opaque fallback also keeps the titles readable without backdrop-filter. */
  @supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    body.home-page .hero__copy > .eyebrow,
    body.home-page .hero__copy h1 {
      background: var(--bg);
    }
  }

  @media (prefers-reduced-transparency: reduce) {
    body.home-page .hero__copy > .eyebrow,
    body.home-page .hero__copy h1 {
      background: var(--bg);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }

  body.home-page .hero__actions {
    grid-row: 4;
    order: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 20px;
  }

  body.home-page .hero__actions .button {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }

  body.home-page .hero__copy > .lede {
    grid-row: 2;
    order: 3;
    margin: 22px 0 0;
    color: #3f5149;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  body.home-page .hero__locator {
    grid-row: 3;
    order: 4;
    margin: 20px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    font-family: "Manrope", sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    letter-spacing: 0;
  }

  body.home-page .hero__scroll {
    display: none;
  }

  body.home-page .quick-access {
    margin-top: 0;
    padding-block: 20px 12px;
    border-block: 1px solid var(--line);
    background: var(--paper);
  }

  body.home-page .quick-access__inner {
    display: flex;
    width: calc(100% - 40px);
    flex-direction: column;
    gap: 0;
  }

  body.home-page .quick-access__label {
    display: block;
    min-height: 0;
    height: auto;
    margin: 0 0 12px;
    padding: 0;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  body.home-page .quick-access a,
  body.home-page .quick-access a:nth-of-type(odd),
  body.home-page .quick-access a:nth-of-type(even),
  body.home-page .quick-access a:last-child {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.5;
    text-align: left;
  }

  body.home-page .quick-access a .icon-arrow-up-right {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
  }

  body.home-page .section {
    padding-block: 56px;
  }

  body.home-page .section-heading {
    margin-bottom: 28px;
  }

  body.home-page .section-heading h2 {
    max-width: 660px;
    font-size: clamp(1.8rem, 7.8vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  body.home-page .section-heading .lede {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  body.home-page .news-grid,
  body.home-page .news-grid__secondary {
    gap: 16px;
  }

  body.home-page .news-card,
  body.home-page .news-card--featured {
    min-height: 0;
    padding: 24px;
    border-radius: 16px;
  }

  body.home-page .news-card__meta {
    margin-bottom: 24px;
  }

  body.home-page .news-card__body {
    padding-bottom: 52px;
  }

  body.home-page .news-card h3 {
    max-width: 520px;
    font-size: clamp(1.4rem, 5.9vw, 2rem);
    line-height: 1.2;
  }

  body.home-page .news-card__body p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  body.home-page .scroll-story {
    padding-block: 56px;
  }

  body.home-page .scroll-story__intro {
    gap: 16px;
    margin-bottom: 32px;
  }

  body.home-page .scroll-story__intro .eyebrow {
    margin: 0;
  }

  body.home-page .scroll-story__intro h2 {
    font-size: clamp(2rem, 8.8vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  body.home-page .scroll-story__intro .lede {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  body.home-page .scroll-story__steps {
    gap: 36px;
  }

  body.home-page .scroll-story__mobile-media {
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
    border-radius: 14px;
  }

  body.home-page .scroll-story__step {
    opacity: 1;
  }

  body.home-page .scroll-story__kicker {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  body.home-page .scroll-story__step h3 {
    max-width: 580px;
    margin-bottom: 16px;
    font-size: clamp(1.65rem, 6.9vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  body.home-page .scroll-story__step > p:not(.scroll-story__kicker) {
    margin-bottom: 16px;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  body.home-page .happening-grid {
    gap: 16px;
  }

  body.home-page .event-ledger {
    padding: 22px;
    border-radius: 16px;
  }

  body.home-page .event-ledger__item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
  }

  body.home-page .event-ledger__item + .event-ledger__item {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  body.home-page .event-date {
    padding: 14px 8px;
  }

  body.home-page .event-date strong {
    font-size: 2.2rem;
  }

  body.home-page .event-date span {
    margin-top: 6px;
    font-size: 0.59rem;
    letter-spacing: 0.055em;
  }

  body.home-page .event-ledger__copy h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  body.home-page .event-ledger__copy p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  body.home-page .event-ledger__item .button {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-height: 44px;
    margin-top: 0;
  }

  body.home-page .weather-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
  }

  body.home-page .weather-panel__temp {
    margin-top: 18px;
    font-size: 3rem;
  }

  body.home-page .weather-panel__condition {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  body.home-page .weather-panel__footer {
    align-self: stretch;
    display: flex;
    max-width: 138px;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 0;
    padding: 0 0 0 16px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  body.home-page .weather-panel__wind {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  body.home-page .weather-panel__footer .weather-consent {
    min-height: 44px;
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  body.home-page .engagement-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px 230px auto;
    gap: 14px;
  }

  body.home-page .engagement-tile {
    min-width: 0;
    min-height: 180px;
    padding: 22px;
    border-radius: 16px;
  }

  body.home-page .engagement-tile--large,
  body.home-page .engagement-tile--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.home-page .engagement-tile--image img {
    height: 100%;
  }

  body.home-page .engagement-tile h3 {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
    line-height: 1.15;
  }

  body.home-page .engagement-tile__content p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  body.home-page .engagement-tile:not(.engagement-tile--image) {
    min-height: 210px;
    padding: 20px 16px;
  }

  body.home-page .engagement-tile:not(.engagement-tile--image) h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
    overflow-wrap: anywhere;
  }

  body.home-page .engagement-tile:not(.engagement-tile--image) .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  body.home-page .mayor-preview {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.home-page .mayor-preview__mark {
    min-height: 180px;
    border-radius: 16px;
  }

  body.home-page .mayor-preview__mark img {
    width: 82px;
    height: 104px;
    filter: none;
  }

  body.home-page .mayor-preview blockquote {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 7.8vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  body.home-page .mayor-preview__signature {
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  @media (min-width: 641px) {
    body.home-page .hero {
      grid-template-columns: 28px minmax(0, 1fr) 28px;
      padding-top: 0;
    }

    body.home-page .hero__copy h1 {
      max-width: 720px;
      font-size: 4.25rem;
    }

    body.home-page .hero__stage {
      height: min(58vw, 500px);
      margin-top: 0;
    }

    body.home-page .hero__actions {
      max-width: 540px;
    }

    body.home-page .hero__copy > .lede {
      max-width: 720px;
      font-size: 1.05rem;
    }

    body.home-page .hero__locator {
      font-size: 0.9rem;
    }

    body.home-page .quick-access__inner {
      width: calc(100% - 56px);
    }

    body.home-page .scroll-story__steps {
      grid-template-columns: 1fr 1fr;
      gap: 32px 24px;
    }

    body.home-page .scroll-story__step:last-child {
      grid-column: 1 / -1;
      max-width: 620px;
    }

    body.home-page .engagement-mosaic {
      grid-template-rows: 340px 280px auto;
      gap: 20px;
    }
  }

  @media (max-width: 359px) {
    body.home-page .hero {
      grid-template-columns: 20px minmax(0, 1fr) 20px;
    }

    body.home-page .hero__copy h1 {
      padding-inline: 12px;
      font-size: 2.45rem;
    }

    body.home-page .hero__copy h1 > span {
      font-size: 0.63em;
    }

    body.home-page .hero-controls {
      padding-inline: 20px;
    }

    body.home-page .hero__actions {
      gap: 8px;
    }

    body.home-page .hero__actions .button {
      padding-inline: 8px;
      font-size: 0.8125rem;
    }

    body.home-page .weather-panel {
      grid-template-columns: 1fr;
    }

    body.home-page .weather-panel__footer {
      max-width: none;
      margin-top: 0;
      padding: 14px 0 0;
      border-top: 1px solid rgba(255, 255, 255, 0.22);
      border-left: 0;
    }

    body.home-page .engagement-mosaic {
      grid-template-columns: 1fr;
      grid-template-rows: 240px 220px auto auto;
    }

    body.home-page .engagement-tile:not(.engagement-tile--image) {
      min-height: 0;
      padding: 24px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body.home-page .hero-controls__buttons {
      grid-template-columns: repeat(5, minmax(44px, 1fr));
    }
  }

}
