/* ===================================================
   LINKED — Mobile redesign (homepage)
   Loaded with media="(max-width: 768px)", so desktop never sees it.
   Rules are scoped to html.is-mobile (set by mobile.js) so they win over
   the older responsive rules without !important wars.
   =================================================== */

/* ---------- Type & rhythm ---------- */
.is-mobile .section { padding: 72px 0; }
.is-mobile .section-inner { padding-left: var(--m-gutter); padding-right: var(--m-gutter); }
.is-mobile .section-header {
  text-align: left;
  margin: 0 0 28px;
  max-width: none;
}
.is-mobile .section-tag {
  font-size: 0.68rem;
  padding: 0.35rem 0.8rem;
  margin-bottom: 14px;
}
.is-mobile .section-heading {
  font-size: clamp(1.9rem, 8.6vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  text-transform: none;
}
.is-mobile .section-subheading {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--m-muted);
  margin: 0;
  max-width: 34ch;
}

/* ---------- Hero: content first, no blank "scroll to explore" screen ---------- */
.is-mobile .logo-container,
.is-mobile .scroll-indicator { display: none; }
.is-mobile .hero-section {
  min-height: 100svh;
  padding: 0 var(--m-gutter) calc(84px + var(--m-safe-b));
  align-items: flex-end;
}
.is-mobile .hero-content { max-width: none; width: 100%; }
.is-mobile .hero-heading {
  font-size: clamp(2.9rem, 14vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.is-mobile .hero-subheading {
  font-size: 1.06rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.is-mobile .hero-description {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--m-muted);
  margin-bottom: 26px;
}
.is-mobile .hero-ctas { flex-direction: column; gap: 10px; }
.is-mobile .hero-ctas .btn { width: 100%; }

/* Hero entrance starts the moment the loader lifts */
.is-mobile .hero-content > * { opacity: 0; transform: translateY(18px); }
.is-mobile body:not(.is-loading) .hero-content > * {
  animation: m-rise 0.7s var(--m-ease) forwards;
}
.is-mobile body:not(.is-loading) .hero-content > :nth-child(2) { animation-delay: 0.08s; }
.is-mobile body:not(.is-loading) .hero-content > :nth-child(3) { animation-delay: 0.16s; }
.is-mobile body:not(.is-loading) .hero-content > :nth-child(4) { animation-delay: 0.24s; }
@keyframes m-rise { to { opacity: 1; transform: none; } }

/* ---------- Proof ticker ---------- */
.is-mobile .section-proof { padding: 28px 0; }
.is-mobile .proof-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-bottom: 18px;
}
.is-mobile .client-logo { height: 26px; width: auto; }

/* ---------- Swipe rails (shared) ---------- */
.is-mobile .m-rail {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--m-gutter);
  padding: 4px var(--m-gutter) 6px;
  margin: 0;
  max-width: none !important;
  width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.is-mobile .m-rail { justify-content: flex-start !important; }
/* Rails living inside the padded .section-inner bleed to the screen edge */
.is-mobile .section-inner > .m-rail {
  width: auto;
  margin-left: calc(-1 * var(--m-gutter));
  margin-right: calc(-1 * var(--m-gutter));
}
.is-mobile .section-inner > .m-dots { margin-left: 0; margin-right: 0; }
.is-mobile .m-rail::-webkit-scrollbar { display: none; }
.is-mobile .m-rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0 !important;
}
.is-mobile .m-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.is-mobile .m-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s var(--m-ease), background 0.3s ease;
}
.is-mobile .m-dot.is-active { width: 20px; background: var(--m-accent); }

/* ---------- Work ---------- */
.is-mobile .section-work-scanner { padding-bottom: 56px; }
.is-mobile .scanner-container { display: none; }
.is-mobile .m-work-card {
  width: 80vw;
  max-width: 360px;
  aspect-ratio: 300 / 188;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1220;
  border: 1px solid var(--m-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.is-mobile .m-work-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Services ---------- */
.is-mobile .services-grid { display: flex; flex-direction: column; gap: 14px; }
.is-mobile .service-card {
  background: var(--m-card);
  border: 1px solid var(--m-line);
  border-radius: 22px;
}
.is-mobile .service-card-inner { padding: 26px 22px 22px; }
.is-mobile .service-number {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--m-accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.is-mobile .service-title { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 4px; }
.is-mobile .service-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.is-mobile .service-description { font-size: 0.95rem; line-height: 1.6; color: var(--m-muted); margin-bottom: 18px; }
.is-mobile .service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.is-mobile .service-features li {
  font-size: 0.78rem;
  padding: 7px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--m-line);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.2;
}
.is-mobile .service-features li::before { display: none; }
.is-mobile .service-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--m-accent-soft);
  border: 1px solid rgba(140, 180, 255, 0.22);
  color: #dbe6ff;
  font-size: 0.95rem;
  font-weight: 500;
}
.is-mobile .full-width-screenshot { margin-top: 40px; }

/* ---------- Method: readable timeline ---------- */
.is-mobile .method-philosophy { text-align: left; margin: 0 0 36px; }
.is-mobile .method-philosophy p { font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, 0.62); }
.is-mobile .method-emphasis { font-size: 1.15rem !important; margin-top: 12px; }
.is-mobile .method-step { gap: 16px; }
.is-mobile .step-marker { width: 32px; }
.is-mobile .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0.72rem;
  color: #dbe6ff;
  background: var(--m-accent-soft);
  border: 1px solid rgba(140, 180, 255, 0.3);
}
.is-mobile .step-content { padding-bottom: 28px; padding-top: 4px; }
.is-mobile .step-title { font-size: 1.3rem; }
.is-mobile .step-description { font-size: 0.95rem; color: var(--m-muted); }
.is-mobile .method-unifier { text-align: left; font-size: 0.9rem; }

