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

@media (max-width: 900px) {
  .thread-demo { top: calc(50% + 6px); font-size: 13px; }
  .step-captions { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 14px 14px 12px; }
  .step-rail-item { font-size: 12px; }
  .step-copy { min-height: 4.5em; font-size: 13px; }
  .thread-step { font-size: 12px; }
  .thread-step-copy { min-height: 4.5em; margin-bottom: 12px; font-size: 12px; }
  .thread-post { padding: 12px; }
  .thread-comment, .thread-reply-inner { gap: 10px; padding: 10px 12px; }
  .thread-reply { padding: 0; }
  .preloader-bar { left: 20px; right: 20px; bottom: max(24px, env(safe-area-inset-bottom)); }

  .site-header {
    top: max(16px, env(safe-area-inset-top));
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
  }
  .site-logo { width: 140px; height: 42px; gap: 8px; }
  .site-logo-mark { width: 24px; height: 24px; }
  .site-logo-word { font-size: 13px; }
  .cta-button { display: none; }
  .menu-button {
    position: relative;
    left: auto;
    transform: none;
    width: 116px;
    height: 44px;
    font-size: 13px;
  }
  .menu-icon { width: 24px; }
  .menu-icon i { width: 24px; }

  /* the heading leaves the artboard */
  #composition {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .hero-heading { display: none; }
  .hero-heading.hero-heading-mobile {
    display: block;
    top: clamp(88px, 18svh, 152px);
    left: 20px;
    width: calc(100% - 40px);
    transform: none;
    font-size: clamp(21px, 5.8vw, 30px);
    line-height: 1.5;
    text-align: left;
  }
  .hero-heading-mobile .hero-row > span { padding: 3px 6px; }

  /* showcase on a phone */
  .showcase-layout {
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .showcase-eyebrow { display: none; }
  .showcase-intro { left: 20px; top: 110px; width: calc(100% - 40px); }
  .showcase-title { font-size: 28px; }
  .showcase-model-anchor {
    left: 50%;
    top: 216px;
    width: min(calc(100vw - 40px), calc((100svh - 250px) * 4 / 3), 640px);
    height: auto;
    aspect-ratio: 4 / 3;
    transform: translateX(-50%);
  }
  .showcase-description,
  .showcase-facts { display: none; }
  .showcase-caption {
    left: 50%;
    top: calc(216px + min(calc(100vw - 40px), calc((100svh - 250px) * 4 / 3), 640px) * 0.75 + 12px);
    width: min(calc(100vw - 40px), calc((100svh - 250px) * 4 / 3), 640px);
    font-size: 11px;
    translate: -50% 0;
  }
  .mobile-showcase-details {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: -36svh;
    padding: 24px 20px 64px;
    background: #d2fc52;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
  }
  .mobile-showcase-details > p { margin: 0 0 16px; }
  .mobile-showcase-details .showcase-fact h3 { font-size: 22px; }

  .logo-marquee { height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .marquee-group img { width: 24px; height: 24px; }
  .marquee-group li { font-size: 12px; }

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

  /* sections */
  .continuation { --s: 1; }
  .section-wrap { width: auto; max-width: 640px; margin: 0 20px; }
  .section-title { font-size: 28px; }
  .continuation h3, .process-step-title { font-size: 22px; }
  .continuation p, .process-step-copy { font-size: 15px; }

  .process { height: auto; padding: 72px 0; }
  .process-pin { position: static; height: auto; display: block; }
  .process-grid { display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
  .process-visual { order: 2; }
  .process-steps { order: 3; gap: 20px; }
  .process-step { opacity: 1; color: var(--ink); }
  .process-step[aria-current="step"] { transform: none; }

  .work, .questions { padding: 72px 0; }
  .work-grid, .questions-grid { display: flex; flex-direction: column; gap: 36px; }
  .work-aside { position: static; }
  .work-description { max-width: none; }
  .work-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .work-nav-item {
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #080a0440;
    font-size: 13px;
    text-align: center;
  }
  .work-nav-item.is-active { background: var(--black); color: #d2fc52; border-color: var(--black); }
  .work-nav-item .live-thumb { display: none; }
  .work-list { gap: 56px; }
  .faq summary { font-size: 20px; padding: 22px 0; }
  .faq-plus { font-size: 22px; }
}

@media (max-width: 900px) and (max-height: 500px) {
  .hero-heading.hero-heading-mobile { top: 96px; width: 40%; font-size: 19px; }
}

/* narrow desktop windows keep the strip menu */
@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .menu-shell { height: 24svh; overflow: hidden; }
  .menu-body { position: absolute; inset: 20px 184px 20px 20px; padding: 0; display: grid; grid-template-columns: 1fr; }
  .menu-nav a { font-size: 13px; min-height: 0; }
  .menu-info, .menu-cards { display: none; }
}
