/* A shared type scale for the existing Movila layout. */
:root { --mobile-header-height: 68px; }
.kicker, .contact-label { font-size: 11px; line-height: 1.4; letter-spacing: 1.8px; }
.story-header h1, .contact-heading h1 {
  font-size: clamp(42px, 4.6vw, 64px); font-weight: 400;
  line-height: 1.12; letter-spacing: -1.8px; margin: 16px 0 24px;
}
.home h1, .collection-footer h1, .catalog-heading h1 {
  font-size: clamp(36px, 4vw, 56px); font-weight: 400;
  line-height: 1.12; letter-spacing: -1.5px;
}
.home h1 { margin: 16px 0 24px; }
.collection-footer h1 { margin: 16px 0 0; }
.catalog-heading h1 { margin: 16px 0 0; overflow-wrap: anywhere; }
.catalog-heading { margin-bottom: 40px; }
.collection-footer { padding-bottom: 40px; }
.cms-description { font-size: 16px; line-height: 1.7; margin: 24px 0 0; }
.story-header { padding-bottom: 40px; }
.story-header > p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; letter-spacing: -.2px; }
.story-copy p { font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.story-body { padding: 40px 0; }
#story .story-header h1 {
  max-width: 960px; font-size: clamp(34px, 3.8vw, 54px);
  letter-spacing: -1.5px; line-height: 1.14; text-wrap: balance;
}
#story .story-image.original { aspect-ratio: auto; mix-blend-mode: normal; }
#story .story-image.original img { height: auto; object-fit: contain; }
.story-signature { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.story-author { font-size: 15px; color: #242421; line-height: 1.5; }
.contact-heading { margin-bottom: 40px; }
.contact-heading p { font-size: 16px; line-height: 1.7; margin: 0; }
.contact-info h2 { margin-bottom: 20px; line-height: 1.25; }
.studio-description, .location { font-size: 16px; line-height: 1.7; }
.contact-link, .contact-social { font-size: 15px; }
.contact-field label { font-size: 14px; }
.contact-field input { min-height: 44px; }
.module-card img { max-width: 100%; }
.mobile-header { display: none; }

@media (max-width: 767px), (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  #app { display: block; }
  main { min-width: 0; }
  .mobile-header {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
    justify-content: space-between; height: var(--mobile-header-height);
    padding: 0 22px; background: #f7f6f2; border-bottom: 1px solid #dddad3;
    transition: background-color .25s ease, border-color .25s ease;
  }
  @supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    html:not(.menu-open) .mobile-header[data-scrolled="true"] {
      background: rgba(247, 246, 242, .38);
      border-bottom-color: rgba(221, 218, 211, .45);
      -webkit-backdrop-filter: blur(18px) saturate(1.25);
      backdrop-filter: blur(18px) saturate(1.25);
    }
  }
  .mobile-brand { width: 122px; min-height: 44px; padding: 0; display: flex; align-items: center; }
  .menu-open .mobile-header { position: fixed; left: 0; right: 0; }
  .mobile-brand .logo { display: block; }
  #menu-toggle { min-height: 44px; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; }
  .menu-icon { position: relative; width: 20px; height: 14px; }
  .menu-icon::before, .menu-icon::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 1px;
    background: currentColor; transition: transform .28s ease;
  }
  .menu-icon::before { top: 4px; } .menu-icon::after { top: 10px; }
  .menu-open .menu-icon::before { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-3px) rotate(-45deg); }
  .rail {
    position: fixed; z-index: 25; inset: var(--mobile-header-height) 0 0;
    height: calc(100dvh - var(--mobile-header-height)); width: 100%;
    padding: 28px 28px max(24px, env(safe-area-inset-bottom)); border: 0;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s ease, transform .3s ease, visibility 0s .3s;
  }
  .menu-open .rail { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .rail .slogan-home { width: 205px; max-width: 100%; flex-shrink: 0; }
  .rail .slogan { width: 100%; }
  .rail nav { margin: 32px 0 0; padding: 0; overflow: visible; flex: 0 0 auto; }
  .rail .nav { font-size: 22px; min-height: 52px; padding: 13px 0; letter-spacing: -.5px; }
  .rail .nav::before { left: -13px; }
  .rail .plus { width: 16px; height: 16px; }
  .rail .plus::before, .rail .plus::after { width: 16px; top: 7px; }
  .rail .items { padding: 4px 0 12px; }
  .rail .items::before { top: 4px; bottom: 12px; }
  .rail .items button { font-size: 16px; height: 44px; padding: 10px 16px; }
  .rail .items .marker { top: 2px; height: 44px; }
  .rail-bottom { display: block; flex-shrink: 0; margin-top: auto; padding-top: 28px; }
  .rail-bottom .logo-button { display: none; }
  .rail-bottom .language { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .language button { min-width: 44px; min-height: 44px; }
  .language button:first-child { margin-left: -12px; }

  .home { height: calc(100svh - var(--mobile-header-height)); min-height: 430px; }
}

@media (max-width: 767px) {
  .home-copy { top: 28px; left: 24px; right: 24px; }
  .home h1 { font-size: 40px; letter-spacing: -1.2px; margin: 12px 0 18px; }
  .discover { min-height: 44px; font-size: 14px; padding: 10px 0; }
  .slider-controls { right: 16px; bottom: 18px; max-width: calc(100% - 32px); padding: 0 6px; gap: 0; overflow-x: auto; }
  .slider-controls button { flex-shrink: 0; min-width: 40px; min-height: 44px; padding: 10px 8px; font-size: 11px; }
  .slider-controls #pause { min-width: 56px; }
  .story-page, .contact-page { padding: 36px 24px 40px; }
  .story-header h1, .contact-heading h1 { font-size: 36px; letter-spacing: -1px; line-height: 1.15; margin: 16px 0 24px; }
  .story-header > p, .contact-heading p { font-size: 16px; line-height: 1.7; }
  .story-header { padding-bottom: 28px; }
  #story .story-header h1 { font-size: 34px; letter-spacing: -1px; }
  .story-body { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .story-image.photo-frame { margin-top: 24px; aspect-ratio: 1.7; }
  .story-image + .story-body { padding-top: 28px; }
  .story-copy p { font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
  .story-footer { padding-top: 24px; gap: 20px; }
  .contact-heading { margin-bottom: 32px; }
  .contact-columns { grid-template-columns: 1fr; gap: 36px; }
  .contact-info { max-width: none; }
  .contact-info h2, .showroom-map h2 { font-size: 24px; letter-spacing: -.4px; }
  .contact-info h2 { margin-bottom: 16px; }
  .studio-description { margin-bottom: 20px; }
  .contact-info-block { margin-top: 24px; gap: 6px; }
  .contact-link { min-height: 36px; display: flex; align-items: center; font-size: 16px; }
  .contact-social { margin-top: 20px; min-height: 44px; align-items: center; font-size: 16px; }
  .enquiry-form { grid-template-columns: 1fr; gap: 24px; }
  .contact-wide { grid-column: auto; }
  .contact-field { gap: 4px; }
  .contact-field textarea { min-height: 100px; }
  .showroom-map { margin-top: 40px; }
  .map-heading { padding: 20px; gap: 12px; }
  .showroom-map iframe { height: 280px; }
  #empty { padding: 36px 24px 32px; }
  .catalog-heading { margin-bottom: 28px; }
  .catalog-heading h1, .collection-footer h1 { font-size: 34px; letter-spacing: -1px; }
  
  .catalog-rail, .collection-gallery { gap: 16px; }
  .catalog-item, .collection-gallery-photo.catalog-item { flex-basis: 86%; }
  .catalog-caption { padding: 16px 0 4px; flex-direction: column; gap: 6px; }
  .catalog-caption button { font-size: 21px; min-height: 30px; }
  .catalog-caption > span { font-size: 11px; }
  .catalog-navigation { margin-top: 24px; gap: 12px; }
  .catalog-navigation button { min-width: 36px; min-height: 44px; justify-content: center; }
  .catalog-range { height: 44px; }
  .collection-footer { padding: 20px 24px 28px; }
  .collection-meta { gap: 8px; }
  .collection-meta .angles { gap: 4px; overflow-x: auto; min-width: 0; }
  .collection-meta .angles button { flex-shrink: 0; min-width: 40px; min-height: 44px; padding: 10px 6px; }
  .collection-meta .kicker { flex-shrink: 0; }
  .collection-footer h1 { margin-top: 12px; }
  .cms-description { margin-top: 20px; }
  .collection-gallery { margin: 0 24px; }
  .collection-gallery-navigation { margin: 16px 24px 28px; }
  .technical { padding: 28px 24px 40px; }
  .technical h2 { font-size: 20px; font-weight: 400; margin-bottom: 16px; }
  .technical-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 20px; margin-bottom: 28px; }
  .technical-tabs button { flex-shrink: 0; min-height: 44px; font-size: 11px; }
  .module-grid { grid-template-columns: 1fr; }
  .option-images { grid-template-columns: 1fr; }
  .preview-banner { width: max-content; max-width: calc(100% - 24px); font-size: 11px; padding: 10px 12px; }
  .preview-banner a { display: inline-block; margin-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .rail, .mobile-header, .menu-icon::before, .menu-icon::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  html:not(.menu-open) .mobile-header[data-scrolled="true"] {
    background: #f7f6f2; border-bottom-color: #dddad3;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
