@media (max-width: 640px) {
  body {
    background: #f8f4ec;
    padding-bottom: 96px;
  }

  .site-header {
    background: rgba(248,244,236,0.94);
  }

  .brand {
    font-size: 1.08rem;
  }

  .hero {
    padding: 2.85rem 0 2.2rem;
    min-height: auto;
  }

  .hero::before {
    inset: 0.55rem;
    border-radius: 22px;
  }

  .hero-grid {
    gap: 1.15rem;
  }

  .hero-copy {
    width: min(100%, 352px);
  }

  .kicker {
    margin-bottom: 0.95rem;
    font-size: 0.76rem;
  }

  .hero h1 {
    max-width: 10.8ch;
    font-size: clamp(1.95rem, 9.8vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -0.032em;
    overflow-wrap: break-word;
  }

  .hero-copy > p {
    margin-top: 1rem;
    font-size: 0.96rem;
    line-height: 1.58;
    color: rgba(255,255,255,0.82);
    max-width: 100%;
  }

  .hero-pain-list {
    display: none;
  }

  .hero-pain-list li {
    position: relative;
    padding: 0.7rem 0.8rem 0.7rem 2.05rem;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    background: rgba(255,255,255,0.075);
    color: rgba(255,255,255,0.86);
    font-size: 0.94rem;
    line-height: 1.38;
    overflow-wrap: break-word;
  }

  .hero-pain-list li::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 1.12rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #9fd18e;
  }

  .hero-actions {
    display: none;
  }

  .hero-actions .button-primary {
    min-height: 56px;
    font-size: 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  }

  .mobile-tech-card {
    display: block;
    margin-top: 0.9rem;
    padding: 0.82rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    background: rgba(12,28,16,0.78);
    color: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  }

  .tech-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.46rem;
  }

  .tech-flow span {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.48rem 0.52rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.88);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.15;
  }

  .tech-flow svg {
    flex: 0 0 auto;
    color: #9fd18e;
  }

  .tech-log {
    display: grid;
    gap: 0.26rem;
    margin-top: 0.62rem;
    padding: 0.58rem;
    border-radius: 12px;
    background: rgba(5,15,8,0.62);
    border: 1px solid rgba(255,255,255,0.09);
    overflow: hidden;
  }

  .tech-log code {
    color: rgba(206,238,198,0.88);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
    line-height: 1.35;
    white-space: nowrap;
  }

  .mobile-tech-card p {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    line-height: 1.48;
  }

  .mobile-tech-card p strong {
    color: #fff;
    font-weight: 820;
  }

  .hero-panel {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    box-shadow: none;
  }

  .hero-panel strong {
    font-size: 1.05rem;
  }

  .hero-panel p,
  .hero-panel li {
    font-size: 0.88rem;
  }

  .metrics {
    background: #fffdf8;
  }

  .business-value {
    padding: 3rem 0;
  }

  .business-value .container {
    width: 100vw;
    max-width: 100vw;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .business-value-layout {
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .business-value-copy {
    padding-right: 0;
    gap: 0.62rem;
    width: calc(100vw - 2.4rem);
    max-width: calc(100vw - 2.4rem);
  }

  .business-value-copy h2 {
    font-size: 1.52rem;
    max-width: 20ch;
    overflow-wrap: anywhere;
  }

  .business-value-copy p {
    font-size: 0.96rem;
    line-height: 1.58;
    max-width: 34ch;
    overflow-wrap: anywhere;
  }

  .value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    overflow-x: visible;
    max-width: 100%;
    min-width: 0;
  }

  .value-grid::-webkit-scrollbar {
    display: none;
  }

  .value-card {
    min-height: auto;
    padding: 1rem;
    border-radius: 16px;
    width: calc(100vw - 2.4rem);
    max-width: calc(100vw - 2.4rem);
  }

  .value-card p {
    font-size: 0.88rem;
    max-width: 34ch;
    overflow-wrap: anywhere;
  }

  .roi-note {
    padding: 0.95rem;
    border-radius: 16px;
    width: calc(100vw - 2.4rem);
    max-width: calc(100vw - 2.4rem);
  }

  .roi-note p {
    font-size: 0.92rem;
    overflow-wrap: break-word;
  }

  .roi-note small {
    font-size: 0.82rem;
  }

  .metrics .container {
    padding-left: 0;
    padding-right: 0;
  }

  .metrics-grid {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.85rem 1.2rem;
    border: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .metrics-grid::-webkit-scrollbar {
    display: none;
  }

  .metric {
    flex: 0 0 72%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    scroll-snap-align: start;
    padding: 1rem;
  }

  .metric:first-child {
    border-left: 1px solid var(--line);
  }

  .metric strong {
    font-size: 1.32rem;
  }

  .metric span {
    font-size: 0.86rem;
  }

  .tool-strip {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .two-column-head {
    gap: 1rem;
    margin-bottom: 1.45rem;
  }

  .section-head {
    gap: 0.55rem;
  }

  .section-intro,
  .section-head p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .service-list {
    gap: 0.75rem;
  }

  .service-card {
    min-height: auto;
    padding: 1.05rem;
    border-radius: 18px;
  }

  .featured-card {
    transform: none;
    box-shadow: 0 16px 42px rgba(24,53,31,0.16);
  }

  .card-index {
    margin-bottom: 0.72rem;
  }

  .case-summary,
  .case-block,
  .project-note,
  .project-card,
  .fit-card {
    border-radius: 18px;
  }

  .case-layout,
  .project-gallery,
  .process-layout,
  .fit-grid,
  .contact-layout {
    gap: 1rem;
  }

  .case-summary,
  .project-note {
    padding: 1.05rem;
  }

  .case-summary h2,
  .project-note h2 {
    font-size: 1.55rem;
  }

  .case-block h3,
  .project-card h3,
  .fit-card h3 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .standards-grid article {
    padding: 1rem;
  }

  .timeline li {
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .contact {
    padding-bottom: 4.6rem;
  }

  .contact-card {
    min-height: 70px;
  }

  .primary-contact {
    box-shadow: 0 18px 44px rgba(37,211,102,0.12);
  }

  .wa-bar {
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  }

  .wa-btn {
    min-height: 58px;
    flex-direction: column;
    gap: 0.08rem;
    line-height: 1.15;
    box-shadow: 0 12px 30px rgba(37,211,102,0.28);
  }

  .wa-btn small {
    display: block;
    font-size: 0.72rem;
    font-weight: 650;
    opacity: 0.9;
  }
}

@media (min-width: 641px) {
  .mobile-tech-card {
    display: none;
  }

  .hero-pain-list {
    display: none;
  }
}
