/* Responsive layout ownership: imported after the historical desktop styles. */
.responsiveScene, .scenePhoto { display: contents; }
.mobileSpotInfo { display: none; }
.heroModel .scenePhoto > img { display: none; }
.serviceRail > *, .subServiceGrid > *, .galleryGrid > *, .contactFormSection > *,
.contactFormSection label, .contactQuick span { min-width: 0; }
input, select, textarea { max-width: 100%; }
.photoServices .serviceBody .serviceMobileToggle {
  display: none; align-self: stretch !important; margin: 0 !important;
  padding: 8px 0 !important; border: 0 !important;
  background: transparent !important; color: var(--ink) !important;
  box-shadow: none !important; transform: none !important;
  font-weight: 700 !important; letter-spacing: 0 !important;
}
.photoServices .serviceBody .serviceMobileToggle:hover,
.photoServices .serviceBody .serviceMobileToggle:active,
.photoServices .serviceBody .serviceMobileToggle:focus-visible,
.photoServices .serviceBody .serviceMobileToggle[aria-expanded="true"] {
  background: transparent !important; color: var(--ink) !important;
  box-shadow: none !important; transform: none !important;
}
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #f5a027; outline-offset: 4px;
}
[id] { scroll-margin-top: 24px; }

@media (max-width: 1024px) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .siteHeader.topbar, .siteHeader .mainNav { height: 76px !important; }
  .siteHeader .mainNav { padding: 0 5% !important; }
  .siteHeader .mainNav .brand img { width: 158px !important; height: 56px !important; }
  .siteHeader .menu {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 10px; flex: 0 0 44px;
    background: #2b1738; color: #fff !important; border: 1px solid #ffffff50;
    filter: none !important; z-index: 102;
  }
  .siteHeader .mainNav nav { display: none !important; }
  .siteHeader .mainNav nav.open {
    position: fixed; display: flex !important; flex-direction: column;
    align-items: stretch; justify-content: flex-start;
    inset: 76px 0 0 !important; width: 100%; height: calc(100dvh - 76px);
    max-height: none; padding: 16px 5% max(24px, env(safe-area-inset-bottom));
    gap: 4px !important; overflow-y: auto; overscroll-behavior: contain;
    background: #2b1738 !important; border: 0; box-shadow: none !important;
  }
  .siteHeader .mainNav nav > a, .siteHeader .navDropdown > button {
    display: flex; align-items: center; min-height: 44px;
    padding: 10px 0; font-size: 16px !important; color: #fff !important;
    text-shadow: none !important; white-space: normal;
  }
  .siteHeader .navDropdown { width: 100%; }
  .siteHeader .navDropdown > button { width: 100%; justify-content: space-between; }
  .siteHeader .navDropdown > button svg { transition: transform .2s ease; }
  .siteHeader .navDropdownMenu {
    position: static; display: none !important; flex-direction: column;
    width: 100%; min-width: 0; opacity: 1; visibility: visible;
    transform: none; pointer-events: auto; padding: 0 0 8px 16px;
    background: transparent; border: 0; box-shadow: none;
  }
  .siteHeader .navDropdown.submenuOpen .navDropdownMenu { display: flex !important; }
  .siteHeader .navDropdown.submenuOpen > button svg { transform: rotate(180deg); }
  .siteHeader .navDropdownMenu a {
    display: flex; align-items: center; min-height: 44px; padding: 10px 0;
    font-size: 15px; color: #e7dfeb !important; white-space: normal;
  }
  .siteHeader .mainNav .navCta { margin-top: 12px; padding: 14px 16px; }
  .siteHeader .mainNav .navCta svg { flex-shrink: 0; }
  .contactQuick { grid-template-columns: 1fr; }
  .contactQuick > a { min-width: 0; }
  .contactQuick span { overflow-wrap: anywhere; }
  .contactQuick svg { flex-shrink: 0; }
  .photoServices .serviceBody { opacity: 1; pointer-events: auto; min-height: 0; height: auto; }
}

/* Preserve the picture's proportions so marker coordinates remain attached
   to the same features; actions and descriptions flow below, never over text. */
