/* Mobile composition. The desktop stylesheet and layout stay unchanged. */
@media (max-width: 700px) {
  html { scroll-padding-top: 106px; }
  body { -webkit-text-size-adjust: 100%; }
  .container, .hero-content, .hero-bottom { width: calc(100% - 48px); }
  .section { padding-block: 76px; }
  h2, .intro-grid h2, .experience-heading h2,
  .experience-web .experience-heading h2, .studio-content h2 {
    font-size: clamp(2rem, 8.8vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.05em;
    text-wrap: balance;
  }
  .eyebrow, .service-label, .experience .service-label {
    font-size: .75rem;
    letter-spacing: .09em;
    line-height: 1.6;
  }
  .button { min-height: 56px; padding: 15px 20px; border-radius: 16px; font-size: 1rem; }
  .text-button { min-height: 48px; font-size: .9375rem; gap: 16px; }
  .text-button > span, .button > span { flex-shrink: 0; }
  a, button { touch-action: manipulation; }

  /* A compact, persistent glass navigation with comfortable touch targets. */
  .site-header {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    width: calc(100% - 24px);
    min-height: 66px;
    padding: 10px 10px 10px 18px;
    gap: 8px;
    border-radius: 22px;
    background: rgba(28, 34, 37, .76);
    box-shadow: 0 8px 28px #141d211a, inset 0 1px 0 #ffffff26;
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
  }
  .site-header .brand { width: 86px; min-height: 44px; flex-shrink: 0; }
  .site-header .brand img { width: 86px; }
  .nav-cta { min-height: 44px; align-items: center; font-size: .8125rem; padding: 10px 12px; gap: 8px; border-radius: 14px; }
  .menu-toggle { width: 44px; height: 44px; min-width: 44px; padding: 11px; gap: 6px; border-radius: 12px; }
  .menu-toggle span { height: 1.5px; transition: transform .22s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu {
    top: calc(100% + 10px);
    padding: 12px;
    border-color: #ffffffd9;
    border-radius: 22px;
    background: #f9f9fbf5;
    box-shadow: 0 18px 54px #111c2330;
    max-height: calc(100svh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu a { min-height: 56px; display: flex; align-items: center; padding: 15px 18px; font-size: 1rem; border-radius: 13px; }
  .mobile-menu a + a { border-top: 1px solid #1d1d1f0d; }
  .mobile-menu a:last-child { margin-top: 8px; background: #1d1d1f; color: white; }

  /* Keep the original hero, with a deliberate portrait crop and line breaks. */
  .hero { min-height: max(740px, 100svh); display: flex; flex-direction: column; padding-bottom: 26px; border-radius: 0 0 30px 30px; }
  .hero-image img { object-position: 64% center; }
  .hero-shade { background: linear-gradient(180deg, #11202833 0%, #14232a4d 20%, #13212999 57%, #12222be8 100%), linear-gradient(90deg, #12202899, #14232a0d); }
  .hero-content { padding-top: clamp(140px, 18svh, 186px); flex: 1; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .075em; gap: 9px; }
  .status-dot { flex-shrink: 0; }
  .hero h1 { font-size: clamp(2.625rem, 10.8vw, 4rem); line-height: 1.04; margin: 27px 0 24px; letter-spacing: -.055em; }
  .hero h1 br { display: initial; }
  .hero h1 em { display: block; color: #e3e7e9c9; }
  .hero-copy { font-size: 1rem; line-height: 1.65; max-width: 38ch; color: #f0f2f3; }
  .hero-copy br { display: initial; }
  .hero-actions { align-items: stretch; gap: 8px; margin-top: 28px; max-width: 440px; }
  .hero-actions .button { justify-content: space-between; box-shadow: 0 8px 24px #0000001a; }
  .hero-link { justify-content: center; min-height: 48px; font-size: .9375rem; }
  .hero-bottom { margin: 32px auto 0; }
  .hero-glass { width: 100%; padding: 16px 18px; border-radius: 20px; gap: 14px; font-size: .875rem; background: #ffffff0f; border-color: #ffffff2e; }
  .glass-icon { width: 26px; flex-shrink: 0; }
  .hero-glass small { font-size: .8125rem; color: #ccd4d8; margin-top: 3px; }

  .intro { padding-block: 68px 44px; }
  .intro-grid { gap: 24px; margin-top: 23px; }
  .intro-grid > p { line-height: 1.75; }
  .intro-features { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; font-size: .8125rem; }
  .intro-features span:before { margin-right: 7px; }
  .service-overview { padding-bottom: 64px; }
  .service-overview-content { padding-top: 28px; }
  .service-overview-title { font-size: .75rem; line-height: 1.65; letter-spacing: .08em; max-width: 30ch; margin-bottom: 30px; }
  .service-overview-grid { grid-template-columns: 1fr; gap: 0; }
  .service-overview-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding-block: 25px; }
  .service-overview-item:first-child { padding-top: 0; }
  .service-overview-item:last-child { padding-bottom: 0; }
  .service-overview-item + .service-overview-item { border-top: 1px solid #dedee466; }
  .service-overview-icon { width: 44px; height: 44px; grid-row: 1 / span 2; margin-top: 1px; }
  .service-overview-item h3 { grid-column: 2; font-size: 1.25rem; margin: 0 0 8px; }
  .service-overview-item p { grid-column: 2; max-width: none; font-size: 1rem; line-height: 1.65; color: #686871; }

  /* Editorial gallery: the render has its own space, the caption stays legible. */
  .portfolio { border-radius: 30px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; max-width: 36ch; }
  .filter-bar { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px; gap: 2px; border-radius: 999px; margin: 0 0 26px; scroll-padding-inline: 4px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; min-height: 44px; padding: 10px 15px; font-size: .875rem; white-space: nowrap; }
  .filter.active { background: #1d1d1f; color: #fff; box-shadow: 0 3px 8px #1d1d1f14; }
  .gallery, .gallery.filtered { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 28px; }
  .gallery .project, .gallery.filtered .project { height: auto; grid-row: auto; border-radius: 0; background: transparent; overflow: visible; }
  .project-open { height: auto; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: #e9e9e9; }
  .project[data-category="exteriores"] .project-open { aspect-ratio: 4 / 5; }
  .project-open:after { display: none; }
  .project img { height: 100%; object-fit: cover; }
  .project figcaption { position: static; color: var(--ink); font-size: 1.0625rem; line-height: 1.45; padding: 16px 2px 0; letter-spacing: -.02em; }
  .project figcaption small { color: #777780; font-size: .75rem; letter-spacing: .07em; margin-top: 5px; }
  .expand-icon { width: 44px; height: 44px; right: 14px; bottom: 14px; background: #242d355c; border-color: #ffffff73; }
  .gallery-bottom { margin-top: 30px; gap: 18px; }
  .gallery-bottom p { font-size: .8125rem; line-height: 1.6; }
  #show-projects { width: 100%; min-height: 54px; justify-content: space-between; padding: 14px 18px; background: #f5f5f7; border: 1px solid #e5e5e9; border-radius: 16px; font-size: .9375rem; }

  .plan-service { padding-block: 72px 44px; }
  .plan-service .plan-hero-layout { width: calc(100% - 48px); gap: 34px; }
  .plan-service .plan-hero-copy { text-align: left; max-width: none; padding: 0; margin: 0; }
  .plan-hero-copy .service-label { margin: 0; }
  .plan-service h2 { font-size: clamp(2rem, 8.8vw, 3rem); line-height: 1.1; margin-block: 24px 20px; }
  .plan-service h2 br { display: initial; }
  .plan-hero-copy > p:not(.service-label) { margin: 0; line-height: 1.75; }
  .plan-features { justify-content: flex-start; gap: 8px; margin-block: 22px 24px; }
  .plan-features span { font-size: .8125rem; padding: 6px 13px; }
  .plan-service .button { width: 100%; min-height: 56px; justify-content: space-between; }
  .plan-secondary { min-height: 44px; margin: 12px auto 0; font-size: .875rem; text-align: center; }
  .plan-visual { margin: 0 -20px; padding-bottom: 0; }
  .plan-visual img { transform: none; filter: drop-shadow(0 15px 14px #1925281c); }
  .plan-visual figcaption { font-size: .75rem; letter-spacing: .07em; gap: 7px; padding-top: 24px; flex-wrap: wrap; }
  .plan-service + .experience-tour { padding-top: 74px; }
  .experience-heading { margin-bottom: 30px; }
  .experience-heading h2 { margin-top: 23px; }
  .experience-description { margin-top: 23px; }
  .experience-description > p { line-height: 1.75; }
  .experience-description .text-button { font-size: .9375rem; margin-top: 14px; padding-block: 10px; }
  .tour-live { width: calc(100% + 24px); margin-inline: -12px; height: clamp(430px, 128vw, 580px); border-radius: 24px; box-shadow: 0 16px 32px #3030350c; }
  .experience-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
  .experience-caption > span { font-size: .75rem; letter-spacing: .075em; white-space: normal; }
  .experience-caption p { font-size: .875rem; line-height: 1.65; color: #73737b; }
  .experience-caption > a { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; margin: 0; }

  /* Preserve the entire film frame; give playback its own quiet control bar. */
  .film-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; aspect-ratio: auto; border-radius: 24px; background: #fff; border: 1px solid #e4e4e8; }
  .film-stage video { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
  .film-vignette { display: none; }
  .film-info { position: static; color: var(--ink); padding: 19px 0 9px 18px; }
  .film-mark { font-size: .8125rem; letter-spacing: .14em; gap: 9px; }
  .film-mark span { font-size: .75rem; color: #777780; border-color: #d4d4da; padding-left: 9px; }
  .film-info p { font-size: 1rem; line-height: 1.4; letter-spacing: -.025em; margin-top: 9px; max-width: 24ch; }
  .film-info p br { display: initial; }
  .film-control { position: static; align-self: center; margin: 15px 14px 0 10px; padding: 10px 14px; min-width: 48px; min-height: 48px; justify-content: center; background: #f0f0f3; color: #28282d; border-color: #e5e5e9; gap: 8px; font-size: .875rem; }
  .film-control:hover { background: #e6e6eb; }
  .film-control-text { display: inline; }
  .film-time { position: static; grid-column: 1 / -1; font-size: .75rem; line-height: 1.6; letter-spacing: .045em; color: #81818a; padding: 5px 18px 18px; text-shadow: none; }

  /* A larger phone in the foreground, with the working desktop demo behind it. */
  .device-stage { aspect-ratio: .95; margin: 18px -8px 0; background: radial-gradient(ellipse at 52% 70%, #e6e8ed, transparent 70%); }
  .laptop-device { width: 88%; left: 5%; top: 9%; }
  .laptop-screen { border-width: 5px; border-top-width: 9px; border-bottom-width: 12px; border-radius: 13px 13px 7px 7px; box-shadow: 0 17px 30px #1d243526; }
  .laptop-base { left: -5%; width: 110%; height: 9px; }
  .phone-device { width: 41%; top: 17%; right: 2%; border: 5px solid #2f3035; border-radius: clamp(23px, 6.5vw, 38px); box-shadow: 0 18px 28px #28334633, 0 0 0 1px #81848c; }
  .phone-speaker { top: 6px; height: 9px; }
  .device-note { left: 6%; bottom: 16%; max-width: 13ch; font-size: .75rem; line-height: 1.7; letter-spacing: .1em; color: #73747c; }
  .web-benefits { align-items: flex-start; margin-top: 10px; gap: 11px; font-size: .875rem; }
  .demo-link-wrap { margin-top: 28px; }
  .demo-link-wrap .button { width: 100%; justify-content: space-between; font-size: .9375rem; }

  .process-grid { gap: 0; margin-top: 32px; }
  .process-grid article { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 18px; padding-block: 25px; }
  .process-grid article > span { grid-row: 1 / span 2; font-size: .875rem; padding-top: 3px; }
  .process-grid h3 { margin: 0 0 12px; font-size: 1.375rem; }
  .process-grid p { grid-column: 2; line-height: 1.7; }
  .studio { border-radius: 26px; }
  .studio-photo { height: auto; aspect-ratio: 1; }
  .studio-caption { font-size: .75rem; left: 22px; right: 18px; bottom: 22px; letter-spacing: .08em; }
  .studio-content { padding: 32px 22px 35px; }
  .studio-content h2 { font-size: clamp(1.75rem, 7.6vw, 2.5rem); }
  .faq { gap: 26px; }
  .faq-heading h2 br { display: initial; }
  .faq-list summary { font-size: 1rem; line-height: 1.55; padding-block: 22px; gap: 18px; align-items: center; }
  .faq-list summary > span { flex: 0 0 22px; text-align: center; }
  .faq-list details > p { line-height: 1.75; }

  .contact-section { border-radius: 30px; padding-block: 68px; }
  .contact-grid { gap: 32px; }
  .contact-copy .eyebrow { font-size: .75rem; letter-spacing: .075em; }
  .contact-copy h2 { font-size: clamp(2.625rem, 11.5vw, 4rem); max-width: none; line-height: 1.05; margin-block: 26px; }
  .contact-whatsapp { gap: 13px; font-size: 1rem; }
  .contact-whatsapp small { font-size: .875rem; }
  .whatsapp-icon { flex: 0 0 48px; height: 48px; }
  .quote-glass { padding: 28px 20px; border-radius: 24px; margin-inline: -8px; }
  .form-intro { font-size: .9375rem; color: #686f77; line-height: 1.65; }
  .form-row { gap: 22px; margin-bottom: 22px; }
  .quote-glass label { font-size: .9375rem; margin-bottom: 9px; }
  .quote-glass label > span { font-size: .8125rem; color: #747c83; }
  .quote-glass input:not([type=hidden]), .quote-glass textarea { min-height: 54px; padding: 14px; font-size: 1rem; border-radius: 13px; background: #ffffffb8; }
  .quote-glass input::placeholder, .quote-glass textarea::placeholder { font-size: 1rem; color: #818a92; }
  .quote-glass textarea { min-height: 140px; }
  .privacy-note { font-size: .8125rem; color: #6d7780; line-height: 1.7; }
  .submit-button { min-height: 56px; }
  .footer { padding-block: 46px max(24px, env(safe-area-inset-bottom)); }
  .footer-main { gap: 22px; }
  .footer-main p { font-size: .9375rem; }
  .footer-main p br { display: initial; }
  .footer-main a { font-size: .9375rem; min-height: 44px; display: flex; align-items: center; }
  .footer-main > div a { display: flex; overflow-wrap: anywhere; }
  .footer-bottom { font-size: .8125rem; align-items: center; column-gap: 24px; row-gap: 10px; margin-top: 26px; }
  .footer-bottom a { min-height: 44px; display: flex; align-items: center; }
  .lightbox { padding: max(76px, calc(env(safe-area-inset-top) + 64px)) 16px max(84px, calc(env(safe-area-inset-bottom) + 72px)); }
  .lightbox img { max-height: calc(100% - 100px); border-radius: 14px; touch-action: pan-y pinch-zoom; }
  .lightbox figcaption { font-size: .875rem; line-height: 1.6; }
  .lightbox .round-button { width: 48px; height: 48px; }
  .lightbox-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
  .lightbox-prev, .lightbox-next { bottom: max(18px, env(safe-area-inset-bottom)); }
  .lightbox-prev { left: calc(50% - 58px); }
  .lightbox-next { right: calc(50% - 58px); }
}

@media (max-width: 370px) {
  .container, .hero-content, .hero-bottom { width: calc(100% - 40px); }
  .site-header { padding-left: 13px; gap: 4px; }
  .site-header .brand, .site-header .brand img { width: 72px; }
  .nav-cta { padding-inline: 9px; font-size: .75rem; }
  .hero .eyebrow { font-size: .6875rem; letter-spacing: .045em; }
  .hero h1 { font-size: 2.5rem; }
  .service-overview-item { column-gap: 16px; }
  .film-control-text { display: none; }
  .film-info { padding-left: 15px; }
  .film-time { padding-inline: 15px; }
}
