/* ==========================================================================
   AARUHI — responsive.css
   Mobile-first decisions, not a shrunken desktop:
   - Below 900px nothing pins. The hero phone cycles its own screens,
     the process becomes a vertical story, the app showcase auto-plays,
     and "Our digital world" becomes a native swipe rail.
   - Below 1100px the nav collapses into the full-screen menu.
   - The cursor and heavy WebGL are desktop-only; the idea network ships
     fewer points on phones.
   ========================================================================== */

/* ---------- Stage: static layout (mobile, reduced motion, no JS) ---------- */
.stage:not(.stage--pinned) .stage__pin { height: auto; min-height: 0; overflow: visible; }
.stage:not(.stage--pinned) .stage__bg { display: none; }
.stage:not(.stage--pinned) .hero { position: relative; inset: auto; min-height: 100svh; padding-top: 120px; padding-bottom: 140px; }

.stage:not(.stage--pinned) .appstory { position: relative; inset: auto; background: var(--ink); padding: var(--section) 0; pointer-events: auto; opacity: 1 !important; }
.stage:not(.stage--pinned) .appstory__head,
.stage:not(.stage--pinned) .appstory__copy,
.stage:not(.stage--pinned) .appstory__steps { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; }
.stage:not(.stage--pinned) .appstory__copy { margin: 28px var(--pad) 0; }
.stage:not(.stage--pinned) .appstory__words { display: none; }
.stage:not(.stage--pinned) .appstory__steps { display: flex; flex-wrap: wrap; gap: 8px 18px; text-align: left; margin: 32px var(--pad) 0; }
.stage:not(.stage--pinned) .appstory__steps li { color: var(--lime); }

/* ---------- Process: static layout ---------- */
.process:not(.process--pinned) .pstep { position: relative; inset: auto; }
.process:not(.process--pinned) .process__stack { height: auto; display: grid; gap: 56px; }
.process:not(.process--pinned) .process__pin { min-height: 0; }
.world:not(.world--pinned) .world__rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.world:not(.world--pinned) .world__pin { height: auto; padding-block: var(--section); }

/* ---------- Large desktop ---------- */
@media (min-width: 1800px) {
  :root { --container: 1520px; }
}

/* ---------- Laptop ---------- */
@media (max-width: 1366px) {
  .chip-float--a { left: -22%; } .chip-float--b { right: -22%; } .chip-float--c { left: -14%; }
}

/* ---------- Tablet & below: collapse nav ---------- */
@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .intro__text { grid-column: 1 / -1; }
  .intro__visual { grid-column: 2 / span 10; }
  .web__grid, .design__grid, .mkt__grid, .contact__grid { grid-template-columns: 1fr; }
  .web__sticky { position: relative; top: auto; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-inv); }
  .why-row { grid-template-columns: minmax(70px, 0.3fr) minmax(0, 1fr); }
  .why-row__d { grid-column: 2; }
  .svc-block { grid-template-columns: 60px minmax(0, 1fr); }
  .svc-block > div:last-child { grid-column: 2; }
}

/* ---------- Below 900: no pins, native storytelling ---------- */
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; align-content: start; row-gap: 48px; }
  .hero__words { grid-column: 1; grid-row: auto; font-size: clamp(2.4rem, 12.4vw, 5.4rem); }
  .hero__side { grid-column: 1; grid-row: auto; }
  .hero__row:nth-child(2) { padding-left: 0.35em; } .hero__row:nth-child(3) { padding-left: 0.7em; }
  .hero__side { justify-items: center; }
  .stage:not(.stage--pinned) .hero { padding-bottom: 56px; }
  .hero__foot { grid-column: 1; grid-row: auto; flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .chip-float--a { left: -16%; top: 10%; } .chip-float--b { right: -14%; } .chip-float--c { left: -10%; }

  .process__pin { min-height: 0; padding-block: var(--section); grid-template-rows: auto; gap: 40px; }
  .process__body { grid-template-columns: 1fr; gap: 28px; }
  .process__stack { height: auto; display: grid; gap: 56px; }
  .pstep { position: relative; inset: auto; opacity: 1 !important; visibility: visible !important; }
  .pstep__title { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .process__visual { display: none; }
  .process__rail { position: sticky; bottom: 12px; grid-template-columns: repeat(7, minmax(0, 1fr)); background: rgba(14,11,20,0.9); padding: 14px 12px 10px; border-radius: 16px; z-index: 3; order: 3; }
  .process__rail li { font-size: 0; } .process__rail li b { font-size: 0.75rem; margin: 0; text-align: center; }
  .process__rail::before, .process__progress { left: 12px; right: 12px; width: auto; top: 6px; }

  .showcase__pin { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-block: var(--section); min-height: 0; gap: 40px; }
  .showcase__info { order: -1; justify-items: center; }
  .showcase__titles { width: 100%; height: clamp(90px, 22vw, 140px); }
  .showcase__title { justify-content: center; text-align: center; }
  .showcase__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .showcase__item { border: 1px solid var(--line-inv); border-radius: 14px; padding: 10px; grid-template-columns: 34px 1fr; }
  .showcase__item img { width: 34px; height: 34px; }
  .showcase__item span { font-size: 0.875rem; }

  .world__pin { height: auto; padding-block: var(--section); }
  .world__title { font-size: clamp(2.6rem, 14vw, 5rem); white-space: normal; }
  .world--swipe .world__rail, .world .world__rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .world__rail::-webkit-scrollbar { display: none; }
  .world__track { transform: none !important; }
  .wtile { scroll-snap-align: center; }

  .fw:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .work-row__n { display: none; }
  .work-row__c { grid-column: 1; font-size: 0.875rem; }
  .work-row__go { grid-column: 2; grid-row: 1 / span 2; }
  .work-row__thumb { display: block; grid-column: 1 / -1; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; margin-top: 10px; }
  .work-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .work-preview, .cap-float { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  :root { --pad: 20px; }
  .nav { top: 10px; }
  .nav__pill { height: 52px; }
  .nav__logo img { height: 19px; }
  .phone { --w: min(62vw, 250px); }
  .grid { column-gap: 12px; }
  .intro__visual { grid-column: 1 / -1; }
  .statline { grid-template-columns: 1fr; }
  .statline > div { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .cap { grid-template-columns: 40px minmax(0, 1fr); }
  .cap__d { grid-column: 2; font-size: 0.875rem; }
  .web__list { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; gap: 8px; }
  .why-row__d { grid-column: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 22px 16px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .map { aspect-ratio: 4 / 5; }
  .map__pin { left: 50%; top: 40%; flex-direction: column; text-align: center; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block > div:last-child { grid-column: 1; }
  .testi__ctrl { flex-wrap: wrap; }
  .btn { height: 52px; padding: 0 20px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0 !important; border-bottom: 1px solid var(--line-inv); }
}

@media (hover: none) {
  .cap::before { display: none; }
}
.stage:not(.stage--pinned) .appstory__head h2 { max-width: 14ch; font-size: clamp(2rem, 6vw, 3.6rem); }