/* ---------- Purpose scene ---------- */
.is-mobile .purpose-scene { height: 78svh; min-height: 460px; }

/* ---------- Industries: swipe gallery ---------- */
.is-mobile .section-industries { padding-bottom: 56px; }
.is-mobile .impact-bento.m-rail { padding-bottom: 6px; }
.is-mobile .impact-bento .impact-bento__card {
  width: 72vw;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 0;
  border-radius: 18px;
  grid-area: auto !important;
}
.is-mobile .impact-bento__video,
.is-mobile .impact-bento__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Profiles banner wall ---------- */
.is-mobile .section-profiles { padding-bottom: 0; }

/* ---------- Pricing: one section, switcher + swipe cards ---------- */
.is-mobile .m-pricing { padding-top: 72px; }
.is-mobile .m-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--m-gutter) 18px;
  scrollbar-width: none;
}
.is-mobile .m-pills::-webkit-scrollbar { display: none; }
.is-mobile .m-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font: 500 0.88rem/1 'Inter', sans-serif;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.is-mobile .m-pill.is-active { background: rgba(255, 255, 255, 0.95); color: #0a0a1a; border-color: transparent; }
.is-mobile .m-price-rail { align-items: stretch; }
.is-mobile .m-price-card {
  width: 84vw;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 24px;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(90, 140, 255, 0.22), transparent 60%),
    var(--m-card);
  border: 1px solid rgba(140, 180, 255, 0.16);
}
.is-mobile .m-price-card__tag {
  align-self: flex-start;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m-accent);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(140, 180, 255, 0.25);
  margin-bottom: 16px;
}
.is-mobile .m-price-card__title { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.015em; color: var(--m-text); margin-bottom: 10px; }
.is-mobile .m-price-card__price { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; color: #fff; line-height: 1.1; margin-bottom: 12px; }
.is-mobile .m-price-card__price .ps-fee { font-size: 0.82rem; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.5); margin-left: 4px; }
.is-mobile .m-price-card__intro { font-size: 0.9rem; line-height: 1.55; color: var(--m-muted); margin-bottom: 18px; }
.is-mobile .m-price-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--m-line);
}
.is-mobile .m-price-card__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1 !important;
  transform: none !important;
}
.is-mobile .m-price-card__features svg { flex-shrink: 0; margin-top: 2px; color: var(--m-accent); }
.is-mobile .m-price-card__cta { margin-top: auto; width: 100%; justify-content: space-between; }

/* ---------- Case studies ---------- */
.is-mobile .video-collage.m-rail { align-items: flex-end; }
.is-mobile .video-tile { border-radius: 16px; }
.is-mobile .video-tile--wide { width: 84vw; max-width: 380px; aspect-ratio: 16 / 10; height: auto; flex: 0 0 auto !important; }
.is-mobile .video-tile--phone { width: 44vw; max-width: 200px; aspect-ratio: 9 / 16; height: auto !important; flex: 0 0 auto !important; }
.is-mobile .video-tile video { width: 100%; height: 100%; object-fit: cover; }
.is-mobile .video-tile__label { opacity: 1; font-size: 0.78rem; }

/* ---------- Testimonials ---------- */
.is-mobile .testimonials-grid.m-rail { align-items: stretch; columns: auto !important; }
.is-mobile .testimonials-grid .testimonial-card {
  width: 84vw;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border-radius: 22px;
  background: var(--m-card);
  border: 1px solid var(--m-line);
  break-inside: auto;
}
.is-mobile .testimonial-text { font-size: 0.98rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.is-mobile .testimonial-author { margin-top: auto; padding-top: 18px; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact ---------- */
.is-mobile .section-contact { padding: 80px 0 64px; text-align: left; }
.is-mobile .contact-heading {
  font-size: clamp(2.1rem, 10vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-align: left;
}
.is-mobile .contact-subheading { font-size: 1rem; color: var(--m-muted); margin-bottom: 28px; text-align: left; }
.is-mobile .contact-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
.is-mobile .contact-ctas .btn { width: 100%; max-width: none; }

/* ---------- Sticky thumb-zone dock + audio button ---------- */
.is-mobile .m-dock {
  position: fixed;
  left: 12px;
  right: 72px;
  bottom: calc(12px + var(--m-safe-b));
  z-index: 990;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s var(--m-ease), opacity 0.3s ease;
  pointer-events: none;
}
.is-mobile .m-dock.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.is-mobile .m-dock__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a1a;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.is-mobile .audio-toggle {
  right: 12px;
  bottom: calc(16px + var(--m-safe-b));
}

/* ---------- Reveal-on-view: short distance, short duration ---------- */
.is-mobile .m-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--m-ease), transform 0.55s var(--m-ease);
  transition-delay: var(--m-delay, 0ms);
}
.is-mobile .m-reveal.m-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .is-mobile .hero-content > * { opacity: 1; transform: none; animation: none !important; }
  .is-mobile .m-reveal { opacity: 1; transform: none; }
}