@media (max-width: 1024px) {
  .hero.hero3d, .subHero.subHeroFull, .contactHero.contactHeroFull {
    display: block; height: auto; min-height: 0; max-height: none;
    padding: 76px 0 0; background: #2b1738; overflow: visible;
  }
  .hero3d > .heroModel {
    position: relative !important; inset: auto !important;
    width: 100% !important; height: auto !important; min-height: 0 !important;
    background: #2b1738 !important; background-image: none !important;
  }
  .subHeroFull .subHeroVisual, .contactHeroFull .contactHeroImage {
    position: relative; inset: auto; width: 100%; height: auto;
    min-height: 0; max-height: none; overflow: visible;
  }
  .responsiveScene { display: block; }
  .scenePhoto { display: block; position: relative; width: 100%; }
  .heroModel .scenePhoto > img, .subHeroFull .scenePhoto > img,
  .contactHeroFull .contactHeroImage > img {
    display: block !important; position: static; inset: auto;
    width: 100%; height: auto; max-width: 100%; min-height: 0;
    object-fit: contain; transform: none !important; animation: none !important;
  }
  .heroModel::after, .subHeroFull .subHeroVisual::after,
  .contactHeroFull .contactHeroImage::after { display: none; }
  .subHeroVisual > span { display: none; }
  .heroModel .spot {
    position: absolute; display: flex; align-items: center;
    left: clamp(22px, var(--spot-x), calc(100% - 22px)); top: var(--spot-y);
    width: 44px; height: 44px; min-width: 44px; padding: 4px; border: 0;
    transform: translate(-50%, -50%) !important; translate: none;
    animation: none !important; z-index: 5; gap: 0;
  }
  .heroModel .spot > span {
    width: 36px !important; height: 36px !important;
    transform: none !important; box-shadow: 0 0 0 2px #ffffffb3 !important;
  }
  .heroModel .spot > span::before, .heroModel .spot > span::after {
    display: none !important; animation: none !important;
  }
  .heroModel .spot svg { width: 18px !important; height: 18px !important; }
  .heroModel .spot b, .subHeroFull .heroHotspot > span { display: none !important; }
  .heroModel .spot.active > span { background: #2b1738; color: #c8db83; }
  .subHeroFull .heroHotspot {
    width: 44px; height: 44px; transform: translate(-50%, -50%);
    animation: none; box-shadow: 0 0 0 2px #ffffffb3;
  }
  .subHeroFull .heroHotspot i { width: 28px; height: 28px; }
  .subHeroFull .heroHotspot i svg { width: 18px; height: 18px; }
  .subHeroFull .heroHotspot em { display: none; }
  .subHeroFull .heroHotspot.selected { background: #2b1738; color: #c8db83; }
  .mobileSpotInfo {
    display: flex; flex-direction: column; gap: 4px; margin: 0;
    padding: 16px 5% 8px; color: #fff; line-height: 1.45;
    text-align: left; overflow-wrap: anywhere;
  }
  .mobileSpotInfo b { font-size: 16px; }
  .mobileSpotInfo span { font-size: 14px; color: #d3c8da; }
  .heroFloatingActions, .subHeroFloatingActions {
    position: static; inset: auto; transform: none; width: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
    margin: 0; padding: 14px 5% 22px;
  }
  .heroFloatingActions a, .subHeroFloatingActions a {
    width: 100%; min-width: 0 !important; min-height: 52px;
    padding: 12px 16px; gap: 12px; white-space: normal;
    animation: none; transform: none !important; font-size: 15px;
  }
  .subHeroFloatingActions a { grid-template-columns: 36px minmax(0, 1fr) 18px; }
  .subHeroFloatingActions a > i { width: 36px; height: 36px; }
  .subHeroFloatingActions b { font-size: 15px; white-space: normal; }
  .heroFloatingActions a > svg { flex-shrink: 0; }
  .calculatorHeroCta > span:nth-child(2) { min-width: 0; margin-right: auto; }
  .calculatorHeroCta small { font-size: 12px; line-height: 1.35; }
  .calculatorCtaIcon { width: 36px; height: 36px; flex-basis: 36px; }
}

@media (max-width: 820px) {
  .manifestoText p, .photoServices .serviceBody > p, .logicCopy p,
  .proofIntro p, .faqIntro > p, .faqList details p, .contact p,
  .subSectionIntro p, .subServiceGrid summary p, .serviceDetails li,
  .subBenefits p, .galleryIntro > p, .subCta p,
  .contactFormSection > div > p { line-height: 1.45; }
}

@media (max-width: 760px) {
  .manifesto, .serviceSection.photoServices, .homeLogic, .proofSection,
  .faqSection, .contact, .subServices, .subBenefits, .projectGallery,
  .subProcess, .subCta, .contactFormSection { padding: 48px 5%; }
  .manifesto, .homeLogic, .proofIntro, .faqSection, .contact,
  .subBenefits, .contactFormSection { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .manifesto h2, .serviceHead h2, .logicCopy h2, .proofIntro h2,
  .faqIntro h2, .contact h2, .subSectionIntro h2, .subBenefits h2,
  .galleryIntro h2, .subProcess h2, .subCta h2, .contactFormSection h2 {
    font-size: clamp(30px, 8vw, 42px); line-height: 1.12;
    letter-spacing: -1px; overflow-wrap: break-word;
  }
  .manifestoText { padding-top: 0; }
  .serviceHead, .subSectionIntro, .galleryIntro { gap: 20px; margin-bottom: 24px; }
  .calculatorNotice { gap: 12px; padding: 16px; }
  .calculatorNotice > div { min-width: 0; }
  .calculatorNotice > svg { flex-shrink: 0; }
  .calculatorNotice > svg:last-child { display: none; }
  .photoServices .serviceRail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .photoServices .service, .photoServices .service.active {
    display: flex; flex-direction: column; height: auto; min-height: 0;
    transform: none; overflow: hidden;
  }
  .photoServices .servicePhoto { height: auto; aspect-ratio: 16 / 9; }
  .photoServices .servicePhoto img { display: block; transform: none !important; }
  .photoServices .serviceBody {
    position: static; display: flex; flex-direction: column; gap: 0;
    opacity: 1; pointer-events: auto; height: auto; min-height: 0; padding: 20px;
  }
  .photoServices .service:not(.active) .servicePhoto,
  .photoServices .service:not(.active) .serviceTop,
  .photoServices .service:not(.active) .serviceBody > p,
  .photoServices .service:not(.active) .serviceBody > ul,
  .photoServices .service:not(.active) .serviceCta,
  .photoServices .service .serviceBody > h3 { display: none; }
  .photoServices .serviceBody .serviceMobileToggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 48px; padding: 8px 0; border: 0;
    background: transparent; color: inherit; font-family: inherit;
    font-size: 23px; font-weight: 700; line-height: 1.2;
    text-align: left;
  }
  .serviceMobileToggle svg { width: 22px; flex: 0 0 22px; transition: transform .2s ease; }
  .serviceMobileToggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .photoServices .serviceBody h3 { font-size: 28px; line-height: 1.15; margin: 16px 0 12px; }
  .photoServices .serviceBody p { margin-bottom: 16px; }
  .photoServices .serviceBody ul { margin-bottom: 16px; }
  .photoServices .serviceBody button, .photoServices .serviceCta {
    margin-top: 16px; min-height: 48px; white-space: normal;
  }
  .imageStory { padding: 0 5% 48px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .imageStory .reveal { min-height: 280px; }
  .imageStory .reveal > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
  .homeLogic { min-height: 0; }
  .logicMap {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto; gap: 12px; overflow: visible;
  }
  .logicMap::before, .logicMap > svg { display: none; }
  .logicMap .graphicCore {
    position: relative; inset: auto; transform: none; grid-column: 1 / -1;
    width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0;
  }
  .logicMap .graphicCore img { animation: none; object-fit: contain; }
  .logicMap .logicPoint {
    position: static; inset: auto; width: auto; min-width: 0; min-height: 0;
    height: auto; transform: none; display: flex; flex-direction: column;
    align-items: flex-start; gap: 8px; padding: 16px; text-align: left;
  }
  .logicMap .logicPoint b { font-size: 17px; line-height: 1.3; }
  .logicMap .logicPoint small { font-size: 14px; line-height: 1.4; }
  .logicMap .logicPoint em {
    display: block; max-height: none; opacity: 1; margin: 0; overflow: visible;
    font-size: 14px; line-height: 1.45; color: #d3c8da;
  }
  .logicMap .logicPoint:hover em { color: #3c4437; }
  .proofIntro { padding: 24px 0; }
  .proofIntro > div { display: block; }
  .processGrid { grid-template-columns: minmax(0, 1fr); }
  .processCard { min-height: 0; padding: 20px; transform: none !important; }
  .processCard h3 { margin: 24px 0 12px; font-size: 26px; }
  .processCard p { margin-bottom: 20px; }
  .faqIntro { position: static; }
  .faqIntro h2 { margin: 20px 0; }
  .faqFacts { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faqFacts span { overflow-wrap: break-word; }
  .faqList summary { grid-template-columns: 24px minmax(0, 1fr) 32px; gap: 8px; padding: 20px 0; }
  .faqList details p { margin: 0 0 20px 32px; font-size: 16px; }
  .contactModel { min-height: 280px; max-width: 100%; }
  .contactActions { flex-direction: column; gap: 10px; }
  .contactActions a { width: 100%; min-width: 0; white-space: normal; }
  .proofStrip { grid-template-columns: minmax(0, 1fr); padding: 0 5%; }
  .proofStrip > div, .proofStrip > div:first-child { padding: 18px 0; border-left: 0; border-right: 0; }
  .subServiceGrid { grid-template-columns: minmax(0, 1fr); }
  .subServiceGrid summary { grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 10px; padding: 20px 16px; min-height: 0; }
  .subServiceGrid summary h3 { font-size: 23px; line-height: 1.2; }
  .subServiceGrid summary p { font-size: 15px; }
  .serviceDetails { padding: 0 16px 20px; }
  .serviceDetails li { overflow-wrap: anywhere; }
  .serviceDetails svg, .subBenefits li svg { flex-shrink: 0; }
  .galleryIntro { display: grid; grid-template-columns: minmax(0, 1fr); }
  .galleryGrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .galleryGrid figure { height: auto; min-height: 0; }
  .galleryGrid figure > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transform: none; }
  .galleryGrid figcaption { position: static; inset: auto; padding: 18px; background: #2b1738; color: #fff; }
  .galleryGrid figcaption small { color: #d3c8da; }
  .galleryGrid .imageReveal, .galleryEffect::after { display: none; }
  .subProcess > h2 { margin: 20px 0 24px; }
  .subProcess > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subProcess article { min-height: 0; padding: 18px 12px; }
  .subProcess article h3 { margin-top: 24px; font-size: 18px; overflow-wrap: break-word; }
  .subCta, .subCta > div:last-child { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .subCta a { min-width: 0; white-space: normal; }
  .contactQuick { padding: 0 5%; }
  .contactQuick > a { padding: 20px 0; gap: 12px; font-size: 17px; }
  .contactFormSection form { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contactFormSection input, .contactFormSection select, .contactFormSection textarea { min-width: 0; font-size: 16px; }
  .contactFormSection .formNote { grid-column: 1 / -1; }
  footer { padding: 36px 5% 24px; }
  footer a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .serviceNumber, .modelTag, .imageReveal b, .galleryGrid figcaption > span,
  .subHeroVisual > span { font-size: 12px !important; }
}

@media (max-width: 360px) {
  .logicMap, .subProcess > div { grid-template-columns: minmax(0, 1fr); }
  .heroModel .spot { width: 44px !important; height: 44px !important; }
  .heroModel .spot > span { width: 36px !important; height: 36px !important; }
  .subHeroFull .heroHotspot { width: 44px; height: 44px; }
}

@media (min-width: 761px) and (max-width: 820px) {
  .photoServices .serviceRail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .photoServices .service, .photoServices .service.active {
    display: flex; flex-direction: column; height: auto; min-height: 0;
    transform: none; overflow: hidden;
  }
  .photoServices .servicePhoto { height: auto; aspect-ratio: 2.1 / 1; }
  .photoServices .serviceBody {
    position: static; display: flex; flex-direction: column;
    opacity: 1; pointer-events: auto; height: auto; min-height: 0; padding: 22px;
  }
  .photoServices .service:not(.active) .servicePhoto,
  .photoServices .service:not(.active) .serviceTop,
  .photoServices .service:not(.active) .serviceBody > p,
  .photoServices .service:not(.active) .serviceBody > ul,
  .photoServices .service:not(.active) .serviceCta,
  .photoServices .service .serviceBody > h3 { display: none; }
  .photoServices .serviceBody .serviceMobileToggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 48px; padding: 8px 0; border: 0;
    background: transparent; color: inherit; font-family: inherit;
    font-size: 24px; font-weight: 700; line-height: 1.2; text-align: left;
  }
  .serviceMobileToggle svg { width: 22px; flex: 0 0 22px; transition: transform .2s ease; }
  .serviceMobileToggle[aria-expanded="true"] svg { transform: rotate(180deg); }
}

@media (min-width: 761px) and (max-width: 1024px) and (orientation: landscape) {
  .responsiveScene { position: relative; }
  .heroFloatingActions, .subHeroFloatingActions {
    position: absolute; left: 5%; right: 5%; bottom: 14px; z-index: 7;
    width: auto; margin: 0; padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobileSpotInfo {
    position: absolute; left: 5%; right: 5%; bottom: 82px; z-index: 7;
    width: auto; padding: 9px 12px; background: #2b1738e8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .heroModel .spot, .heroModel .spot > span::after, .calculatorHeroCta,
  .subHeroFull .scenePhoto > img, .contactHeroFull .contactHeroImage > img,
  .graphicCore img { animation: none !important; }
}
