/* ===================================================
   LINKED — Site-wide mobile layer (every page)
   Loaded with media="(max-width: 768px)", so desktop never sees it.
   Scoped to html.is-mobile (set by mobile-site.js).
   Homepage-only styles live in mobile.css.
   =================================================== */

:root {
  --m-gutter: 20px;
  --m-accent: rgba(140, 180, 255, 0.9);
  --m-accent-soft: rgba(140, 180, 255, 0.14);
  --m-line: rgba(255, 255, 255, 0.08);
  --m-card: linear-gradient(160deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 100%);
  --m-text: rgba(255, 255, 255, 0.92);
  --m-muted: rgba(255, 255, 255, 0.62);
  --m-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --m-safe-b: env(safe-area-inset-bottom, 0px);
}

.is-mobile body { -webkit-tap-highlight-color: transparent; }
.is-mobile .m-hidden { display: none !important; }

/* ---------- Buttons: real thumb targets ---------- */
.is-mobile .btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
}
.is-mobile .btn:active { transform: scale(0.98); }

/* ---------- Navigation ---------- */
.is-mobile .navbar {
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 12px;
  width: calc(100% - 24px);
  padding: 6px 6px 6px 16px;
  border-radius: 18px;
  min-height: 56px;
}
.is-mobile .nav-toggle { border-radius: 12px; }
.is-mobile .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-mobile .nav-toggle.active span:nth-child(2) { opacity: 0; }
.is-mobile .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.is-mobile .nav-toggle span + span { margin-top: 5px; }
.is-mobile .nav-toggle { flex-direction: column; }

/* Full-height glass sheet (absolute: the navbar's backdrop-filter traps position:fixed) */
.is-mobile .nav-menu {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  height: calc(100svh - 96px - env(safe-area-inset-top, 0px));
  flex-direction: column;
  gap: 2px;
  padding: 18px 12px calc(16px + var(--m-safe-b));
  border-radius: 22px;
  /* Nested backdrop-filter doesn't work inside the navbar, so this has to be near-opaque */
  background:
    radial-gradient(140% 70% at 100% 0%, rgba(70, 120, 255, 0.16), transparent 60%),
    rgb(7, 10, 22);
  border: 1px solid rgba(140, 180, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  align-items: stretch;
  overflow-y: auto;
  transition: opacity 0.28s var(--m-ease), transform 0.28s var(--m-ease), visibility 0s linear 0.28s;
}
.is-mobile .nav-menu.mobile-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.28s var(--m-ease), transform 0.28s var(--m-ease);
}
.is-mobile .nav-menu .nav-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--m-ease), transform 0.35s var(--m-ease);
  transition-delay: calc(var(--i, 0) * 40ms + 60ms);
}
.is-mobile .nav-menu.mobile-open .nav-item { opacity: 1; transform: none; }
.is-mobile .nav-menu li { width: 100%; }
.is-mobile .nav-menu li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--m-text);
  padding: 12px 12px;
  min-height: 56px;
  border-radius: 14px;
  white-space: normal;
}
.is-mobile .nav-menu li a:active { background: rgba(255, 255, 255, 0.06); }
.is-mobile .nav-menu .nav-item:has(.nav-cta) { margin-top: auto; }
.is-mobile .nav-menu li a.nav-cta {
  justify-content: center;
  border-radius: 16px;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0a0a1a !important;
  border: none !important;
  min-height: 56px;
  margin-top: 16px;
}
.is-mobile .m-menu-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px 4px;
  border-top: 1px solid var(--m-line);
  margin-top: 16px;
}
.is-mobile .m-menu-meta a {
  font-size: 0.9rem !important;
  color: var(--m-muted) !important;
  min-height: 36px !important;
  padding: 0 !important;
}
.is-mobile body.m-menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.is-mobile .site-footer { padding-bottom: calc(32px + var(--m-safe-b)); }
.is-mobile .footer-grid { flex-direction: column; gap: 36px; }
.is-mobile .footer-nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.is-mobile .footer-col a,
.is-mobile .footer-contact a { min-height: 40px; display: flex; align-items: center; }
.is-mobile .footer-bottom { flex-direction: column; gap: 6px; text-align: left; }


/* ===================================================
   INNER PAGES
   =================================================== */

/* ---------- Readable small labels (were 8–10px on phones) ---------- */
.is-mobile .about-header__tag,
.is-mobile .about-content__tag,
.is-mobile .careers-header__tag,
.is-mobile .culture-intro__tag,
.is-mobile .roles-header__tag,
.is-mobile .page-header__tag,
.is-mobile .article__category,
.is-mobile .case-study__category,
.is-mobile .article-card__category,
.is-mobile .article__related-category,
.is-mobile .case-study__more-label,
.is-mobile .gl-tag,
.is-mobile .value-card__number,
.is-mobile .gl-card__number {
  font-size: 12px;
  letter-spacing: 0.12em;
}
.is-mobile .stat-item__label,
.is-mobile .case-study__kpi-label,
.is-mobile .case-study__section h3,
.is-mobile .case-study__tech h3,
.is-mobile .case-study__more-title,
.is-mobile .article__related-title,
.is-mobile .article__related-read,
.is-mobile .article-card__meta,
.is-mobile .role-card__meta,
.is-mobile .approach-step__number,
.is-mobile .article__author,
.is-mobile .article__dot,
.is-mobile .article__read,
.is-mobile .gl-card__cta,
.is-mobile .gl-card__arrow,
.is-mobile .wf-landing__disclaimer,
.is-mobile .lb-landing__disclaimer,
.is-mobile .wb-landing__disclaimer {
  font-size: 13px;
}
.is-mobile .perk-card__title { font-size: 16px; }

