/* Mobile-first UX improvements */

@media (max-width: 820px) {
  :root {
    --header: 84px;
  }

  html {
    scroll-padding-top: calc(var(--header) + 8px);
  }

  .btn,
  .nav a,
  .faq summary,
  .contact-action {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .container {
    width: calc(100% - 32px);
  }

  /* Header — lift above page when menu open */
  .site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  body.nav-open .site-header-wrap {
    z-index: 300;
  }

  .site-header {
    height: var(--header);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
    position: relative;
  }

  .brand {
    font-size: 1.05rem;
    z-index: 2;
  }

  .brand img {
    width: auto;
    height: 68px;
  }

  /* Nav toggle */
  .nav-toggle {
    position: relative;
    top: auto;
    right: auto;
    z-index: 201;
    display: flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile menu panel */
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--header));
    min-height: calc(100dvh - var(--header));
    margin: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 20px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 17, 31, 0.12);
    filter: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav.open {
    display: flex;
    animation: menuIn 0.28s var(--ease);
  }

  @keyframes menuIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Full-screen menu — no dim/blur overlay needed */
  .nav-backdrop {
    display: none !important;
  }

  .nav a:not(.btn) {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-of-type:not(.btn) {
    border-bottom: 0;
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 16px;
    min-height: 52px;
    font-size: 1rem;
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: 32px 0 0;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.08;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.7;
    max-width: none;
  }

  .hero-checklist li {
    font-size: 0.92rem;
  }

  .hero-ctas {
    flex-direction: column;
    margin: 22px 0 18px;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  .trust-line {
    font-size: 0.78rem;
    line-height: 1.7;
  }

  .hero-pills {
    gap: 6px;
  }

  .hero-pills li {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-photo-wrap {
    border-radius: 20px;
  }

  .hero-photo-wrap img {
    height: min(52vw, 260px);
  }

  .marquee {
    margin-top: 36px;
  }

  .marquee-track span {
    font-size: 0.72rem;
  }

  /* Clarity strip */
  .clarity-strip {
    padding: 36px 0;
  }

  .clarity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .clarity-card {
    padding: 16px 14px;
  }

  .clarity-card h3 {
    font-size: 0.95rem;
  }

  .clarity-card p {
    font-size: 0.82rem;
  }

  .clarity-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: clamp(1.65rem, 6vw, 2rem);
  }

  .section-lede {
    font-size: 0.96rem;
  }

  .section-wave {
    height: 48px;
  }

  /* About */
  .about-grid {
    gap: 24px;
  }

  .about-details li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }

  .about-details li:hover {
    transform: none;
  }

  .about-visual img {
    min-height: 180px;
  }

  .growth-path li {
    padding: 16px;
  }

  .growth-path li.is-active {
    transform: none;
  }

  .highlight-line {
    font-size: 1.05rem;
    padding: 14px 16px;
  }

  /* Services */
  .service-card {
    padding: 22px 18px;
  }

  .service-for {
    font-size: 0.78rem;
  }

  .service-deliver {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  /* Process — vertical timeline */
  .process-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: 14px;
    padding-left: 22px;
    border-left: 2px solid #dbe4f0;
  }

  .process-track::before {
    display: none;
  }

  .process-track li {
    text-align: left;
    padding: 18px 16px;
    margin: 0 0 14px;
    position: relative;
  }

  .process-track li::before {
    content: "";
    position: absolute;
    left: -31px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue-soft);
  }

  .process-track li.is-active::before {
    animation: numPulse 1.2s ease infinite;
  }

  .process-track li:hover {
    transform: none;
  }

  /* Industries */
  .industry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .industry-card {
    min-height: 84px;
    padding: 14px 10px;
    font-size: 0.84rem;
  }

  .industry-card svg {
    width: 24px;
    height: 24px;
  }

  .industry-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 20px 16px;
  }

  .industry-cta p {
    font-size: 1rem;
  }

  .industry-cta .btn {
    width: 100%;
    min-height: 50px;
  }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-card {
    padding: 20px 18px;
  }

  /* Weeks */
  .weeks {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .week-card {
    padding: 20px 18px;
  }

  .week-outcome {
    font-size: 0.84rem;
  }

  /* Work */
  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-photo {
    height: 200px;
  }

  .work-photo-tall {
    height: 240px;
  }

  .work-card[data-tilt] {
    transform: none !important;
  }

  .case-template {
    padding: 20px 18px;
  }

  .case-template dl {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Pricing — featured plan first */
  .pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .price-card.featured {
    order: -1;
  }

  .price-card {
    padding: 22px 18px;
  }

  .price-card .btn {
    width: 100%;
    min-height: 50px;
  }

  .price {
    font-size: 1.35rem;
  }

  /* FAQ */
  .faq summary {
    min-height: 56px;
    padding: 16px;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .faq details p,
  .faq details .faq-body > p {
    font-size: 0.92rem;
    padding: 0 16px 16px;
  }

  /* CTA band */
  .cta-band {
    padding: 52px 0;
  }

  .cta-inner h2 {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
  }

  .cta-inner .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inner .btn {
    width: 100%;
    min-height: 52px;
  }

  /* Contact */
  .contact-grid {
    gap: 20px;
  }

  .contact-form {
    padding: 18px 16px;
  }

  .contact-form:focus-within {
    transform: none;
    box-shadow: var(--shadow);
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 48px;
    padding: 12px 14px;
  }

  .field textarea {
    min-height: 120px;
  }

  .contact-action {
    padding: 16px;
    min-height: 56px;
  }

  .contact-expect {
    padding: 16px;
  }

  .btn-block {
    min-height: 52px;
    font-size: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    gap: 28px;
  }

  /* Sticky bottom bar */
  .mobile-cta {
    display: flex;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    padding: 10px;
    gap: 8px;
    border-radius: 16px;
    z-index: 45;
  }

  .mobile-cta .btn {
    min-height: 48px;
    font-size: 0.88rem;
    padding: 0 12px;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  /* Back to top */
  .back-top {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }

  /* Reduce motion-heavy effects on touch */
  .grain {
    opacity: 0.03;
  }

  .will-reveal {
    filter: blur(4px);
    transform: translateY(16px);
  }

  .service-card:hover,
  .industry-card:hover,
  .work-card:hover,
  .price-card:hover,
  .clarity-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .hero-visual {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .clarity-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    width: calc(100% - 20px);
  }
}
