@media (max-width: 1000px) {
  .menu-button { width: 220px; }
}

@media (max-width: 900px) {
  .preloader-bar { left: 20px; right: 20px; bottom: max(24px, env(safe-area-inset-bottom)); }

  .site-header {
    top: max(16px, env(safe-area-inset-top));
    inset-inline: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .site-logo {
    width: auto;
    height: 42px;
    gap: 9px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
  }
  .site-logo.is-on-light { background: #0505050d; }
  .logo-mark { width: 14px; height: 14px; }
  .logo-mark::after { inset: 4px; }
  .logo-word { font-size: 16px; }
  .cta-button { display: none; }
  .header-actions { order: 3; }
  .menu-button {
    position: static;
    transform: none;
    width: 116px;
    height: 44px;
    font-size: 13px;
    margin-inline-start: auto;
    margin-inline-end: 6px;
  }
  .menu-icon { width: 24px; }
  .menu-icon span { width: 24px; }
  .lang-toggle { height: 44px; padding: 0 10px; font-size: 12px; }

  /* hero heading leaves the artboard */
  #composition {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
    left: 0;
    top: 0;
  }
  .hero-heading {
    top: var(--hero-heading-y, 58svh);
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    transform: none;
    font-size: clamp(19px, 5.2vw, 26px);
    line-height: 1.55;
    text-align: center;
  }
  [dir="rtl"] .hero-heading { font-size: clamp(20px, 5.6vw, 27px); left: 20px; right: 20px; }
  .hero-row .line { padding: 0; }
  .hero-row .line.d { display: none; }
  .hero-row .line.m { display: inline-block; }

  /* phones: no scroll journey, so no showcase card; its copy lives in the block below */
  .journey { height: 100svh; }
  .showcase-layout, .showcase-background { display: none; }
  .mobile-showcase-details {
    display: block;
    position: relative;
    z-index: 2;
    background: var(--accent);
    color: var(--ink);
    padding: 40px 20px 56px;
    font-size: 15px;
    line-height: 1.6;
  }
  .msd-eyebrow { font-size: 12px; margin-bottom: 10px; }
  .msd-title { font-size: 26px; line-height: 1.25; font-weight: 500; margin-bottom: 14px; }
  .msd-title .line { display: inline; }
  .mobile-showcase-details ul { margin-top: 20px; }
  .mobile-showcase-details li { padding: 16px 0 18px; border-top: 1px solid #040b0a24; }
  .mobile-showcase-details h3 { font-size: 20px; line-height: 1.25; margin-bottom: 6px; font-weight: 500; }
  .mobile-showcase-details li p { color: var(--ink-2); font-size: 14px; }

  /* menu */
  .studio-menu::backdrop { background: #05050580; }
  .menu-shell { height: min(560px, 88svh); overflow-y: auto; }
  .menu-close { inset-inline-end: 20px; }
  .menu-body {
    position: static;
    padding: 72px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .menu-nav ul { gap: 0 16px; }
  .menu-nav a, .menu-nav button { font-size: 18px; min-height: 44px; }
  .menu-mobile-only { display: block; }
  .menu-cards { height: 150px; }

  /* content */
  .section-wrap { width: auto; max-width: 640px; margin: 0 20px; }
  .section-title, [dir="rtl"] .section-title { font-size: 28px; }
  .continuation h3, .step-title { font-size: 22px; }
  .continuation p, .step-copy, [dir="rtl"] .continuation p, [dir="rtl"] .step-copy { font-size: 15px; }
  .process { height: auto; }
  .process-pin { position: static; height: auto; padding: 72px 0; }
  .process-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .process-grid .section-title { order: 0; }
  .process-visual { order: 1; }
  .process-steps { order: 2; gap: 20px; }
  .process-step, .process-step[aria-current="step"] { opacity: 1; color: var(--ink); transform: none; }
  .step-marker { width: 10px; height: 10px; }
  .process-step { gap: 12px; }
  .work, .faq, .services, .case, .proof, .how { padding: 72px 0; }
  .services-grid, .case-grid, .proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-aside, .proof-aside { position: static; }
  .service { grid-template-columns: 40px 1fr; padding: 22px 0; }
  .case-main { grid-row: auto; }
  .case-facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .case-fact-n { font-size: 22px; }
  .case-step-t { font-size: 18px !important; }
  .proof-list, .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .menu-desktop-only { display: none; }
  .contact { padding: 72px 0 96px; }
  .work-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-aside { position: static; gap: 20px; }
  .work-nav { grid-template-columns: 1fr 1fr; gap: 8px; }
  .work-nav-item {
    border: 1px solid #040b0a40;
    padding: 10px 12px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
  }
  .work-nav-item .work-thumb { display: none; }
  .work-nav-item[aria-current="true"] { background: #050505; color: var(--accent); }
  .work-nav-item[aria-current="true"] span:last-child { text-decoration: none; }
  .work-list { gap: 56px; }
  .faq-plus { font-size: 24px; }
  .contact-link { font-size: 18px; grid-template-columns: 1fr auto; row-gap: 4px; }
  .contact-kind { grid-column: 1 / -1; }

  .logo-marquee { height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .marquee-group li { font-size: 12px; }
  [dir="rtl"] .marquee-group li { font-size: 13px; }
  .marquee-mark { width: 8px; height: 8px; }
}

@media (max-width: 900px) and (max-height: 500px) {
  .hero-heading, [dir="rtl"] .hero-heading { top: 96px; width: 40%; font-size: 19px; }
}

/* narrow desktop windows with a mouse: menu keeps its strip, nav only */
@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .menu-shell { height: 24svh; min-height: 180px; }
  .menu-body { padding: 64px 20px 16px; }
  .menu-nav a, .menu-nav button { font-size: 13px; min-height: 0; }
  .menu-info, .menu-cards { display: none; }
}

@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; }
  .proof-head { margin-bottom: 28px; }
}
