/* Mobile experience layer. Every rule is isolated below the phone breakpoint. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 18px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overscroll-behavior-y: none;
  }

  /* Hero */
  .hero {
    min-height: 100dvh;
    transform: scaleX(var(--hero-scale, 1)) !important;
  }

  .hero__media,
  .hero__wash {
    inset-block: calc(-1 * env(safe-area-inset-top)) calc(-1 * env(safe-area-inset-bottom));
  }

  .hero__topbar {
    top: max(20px, env(safe-area-inset-top));
    left: 20px;
    right: 20px;
  }

  .hero__otisa,
  .hero__contact {
    min-width: 44px;
    min-height: 44px;
  }

  .hero__otisa { justify-content: flex-start; }
  .hero__contact { padding-inline: 8px; }

  .hero__content {
    width: 100%;
    padding: 0 18px 54px;
    transform: translateY(-1vh);
  }

  .hero h1 {
    max-width: 360px;
    font-size: 38px;
    line-height: 1.04;
    letter-spacing: -.052em;
  }

  .hero__rotating {
    width: min(350px, calc(100vw - 36px));
    margin-top: 18px;
    font-size: 12px;
  }

  .hero__email-form { display: none !important; }

  /* Shorter editorial introduction. */
  .intro {
    min-height: 64svh;
    padding: 94px 20px 88px;
  }

  .intro__logo { width: 86px; height: 86px; }
  .intro h2 { margin-top: 22px; font-size: clamp(40px, 11vw, 48px); line-height: 1.08; }

  /* Service stories stay in a simple image-copy rhythm. */
  .story__sticky { padding-inline: 16px !important; }
  .story__copy > .story__scene { margin-bottom: 62px !important; }
  .story__copy .story__deck-card {
    aspect-ratio: 1.18;
    margin-bottom: 24px !important;
    border-radius: 22px;
  }
  .story__copy .story__caption,
  .story__copy .story__caption--left { padding-inline: 7px !important; }
  .story__copy .story__caption h2 { font-size: 32px; line-height: 1.08; }
  .story__copy .story__caption p { font-size: 13px; line-height: 1.65; }
  .story__copy .story__link { min-height: 44px; font-size: 13px; }

  /* Specialist section: shorter copy column and a swipeable capability shelf. */
  .build-missing { padding: 92px 16px 84px; }
  .build-missing__layout { gap: 42px; }
  .build-missing__layout > *,
  .build-missing__copy,
  .build-missing__visual,
  .build-missing__panel { min-width: 0; width: 100%; max-width: none; }
  .build-missing__copy h2 {
    max-width: 360px;
    margin-bottom: 24px;
    font-size: clamp(42px, 12vw, 50px);
    line-height: .98;
  }
  .build-missing__copy p { margin-bottom: 17px; font-size: 14px; line-height: 1.58; }
  .build-missing__cta { min-height: 54px; border-radius: 12px; }
  .build-missing__visual { display: block; min-height: 0; }
  .build-missing__panel { overflow: hidden; padding: 25px 18px 20px; border-radius: 22px; }
  .build-missing__panel-head { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; margin-bottom: 22px; }
  .build-missing__panel-head img { width: 38px; height: 38px; }
  .build-missing__panel-head h3 { font-size: 27px; line-height: 1.02; }
  .build-missing__panel-head p { font-size: 12px; line-height: 1.55; }
  .build-missing__capabilities {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    grid-auto-columns: max-content;
    gap: 8px;
    margin-inline: -18px;
    padding: 0 18px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .build-missing__capabilities::-webkit-scrollbar { display: none; }
  .build-missing__capabilities li {
    min-height: 38px;
    padding: 8px 13px;
    scroll-snap-align: start;
    font-size: 11px;
  }
  .build-missing__watermark--one { top: 10px; right: -36px; }
  .build-missing__watermark--two { right: -35px; bottom: -55px; }

  /* Tool carousel remains animated but no longer leaves a large empty floor. */
  .tools-carousel { min-height: 0; padding: 92px 0 98px; }
  .tools-carousel__intro { width: calc(100% - 36px); }
  .tools-carousel__intro h2 { font-size: clamp(39px, 11vw, 48px); line-height: 1.05; }
  .tools-carousel__intro p { max-width: 330px; margin-top: 20px; font-size: 13px; line-height: 1.6; }
  .tools-carousel__rows { margin-top: 38px; }
  .tools-carousel__viewport { padding-block: 4px; }
  .tools-carousel__pill { min-height: 38px; }
  .tools-carousel__ghost { opacity: .05; }

  /* Native-feeling service cards. Mobile no longer uses the sticky desktop composition. */
  .steps { padding: 88px 16px 96px; }
  .steps__intro { margin-bottom: 34px; text-align: left; }
  .steps__intro h2 { font-size: 43px; line-height: 1; }
  .steps__intro p { max-width: 340px; margin-top: 16px; font-size: 13px; line-height: 1.62; }
  .steps__experience { display: block; }
  .steps__visual-stage { display: none !important; }
  .steps__cards {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
  }
  .steps__card,
  .steps__card.is-active {
    display: flex;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(103, 91, 64, .15);
    border-radius: 24px;
    background: #f1ecdf;
    box-shadow: 0 16px 42px rgba(49, 43, 27, .07);
  }
  .steps__card::before,
  .steps__card.is-active::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    flex: none;
    position: relative;
    background-position: center;
    background-size: cover;
    filter: saturate(.78) contrast(.94) sepia(.12);
  }
  .steps__card:nth-child(1)::before { background-image: linear-gradient(145deg, rgba(202,169,94,.13), rgba(48,67,35,.13)), url('./assets/step-editorial-member-800.webp'); }
  .steps__card:nth-child(2)::before { background-image: linear-gradient(145deg, rgba(202,169,94,.13), rgba(48,67,35,.13)), url('./assets/step-editorial-code-800.webp'); }
  .steps__card:nth-child(3)::before { background-image: linear-gradient(145deg, rgba(202,169,94,.13), rgba(48,67,35,.13)), url('./assets/step-editorial-queue-800.webp'); }
  .steps__copy,
  .steps__card.is-active .steps__copy {
    width: 100%;
    max-width: none;
    padding: 25px 23px 27px;
    opacity: 1;
    transform: none;
  }
  .steps__copy h3 { margin-bottom: 13px; font-size: 30px; line-height: 1.08; }
  .steps__copy p { font-size: 13px; line-height: 1.62; }
  .steps__link { min-height: 44px; margin-top: 18px; font-size: 12px; }

  /* Pricing keeps the cinematic reveal, with denser cards suited to a phone. */
  .pricing__stage { min-height: 560px; }
  .pricing__launch-logo { top: calc(50% - 132px); width: 92px; }
  .pricing__launch-copy h2 { width: calc(100% - 32px); font-size: 39px; line-height: 1.02; }
  .pricing__content { --surface-y: 132px; }
  .pricing__expander { --expander-y: 132px; min-height: 50px; border-radius: 10px; }
  .pricing__inner { padding: 18px 12px 68px; }
  .pricing__cards { gap: 16px; }
  .pricing__card,
  .pricing__card--build { padding: 24px 20px 22px; border-radius: 22px; }
  .pricing__features li { padding-block: 3px; line-height: 1.42; }
  .pricing__cta { min-height: 50px; border-radius: 10px; }
  .pricing__support { gap: 40px; margin-top: 58px; padding-top: 36px; }

  /* Booking and FAQ */
  .faq { padding: 76px 18px 108px; }
  .faq__booking-row { gap: 30px; }
  .faq__booking-copy h2 { max-width: 330px; font-size: 45px; line-height: 1; }
  .faq__booking-copy p { max-width: 345px; font-size: 13px; line-height: 1.62; }
  .faq__cal-inline { height: 500px; min-height: 500px; border-radius: 20px; }
  .faq__questions { margin-top: 76px; }
  .faq__questions > h2 { max-width: 330px; margin-bottom: 25px; font-size: 46px; line-height: 1; }
  .faq-item button { min-height: 58px; padding: 13px 2px; font-size: 12px; line-height: 1.35; }
  .faq-item__answer p { padding-bottom: 18px; font-size: 12px; line-height: 1.62; }

  /* Full-screen menu must never be wider than the device. */
  .site-menu__layout,
  .site-menu__nav,
  .site-menu__aside { width: 100%; min-width: 0; }
  .site-menu__layout { overscroll-behavior: contain; }
  .site-menu__nav { padding-top: 4px; }
  .site-menu__nav a { min-height: 54px; }
  .site-menu__nav span { font-size: clamp(27px, 8.2vw, 35px); }
  .site-menu__aside { flex: none; padding-top: 20px; }
  .site-menu__aside p,
  .site-menu__cta,
  .site-menu__email { max-width: 100%; }

  /* Inquiry flow: one focused screen at a time, with large touch targets. */
  .inquiry__left {
    min-height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  }
  .inquiry__question { padding: 54px 0 30px; }
  .inquiry__question h1,
  .inquiry h2 { font-size: 34px; line-height: 1.08; }
  .inquiry__hint { margin-bottom: 22px; font-size: 12px; line-height: 1.65; }
  .inquiry__choices { gap: 9px; }
  .inquiry__choice { min-height: 50px; border-radius: 11px; }
  .inquiry__tools { gap: 8px; }
  .inquiry__choice--tool { min-height: 54px; border-radius: 11px; }
  .inquiry__navigation { gap: 16px; margin-top: 18px; }
  .inquiry__next,
  .inquiry__send { min-height: 50px; border-radius: 10px; }
  .inquiry__close { width: 44px; height: 44px; }
  .inquiry.is-review .inquiry__right { padding: max(32px, env(safe-area-inset-top)) 20px max(34px, env(safe-area-inset-bottom)); }
  .inquiry.is-review .inquiry__answers { grid-template-columns: 1fr; }
  .inquiry.is-review .inquiry__answer { min-height: 0; }

  /* A compact, single-screen footer: legal copy clears the wordmark. */
  .footer {
    min-height: 100dvh;
    padding: 38px 20px 0;
    background: #101811 !important;
  }
  .footer::before { display: none; }
  .footer__top { order: 1; gap: 28px; }
  .footer__message h2 { max-width: 300px; margin-bottom: 17px; font-size: 36px; line-height: 1.04; }
  .footer__intro { display: none; }
  .footer__links { column-gap: 22px; row-gap: 22px; }
  .footer__links > div { gap: 8px; }
  .footer__links span { margin-bottom: 5px; }
  .footer__links a,
  .footer__links p,
  .footer__links address { font-size: 11px; line-height: 1.35; }
  .footer__giant {
    order: 3;
    height: 27vw;
    margin-top: auto;
    transform: none !important;
  }
  .footer__bottom {
    order: 2;
    margin-top: 24px;
    padding: 0;
    border-top: 0;
    color: rgba(255,248,233,.62);
  }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 36px; }
  .build-missing__copy h2 { font-size: 40px; }
  .steps__copy h3 { font-size: 28px; }
  .pricing__price strong { font-size: 40px; }
}
