/* Shared mobile compositions. Desktop art direction stays in each page stylesheet.
   Preserve the source photograph instead of forcing wide architecture into a
   portrait crop. Paired interactive images keep one shared, native-ratio stage. */
@media (max-width:1024px) {
  html{overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#080d0b}
  body.responsive-site {
    width:100%;max-width:100%;overflow-x:clip;
    --mobile-gutter:max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
    --pad:var(--mobile-gutter);
  }
  body.responsive-site.lighting-page { --lighting-pad:var(--mobile-gutter); }
  /* This explicit image utility must override earlier per-page crop rules. */
  img[data-preserve-ratio] {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
  }
  body.responsive-site main{width:100%;max-width:100%;min-width:0}
  body.responsive-site main :is(section,figure,div,nav), body.responsive-site :is(.site-footer,.footer-top)>* { min-width:0; }
  body.responsive-site :is(h1,h2,h3,p,a,button) { overflow-wrap:break-word; }
  body.responsive-site :is(.button,.music-button,.consultation-button) { min-width:0; max-width:100%; white-space:normal; }
  body.responsive-site :is(.breadcrumb,.music-breadcrumb,.lighting-eyebrow,.music-eyebrow) { flex-wrap:wrap; white-space:normal; }

  /* The phone header has its own row; it no longer competes with the photograph. */
  body.responsive-site .site-header { position:relative; inset:auto; min-height:88px; background:#080b0a; padding:18px var(--pad); }
  body.responsive-site :is(.site-header,.header) .desktop-nav { display:none; }
  body.responsive-site :is(.site-header,.header) .menu-toggle { display:flex; align-items:center; margin-left:auto; min-height:44px; font-size:14px; }
  body.responsive-site .site-header .brand { width:clamp(170px,24vw,225px); }
  body.responsive-site #mobile-menu:not([hidden]) {
    display:grid; grid-template-columns:1fr 1fr; position:absolute;
    top:100%; left:var(--pad); right:var(--pad); padding:18px 22px;
    max-height:calc(100dvh - 100px); overflow-y:auto; overscroll-behavior:contain;
    background:#111817; border:1px solid #d4b47b55; gap:0 24px; box-shadow:0 20px 40px #0006;
  }
  body.responsive-site #mobile-menu a { display:flex; align-items:center; min-height:48px; padding:12px 0; font-size:18px; line-height:1.35; }
  body.responsive-site :is(.hero,.lighting-hero,.music-hero) { display:flex; flex-direction:column; height:auto; min-height:0; max-height:none; background:#111414; }
  body.responsive-site :is(.hero-image,.lighting-hero-image,.music-hero-image) { position:relative; inset:auto; z-index:auto; width:100%; order:0; animation:none; }
  body.responsive-site :is(.hero-shade,.lighting-hero-shade,.music-hero-shade,.hero-index) { display:none; }
  body.responsive-site :is(.hero-content,.hero-copy,.lighting-hero-copy,.music-hero-copy) { position:relative; width:100%; max-width:none; padding:38px var(--pad) 48px; order:1; }
  body.responsive-site :is(.hero,.lighting-hero,.music-hero) h1 { font-size:clamp(2.8rem,7.5vw,5.25rem); line-height:1.06; max-width:900px; }
  body.responsive-site :is(.hero,.lighting-hero,.music-hero) h1 em { white-space:normal; }
  body.responsive-site .hero-bottom { position:static; order:2; padding:0 var(--pad) 28px; }
  body.responsive-site .hero-subtitle { font-size:14px; letter-spacing:.15em; line-height:1.7; }
  body.responsive-site .lighting-hero .breadcrumb { margin-bottom:28px; }
  body.responsive-site .music-breadcrumb { position:static; order:-1; padding:18px var(--pad); margin:0; max-width:none; font-size:13px; }

  /* Home: the scene caption is an editorial panel beneath the complete photo. */
  body.responsive-site .scene { height:auto; }
  body.responsive-site .scene>img { position:relative; inset:auto; z-index:auto; width:100%; }
  body.responsive-site .scene-overlay { display:none; }
  body.responsive-site .scene-caption { position:static; max-width:none; width:auto; padding:32px 0 20px; }
  body.responsive-site .scene-caption h3 { font-size:clamp(2.4rem,6vw,3.75rem); }
  body.responsive-site .scene-counter { position:static; padding:0 0 12px; text-align:right; }
  body.responsive-site .scene-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
  body.responsive-site .scene-tabs button { min-width:0; white-space:normal; min-height:52px; }
  body.responsive-site .gallery-image, body.responsive-site .gallery-card:nth-child(2) .gallery-image { height:auto; }
  body.responsive-site .gallery-card:hover img { transform:none; }
  body.responsive-site .professionals { grid-template-columns:1fr; }
  body.responsive-site .professional-image { height:auto; min-height:0; }
  body.responsive-site .professional-image img { position:relative; inset:auto; }

  /* Solutions: separate chapter copy and photography instead of stretching a background. */
  body.responsive-site .chapter-scene, body.responsive-site #confidence .chapter-scene { display:flex; flex-direction:column; min-height:0; }
  body.responsive-site .chapter-image, body.responsive-site #confidence .chapter-image { position:relative; inset:auto; z-index:auto; width:100%; order:1; }
  body.responsive-site .chapter-shade { display:none; }
  body.responsive-site .chapter-copy, body.responsive-site #confidence .chapter-copy { width:100%; max-width:none; padding:50px var(--pad) 38px; order:0; }
  body.responsive-site .chapter-description { max-width:650px; margin-top:25px; }
  body.responsive-site .chapter h2, body.responsive-site #confidence h2 { font-size:clamp(2.8rem,7.8vw,4.75rem); line-height:1.04; }
  body.responsive-site .chapter-copy .eyebrow { flex-wrap:wrap; white-space:normal; font-size:13px; }
  body.responsive-site .closing, body.responsive-site .lighting-closing { display:flex; flex-direction:column; min-height:0; }
  body.responsive-site .closing-image, body.responsive-site .lighting-closing-image { position:relative; inset:auto; z-index:auto; width:100%; order:1; }
  body.responsive-site .closing-shade, body.responsive-site .lighting-closing-shade { display:none; }
  body.responsive-site .closing-copy, body.responsive-site .lighting-closing-copy { width:100%; padding:48px var(--pad); order:0; }

  /* Lighting, Shading and Climate share aligned comparison canvases. */
  body.responsive-site.lighting-page .comparison-stage, body.responsive-site.climate-page .fade-stage { aspect-ratio:1672 / 941; }
  body.responsive-site.lighting-page .comparison-stage>img, body.responsive-site.climate-page .fade-stage img { object-fit:contain; object-position:center; }
  body.responsive-site.lighting-page .lighting-details { align-items:start; }
  body.responsive-site.lighting-page .lighting-personalization { grid-template-columns:1fr; }
  body.responsive-site.lighting-page .personalization-figure { min-height:0; }
  body.responsive-site.lighting-page .personalization-figure>img { position:relative; inset:auto; }
  body.responsive-site.lighting-page .time-scene>span { flex-wrap:wrap; white-space:normal; gap:7px; font-size:16px; }
  body.responsive-site.lighting-page .daylight-dialog>img { width:100%; }
  body.responsive-site.lighting-page .daylight-dialog-copy { flex-wrap:wrap; }
  body.responsive-site.climate-page .zone-panel { display:block; min-height:0; aspect-ratio:auto; }
  body.responsive-site.climate-page .zone-image { position:relative; inset:auto; z-index:auto; }
  body.responsive-site.climate-page .zone-panel::before { display:none; }
  body.responsive-site.climate-page .zone-copy { padding:30px; background:#1a201d; }
  body.responsive-site.climate-page .air-section { grid-template-columns:1fr; }
  body.responsive-site.climate-page .air-figure { min-height:0; }
  body.responsive-site.climate-page .air-figure img { position:relative; inset:auto; }
  body.responsive-site.climate-page .air-figure figcaption { position:static; padding:22px var(--pad); background:#e8e2d6; color:#303b30; }
  body.responsive-site.climate-page .routine-panel, body.responsive-site.climate-page .control-layout { grid-template-columns:1fr; }
  body.responsive-site.climate-page .sensor-details { align-items:start; }

  body.responsive-site .site-footer { grid-template-columns:1.4fr 1fr 1fr; row-gap:32px; }
  body.responsive-site .footer-identity>p { white-space:normal; }
}

@media (max-width:600px) {
  body.responsive-site .site-header .header-cta { display:none; }
  body.responsive-site .site-header .brand { width:min(190px,58vw); }
  body.responsive-site #mobile-menu:not([hidden]) { grid-template-columns:1fr; }
  body.responsive-site :is(.hero-content,.hero-copy,.lighting-hero-copy,.music-hero-copy) { padding-block:32px 40px; }
  body.responsive-site :is(.hero,.lighting-hero,.music-hero) h1 { font-size:clamp(2.7rem,11.6vw,4rem); }
  body.responsive-site .hero-postlude { padding-top:5px; }
  body.responsive-site :is(.lighting-eyebrow,.music-eyebrow) { font-size:12px; letter-spacing:.1em; }
  body.responsive-site :is(.closing-copy,.lighting-closing-copy) { padding-block:42px; }
  body.responsive-site :is(.closing,.lighting-closing) h2 { font-size:clamp(2.6rem,10.4vw,3.5rem); }
  body.responsive-site.lighting-page .lighting-details { grid-template-columns:1fr; gap:38px; }
  body.responsive-site.lighting-page .architectural-detail p { max-width:100%; }
  body.responsive-site.lighting-page .architectural-detail>img[width="1086"] { max-width:100%; margin-inline:auto; }
  body.responsive-site.lighting-page .comparison-label { bottom:12px; padding:7px 9px; font-size:12px; }
  body.responsive-site.lighting-page .label-before { left:12px; }
  body.responsive-site.lighting-page .label-after { right:12px; }
  body.responsive-site.climate-page .sensor-detail img { width:100%; margin-inline:auto; }
  body.responsive-site.climate-page .zone-copy { padding:26px 22px; }
  body.responsive-site .site-footer { grid-template-columns:1fr 1fr; }
  body.responsive-site .site-footer .footer-identity { grid-column:1/-1; grid-row:auto; padding:0; }
  body.responsive-site .footer-column { padding-left:0; border-left:0; }
  body.responsive-site .image-disclosure { min-height:0; padding:0; border:0; align-self:start; }
}


/* A rotated phone keeps full photography and reachable navigation with safe-area gutters. */
@media (max-width:1024px) and (max-height:600px) and (orientation:landscape) {
  body.responsive-site { --mobile-gutter:max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  body.responsive-site :is(.site-header,.header) { position:relative; height:auto; min-height:72px; padding-block:12px; }
  body.responsive-site .site-header .brand { width:185px; }
  body.responsive-site #mobile-menu:not([hidden]) { grid-template-columns:1fr 1fr; max-height:calc(100dvh - 84px); }
  body.responsive-site :is(.hero-content,.hero-copy,.lighting-hero-copy,.music-hero-copy) { padding-block:32px 38px; }
  body.responsive-site :is(.hero,.lighting-hero,.music-hero) h1 { font-size:clamp(2.8rem,6.8vw,4.5rem); }
  body.responsive-site.lighting-page { --space:64px; }
  body.responsive-site :is(.button,.music-button) { min-height:48px; }
  body.responsive-site :is(.daylight-dialog,dialog) { max-height:calc(100dvh - 24px); }
}

/* Media stays within its actual container. Full-screen covers have unpadded
   containers; expanded detail photos respect their reading-column width. */
@media (max-width:1024px) {
  body.responsive-site main [data-mobile-bleed],
  body.responsive-site:is(.music-page,.lighting-page) main [data-mobile-bleed] {
    width:100%!important;
    max-width:100%!important;
    margin-inline:0!important;
    justify-self:stretch;
  }
  body.responsive-site main [data-mobile-bleed]>img {
    width:100%; max-width:100%; margin-inline:0;
  }
  body.responsive-site main figure[data-mobile-bleed]>figcaption {
    padding-inline:var(--mobile-gutter);
  }
  body.responsive-site .scene-caption { padding-inline:var(--mobile-gutter); }
  body.responsive-site .scene-counter { padding-inline:var(--mobile-gutter); }
  body.responsive-site .gallery-grid { grid-template-columns:1fr; }
  body.responsive-site .gallery-card:nth-child(2) { margin-top:0; }

  body.responsive-site.lighting-page :is(.lighting-scenes,.lighting-details) { grid-template-columns:1fr; }
  body.responsive-site.lighting-page .lighting-scene .scene-caption-row { padding-inline:var(--mobile-gutter); }
  body.responsive-site.lighting-page .lighting-scene .scene-description { margin:16px var(--mobile-gutter) 0; padding:0; max-width:none; }
  body.responsive-site.climate-page :is(.design-layout,.sensor-details) { grid-template-columns:1fr; }
  body.responsive-site.climate-page .routine-copy { padding-inline:var(--mobile-gutter); }

}
