/* Purpose-built phone composition, loaded only below the desktop navigation breakpoint. */
:root { --phone-edge: clamp(1rem, 4vw, 1.5rem); }
html { scroll-padding-top: 5.25rem; scroll-padding-bottom: 5.25rem; }
body { font-size: 1rem; }
.wrap { width: calc(100% - 2 * var(--phone-edge)); }
header { padding: .4rem var(--phone-edge); }
.header-inner { max-width: none; }
.header-actions .lang, .menu-button { min-width: 44px; min-height: 44px; }
.section, .territory, .quote-section { padding-block: clamp(2.5rem, 8vw, 4rem); }
.section-head { margin-bottom: 1.25rem; }
p, .intro, .hero-sentence, .hero-sentence p { font-size: 1rem; line-height: 1.55; }
h1 { font-size: clamp(2.25rem, 9.6vw, 3.5rem); line-height: 1.03; max-width: 16ch; }
h2 { font-size: clamp(1.82rem, 7.4vw, 2.75rem); line-height: 1.09; text-wrap: balance; }
.kicker, .lintel { letter-spacing: .075em; }
.button, .phone-link { min-height: 48px; }
.hero-copy, .hero-action { width: calc(100% - 2 * var(--phone-edge)); }
.hero-copy { margin-block: 0 .9rem; }
.hero-sentence { margin-top: .7rem; }
.page-hero { padding-block: 1.55rem 0; }
.street-hero { padding-bottom: .2rem; }
.street-hero .hero-copy, .street-hero .hero-action, .street-hero .hero-scene {
  width: calc(100% - 2 * var(--phone-edge));
  margin-inline: auto;
}
.street-hero .hero-copy { position: static; display: block; margin-bottom: 1.1rem; }
.street-hero .hero-copy h1 { max-width: 15ch; }
.street-hero .hero-scene { display: flex; flex-direction: column; gap: .9rem; padding: 0; overflow: visible; }
.street-hero .routes-m, .street-hero .routes-d, .street-hero .bracket { display: none; }
.street-hero .hero-signs {
  position: static; order: -1; display: grid; gap: .5rem; inset: auto; pointer-events: auto;
}
.street-hero .sign, .street-hero .hero-scene.go-home .sign-home, .street-hero .hero-scene.go-work .sign-work {
  position: static; width: 100%; inset: auto; translate: none; transform: none;
  filter: none; animation: none; opacity: 1;
}
.street-hero .sign::after { display: none; }
.street-hero .sign-body { width: 100%; gap: .7rem; min-height: 3.3rem; padding: .4rem .6rem; border: 1px solid var(--line); justify-content: flex-start; }
.street-hero .sign-work .sign-body { border-color: var(--deep); }
.street-hero .sign-icon { width: 2.1rem; height: 2.1rem; }
.street-hero .sign-text { min-width: 0; line-height: 1.15; }
.street-hero .sign-text small { font-size: .72rem; letter-spacing: .08em; }
.street-hero .sign-text strong { font-size: 1.13rem; }
.street-hero .sign-go { margin-left: auto; width: 2rem; height: 2rem; }
.street-hero .hero-visual img {
  aspect-ratio: auto; height: clamp(11rem, 48vw, 18rem); width: 100%;
  object-fit: cover; object-position: center 66%; border-radius: 13px; animation: none;
}
.street-hero .hero-action { position: static; margin-block: .7rem 0; }
.street-hero .hero-action .button { width: 100%; }
.building { grid-template-columns: minmax(0, 1fr); gap: .85rem; margin-top: 1rem; }
.building .floor { display: grid; grid-template-columns: minmax(0, 1fr); }
.building .floor-window .door-image img { width: 100%; height: clamp(9rem, 38vw, 15rem); aspect-ratio: auto; min-height: 0; object-fit: cover; }
.building .floor-copy { padding: .95rem 1rem 1rem; }
.building .floor-copy h3 { font-size: clamp(1.65rem, 7vw, 2.25rem); }
.building .floor-spaces { margin: .85rem 0 .35rem; }
.building .floor .text-link { align-self: stretch; margin-top: .35rem; font-size: 1rem; }
.floor-spaces span { max-width: 100%; white-space: normal; }
.hero-copy > div { min-width: 0; }
.residential-hero .hero-visual, .commercial-hero .hero-visual { width: 100%; }
.residential-hero .hero-scene, .commercial-hero .hero-scene {
  width: calc(100% - 2 * var(--phone-edge));
  margin: 0 auto;
}
.residential-hero .hero-visual img, .commercial-hero .hero-visual img {
  width: 100%; height: clamp(10rem, 49vw, 19rem); aspect-ratio: auto; object-fit: cover;
  border-radius: 13px; animation: none;
}
.residential-hero .mobile-hero-action, .commercial-hero .mobile-hero-action { margin-block: .9rem; }
.choice-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: 1rem; }
.choice-card { min-height: 3.65rem; padding: .75rem; gap: .65rem; }
.choice-card strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.choice-card small { display: block; font-size: 1rem; line-height: 1.35; margin-top: .25rem; }
.choice-card .choice-pic { width: 2.35rem; height: 2.35rem; }
.rooms-section > .wrap { width: calc(100% - 2 * var(--phone-edge)); }
.rooms-section .section-head { padding-inline: 0; }
.rooms-layout { width: 100%; margin: 1rem 0 0; }
.plan-wrap { display: none; }
.room-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.room-nav button {
  display: inline-flex; gap: .4em; align-items: center; justify-content: space-between; min-width: 44px;
  min-height: 44px; padding: .45rem .65rem; background: #ffffff0a; color: var(--cream);
  border: 1px solid #fffdf875; border-radius: .5rem; font-size: 1rem; line-height: 1.25; text-align: left;
}
.room-nav button[aria-pressed=true] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.room-cards { display: block; overflow: visible; padding: 0; scroll-snap-type: none; }
.room-card { display: none; width: 100%; max-width: none; }
.room-card.active { display: block; }
.room-card > .lintel, .room-dots { display: none; }
.room-card > img, .room-card > picture > img { width: 100%; height: clamp(9rem, 46vw, 16rem); aspect-ratio: auto; object-fit: cover; }
.room-card-body { padding: .85rem; }
.room-card-body h3 { margin-block: 0 .4rem; font-size: 1.45rem; }
.room-card-body .button { width: 100%; font-size: 1rem; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.work-grid .work-photo { order: 1; width: 100%; height: clamp(8rem, 40vw, 14.5rem); min-height: 0; aspect-ratio: auto; object-fit: cover; border-radius: .85rem; }
.directory, .directory .priority-options .selection { min-width: 0; }
.directory { padding: .8rem .65rem; border-width: 2px; border-radius: .85rem; }
.directory .priority-options .selection { grid-template-columns: 1.6rem minmax(0, 1fr) auto; min-height: 52px; gap: .55rem; padding: .65rem .3rem; }
.directory .priority-options strong { display: block; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.directory .priority-options small { display: block; font-size: 1rem; line-height: 1.35; margin-top: .2rem; }
.details-section .detail-list { margin-top: .85rem; }
.details-section .step, .steps-section .step { padding-block: .85rem; }
.address-layout { display: grid; grid-template-columns: minmax(0, 1fr); text-align: left; gap: .9rem; }
.address-layout > :not(.mini-map):not(.button) { grid-row: 1; }
.address-layout > .mini-map { width: min(100%, 16rem); margin: 0; justify-self: center; }
.address-band { padding-block: 2.5rem; }
.territory-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.territory-copy { display: contents; }
.territory-copy > p:not(.kicker):not(.rate-line) { grid-row: 3; }
.territory-copy > .sector-chips { grid-row: 4; margin-block: .1rem; }
.territory-layout > .service-map-wrap { grid-row: 5; margin-block: .25rem; }
.territory-copy > .rate-line { grid-row: 6; }
.service-map { max-width: 24rem; margin-inline: auto; }
.map-hud { min-height: 44px; max-width: 24rem; margin-inline: auto; font-size: 1rem; padding: .45rem .65rem; }
.sector-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sector-chips button { min-height: 44px; font-size: 1rem; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.faq-list details > summary { padding-block: .8rem; min-height: 48px; }
.faq-list .faq-answer { padding-block: 0 .8rem; }
.live-recap { margin-block: 0 1.45rem; padding: .8rem; }
.live-recap .recap-route { margin-top: .6rem; }
.recap-route li { padding-block: .4rem; }
.recap-route a { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.quote-section { padding-inline: 0; }
.quote-layout.wrap { width: calc(100% - 2 * var(--phone-edge)); grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.quote-intro { position: static; min-width: 0; }
.quote-intro .intro { margin-top: .5rem; }
.quote-intro .phone-link { margin-top: .35rem; }
.request { margin: 0; padding: .85rem; }
.phone-ticket { margin: 0 0 .8rem; border-style: solid; }
.phone-ticket summary { min-height: 48px; padding-inline: .65rem; gap: .55rem; }
.phone-ticket summary small { font-size: 1rem; text-align: right; }
.phone-ticket .recap-list a, .field label, .field .field-label { font-size: 1rem; }
.fields { gap: .85rem; }
fieldset, input, select, textarea { min-width: 0; font-size: 1rem; }
.segmented button { overflow-wrap: anywhere; font-size: 1rem; }
.form-actions { margin-top: 1rem; }
.dock { left: var(--phone-edge); right: var(--phone-edge); bottom: max(.6rem, env(safe-area-inset-bottom)); }
footer { padding-inline: var(--phone-edge); padding-bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
.footer.wrap { width: 100%; }
.footer-skyline { width: calc(100% + 2 * var(--phone-edge)); margin-inline: calc(-1 * var(--phone-edge)); margin-bottom: 1.35rem; }
.footer-links { margin-top: .65rem; }
@media (prefers-reduced-motion: no-preference) { .street-hero .hero-signs { animation: none; } }

/* A wide, tall touch webview can lay out a phone at roughly 980 CSS px.
   Keep the same composition, using its larger virtual grid for readable copy and targets. */
@media (min-width:48rem) and (max-aspect-ratio:4/5),
       (min-width:48rem) and (orientation:portrait) and (hover:none) and (pointer:coarse) {
  :root {
    --phone-edge: clamp(1.5rem, 3vw, 2rem);
    --phone-text: clamp(1.5rem, 3.5vw, 2.15rem);
    --phone-touch: clamp(4.2rem, 10vw, 6.15rem);
  }
  html { scroll-padding-block: calc(var(--phone-touch) + 1rem); }
  body, p, .intro, .hero-sentence, .hero-sentence p { font-size: var(--phone-text); }
  h1 { font-size: clamp(3.4rem, 7.75vw, 4.8rem); }
  h2 { font-size: clamp(2.55rem, 6vw, 3.75rem); }
  .wordmark { font-size: clamp(1.7rem, 4.2vw, 2.65rem); }
  .kicker, .lintel, .street-hero .sign-text small, .floor-rung, .floor-level, .mm-label { font-size: clamp(.95rem, 2.4vw, 1.45rem); }
  .header-actions .lang, .menu-button { min-width: var(--phone-touch); min-height: var(--phone-touch); font-size: var(--phone-text); }
  .button, .phone-link, .quote-layout input, .quote-layout select, .quote-layout textarea,
  .phone-ticket summary, .faq-list details > summary, .room-nav button, .sector-chips button,
  .choice-card, .directory .priority-options .selection, .segmented button, .street-hero .sign-body {
    min-height: var(--phone-touch); font-size: var(--phone-text);
  }
  .street-hero .sign-text strong, .choice-card strong, .room-card h3 { font-size: clamp(1.65rem, 4vw, 2.45rem); }
  .street-hero .sign-icon, .street-hero .sign-go { width: clamp(2.35rem, 6vw, 3.45rem); height: clamp(2.35rem, 6vw, 3.45rem); }
  .street-hero .hero-visual img, .residential-hero .hero-visual img, .commercial-hero .hero-visual img {
    height: clamp(17rem, 40vw, 26rem);
  }
  .building .floor-copy h3 { font-size: clamp(2rem, 5vw, 3.1rem); }
  .building .floor .text-link, .choice-card small, .directory .priority-options strong,
  .directory .priority-options small, .room-card-body .button, .quote-layout label, .quote-layout .field-label,
  .phone-ticket summary small, .phone-ticket .recap-list a, .recap-route a, .map-hud, .map-hud b,
  #navigation nav > .menu-request, #navigation nav > .menu-language, #navigation nav > .menu-phone,
  .footer a:not(.wordmark), .footer > div > p { font-size: var(--phone-text); }
  .directory .priority-options .selection { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .8rem; }
  .service-map, .map-hud { max-width: 38rem; }
  footer { padding-bottom: calc(var(--phone-touch) + 1.65rem + env(safe-area-inset-bottom)); }
}
