/* Phone and tablet layouts are isolated here so the desktop composition stays intact. */
@media (max-width: 900px) {
  :root { --gutter: clamp(20px, 5.5vw, 28px); }
  html { scroll-padding-top: 88px; }
  .site-header {
    height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 8px;
    padding: 0 20px;
  }
  .site-header .desktop-nav { display: none; }
  .site-header .brand { width: min(100%, 160px); min-width: 0; }
  .site-header > .button.small.nav-visit {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    gap: 0;
    white-space: nowrap;
  }
  .site-header > .nav-visit .action-arrow { display: none !important; }
  .site-header .menu-toggle { width: 44px; height: 44px; padding: 10px; }
  .mobile-nav {
    inset: 72px 0 auto;
    height: calc(100svh - 72px);
    height: calc(100dvh - 72px);
    padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
  }
  .mobile-nav-group { border-bottom: 1px solid var(--line); }
  .mobile-nav-group > summary,
  .mobile-nav > a:not(.button) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 16px 0;
    gap: 20px;
    list-style: none;
    font-family: var(--display);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.04em;
  }
  .mobile-nav-group > summary::-webkit-details-marker { display: none; }
  .mobile-nav-group > summary .site-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform .2s;
  }
  .mobile-nav-group[open] > summary .site-icon { transform: rotate(180deg); }
  .mobile-nav-group > .mobile-subnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 0 14px 14px;
    margin: 0;
    border: 0;
  }
  .mobile-nav-group .mobile-subnav > a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0;
  }
  .mobile-nav > .button {
    min-height: 52px;
    padding: 15px 20px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    border: 0;
  }
  .mobile-nav:not([hidden]) > a { animation: none; }
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px var(--gutter);
  }
  .page-hero-copy, .page-hero-photo,
  .split-copy > *, .mission-grid > *, .interior-pastors > *,
  .path-stages > *, .giving-grid > *, .next-steps-grid > *,
  .rhythm-grid > *, .footer-info > * { min-width: 0; }
  .page-hero-photo { height: auto; aspect-ratio: 4 / 3; max-height: 420px; }
  .page-hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; max-width: 640px; }
  .page-hero h1 > span { white-space: normal; }
  .split-copy, .mission-grid, .interior-pastors,
  .about-story-grid, .about-pastor-grid, .visitor-family,
  .visit-info-grid, .orientation-steps, .guide-commitment,
  .planted-invite, .pathway-preview, .path-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .mission-grid article + article,
  .about-mission-grid article + article,
  .visit-info-grid article + article {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid #ffffff40;
  }
  .about-story-heading { position: static; }
  .about-pastor-photo, .interior-pastors-photo {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 560px;
  }
  .about-pastor-photo img, .interior-pastors-photo img { object-fit: contain; }
  .visitor-family-photo, .planted-invite-photo, .pathway-preview-photo {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
  .rhythm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pastoral-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-section[id], .about-redesign main section[id]:not(#home) { scroll-margin-top: 88px; }
}

@media (max-width: 767px) {
  .site-header { padding: 0 16px; }
  .site-header .brand { max-width: 145px; }
  .section-pad, .content-section { padding: 48px var(--gutter); }
  .content-section h2, .intro h2, .next-section h2,
  .messages h2, .pastor-copy h2, .happening h2, .visit-heading h2,
  .about-purpose h2, .about-story h2, .about-pastors h2,
  .about-pillars h2, .about-beliefs h2, .about-partnership h2,
  .visit-info-grid h2, .planted-invite-copy h2, .pathway-contact h2 {
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.1;
    letter-spacing: -.055em;
  }
  .section-top { display: block; margin-bottom: 28px; }
  .section-top > div { min-width: 0; }
  .eyebrow, .section-kicker { font-size: 12px; line-height: 1.6; letter-spacing: .11em; }
  .page-hero { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
  .page-hero h1 { font-size: clamp(38px, 9.5vw, 62px); line-height: 1.08; letter-spacing: -.06em; }
  .page-hero h1 > span { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
  .page-hero-photo { max-height: 360px; }
  .page-hero-copy > p:not(.eyebrow),
  .visit-heading > p:not(.eyebrow),
  .planted-invite-copy > p:not(.eyebrow),
  .giving-method > p:not(.eyebrow),
  .update-card > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.75;
  }
  .button {
    min-height: 52px;
    max-width: 100%;
    padding: 15px 20px;
    gap: 16px;
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
    text-align: left;
  }
  .text-link { max-width: 100%; gap: 16px; min-height: 44px; font-size: 16px; line-height: 1.5; }
  .text-link:hover { gap: 16px; }
  .button .action-arrow, .text-link .action-arrow { flex-shrink: 0; }
  .inline-actions { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 24px; }
  .inline-actions .button { width: 100%; }
  .inline-actions .text-link { align-self: flex-start; }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: calc(100svh - 72px);
    max-height: none;
  }
  .hero-content { width: 100%; max-width: none; padding: 38px var(--gutter) 26px; }
  .hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(36px, 12vw, 72px); line-height: 1.02; letter-spacing: -.065em; }
  .hero h1 > .hero-kicker { font-size: clamp(18px, 4.5vw, 22px); line-height: 1.5; letter-spacing: .025em; white-space: normal; margin-bottom: 14px; }
  .hero-intro { font-size: 16px; line-height: 1.7; margin-top: 26px; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 24px; }
  .hero-actions .button { width: 100%; min-height: 54px; font-size: 16px; padding: 15px 20px; }
  .watch-link { align-self: flex-start; min-height: 48px; font-size: 16px; }
  .hero-scroll { display: none; }
  .hero-controls {
    position: relative;
    inset: auto;
    margin: 0 var(--gutter) 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  .hero-pagination { gap: 0; }
  .slide-dot { width: 44px; height: 44px; padding: 12px 8px; }
  .motion-toggle { min-height: 44px; padding: 10px 0; font-size: 14px; letter-spacing: 0; }
  .motion-toggle-icon { flex-shrink: 0; }
  .sunday-bar { grid-template-columns: minmax(0, 1fr); padding: 26px var(--gutter); gap: 22px; }
  .sunday-bar > div { display: block; }
  .sunday-bar .sunday-label { display: block; margin-bottom: 6px; }
  .sunday-bar > a { padding: 20px 0 0; border-left: 0; border-top: 1px solid #ffffff35; justify-content: flex-start; gap: 14px; }
  .sunday-bar strong { font-size: 18px; line-height: 1.5; }
  .sunday-bar small { font-size: 14px; line-height: 1.5; }
  .intro-copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .intro-copy > .text-link { justify-self: start; }
  .photo-story { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
  .story-main { aspect-ratio: 4 / 3; }
  .story-small { width: 100%; aspect-ratio: 16 / 10; margin: 0; }
  .photo-expand { width: 44px; height: 44px; }
  .next-section .section-top { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 16px; align-items: start; }
  .next-direction { position: static; width: 44px; height: 50px; margin: 8px 0 0; align-self: start; }
  .next-steps-grid, .rhythm-grid, .giving-grid, .ministry-grid,
  .visit-next-grid, .seasons, .update-grid, .pathway-rhythm,
  .checklist-items, .pastoral-team-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .next-step-photo { aspect-ratio: 4 / 3; }
  .next-step-body { padding: 26px 24px; }
  .next-step-body h2 { font-size: 30px; line-height: 1.15; }
  .next-step-body .button { width: 100%; margin-top: 24px; }
  .messages .section-top .text-link { margin-top: 20px; }
  .video-caption { position: static; display: block; padding: 16px; background: #0b0b0b; font-size: 12px; line-height: 1.6; }
  .message-play { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; aspect-ratio: auto; }
  .message-play > img { grid-area: 1 / 1; aspect-ratio: 16 / 9; height: auto; object-fit: contain; }
  .message-play > .large-play { grid-area: 1 / 1; position: relative; inset: auto; transform: none; align-self: center; justify-self: center; z-index: 1; }
  .message-play > .video-caption { grid-area: 2 / 1; }
  .large-play { width: 56px; height: 56px; }
  .pastors { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 48px var(--gutter) 0; }
  .pastor-copy { order: -1; padding: 0; }
  .pastor-copy .text-link { margin-top: 18px; }
  .pastor-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 500px; }
  .pastor-photo > img { object-fit: contain; object-position: center bottom; }
  .rhythm-photo { aspect-ratio: 4 / 3; margin-bottom: 18px; }
  .rhythm-card h3 { font-size: 28px; line-height: 1.15; }
  .visit { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .faq summary, .guide-faq summary, .belief-list summary { min-height: 52px; font-size: 17px; line-height: 1.5; gap: 18px; }
  .faq summary > span, .disclose-plus { flex-shrink: 0; }
  .faq details > p, .guide-faq p, .belief-list p { font-size: 16px; line-height: 1.8; }
  .jump-nav, .about-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0 18px;
    padding: 12px var(--gutter);
    overflow: visible;
    white-space: normal;
  }
  .jump-nav > a, .about-nav > a { min-width: 0; min-height: 48px; gap: 8px; font-size: 15px; line-height: 1.5; padding: 10px 0; }
  .about-cover { height: auto; min-height: 560px; padding: 44px var(--gutter) 36px; }
  .about-cover h1 { font-size: clamp(62px, 17vw, 104px); line-height: .94; }
  .about-cover .eyebrow { margin-bottom: 24px; }
  .about-tagline { font-size: 20px; line-height: 1.5; margin-top: 24px; }
  .about-story-cue { min-height: 48px; margin-top: 22px; font-size: 16px; }
  .about-purpose .section-top { display: flex; gap: 16px; margin-bottom: 30px; }
  .about-direction { width: 44px; height: 52px; margin: 0; }
  .about-mission-grid { gap: 28px; }
  .about-mission-grid .official-vision p { font-size: 20px; line-height: 1.7; }
  .about-mission-grid .official-mission p { font-size: 16px; line-height: 1.85; }
  .about-mission-grid .vision-actions li { font-size: 20px; line-height: 1.6; }
  .about-photo-strip { padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
  .about-story .prose > p:first-child { font-size: 18px; line-height: 1.8; }
  .about-pastor-copy h3 { font-size: 36px; }
  .about-pastor-copy .social-pair { gap: 10px 22px; }
  .about-pastoral-team { margin-top: 42px; padding-top: 36px; }
  .pastor-photo-placeholder { aspect-ratio: 4 / 3; }
  .about-pillars .pillar-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-pillars .pillar-list details { padding: 24px; }
  .about-pillars .pillar-list h3 { font-size: 25px; }
  .about-beliefs-grid, .about-partnership-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-beliefs-grid > .button, .about-partnership-actions .button { width: 100%; }
  .about-partnership-actions { align-items: stretch; gap: 18px; }
  .about-partnership-actions .text-link { align-self: flex-start; }
  .rhythm-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .rhythm-row .text-link { grid-column: auto; justify-self: start; margin: 0; }
  .rhythm-row h3 { font-size: 26px; line-height: 1.2; }
  .rhythm-when { font-size: 12px; line-height: 1.6; }
  .orientation-card, .giving-method, .update-card, .path-stage, .pathway-rhythm article { padding: 26px 24px; }
  .giving-address { font-size: 16px; overflow-wrap: anywhere; }
  .giving-number, .pathway-contact .text-link { overflow-wrap: anywhere; }
  .beliefs-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .beliefs-actions p { max-width: none; }
  .plain-button, .filter-button { min-height: 44px; font-size: 15px; }
  .filter-row { gap: 8px; }
  .fellowship-intro > p { font-size: 16px; }
  .fellowship-intro .inline-actions { align-items: stretch; }
  .fellowship-intro .button { width: 100%; }
  .fellowship-open { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; gap: 22px; }
  .fellowship-open ul { grid-template-columns: minmax(0, 1fr); }
  .fellowship-open > .text-link { grid-column: auto; }
  .fellowship-section .ministry-card { padding: 24px; min-height: 0; }
  .fellowship-section .ministry-card h3 { font-size: 26px; }
  .roadmap-line { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 0; border-left: 1px solid #ffffff55; margin: 30px 0 30px 5px; }
  .roadmap-stop { padding: 14px 0 22px 24px; }
  .roadmap-stop::before { left: -5px; top: 22px; }
  .roadmap-stop p { max-width: none; }
  .guide-facts { grid-template-columns: minmax(0, 1fr); padding: 12px var(--gutter); }
  .guide-facts > div, .guide-facts > div:first-child { display: block; padding: 18px 0; border-left: 0; border-bottom: 1px solid #ffffff35; }
  .guide-facts > div:last-child { border-bottom: 0; }
  .guide-facts strong { font-size: 22px; margin-bottom: 6px; }
  .guide-facts small { display: block; text-align: left; font-size: 14px; line-height: 1.6; }
  .guide-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; padding: 22px 0; }
  .guide-flow span { grid-column: 1; grid-row: 1 / 3; margin: 3px 0 0; font-size: 12px; }
  .guide-flow h3 { grid-column: 2; font-size: 25px; line-height: 1.2; }
  .guide-flow p { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.8; }
  .pathway-contact, .interior-end { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .pathway-contact .text-link { align-self: flex-start; }
  .interior-end > .button { width: 100%; }
  .footer { padding: 44px var(--gutter) env(safe-area-inset-bottom, 0px); }
  .footer-top { display: block; padding-bottom: 30px; }
  .footer-invite, .subpage .footer-invite, .footer .footer-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    font-size: clamp(30px, 7.5vw, 44px);
    line-height: 1.15;
    white-space: normal;
  }
  .footer-invite > span, .footer .footer-invite > span { flex-shrink: 0; margin: 0; }
  .footer-star { display: none; }
  .footer-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 22px; padding: 32px 0; }
  .footer-info > div:nth-child(-n+2) { grid-column: 1 / -1; }
  .footer-brand > img { width: 175px; height: 36px; }
  .footer-info strong { font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
  .footer-info > div:not(:first-child) > a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
  .footer-info > div:not(:first-child) > p { font-size: 16px; line-height: 1.8; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; font-size: 14px; }
  .footer-bottom > a { min-height: 44px; }
  dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-close, .watch-dialog .dialog-close { width: 44px; height: 44px; }
  .watch-dialog-top { padding: 20px 16px; align-items: flex-start; }
  .watch-dialog h2 { font-size: 22px; line-height: 1.2; }
  .watch-dialog > p { padding: 16px; font-size: 16px; }
  .lightbox-footer { align-items: flex-start; flex-direction: column; gap: 16px; padding: 18px; }
  .lightbox-footer > div { align-self: flex-end; }
  .lightbox-footer button { width: 48px; height: 44px; }
  .js .reveal, .js .reveal[data-reveal=left], .js .reveal[data-reveal=right] { transform: translateY(16px); transition-duration: .45s; }
  .js .reveal.visible { transform: none; }
  .motion-cards.motion-entered > :not([hidden]) { animation-duration: .45s; }
}

@media (max-width: 380px) {
  .hero-controls { gap: 8px; }
  .hero-pagination .slide-dot { width: 44px; }
  .footer-info { grid-template-columns: minmax(0, 1fr); }
  .footer-info > div { grid-column: 1; }
}

@media (max-width: 900px) and (hover: none) {
  .button:hover { transform: none; box-shadow: none; }
  .text-link:hover { gap: 16px; }
  .pastors:hover .pastor-photo > img { transform: none; }
}
