/* Tablet and phone layouts. The established desktop design stays above 1024px. */
@media (max-width: 1024px) {
  :root { --page-gutter: clamp(20px, 4vw, 32px); }
  .wrap { padding-inline: var(--page-gutter); }
  .section.wrap { padding-inline: var(--page-gutter); }
  .hero > *, .meet-grid > *, .report > *, .area-grid > *,
  .faq-grid > *, .contact-grid > *, .fields > * { min-width: 0; }

  .header {
    position: relative;
    height: auto;
    min-height: 140px;
    padding-block: 18px;
    gap: 24px;
  }
  .header .brand-lockup { width: min(340px, calc(100% - 100px)); }
  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 78px;
    min-height: 48px;
    padding: 10px 14px;
    flex-shrink: 0;
    font-size: 1rem;
  }
  .menu::after { content: '+'; font-size: 1.3rem; line-height: 1; }
  .menu[aria-expanded="true"]::after { content: '−'; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: var(--page-gutter);
    right: var(--page-gutter);
    z-index: 20;
    padding: 16px;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
    font-size: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px #10395018;
  }
  .nav.open { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; }
  .nav .btn { margin-top: 8px; }
  .trust-inner { flex-wrap: wrap; justify-content: flex-start; gap: 14px 28px; }
  .trust-inner span { font-size: .94rem; }
  .report-header { flex-wrap: wrap; gap: 12px; }
  .sample { white-space: nowrap; }
  .places span { max-width: 100%; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > p { flex: 1 1 280px; }
}

@media (max-width: 900px) {
  .hero, .meet-grid, .report, .area-grid, .faq-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hero { padding-block: 16px 48px; }
  .hero-copy { padding: 0; max-width: 680px; }
  .hero-photo { height: auto; aspect-ratio: 4 / 3; max-height: 580px; }
  .hero-photo img { display: block; }
  .section-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .section-intro h2, .section-intro p { max-width: 680px; }
  .services, .process { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service { padding: 32px; }
  .service .number { margin-bottom: 18px; }
  .process { margin-top: 32px; }
  .step { padding-top: 24px; }
  .step p { margin-bottom: 0; }
  .video-card { min-height: 0; padding: 32px; }
  .video-card h3, .video-card p { max-width: 580px; }
  .video-slot { min-height: 0; }
  .report { margin-top: 64px; }
  .report > div:last-child { grid-row: 1; }
  .report-row { gap: 24px; font-size: 1rem; padding-block: 14px; }
  .report-row span:first-child { flex: 1.25; }
  .report-row span:last-child { flex: 1; text-align: right; }
  .contact-grid { gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-inner > p { flex: none; max-width: 620px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 24px; }
  body { font-size: 16px; line-height: 1.75; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; }
  h2, .area h2 { font-size: clamp(1.875rem, 7.7vw, 2.375rem); line-height: 1.2; letter-spacing: -.025em; }
  h3 { font-size: 1.3rem; line-height: 1.35; }
  .lead { font-size: 1.0625rem; line-height: 1.7; }
  .eyebrow { font-size: .72rem; letter-spacing: .12em; line-height: 1.85; margin-bottom: 18px; }
  .tiny { font-size: .875rem; line-height: 1.65; }

  .header { flex-direction: column; min-height: 0; gap: 16px; padding-block: 18px; }
  .header .brand-lockup, .footer-brand-lockup.brand-lockup { width: min(340px, 100%); }
  .brand-lockup .brand-descriptor { margin-top: -7px; font-size: clamp(.69rem, 2.9vw, .875rem); line-height: 1.5; }
  .menu { width: 100%; justify-content: space-between; min-height: 44px; background: var(--sky); }
  .nav { top: calc(100% - 6px); }

  .hero { gap: 32px; padding-block: 18px 40px; }
  .hero-service-label { font-size: 1rem; line-height: 1.55; margin-bottom: 16px; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
  .btn { min-height: 48px; padding: 14px 18px; font-size: 1rem; }
  .hero-actions .textlink { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .hero-photo { aspect-ratio: auto; max-height: none; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; border-radius: 52px 8px 8px 8px; }
  .photo-label { position: static; margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); font-size: .875rem; line-height: 1.65; }
  .photo-label strong { margin-bottom: 4px; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 24px; }
  .trust-inner span { align-items: flex-start; gap: 12px; font-size: .94rem; line-height: 1.6; }
  .check { flex-shrink: 0; }
  .section { padding-block: 60px; }
  .section-intro { gap: 20px; margin-bottom: 30px; }
  .service { padding: 26px 22px; }
  .service p, .step p, .service ul { font-size: 1rem; }
  .service li { margin-block: 10px; }
  .meet-grid, .faq-grid, .contact-grid { gap: 32px; }
  .video-card { padding: 26px 22px; gap: 14px; }
  .video-card h3 { font-size: 2rem; }
  .video-slot { aspect-ratio: 4 / 3; padding: 20px 14px; margin-block: 4px 12px; }
  .video-slot.has-video { aspect-ratio: 16 / 9; padding: 0; }
  .video-slot-title { font-size: 1.55rem; }
  .video-slot-subtitle { font-size: .875rem; line-height: 1.6; }
  .video-card .btn { align-self: stretch; }

  .report { margin-top: 52px; gap: 26px; }
  .report-card { padding: 22px 20px; }
  .report-header { flex-direction: column; gap: 12px; align-items: flex-start; padding-bottom: 20px; }
  .report-header strong { display: block; margin-bottom: 5px; }
  .report-row { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 15px; line-height: 1.5; }
  .report-row span:first-child { flex: none; font-weight: 600; }
  .report-row span:last-child { flex: none; text-align: left; font-size: .94rem; }
  .report-footer { font-size: .875rem; line-height: 1.7; }
  .area { padding-block: 52px; }
  .area-grid { gap: 26px; }
  .places { gap: 10px; }
  .places span { font-size: .94rem; padding: 9px 15px; }
  details { padding-block: 22px; }
  summary { min-height: 28px; line-height: 1.6; }
  summary::-webkit-details-marker { display: none; }
  details p { line-height: 1.75; }

  form { padding: 26px 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field { margin-bottom: 22px; }
  label { font-size: .94rem; margin-bottom: 9px; }
  input, select, textarea { min-width: 0; max-width: 100%; min-height: 48px; font-size: 16px; }
  textarea { min-height: 140px; }
  .form-note { font-size: .875rem; line-height: 1.65; margin-top: 16px; }
  .form-status { overflow-wrap: anywhere; }
  footer { padding-block: 36px; }
  .footer-inner { align-items: center; gap: 26px; }
  .footer-inner > p { font-size: .875rem; line-height: 1.75; text-align: center; }
  .footer-inner > .textlink { display: flex; align-items: center; min-height: 44px; }
  dialog { padding: 26px 22px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
  dialog h2 { font-size: 1.875rem; clear: both; padding-top: 18px; }
  dialog .close { min-height: 44px; padding: 8px 16px; }
}
