/* Screen-led layouts: desktop, tablet, compact phone, and wide displays. */
.ui-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.12em; }
.button > span, .text-link > span { display: inline-flex; align-items: center; justify-content: center; }
.expand-mark, .quote-options > summary > span, .faq-list summary > span { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-footer a > .ui-icon { width: 16px; height: 16px; margin-left: 5px; }
.compact-hero-title, .mobile-service-list { display: none; }
.quote-options { margin-top: 20px; }
.quote-options > summary { display: none; }
.quote-options > .form-grid { margin-top: 0; }
.hero-copy, .quote-form-shell, .field, .work-empty-copy { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }

/* Tablets and small laptops keep the image beside the headline. */
@media (min-width: 701px) and (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { min-height: 490px; padding-block: 34px 42px; }
  .hero-copy { width: 51%; max-width: 490px; }
  .hero h1 { font-size: clamp(58px, 7.6vw, 80px); line-height: .95; }
  .hero-description { font-size: 15px; line-height: 1.65; }
  .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
  .hero-photo > img { object-fit: cover; object-position: 76% center; }
  .hero-photo:after { background: linear-gradient(90deg, #081f3cf5, #081f3cbd 33%, transparent 72%); }
  .hero-actions { gap: 12px 18px; }
  .hero-actions .button { font-size: 14px; padding-inline: 20px; }
  .hero-actions .text-link { font-size: 13px; min-height: 44px; }
  .hero-location { font-size: 12px; margin-top: 20px; }
  .hero-location small { font-size: 11px; }
  .hero-photo figcaption small { font-size: 9px; }
  .service-strip .wrap { width: 100%; min-width: 0; gap: 16px; padding-inline: 32px; }
  .service-strip span { font-size: 13px; letter-spacing: 1px; }
  .section { padding-block: 44px; }
  .service-row { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 18px; }
  .service-content { grid-column: 3; grid-row: 1; }
  .circle-link { grid-column: 4; grid-row: 1; }
  .service-title h3 { font-size: 28px; }
  .service-title > span { font-size: 13px; }
  .service-content > p { font-size: 15px; line-height: 1.65; }
  .section-heading > p { font-size: 15px; }
  .quote-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px; }
  .quote-copy h2 { font-size: 46px; }
  .quote-copy > p:not(.eyebrow) { font-size: 15px; }
  .phone-display { font-size: 34px; white-space: nowrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .full-field { grid-column: 1 / -1; }
  .field label { font-size: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .quote-form-shell { padding: 0; }
  .about-summary, .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
  .about-summary-copy > p { font-size: 15px; }
  .portfolio-teaser > .wrap { align-items: center; }
  .portfolio-teaser p:not(.eyebrow) { font-size: 14px; }
  .faq-grid h2 { font-size: 44px; }
  .work-empty-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
  .work-empty-copy h2 { font-size: 40px; }
  .work-empty-copy > p { font-size: 16px; }
  .mobile-contact { display: none; }
}

/* Touch navigation remains roomy on phones and smaller tablets. */
@media (max-width: 850px) {
  .site-header nav { max-height: calc(100dvh - 64px); overflow-y: auto; }
  .site-header nav > a { display: flex; align-items: center; min-height: 48px; font-size: 16px; }
  .site-header nav > .button { justify-content: space-between; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 82px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 64px; gap: 16px; }
  .brand { width: 180px; }
  .brand img { height: 62px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid #ffffff40; }
  .menu-toggle > span { width: 19px; height: 2px; background: #fff; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #081f3c; padding: 12px 20px 20px; gap: 3px; flex-direction: column; align-items: stretch; border-top: 1px solid #ffffff20; box-shadow: 0 15px 20px #0003; }
  .site-header nav.is-open { display: flex; }
  .site-header nav > a { padding: 8px; }
  .site-header nav > .button { margin-top: 8px; padding-inline: 22px; }
  .desktop-hero-title { display: none; }
  .compact-hero-title { display: inline; }
  .hero { background: #0b1c31 url('/assets/concrete-grain.svg'); }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; padding: 23px 0 20px; min-height: 0; gap: 0; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 0; position: relative; z-index: 2; font-size: 9px; letter-spacing: 1.25px; margin: 0 0 12px; }
  .status-dot { margin-right: 7px; }
  .hero h1 { order: 1; font-size: clamp(45px, 13.6vw, 82px); line-height: .98; letter-spacing: -.5px; margin: 0 0 12px; }
  .hero-description { order: 2; position: relative; z-index: 2; font-size: 14px; line-height: 1.55; margin: 0; max-width: 340px; }
  .hero-description br { display: none; }
  .hero-photo { order: 3; position: relative; inset: auto; width: calc(100% + 40px); height: clamp(180px, 59vw, 320px); margin: -4px -20px 0; overflow: hidden; }
  .hero-photo > img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: right 65%; transform: scale(1.65); transform-origin: right 65%; }
  .hero-photo:after { display: block; clip-path: none; background: linear-gradient(180deg, #0b1c31 0%, #0b1c3100 23%, transparent 78%, #0b1c31 100%); }
  .hero-photo figcaption { left: 20px; right: 20px; bottom: 8px; text-align: right; }
  .hero-photo figcaption small { font-size: 8px; color: #d6e2ee; text-shadow: 0 1px 3px #000; }
  .hero-actions { order: 4; position: relative; z-index: 2; display: flex; flex-wrap: nowrap; gap: 20px; align-items: center; max-width: none; margin-top: 4px; }
  .hero-actions .button { min-height: 48px; font-size: 14px; flex: 1; padding: 11px 19px; gap: 12px; }
  .hero-actions .text-link { min-height: 48px; font-size: 12px; gap: 8px; }
  .hero-location { order: 5; position: relative; z-index: 2; font-size: 11px; line-height: 1.6; margin: 13px 0 0; gap: 8px; align-items: flex-start; }
  .hero-location svg { width: 17px; height: 20px; flex: 0 0 17px; margin-top: 2px; }
  .hero-location small { display: none; }
  .service-strip .wrap { width: 100%; min-width: 0; min-height: 38px; padding: 8px 20px; gap: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .service-strip span { text-align: center; font-size: 12px; letter-spacing: 1px; }
  .service-strip i, .service-strip span:nth-of-type(n+3) { display: none; }

  .section { padding-block: 30px; }
  main > section:not(.hero) .eyebrow { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .section-heading { display: block; margin: 0 0 18px; }
  .section-heading h2 { font-size: 38px; line-height: 1.03; }
  .section-heading h2 br { display: none; }
  .section-heading h2 em { display: block; }
  .section-heading > p { font-size: 13px; line-height: 1.55; margin: 12px 0 0; max-width: none; }
  .section-heading > p br { display: none; }
  .services-section .service-row { display: none; }
  .mobile-service-list { display: block; }
  .mobile-service-list > details { border-top: 1px solid #3a6289; }
  .mobile-service-list > details:last-child { border-bottom: 1px solid #3a6289; }
  .mobile-service-list summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) 28px; align-items: center; gap: 10px; min-height: 82px; padding: 15px 0; list-style: none; cursor: pointer; }
  .mobile-service-list summary::-webkit-details-marker, .quote-options > summary::-webkit-details-marker { display: none; }
  .mobile-service-list .row-number { font-size: 19px; align-self: start; padding-top: 4px; }
  .mobile-service-list strong { display: block; font: 600 clamp(23px, 6.4vw, 31px)/1.1 var(--display); color: #f7faff; }
  .mobile-service-list small { display: block; color: #c2d3e4; font-size: 12px; line-height: 1.5; margin-top: 5px; }
  .expand-mark { font-size: 25px; color: #80bfff; text-align: right; }
  .mobile-service-list details[open] .expand-mark { transform: rotate(45deg); }
  .mobile-service-body { padding: 0 0 18px 32px; }
  .mobile-service-body > p { margin: 0 0 9px; font-size: 14px; line-height: 1.65; color: #dce5ef; }
  .mobile-service-body > a { min-height: 44px; font-size: 13px; }
  .pricing-note { display: block; margin-top: 17px; padding-left: 13px; }
  .pricing-note strong { font-size: 13px; }
  .pricing-note p { font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
  .pricing-note > a { display: none; }

  .quote-grid { display: block; }
  .quote-copy h2 { font-size: 39px; line-height: 1.02; }
  .quote-copy h2 br { display: none; }
  .quote-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.6; margin: 12px 0 21px; max-width: none; }
  .quote-copy > .phone-display, .quote-copy > .contact-name, .quote-copy > .location-note, .quote-copy > .small-note { display: none; }
  .quote-form-shell { padding: 0; background: none; }
  .form-heading { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px 16px; }
  .full-field { grid-column: 1 / -1; }
  .field label { font-size: 13px; line-height: 1.4; margin-bottom: 3px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; line-height: 1.5; padding: 11px 0; }
  .field .optional { font-size: 9px; }
  .field textarea { min-height: 88px; }
  .quote-options { margin-top: 18px; border-bottom: 1px solid #7190ac; }
  .quote-options > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; font-size: 13px; color: #cde4fa; font-weight: 700; cursor: pointer; list-style: none; }
  .quote-options > summary > span { color: #80bfff; font-size: 23px; }
  .quote-options[open] > summary > span { transform: rotate(45deg); }
  .quote-options > .form-grid { grid-template-columns: minmax(0, 1fr); margin: 10px 0 19px; }
  .form-note { font-size: 12px; line-height: 1.55; gap: 8px; margin: 18px 0 14px; }
  .form-note svg { width: 17px; height: 21px; }
  .quote-section .button { min-height: 50px; font-size: 14px; padding-inline: 21px; }
  .privacy-note { font-size: 10px; line-height: 1.6; text-align: left; margin-top: 11px; }
  .message-preview > h3 { font-size: 31px; }
  .preview-note { font-size: 14px; line-height: 1.6; }
  .message-preview textarea { font-size: 16px; min-height: 270px; }
  .preview-actions { gap: 16px; }
  .preview-actions button { min-height: 44px; font-size: 13px; }

  .about-section { padding-block: 25px; }
  .about-summary { display: block; border: 0; padding: 0; }
  .about-summary h2, .about-summary-copy > p:nth-child(2), .about-summary-copy .text-link { display: none; }
  .about-summary-copy > p { font-size: 14px; line-height: 1.65; margin: 0; }
  .portfolio-teaser > .wrap { display: block; padding-block: 22px; }
  .portfolio-teaser .eyebrow, .portfolio-teaser p:not(.eyebrow) { display: none; }
  .portfolio-teaser h2 { font-size: 28px; line-height: 1.1; }
  .portfolio-teaser h2 em { font: 600 10px/1.5 var(--body); letter-spacing: 1px; display: block; margin-top: 5px; }
  .portfolio-teaser > .wrap > .text-link { margin-top: 7px; min-height: 36px; font-size: 12px; }
  .text-link { min-height: 44px; }
  .faq-section { padding-block: 26px; }
  .faq-grid { display: block; }
  .faq-grid > div:first-child h2 { display: none; }
  .faq-list summary { font-size: 14px; line-height: 1.5; padding-block: 16px; min-height: 56px; }
  .faq-list summary > span { font-size: 23px; }
  .faq-list details > p { font-size: 14px; line-height: 1.65; margin-bottom: 17px; }
  .footer-main { display: grid; grid-template-columns: 1fr; gap: 14px; padding-block: 23px 17px; }
  .footer-wordmark { font-size: 31px; }
  .footer-main > p { display: none; }
  .footer-main > div { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 25px; }
  .footer-main > div > a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 7px; font-size: 10px; line-height: 1.6; padding-block: 14px 20px; }
  .mobile-contact { display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; gap: 12px; align-items: center; padding: 9px 20px calc(9px + env(safe-area-inset-bottom, 0px)); min-height: 68px; border-radius: 0; background: #081b31f5; border-top: 1px solid #5d7a983d; box-shadow: 0 -5px 20px #0003; }
  .mobile-contact > a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 14px; letter-spacing: 0; font-weight: 800; }
  .mobile-contact > a:first-child { flex: 1.5; background: #1674e7; border-radius: 999px; gap: 20px; }
  .mobile-contact > a:last-child { flex: 1; color: #e9f4ff; }
  .mobile-contact.is-hidden { display: none; }

  .work-hero { padding: 27px 0; }
  .work-hero h1 { font-size: clamp(52px, 14vw, 74px); line-height: .94; }
  .work-hero .intro { font-size: 14px; line-height: 1.65; margin-top: 16px; }
  .work-empty { padding-block: 22px 28px; }
  .work-empty-grid { display: block; }
  .first-frame { min-height: 88px; border-radius: 0; flex-direction: row; gap: 18px; padding: 0; margin-bottom: 22px; background: none; justify-content: flex-start; }
  .gallery-mark { width: 70px; height: 64px; flex-shrink: 0; }
  .first-frame .frame-caption { font-size: 10px; line-height: 1.6; text-align: left; padding: 0; max-width: 150px; margin: 0; }
  .work-empty-copy h2 { font-size: 34px; }
  .work-empty-copy > p { font-size: 14px; line-height: 1.65; margin-block: 14px; }
  .work-empty-copy > p:nth-last-of-type(1) { display: none; }
  .work-empty-copy .button { width: 100%; font-size: 13px; min-height: 48px; padding-inline: 18px; }
  .work-cta { padding-block: 23px; }
  .work-cta h2 { font-size: 31px; margin-bottom: 17px; }
  .work-cta .button { font-size: 13px; min-height: 48px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 44px; }
  .hero-photo { width: calc(100% + 32px); margin-inline: -16px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { font-size: 13px; padding-inline: 14px; gap: 8px; white-space: nowrap; }
  .hero-actions .text-link { font-size: 11px; }
  .hero-actions .text-link > span { display: none; }
  .hero-location { font-size: 10px; }
  .mobile-service-list strong { font-size: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Wider monitors and TVs retain readable line lengths and a balanced car. */
@media (min-width: 1800px) {
  .wrap { width: min(1700px, calc(100% - 160px)); }
  .header-inner { height: 100px; }
  .brand { width: 270px; }
  .site-header nav > a { font-size: 16px; }
  .hero-inner { min-height: clamp(720px, 30vw, 1200px); padding-block: 70px; }
  .hero-copy { width: 47%; max-width: 780px; }
  .hero h1 { font-size: clamp(96px, 4.7vw, 136px); }
  .hero-description { font-size: 19px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 16px; }
  .hero-location { font-size: 15px; }
  .hero-location small { font-size: 13px; }
  .hero-photo > img { object-position: 72% center; }
  .service-content > p, .about-summary-copy > p, .quote-copy > p:not(.eyebrow) { max-width: 620px; }
}

.price-guide {
  margin-top: 22px;
  color: #d6e4f1;
  line-height: 1.55;
}
.price-guide summary {
  min-height: 44px;
  padding-block: 10px;
  color: #a9d5ff;
  cursor: pointer;
  font-weight: 700;
}
.price-guide p {
  margin: 0 0 8px;
}
@media (max-width: 600px) {
  .price-guide { font-size: 15px; }
  .mobile-service-list summary { min-height: 60px; }
  #quote-form input, #quote-form select, #quote-form textarea {
    font-size: 16px;
  }
}
