/* Mobile is composed for a finger and a small viewport, not scaled down. */
@media (max-width: 900px) {
  html { --dd-site-header: 76px; scroll-padding-top: calc(var(--dd-site-header) + 18px); }
  body[data-dd-home] { overflow-wrap: break-word; }
  body[data-dd-home].mobile-menu-open { overflow: hidden; }
  .site-header, .site-header.is-scrolled {
    height: calc(var(--dd-site-header) + env(safe-area-inset-top)); min-height: 76px;
    position: sticky; top: 0; padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    gap: 8px; animation: none; z-index: 40;
  }
  .site-header .brand-official { flex: 0 0 66px; width: 66px; min-width: 0; }
  .site-header .brand-official .official-logo { width: 66px; height: 60px; object-fit: contain; }
  .site-header .desktop-nav { display: none; }
  .site-header .nav-actions { min-width: 0; gap: 6px; margin-left: auto; }
  .site-header .account-link { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .site-header .account-link svg { width: 19px; height: 19px; }
  .site-header .account-link span { display: none; }
  body[data-dd-ui] .site-header .nav-cta { min-height: 44px; padding: 10px 12px; font-size: 12px; line-height: 1.4; gap: 10px; max-width: 174px; }
  .site-header .menu-toggle { display: block; flex: 0 0 44px; min-width: 44px; width: 44px; height: 44px; padding: 4px; }
  .site-header .menu-toggle i { width: 22px; transition: transform .2s ease; }
  .site-header .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav {
    position: fixed; inset: calc(var(--dd-site-header) + env(safe-area-inset-top)) 0 0; z-index: 39;
    padding: 26px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow-y: auto; overscroll-behavior: contain; background: #f5f3ee; box-shadow: 0 1px 0 #28302412;
  }
  .mobile-nav a, .mobile-nav button { display: flex; align-items: center; width: 100%; min-height: 58px; margin: 0; padding: 12px 0; border-bottom: 1px solid #daddd1; font-size: clamp(23px, 5vw, 32px); line-height: 1.35; text-align: left; }
  body[data-dd-ui] .mobile-nav button { --dd-button-edge: 0 0 1px; --dd-button-line: #daddd1; --dd-button-radius: 0; }
  .motion-chapters { display: none; }
  body[data-dd-home] :is(input:not([type="checkbox"]):not([type="range"]), select, textarea) { font-size: 16px; min-height: 46px; }
  body[data-dd-home] :is(.section-shell, .tour-sticky) { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
  .section-heading { gap: 24px; }
  .inspiration-controls { flex-wrap: wrap; gap: 16px; }
  .inspiration-filters { display: flex; flex-wrap: wrap; gap: 7px; }
  .inspiration-filters button { min-height: 44px; font-size: 12px; padding: 9px 12px; }
  .inspiration-controls label { min-width: 180px; }
  .inspiration-controls select { max-width: 100%; }
  .inspiration-card { min-width: 0; }
  .inspiration-card h3 { overflow-wrap: anywhere; }
  .client-visual { min-width: 0; }
  .client-window { max-width: 100%; }
  .floating-message { max-width: 100%; right: 0; }
  .closing-content h2 { font-size: clamp(46px, 11.4vw, 75px); line-height: 1.05; letter-spacing: -2.5px; }
  .closing-content { width: 86%; }
}

@media (max-width: 640px) {
  body[data-dd-ui] .site-header .nav-cta { width: 140px; font-size: 11px; }
  .hero {
    display: flex; flex-direction: column; gap: 18px; padding: 22px 20px 18px;
    height: auto; min-height: calc(100svh - var(--dd-site-header) - env(safe-area-inset-top)); max-height: none;
    margin: 0 8px; isolation: isolate;
  }
  .hero-top { position: relative; inset: auto; order: 0; flex: 0 0 auto; min-height: 16px; font-size: 9px; letter-spacing: 1px; }
  .hero-top .status-dot { margin-right: 7px; }
  .hero-content, .hero[data-hero-carousel-initialized] .hero-content {
    position: relative; inset: auto; transform: none; width: 100%; order: 1; flex: 1 0 auto;
    display: flex; flex-direction: column; justify-content: center; padding: 28px 0 18px;
  }
  .hero-content .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(34px, 10.7vw, 60px); letter-spacing: -1.8px; line-height: 1.08; }
  .hero h1 em { letter-spacing: inherit; }
  .hero-bottom, .hero[data-hero-carousel-initialized] .hero-bottom { display: block; margin-top: 24px; }
  .hero-bottom p, .hero[data-hero-carousel-initialized] .hero-bottom p { font-size: 14px; line-height: 1.75; }
  body[data-dd-ui] .hero-bottom .button { margin-top: 20px; min-height: 50px; padding: 12px 17px; gap: 24px; font-size: 13px; }
  .hero .hero-project, .hero[data-hero-carousel-initialized] .hero-project {
    position: relative; inset: auto; width: 100%; max-width: none; order: 2; flex: 0 0 auto; padding: 12px 0 0;
  }
  .hero .hero-project .project-sample { font-size: 9px; letter-spacing: 1.1px; }
  .hero .hero-project strong { font-size: 18px; line-height: 1.35; margin: 7px 0; }
  .hero .hero-project > span:last-child { font-size: 12px; line-height: 1.5; }
  .hero .hero-carousel-controls {
    position: relative; inset: auto; width: 100%; max-width: none; order: 3; flex: 0 0 auto;
    display: grid; grid-template-columns: 44px 44px minmax(0,1fr) 44px; grid-template-rows: 96px 44px; gap: 8px;
  }
  .hero .hero-slide-selectors { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(5,minmax(44px,1fr)); grid-template-rows: repeat(2,44px); gap: 8px; min-width: 0; }
  .hero .hero-slide-selectors button { min-width: 44px; min-height: 44px; width: 100%; font-size: 11px; }
  .hero .hero-carousel-controls :is([data-hero-prev], [data-hero-next], [data-hero-pause]) { display: grid; width: 44px; height: 44px; margin: 0; }
  .hero .hero-carousel-controls [data-hero-prev] { grid-column: 1; grid-row: 2; }
  .hero .hero-carousel-controls [data-hero-next] { grid-column: 2; grid-row: 2; }
  .hero .hero-carousel-controls [data-hero-pause] { grid-column: 4; grid-row: 2; }
  .hero .hero-carousel-controls::before, .hero .hero-carousel-controls::after { bottom: -8px; }
  .hero .hero-scroll, .hero[data-hero-carousel-initialized] .hero-scroll { position: relative; inset: auto; order: 4; min-height: 44px; font-size: 17px; margin-top: 2px; }
  .hero-scroll > span:first-child { font-size: 9px; letter-spacing: 1.1px; }
  .marquee { padding-block: 17px; }
  .marquee > div { font-size: 11px; gap: 28px; }
  .approach, .inspirations, .inspiration-library, .pricing, .faq { padding-top: 64px; padding-bottom: 64px; }
  body[data-dd-home] h2 { font-size: clamp(31px, 8.5vw, 44px); letter-spacing: -1.3px; line-height: 1.16; }
  body[data-dd-home] .hero h1 { color: #fff; }
  .approach h2 { font-size: clamp(29px, 8vw, 38px); }
  .section-tag { font-size: 10px; letter-spacing: 1.2px; line-height: 1.65; margin-bottom: 25px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .heading-aside { margin-top: 22px; }
  .project-grid { gap: 34px; }
  .project-card-small { padding-top: 0; }
  .project-img, .project-card-small .project-img { height: clamp(240px, 76vw, 390px); }
  .project-description { padding-block: 18px; gap: 12px; }
  .project-description h3 { font-size: 23px; line-height: 1.25; }
  .project-description p { font-size: 13px; line-height: 1.7; }
  .view-project { opacity: 1; top: auto; left: auto; right: 16px; bottom: 16px; transform: none; width: auto; height: 44px; min-width: 92px; padding: 0 15px; border-radius: 24px; font-size: 12px; }
  .project-card:hover .view-project { transform: none; }
  .portfolio-note { gap: 15px; margin-top: 35px; }
  .portfolio-note p { font-size: 13px; line-height: 1.8; }
  .inspiration-controls { display: block; margin: 24px 0; }
  .inspiration-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 18px; }
  .inspiration-filters button { min-width: 0; min-height: 44px; padding: 8px 5px; line-height: 1.4; font-size: 12px; }
  .inspiration-controls label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
  .inspiration-controls select { flex: 1; min-width: 0; padding: 10px 12px; }
  .inspiration-grid { gap: 18px; }
  .inspiration-card img { height: 200px; }
  .inspiration-card > div { padding: 18px; }
  .inspiration-card h3 { font-size: 21px; line-height: 1.35; margin: 10px 0 18px; }
  .inspiration-card > div > span:first-child { font-size: 11px; line-height: 1.5; }
  .inspiration-card > div > span:last-child { font-size: 13px; }
  .inspiration-more { width: 100%; min-height: 48px; }
  .studio-section { padding-top: 64px; }
  .studio-intro { display: block; }
  .studio-description { max-width: none; margin-top: 24px; }
  .studio-description p { font-size: 14px; line-height: 1.8; }
  .studio-preview { margin: 30px 16px 0; }
  .preview-scene { height: 330px; }
  .preview-scene canvas { touch-action: pan-y pinch-zoom; }
  .preview-topbar { height: 58px; padding-inline: 14px; }
  .preview-saved { font-size: 10px; }
  .preview-scene > .scene-view-toggle { top: 12px; right: 12px; }
  .preview-scene .scene-view-toggle button, .scene-expand { min-width: 44px; min-height: 44px; }
  .scene-room-label { top: 17px; left: 14px; font-size: 9px; max-width: 42%; line-height: 1.6; }
  .scene-drag { font-size: 10px; bottom: 20px; left: 16px; transform: none; max-width: 70%; white-space: normal; line-height: 1.6; }
  .scene-expand { right: 12px; bottom: 12px; }
  .studio-foot { display: block; margin-top: 18px; }
  .studio-foot > span { font-size: 10px; }
  .studio-foot p { margin-top: 12px; font-size: 12px; line-height: 1.8; }
  .journey, .client-section { padding-top: 64px; padding-bottom: 64px; }
  .journey-grid { margin-top: 32px; gap: 32px; }
  .journey-number { font-size: 48px; margin-bottom: 22px; }
  .journey-item h3 { font-size: 23px; }
  .journey-item p { font-size: 14px; line-height: 1.85; max-width: none; }
  .client-visual { padding-right: 0; padding-bottom: 55px; }
  .client-window { padding: 18px 17px 28px; transform: none; }
  .client-orbit { display: none; }
  .floating-message { right: 0; bottom: 0; width: calc(100% - 20px); transform: none; padding: 16px; }
  .client-copy { margin-top: 24px; }
  .client-copy .body-copy { max-width: none; font-size: 14px; line-height: 1.85; }
  .pricing-grid-two { gap: 20px; margin-top: 32px; }
  .pricing-grid-two .price-card { padding: 27px 22px; }
  .price-card h3 { font-size: 30px; }
  .price-card li { font-size: 14px; line-height: 1.8; margin-block: 12px; }
  .price-card .button { min-height: 48px; }
  .pricing-disclaimer, .pricing-note { font-size: 12px; line-height: 1.8; max-width: none; }
  .pricing-disclaimer { margin-top: 22px; }
  .pricing-deliverables { padding: 25px 22px; }
  .pricing-deliverables .pricing-deliverables-note { font-size: 12px; }
  .quote-calculator { padding: 25px 22px; gap: 20px; margin-top: 28px; }
  .quote-calculator label { font-size: 12px; }
  .quote-calculator .button { width: 100%; }
  .faq { display: block; }
  .faq-list { margin-top: 30px; }
  .faq-list summary { gap: 16px; min-height: 58px; padding-block: 18px; font-size: 14px; line-height: 1.6; }
  .faq-list summary span { flex: 0 0 20px; }
  .faq-list details p { font-size: 14px; line-height: 1.9; }
  .closing { height: auto; min-height: 520px; display: flex; align-items: center; padding: 64px 22px 85px; }
  .closing-content, .closing-content.reveal, .closing-content.reveal.is-visible { position: relative; inset: auto; transform: none; width: 100%; }
  body[data-dd-home] .closing h2 { font-size: clamp(42px, 12.3vw, 70px); letter-spacing: -2.5px; line-height: 1.06; margin: 26px 0 32px; }
  .closing .button { max-width: 100%; min-height: 50px; }
  .closing-caption { left: 22px; right: 22px; bottom: 22px; font-size: 9px; line-height: 1.8; letter-spacing: .7px; }
  .footer-top { padding-block: 40px; gap: 24px; }
  .footer-top p { font-size: 14px; line-height: 1.8; }
  .footer-bottom { flex-wrap: wrap; gap: 14px 24px; padding-block: 25px; }
  .footer-bottom button, .footer-bottom > a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
}

@media (max-width: 420px) {
  .inspiration-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 10px; gap: 4px; }
  .site-header .brand-official { flex-basis: 58px; width: 58px; }
  .site-header .brand-official .official-logo { width: 58px; height: 54px; }
  .site-header .nav-actions { gap: 3px; }
  body[data-dd-ui] .site-header .nav-cta { width: 115px; padding-inline: 10px; gap: 6px; }
  .hero { padding-inline: 16px; }
  .hero .hero-slide-selectors { justify-content: flex-start; }
  body[data-dd-home] .closing h2 { font-size: 42px; }
}

/* Keep the 3D story in view; short phones use a natural flowing composition. */
@media (max-width: 900px) {
  .scroll-tour { height: 180svh; }
  .tour-sticky { top: calc(var(--dd-site-header) + env(safe-area-inset-top)); height: calc(100svh - var(--dd-site-header) - env(safe-area-inset-top)); min-height: 0; display: flex; flex-direction: column; gap: 20px; padding-block: 30px 16px; }
  .tour-copy { max-width: none; flex: 0 0 auto; }
  .tour-copy .section-tag { font-size: 9px; margin-bottom: 18px; }
  body[data-dd-home] .tour-copy h2 { font-size: 34px; margin-block: 15px 12px; }
  .tour-copy h2 br { display: none; }
  .tour-copy p { font-size: 13px; max-width: 450px; line-height: 1.75; }
  .tour-copy .text-link { min-height: 44px; font-size: 13px; margin-top: 12px; }
  .tour-track { margin-top: 10px; }
  .tour-scroll-hint { font-size: 9px; margin-top: 8px; }
  .tour-canvas-wrap { position: relative; inset: auto; width: calc(100% + 44px); margin: 0 -22px; height: auto; flex: 1 1 0; min-height: 210px; }
  .tour-scene-label { inset: auto 22px 35px auto; font-size: 9px; }
  .tour-engine-label { bottom: 16px; right: 22px; font-size: 8px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .scroll-tour { height: auto; }
  .tour-sticky { position: relative; top: auto; height: auto; min-height: 0; padding-block: 45px 20px; }
  .tour-canvas-wrap { height: 320px; min-height: 320px; flex: none; }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero { height: auto; min-height: 580px; max-height: none; }
  .hero-scroll { display: none; }
}
/* Ten ambiances stay reachable on tablets without covering the hero content. */
@media (min-width: 641px) and (max-width: 900px) {
  .hero {
    display: flex; flex-direction: column; gap: 18px; padding: 26px 32px 20px;
    height: auto; min-height: calc(100svh - var(--dd-site-header) - env(safe-area-inset-top)); max-height: none;
    isolation: isolate;
  }
  .hero-top { position: relative; inset: auto; order: 0; flex: 0 0 auto; min-height: 16px; font-size: 10px; letter-spacing: 1px; gap: 20px; }
  .hero-top .hero-edition { text-align: right; }
  .hero-content, .hero[data-hero-carousel-initialized] .hero-content {
    position: relative; inset: auto; transform: none; width: 100%; order: 1; flex: 1 0 auto;
    display: flex; flex-direction: column; justify-content: center; padding: 36px 0 20px;
  }
  .hero h1 { font-size: clamp(54px,8.5vw,76px); letter-spacing: -3px; }
  .hero h1 em { letter-spacing: inherit; }
  .hero-bottom, .hero[data-hero-carousel-initialized] .hero-bottom { gap: 26px; flex-wrap: wrap; margin-top: 30px; }
  .hero-bottom .button { min-height: 50px; }
  .hero .hero-project, .hero[data-hero-carousel-initialized] .hero-project {
    position: relative; inset: auto; width: 100%; max-width: 540px; align-self: flex-end;
    order: 2; flex: 0 0 auto; padding: 12px 0 0;
  }
  .hero .hero-carousel-controls {
    position: relative; inset: auto; width: 100%; max-width: 540px; align-self: flex-end; order: 3; flex: 0 0 auto;
    display: grid; grid-template-columns: 44px 44px minmax(0,1fr) 44px; grid-template-rows: 96px 44px; gap: 8px;
  }
  .hero .hero-slide-selectors { display: grid; grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(5,minmax(44px,1fr)); grid-template-rows: repeat(2,44px); gap: 8px; min-width: 0; }
  .hero .hero-slide-selectors button { min-width: 44px; min-height: 44px; width: 100%; font-size: 11px; }
  .hero .hero-carousel-controls :is([data-hero-prev], [data-hero-next], [data-hero-pause]) { display: grid; width: 44px; height: 44px; margin: 0; }
  .hero .hero-carousel-controls [data-hero-prev] { grid-column: 1; grid-row: 2; }
  .hero .hero-carousel-controls [data-hero-next] { grid-column: 2; grid-row: 2; }
  .hero .hero-carousel-controls [data-hero-pause] { grid-column: 4; grid-row: 2; }
  .hero .hero-carousel-controls::before, .hero .hero-carousel-controls::after { bottom: -8px; }
  .hero .hero-scroll, .hero[data-hero-carousel-initialized] .hero-scroll { position: relative; inset: auto; order: 4; min-height: 44px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .menu-toggle i { transition: none; }
}
