/* Continue the approved Polish intro. All changes are phone-only. */
@media (max-width: 600px) {
  #fronty ~ .chapter-divider { padding: 32px 24px; font-size: 9px; letter-spacing: 1.2px; }
  #meble :is(h2,h3), :is(.custom-story, .project-story, .project-inquiry, .series-story, .technology, .pavilion) :is(h2,h3) { font-size: clamp(28px, 8vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
  #meble .button, :is(.custom-story, .project-inquiry, .series-story, .pavilion) .button { width: fit-content; max-width: 100%; min-width: 0; min-height: 44px; padding: 11px 16px; font-size: 13px; line-height: 1.5; gap: 18px; }
  #meble .button img, :is(.custom-story, .project-inquiry, .series-story, .pavilion) .button img { width: 18px; height: 18px; }
  :is(.project-kicker, .series-kicker, .technology-label, .special-eyebrow) { font-size: 9px; line-height: 1.6; letter-spacing: 1.2px; }

  /* Catalogue furniture: the same portrait photograph / quiet copy rhythm. */
  #meble { --scene-height: calc(100svh - 88px); margin: 0 24px 24px; background: var(--paper); }
  #meble .furniture-scroll-track { height: calc(var(--scene-height) + 160px); }
  #meble .product-visual { top: 68px; }
  #meble .product-visual > img { object-position: 50% 40%; }
  #meble .photo-caption { padding: 48px 18px 18px; font-size: 10px; line-height: 1.5; }
  #meble .photo-caption span { font-size: 8px; margin-bottom: 5px; }
  #meble .product-copy { padding: 30px 0 8px; }
  #meble .breadcrumb { font-size: 8px; letter-spacing: 1.3px; gap: 12px; }
  #meble .breadcrumb::before { width: 24px; }
  #meble .module-label { margin-top: 24px; font-size: 9px; letter-spacing: 1.2px; }
  #meble h2 { margin-top: 16px; }
  #meble .description { margin-top: 18px; font-size: 14px; line-height: 1.6; }
  #meble .product-cta { margin-top: 22px; }
  #meble .features { margin-top: 28px; padding-top: 18px; }
  #meble .features-label { font-size: 9px; letter-spacing: 1px; }
  #meble .features ul { margin-top: 18px; gap: 14px; }
  #meble .features li > img { width: 28px; height: 28px; margin-bottom: 12px; }
  #meble .features li span { font-size: 11px; line-height: 1.4; }
  #meble .features small { margin-top: 6px; font-size: 10px; line-height: 1.5; }

  /* Bespoke: retain the original three-scene crossfade, composed vertically. */
  .custom-story { --custom-top: 68px; }
  .custom-scene { align-items: flex-end; min-height: var(--custom-height); }
  .custom-photo > img { object-position: 57% center; }
  .custom-detail .custom-photo > img { object-position: 51% center; }
  .custom-quote .custom-photo > img { object-position: 55% center; }
  .custom-photo::after { background: linear-gradient(180deg, #15171324 0%, #1517130d 20%, #1517137d 46%, #151713e6 76%, #151713f5 100%); }
  .custom-photo figcaption { top: 18px; bottom: auto; left: 24px; right: 24px; font-size: 8px; letter-spacing: .3px; text-shadow: 0 1px 8px #000; }
  .custom-copy { max-width: none; padding: 44px 24px 44px; }
  .custom-copy .breadcrumb { font-size: 8px; line-height: 1.7; letter-spacing: 1px; }
  .custom-copy h3 { margin: 16px 0; }
  .custom-description { font-size: 14px; line-height: 1.6; }
  .custom-details { margin-top: 20px; padding-top: 16px; gap: 14px; }
  .custom-details li { font-size: 12px; gap: 12px; }
  .custom-details small { font-size: 10px; line-height: 1.5; }
  .custom-details img { width: 22px; height: 22px; }
  .custom-documents { margin: 20px 0 22px; gap: 14px; font-size: 10px; }
  .custom-fine { font-size: 10px; margin-top: 10px; }
  .custom-story.is-pinned { height: calc(var(--custom-height) + 220svh); }
  .custom-story.is-pinned .custom-copy { padding-bottom: 118px; }
  .custom-nav { top: auto; bottom: 54px; left: 24px; right: 24px; width: auto; display: flex; justify-content: space-between; gap: 14px; }
  .custom-nav a { display: flex; align-items: center; gap: 7px; padding: 12px 0; min-height: 44px; font-size: 10px; opacity: .6; }
  .custom-nav a[aria-current] { opacity: 1; }
  .custom-nav a::before, .custom-nav a::after { display: none; }
  .custom-nav span { display: inline; font-size: 8px; }
  .custom-story.is-pinned .custom-scroll { padding: 10px 24px 20px; }
  .custom-story.is-pinned .custom-scroll { padding-right: 76px; }
  .custom-scroll-caption { font-size: 8px; }
  .custom-scroll-caption img { width: 12px; height: 12px; }
  .custom-progress { margin-top: 12px; }

  /* Drawings, visualisations and photographs keep their own readable frames. */
  .project-intro { padding: 48px 24px 26px; }
  .project-heading h2 { margin-top: 16px; }
  .project-heading > p { font-size: 14px; line-height: 1.6; margin-top: 20px; padding: 0; }
  .project-pin { padding: 12px 24px 24px; }
  .project-stage { gap: 8px; }
  .project-story .project-label { min-height: 44px; padding: 0 16px; font-size: 11px; gap: 12px; }
  .project-label span { font-size: 9px; }
  .project-frame { height: 48svh; }
  .project-drawing { height: auto; }
  .project-source { font-size: 9px; line-height: 1.6; margin-top: 14px; }
  .project-source span { display: block; }
  .mobile-project-pinned { height: calc(100svh - 68px + 190svh); }
  .mobile-project-pinned .project-pin { position: sticky; top: 68px; height: calc(100svh - 68px); padding-top: 0; }
  .mobile-project-pinned .project-stage { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 44px minmax(0,1.2fr) minmax(0,1fr); height: calc(100svh - 144px); }
  .mobile-project-pinned .project-label { grid-area: 1/1; }
  .mobile-project-pinned .project-frame { grid-area: 2/1; height: auto; aspect-ratio: auto; }
  .mobile-project-pinned [data-project-frame$="-alt"] { grid-area: 3/1; }
  .mobile-project-pinned .project-stage > * { opacity: var(--portrait-opacity,1); transform: translateY(var(--portrait-y,0px)); }
  .project-inquiry { padding: 36px 24px 40px; gap: 24px; background: linear-gradient(145deg,#e4e1db,#efede7); }
  .project-inquiry h2 { margin: 14px 0 16px; }
  .project-inquiry p:not(.project-kicker) { font-size: 14px; line-height: 1.6; }
  .project-inquiry-actions { gap: 12px; }
  .project-inquiry-actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; line-height: 1.6; }

  /* A second photographic entrance, then each kitchen gets the full width. */
  .series-interior { min-height: calc(100svh - 68px); height: auto; max-height: none; display: flex; align-items: flex-end; }
  .series-hero-image { object-position: 57% center; }
  .series-interior::after { background: linear-gradient(180deg,#1517130d 15%,#1517134d 40%,#151713cc 72%,#151713ed); }
  .series-intro-copy { width: 100%; max-width: none; padding: 280px 24px 84px; }
  .series-kicker { margin-bottom: 16px; }
  .series-intro-copy > p:not(.series-kicker) { font-size: 14px; line-height: 1.6; margin-top: 20px; }
  .series-intro-copy .button { margin-top: 24px; }
  .series-image-note { bottom: 24px; left: 24px; font-size: 9px; letter-spacing: .4px; }
  .series-comparison-pin, .series-details-pin, .series-process-pin { padding: 40px 24px; }
  .series-comparison-heading { gap: 0; margin-bottom: 28px; }
  .series-comparison-heading .series-kicker { margin-bottom: 16px; }
  .series-comparison-heading > p:last-child { margin-top: 18px; padding: 0; font-size: 12px; line-height: 1.6; }
  .series-columns { gap: 32px; }
  .series-column-label { margin-bottom: 12px; font-size: 11px; }
  .series-column-label strong { font-size: 24px; }
  .series-story:not(.has-scroll) .series-room { padding-bottom: 146px; }
  .series-room-image { aspect-ratio: 4/3; object-position: 54% center; }
  .series-plan { height: 146px; padding: 12px; }
  .series-plan img { max-width: 92%; }
  .series-story:not(.has-scroll) .series-front { padding-top: 28px; }
  .series-dimension { margin-bottom: 18px; font-size: 10px; }
  .series-comparison-foot { margin-top: 24px; font-size: 10px; line-height: 1.6; }
  .series-section-heading { gap: 18px; margin-bottom: 28px; }
  .series-section-heading > p { margin: 0; font-size: 14px; line-height: 1.6; }
  .series-detail-grid { gap: 28px; }
  .series-detail-grid img { height: 52svh; min-height: 280px; max-height: 500px; aspect-ratio: auto; }
  .series-detail-grid figure:first-child img { object-position: center 42%; }
  .series-detail-grid figure:nth-child(3) img { height: 40svh; min-height: 240px; }
  .series-detail-grid figcaption { margin-top: 14px; font-size: 11px; line-height: 1.5; gap: 14px; }
  .series-details-note { margin-top: 24px; font-size: 9px; }
  .series-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 16px; margin-top: 30px; }
  .series-step-number { font-size: 10px; }
  .series-process-grid h4 { margin: 12px 0 10px; min-height: 36px; font-size: 13px; line-height: 1.4; }
  .series-process-grid p { font-size: 11px; line-height: 1.5; min-height: 50px; }
  .series-process-image { height: 108px; margin-top: 14px; }
  .series-contact { padding: 40px 24px; gap: 28px; }
  .series-contact p:last-child { font-size: 14px; line-height: 1.6; margin-top: 18px; }
  .series-contact-action { padding-top: 24px; }
  .series-contact-email { font-size: 28px; margin-bottom: 22px; min-height: 44px; }
  .series-contact .series-contact-action p { font-size: 10px; }

  /* CNC: retain the original pinned reveal, with air around the machine. */
  .technology-pin { min-height: calc(100svh - 68px); padding: 42px 24px 210px; justify-content: flex-start; }
  .technology-photo { object-position: 54% center; }
  .technology-pin::before { background: linear-gradient(180deg,#000c 0%,#0008 32%,#0001 58%,#000a 85%,#000e); }
  .technology-label { margin-bottom: 18px; }
  .technology-description { font-size: 14px; line-height: 1.6; margin-top: 20px; max-width: 320px; }
  .technology-tags { left: 24px; right: 24px; bottom: 100px; font-size: 9px; gap: 14px 0; letter-spacing: .8px; }
  .technology-tags li { padding: 8px 12px; }
  .technology-scroll { left: 24px; right: 76px; bottom: 24px; }
  .technology-scroll-caption { font-size: 8px; gap: 12px; }
  .technology.is-pinned { height: calc(var(--technology-height) + 105svh); }

  /* Final projects: photographs and copy share a soft, continuous canvas. */
  .pavilion-stage { padding: 0; }
  .special-heading { padding: 44px 24px 30px; gap: 20px; }
  .special-heading h2 { margin-top: 16px; }
  .special-intro { padding: 0; max-width: none; font-size: 14px; line-height: 1.6; }
  .special-scenes { gap: 0; }
  .special-scene { min-height: calc(100svh - 68px); display: flex; justify-content: flex-end; margin: 0; }
  .special-scene .special-photo { position: absolute; inset: 0; height: auto; z-index: -2; }
  .special-photo img { object-position: center; }
  .special-scene::after { content: ''; display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg,#15171300 25%,#15171333 45%,#151713d9 78%,#151713f2); }
  .special-scene .special-copy { margin: 0; min-height: 0; width: 100%; padding: 280px 24px 52px; color: white; }
  .special-copy h3 { margin: 16px 0; }
  .special-scene .special-copy > p:not(.special-eyebrow) { font-size: 14px; line-height: 1.6; color: #f4f3ef; max-width: 330px; }
  .special-photo figcaption { top: 20px; bottom: auto; left: 24px; right: auto; font-size: 8px; letter-spacing: .6px; background: #15201c66; }
  .special-form .special-photo img { object-position: 76% center; }
  .special-form::after { background: linear-gradient(180deg,#edeae300 30%,#edeae34d 48%,#edeae3e6 76%,#edeae3); }
  .special-form .special-copy { color: var(--ink); }
  .special-form .special-copy > p:not(.special-eyebrow) { color: #494b49; }
  .special-exhibition .special-photo img { object-position: 60% center; }
  .special-space .special-photo img { object-position: 34% center; }
  .special-space::after { background: linear-gradient(180deg,#f4f3ef00 25%,#f4f3ef40 45%,#f4f3efe8 80%,#f4f3ef); }
  .special-space .special-copy { color: var(--ink); }
  .special-space .special-copy > p:not(.special-eyebrow) { color: #494b49; }
  .special-rule { width: 32px; margin: 12px 0; }
  .special-copy .special-note { font-size: 10px !important; }
  .special-note small { font-size: 9px; margin-top: 4px; }
  .special-finale { min-height: 0; padding: 40px 24px 32px; background: #e9e6de; }
  .special-finale::after { display: none; }
  .special-finale .special-copy { padding: 0; color: var(--ink); }
  .special-finale .special-copy h3 { font-size: 36px; }
  .special-finale .special-copy > p:not(.special-eyebrow) { color: #494b49; }
  .special-finale .button { margin-top: 24px; }
  .special-finale .button-light { margin-top: 10px; font-size: 11px; }
  .special-mosaic { height: 300px; margin-top: 32px; padding: 0; gap: 6px; transform: none; }

  .site-footer { padding: 40px 24px 24px; }
  .site-footer-main { gap: 24px 12px; padding-bottom: 22px; }
  .site-footer-brand { height: 44px; min-height: 44px; }
  .site-footer-brand img { width: 190px; left: -4px; }
  .site-footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: 10px; }
  .site-footer-legal a { min-height: 44px; display: flex; align-items: center; line-height: 1.5; white-space: normal; }
  .site-footer-credit { font-size: 9px; gap: 6px; }
  .site-footer-credit strong { font-size: 12px; }
  .site-footer-credit img { width: 16px; height: 16px; min-width: 16px; min-height: 16px; }
  .site-footer-language { height: 44px; }
  .site-footer-language select { min-height: 44px; font-size: 11px; }
  .site-footer-bottom { padding-top: 14px; font-size: 9px; }

  .portrait-after-intro .contact-bubble { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 44px; height: 44px; padding: 10px; }

  /* Scroll motion is added only after JS has attached; content never waits on it. */
  .portrait-photo { overflow: hidden; }
  .portrait-photo > img { transform: scale(var(--portrait-scale,1)); transform-origin: center; }
  .portrait-reveal { opacity: var(--portrait-reveal,1); transform: translateY(var(--portrait-rise,0px)); }
}
@media (max-width: 600px) and (max-height: 740px) {
  .custom-story.is-pinned .custom-copy { padding-top: 26px; padding-bottom: 108px; }
  .custom-copy h3 { font-size: 28px; margin: 12px 0; }
  .custom-description { font-size: 13px; line-height: 1.5; }
  .custom-details { margin-top: 14px; padding-top: 12px; gap: 10px; }
  .custom-details li { font-size: 11px; }
  .custom-documents { margin: 16px 0; }
  .series-intro-copy { padding-top: 220px; }
  .technology-pin { padding-top: 32px; padding-bottom: 180px; }
  .technology-description { font-size: 13px; }
  .technology-tags { bottom: 72px; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  #meble .furniture-scroll-track { height: var(--scene-height); }
  #meble .product-visual { top: auto; }
  .portrait-photo > img, .portrait-reveal { transform: none; opacity: 1; }
}