/* ---------- Body copy: bigger and brighter ---------- */
.is-mobile .about-content__text,
.is-mobile .about-content__text p,
.is-mobile .approach-step__content p,
.is-mobile .value-card__desc,
.is-mobile .culture-intro__text,
.is-mobile .careers-open__text,
.is-mobile .perk-card__desc,
.is-mobile .article-card__excerpt,
.is-mobile .gl-card__text,
.is-mobile .case-study__cta p,
.is-mobile .article__cta-box p,
.is-mobile .gl-card__desc,
.is-mobile .about-cta__sub {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--m-muted);
}
.is-mobile .about-header__subtitle,
.is-mobile .careers-header__subtitle,
.is-mobile .page-header__subtitle,
.is-mobile .gl-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Page headers: clear the floating nav, editorial left alignment ---------- */
.is-mobile .about-header,
.is-mobile .careers-header,
.is-mobile .page-header {
  padding-top: 112px;
  padding-bottom: 32px;
  text-align: left;
}
.is-mobile .about-header__title,
.is-mobile .careers-header__title,
.is-mobile .page-header__title {
  font-size: clamp(2.2rem, 10.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: left;
}
.is-mobile .about-header *,
.is-mobile .careers-header *,
.is-mobile .page-header * { text-align: left; margin-left: 0; }

/* ---------- About ---------- */
.is-mobile .about-section { padding: 48px 0; }
.is-mobile .values-grid { gap: 10px; margin-top: 24px; }
.is-mobile .value-card { padding: 20px; border-radius: 18px; border-color: var(--m-line); }
.is-mobile .approach-steps { gap: 22px; }
.is-mobile .approach-step { margin-left: 0; transform: none; gap: 14px; }
.is-mobile .approach-step__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #dbe6ff;
  background: var(--m-accent-soft);
  border: 1px solid rgba(140, 180, 255, 0.3);
}

/* ---------- Careers / Insights cards ---------- */
.is-mobile .perk-card,
.is-mobile .role-card,
.is-mobile .article-card { border-radius: 18px; }
.is-mobile .insights-filter {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  justify-content: flex-start;
  margin-left: calc(-1 * var(--m-gutter));
  margin-right: calc(-1 * var(--m-gutter));
  padding: 0 var(--m-gutter) 4px;
  scrollbar-width: none;
}
.is-mobile .insights-filter::-webkit-scrollbar { display: none; }
.is-mobile .insights-filter__btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Case study / article back links ---------- */
.is-mobile .case-study__back,
.is-mobile .article__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

/* ---------- Get Linked pathway cards: whole card reads as one tap ---------- */
.is-mobile .gl-card { border-radius: 20px; }
.is-mobile .gl-card a,
.is-mobile .gl-card__cta {
  display: flex;
  align-items: center;
  min-height: 48px;
}

/* ---------- Tool landings (Why Finder, Launch Brief): keep glow inside the screen ---------- */
.is-mobile .wf-landing__cta-glow,
.is-mobile .lb-landing__cta-glow { max-width: 100%; left: 0; right: 0; }

/* ---------- Footer legibility + tap targets (all pages) ---------- */
.is-mobile .footer-cta { min-height: 48px; padding: 0 18px; font-size: 15px; display: inline-flex; align-items: center; }
.is-mobile .footer-col h4 { font-size: 12px; letter-spacing: 0.12em; }
.is-mobile .footer-col a,
.is-mobile .footer-contact a,
.is-mobile .footer-contact span { font-size: 15px; }
.is-mobile .footer-bottom p { font-size: 13px; }
.is-mobile .careers-open__btn { min-height: 48px; }
.is-mobile .about-cta__btn,
.is-mobile .careers-open__btn { font-size: 15px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.is-mobile .case-study__tech-pill { font-size: 13px; }
/* Logo link in the nav is a real tap target back to home */
.is-mobile .nav-brand,
.is-mobile .nav-brand a { min-height: 44px; display: flex; align-items: center; }

/* ===================================================
   OUR WORK (profilesSection/profileWork.html) — standalone page
   =================================================== */
/* Header: solid glass bar so profile screenshots don't collide with it on scroll */
.is-mobile nav:has(> .nav-back) {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(8, 14, 26, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--m-line);
}
.is-mobile nav:has(> .nav-back) .nav-back {
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
}
.is-mobile nav:has(> .nav-back) > a:last-child { min-height: 44px; display: flex; align-items: center; }

.is-mobile .split-toggle .toggle-btn { min-height: 44px; font-size: 14px; }
/* Filters: one swipeable row instead of a wrapped cluster of tiny pills */
.is-mobile .portfolio-tabs {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  margin-left: -24px;
  margin-right: -24px;
  padding: 0 24px 4px;
  scrollbar-width: none;
}
.is-mobile .portfolio-tabs::-webkit-scrollbar { display: none; }
.is-mobile .portfolio-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}
.is-mobile .carousel-section-label { font-size: 12px; }
