/* Mobile composition. Desktop styles above 800px remain unchanged. */
@media (max-width: 800px) {
  :root { --mobile-gutter: clamp(20px, 6.15vw, 32px); }
  main > section[id] { scroll-margin-top: 88px; }
  .js .reveal { opacity: 1; transform: none; }

  .site-header { z-index: 20; height: 76px; padding-inline: var(--mobile-gutter); background: linear-gradient(180deg, rgba(1,24,20,.76), transparent); }
  .site-header .brand, .site-header .menu-button { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
  .site-header.is-scrolled .brand, .site-header.is-scrolled .menu-button { color: var(--deep) !important; text-shadow: none !important; }
  .menu-button { width: 68px; min-height: 48px; }
  .menu-button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
  body.menu-open .site-header { position: fixed; z-index: 25; background: var(--deep); backdrop-filter: none; }
  body.menu-open .site-header .brand, body.menu-open .site-header .menu-button { color: #fff !important; text-shadow: none !important; }
  body.menu-open .site-header .brand-mark { background: var(--paper); color: var(--deep); }
  .menu-panel { z-index: 24; display: block; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 104px var(--mobile-gutter) max(32px, env(safe-area-inset-bottom)); }
  .menu-grid { width: 100%; gap: 26px; }
  .menu-grid > p { font-size: 25px; line-height: 1.55; margin: 0; }
  .menu-grid nav a { min-height: 55px; padding: 16px 0; font-size: 17px; }

  .hero { height: min(780px, 100svh); min-height: 540px; }
  .hero > img { object-position: 48% 50%; }
  .hero-copy { left: var(--mobile-gutter); right: var(--mobile-gutter); top: 29%; }
  .hero h1 { font-size: clamp(32px, 10.25vw, 44px); line-height: 1.3; letter-spacing: 0; white-space: normal; margin: 24px 0; }
  .hero-note { font-size: 14px; line-height: 1.95; }
  .hero-bottom { left: var(--mobile-gutter); right: var(--mobile-gutter); bottom: 26px; }
  .section-pad { padding: 64px var(--mobile-gutter); }
  .section-label { font-size: 11px; }
  .intro { gap: 28px; }
  .intro-copy { padding-top: 0; }
  .kicker { font-size: 17px; line-height: 1.8; margin-bottom: 0; }
  .intro h2, .business h2, .people h2 { font-size: clamp(30px, 8.2vw, 36px) !important; line-height: 1.48 !important; letter-spacing: 0; }
  .intro h2 { margin: 24px 0; }
  .body-copy, .statement-content > p:not(.eyebrow), .people-copy p { max-width: none; font-size: 16px; line-height: 1.9; }
  .intro .body-copy { margin-bottom: 0; }
  .intro-image { display: none; }

  .statement { min-height: 0; }
  .statement-content { order: 1; padding: 56px var(--mobile-gutter) 32px; }
  .statement-content .eyebrow { margin-bottom: 0; }
  .statement h2 { font-size: clamp(34px, 9.7vw, 42px); line-height: 1.4; margin: 24px 0; }
  .statement-content > p:not(.eyebrow) { margin-bottom: 0; }
  .text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 14px; margin-top: 24px; }
  .statement-image { order: 2; height: clamp(180px, 52vw, 300px); background-size: cover; background-position: 50% 0; }

  .business-head { display: block; margin: 28px 0 26px; }
  .business-head h2 { margin: 0; }
  .business-head p { margin: 20px 0 0; font-size: 15px; line-height: 1.9; }
  .business-head p br, .project-heading div > p br { display: none; }
  .business-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; overflow: visible; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .business-item { min-width: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .business-item a { display: grid; grid-template-columns: 34% minmax(0,1fr); align-items: center; gap: 18px; }
  .business-photo { aspect-ratio: 1 / 1.08; }
  .business-meta { padding: 0; border: 0; min-width: 0; }
  .business-meta h3 { font-size: 26px; line-height: 1.4; }
  .business-meta p { margin: 5px 0 10px; font-size: 9px; letter-spacing: .04em; line-height: 1.6; }
  .business-meta b { font-size: 12px; line-height: 1.8; }
  .business-item a:hover .business-meta { border: 0; }
  .business-item:nth-child(2) img { object-position: 43% 50%; }
  .business-item:nth-child(3) img { object-position: 48% 50%; }

  .projects { padding: 64px 0; }
  .project-heading { padding: 0 var(--mobile-gutter) 32px; gap: 28px; }
  .project-heading h2 { font-size: clamp(34px, 9.7vw, 42px); line-height: 1.4; margin: 0 0 20px; }
  .project-heading div > p { font-size: 15px; line-height: 1.9; margin: 0; }
  .project-strip { padding: 0 var(--mobile-gutter) !important; gap: 20px !important; scroll-snap-type: none; }
  .project-strip article { height: auto !important; aspect-ratio: 1.18; }
  .project-card-link { position: relative; }
  .project-card-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgba(0,20,16,.76)); pointer-events: none; }
  .project-strip img { opacity: .9; }
  .project-strip article:first-child img { height: 130%; object-position: 50% 0; }
  .project-strip article:nth-child(2) img { object-position: 42% 50%; }
  .project-strip article:nth-child(3) img { object-position: 48% 50%; }
  .project-strip div { z-index: 1; inset: auto 22px 22px; }
  .project-strip h3 { font-size: 30px !important; line-height: 1.35; margin-top: 10px; }
  .project-card-link:focus-visible { outline: 2px solid var(--acid); outline-offset: -5px; }

  .people-grid { gap: 28px; margin-top: 28px; }
  .people-copy h2 { margin: 0 0 24px; }
  .people-copy p { margin-bottom: 0; }
  .people-image { width: 100%; }
  .people-image img { display: block; aspect-ratio: 1.4; object-position: 50% 50%; }
  .people-image figcaption { font-size: 11px; line-height: 1.8; letter-spacing: 0; }
  .contact { padding: 64px var(--mobile-gutter); }
  .contact h2 { font-size: clamp(34px, 9.7vw, 42px); line-height: 1.4; margin: 24px 0; }
  .contact-inner > p:not(.eyebrow) { font-size: 15px; line-height: 1.9; }
  .contact-button { width: 100%; min-height: 54px; margin-top: 22px; padding: 16px; }
  footer { padding: 28px var(--mobile-gutter) 20px; }
  .footer-top { padding: 8px 0 24px; }
  .footer-top p { margin-top: 20px; }
  .photo-credits { margin-bottom: 20px; }
  .photo-credits summary { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 0; }
  .photo-credits summary::after { content: '+'; font-size: 18px; }
  .photo-credits[open] summary::after { content: '−'; }
  .photo-credit-content { font-size: 12px; line-height: 1.9; }
  .photo-credit-item p a { display: inline-block; max-width: 100%; min-height: 44px; padding: 10px 0; vertical-align: middle; }
  .footer-bottom { align-items: center; gap: 8px 16px; padding-top: 10px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }

  dialog[data-dialog] { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 28px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
  dialog[data-dialog] h2 { font-size: 24px; line-height: 1.5; padding-right: 16px; margin-bottom: 0; }
  dialog[data-dialog] > .eyebrow { min-height: 20px; margin-bottom: 14px; }
  .dialog-close { width: 44px; height: 44px; display: grid; place-items: center; top: 8px; right: 8px; padding: 0; }
  dialog form { gap: 16px; margin-top: 20px; }
  dialog label { font-size: 14px; gap: 8px; }
  dialog input, dialog select, dialog textarea { font-size: 16px; min-height: 48px; padding: 12px; }
  dialog textarea { min-height: 120px; }
  dialog[data-dialog] button[type=submit] { width: 100%; min-height: 52px; margin-top: 4px; padding: 15px; }
  .case-dialog { max-height: calc(100dvh - 24px); }
  .case-toolbar { padding: 10px 16px; }
  .case-body { padding: 22px 20px 28px; }
  .case-body h2 { font-size: clamp(27px, 7.7vw, 32px); margin-bottom: 22px; }
  .case-body h3 { font-size: 22px; }
  .case-figure img { height: auto; aspect-ratio: 16 / 10; object-position: 50% 0; }
  .case-figure figcaption { padding: 0 20px; }
  .case-figure figcaption a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 0; }
  .case-columns { gap: 24px; }
  .case-lead { line-height: 1.9; }
  .case-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .case-actions a { justify-content: space-between; min-height: 48px; }

  /* Direct links and no-JavaScript fallbacks share the phone reading scale. */
  body.detail-page main { padding: 104px var(--mobile-gutter) 56px; }
  .detail-page .page-feature { margin-bottom: 24px; }
  .detail-page .page-feature img { display: block; height: auto; aspect-ratio: 16 / 10; object-position: 50% 0; }
  .detail-page .page-feature figcaption a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: underline; }
  .detail-page main > h1 { font-size: clamp(30px, 8.2vw, 36px); line-height: 1.5; margin: 20px 0 24px; }
  .detail-page .detail, .detail-page .project-detail { margin-top: 0; gap: 24px; }
  .detail-page .detail p, .detail-page .project-detail p, .detail-page dd { font-size: 16px; line-height: 1.9; }
  .detail-page .detail h2, .detail-page .process h2 { font-size: 24px; line-height: 1.5; }
  .detail-page .process { margin-top: 36px; }
  .detail-page .related { margin-top: 36px; }
  .detail-page .related .text-link { display: flex; width: fit-content; }
  .detail-page .photo-credit-entry a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: underline; }
}
@media (max-width: 800px) and (max-height: 500px) {
  .hero { min-height: 480px; }
  .hero-copy { top: 130px; }
  .menu-panel { padding-top: 92px; }
  .menu-grid { gap: 20px; }
  .menu-grid > p { font-size: 21px; }
}
