@media (max-width: 900px) {
  :root { --container: min(100% - 2rem, 1240px); }
  .main-nav, .header-link { display: none; }
  .header-inner { justify-content: space-between; }
  .brand-logo { height: 30px; max-width: 160px; }
  .mobile-menu-toggle { display: grid; gap: 5px; border: 0; background: none; padding: 0.6rem 0; cursor: pointer; }
  .mobile-menu-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform var(--ease); }
  .mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 1rem max(1rem, calc((100% - 1240px) / 2)) 1.5rem; }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { border-bottom: 1px solid var(--line); padding: 0.85rem 0; text-decoration: none; }
  .lifecycle { grid-template-columns: repeat(4, 1fr); gap: 1rem 0; }
  .lifecycle li:nth-child(5) { border-left: 0; padding-left: 0; }
  .process-list { grid-template-columns: repeat(4, 1fr); }
  .process-list li:nth-child(5) { border-left: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 2rem); }
  h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); line-height: 1.02; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.06; }
  h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); line-height: 1.12; }
  body { font-size: .95rem; line-height: 1.5; }
  .section { padding: 3.25rem 0; }
  .intro-copy, .page-intro__copy { font-size: 1rem; line-height: 1.5; }
  .hero-inner { min-height: auto; padding: 3rem 0 1.5rem; }
  .hero h1 { padding: 4rem 0 3.25rem; max-width: 22ch; }
  .hero-meta, .hero-index, .hero-bottom, .section-heading-row { display: block; }
  .hero-meta span, .hero-index span { display: block; }
  .hero-meta span + span { margin-top: .5rem; }
  .hero-bottom { padding-top: 1rem; }
  .hero-bottom p { font-size: .95rem; }
  .hero-links { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.25rem; }
  .hero-index { margin-top: 1.25rem; }
  .hero-index span + span { margin-top: .75rem; }
  .editorial-grid, .contact-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .capability-row { grid-template-columns: 1fr 2rem; gap: 1rem; padding-block: 2rem; }
  .capability-number { grid-column: 1 / -1; }
  .capability-main { grid-column: 1; }
  .row-link { grid-column: 2; grid-row: 2; }
  .tag-list { line-height: 1.65; gap: .35rem .75rem; }
  .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .lifecycle li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .lifecycle-wrap { margin-top: 4rem; }
  .delivery-index, .technical-index div { grid-template-columns: 1fr; }
  .delivery-index { gap: 1rem; margin-top: 2.5rem; }
  .delivery-index div { padding-top: 1rem; }
  .project-row { grid-template-columns: 1fr 2rem; gap: .65rem; padding-block: 1.25rem; }
  .project-row > span, .project-row > span:nth-child(3) { grid-column: 1; }
  .project-row strong { grid-column: 1; font-size: 1.25rem; }
  .project-row i { grid-column: 2; grid-row: 1 / 4; }
  .project-row small { grid-column: 1 / -1; }
  .process-list { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .process-list li, .process-list li:nth-child(5) { min-height: auto; border-left: 1px solid var(--line); padding: 1rem; }
  .process-list h3 { margin-top: 1.5rem; }
  .security-index { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
  .document-list { margin-top: 2.5rem; }
  .contact-section { padding-block: 4rem; }
  .contact-section h2 { font-size: clamp(2.35rem, 11vw, 3.35rem); }
  .contact-types { margin-top: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding: 2.5rem 0; }
  .brand--footer .brand-logo { height: 28px; max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

/* ==========================================================
   Mobile navigation + footer polish
   Shared across homepage and all inner pages
   ========================================================== */
@media (max-width: 900px) {
  .site-header {
    background: rgba(7, 9, 8, .88);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
  }

  .header-inner {
    min-height: 66px;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    background:
      radial-gradient(circle at 70% 20%, rgba(63,155,96,.16), transparent 48%),
      rgba(255,255,255,.025);
    transition: border-color .28s ease, background .28s ease, transform .28s ease;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible,
  .mobile-menu-toggle[aria-expanded="true"] {
    border-color: rgba(97,190,126,.42);
    background:
      radial-gradient(circle at 70% 20%, rgba(73,176,108,.22), transparent 50%),
      rgba(255,255,255,.045);
  }

  .mobile-menu-toggle:active { transform: scale(.96); }

  .mobile-menu-toggle span {
    width: 18px;
    transform-origin: center;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    z-index: 45;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    padding: 1rem max(1rem, calc((100% - 1240px) / 2)) 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.10);
    background:
      radial-gradient(circle at 92% 4%, rgba(55,145,89,.15), transparent 36%),
      linear-gradient(180deg, rgba(8,10,9,.985), rgba(5,7,6,.99));
    box-shadow: 0 24px 70px rgba(0,0,0,.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .34s cubic-bezier(.22,.61,.36,1), visibility .28s;
  }

  .mobile-menu::before {
    content: "NAVIGATION";
    display: block;
    padding: .35rem 0 .8rem;
    color: rgba(255,255,255,.42);
    font-family: var(--mono);
    font-size: .61rem;
    letter-spacing: .16em;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: rgba(245,245,242,.84);
    font-size: clamp(1rem, 3.8vw, 1.18rem);
    letter-spacing: -.015em;
    transition: color .22s ease, padding-left .22s ease, border-color .22s ease;
  }

  .mobile-menu a::after {
    content: "↗";
    color: rgba(102,190,128,.78);
    font-size: .92rem;
    opacity: .68;
    transform: translate(-4px, 3px);
    transition: opacity .22s ease, transform .22s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a.is-active {
    color: #f7f7f3;
    padding-left: .35rem;
    border-color: rgba(93,183,121,.26);
  }

  .mobile-menu a:hover::after,
  .mobile-menu a:focus-visible::after,
  .mobile-menu a.is-active::after {
    opacity: 1;
    transform: translate(0, 0);
  }

  .mobile-menu a.is-active::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: .6rem;
    flex: 0 0 5px;
    border-radius: 50%;
    background: rgba(103,197,132,.95);
    box-shadow: 0 0 16px rgba(80,180,111,.48);
  }

  body.mobile-menu-open { overflow: hidden; }

  .site-footer {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 0 1.4rem;
    border-top: 1px solid rgba(255,255,255,.10);
    background:
      radial-gradient(circle at 12% 0%, rgba(47,132,78,.11), transparent 34%),
      #050605;
  }

  .site-footer::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -150px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(62,151,92,.08);
    filter: blur(60px);
    pointer-events: none;
  }

  .footer-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.4rem;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .footer-inner p {
    margin-top: .85rem;
    font-size: .64rem;
    letter-spacing: .12em;
  }

  .footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
    margin-top: 1.15rem;
    font-size: .68rem;
  }

  .footer-contact a,
  .footer-contact span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .38rem .62rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.018);
    color: rgba(245,245,242,.68);
  }

  .footer-contact a:hover,
  .footer-contact a:focus-visible {
    border-color: rgba(90,183,119,.30);
    color: #f5f5f2;
  }

  .footer-inner nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-content: start;
  }

  .footer-inner nav::before,
  .footer-legal::before {
    display: block;
    margin-bottom: .65rem;
    color: rgba(255,255,255,.38);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .14em;
  }

  .footer-inner nav::before { content: "EXPLORE"; }
  .footer-legal::before { content: "LEGAL"; width: 100%; }

  .footer-inner nav a,
  .footer-legal a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: .35rem 0;
    color: rgba(244,242,237,.72);
    font-size: .8rem;
  }

  .footer-inner nav a::after {
    content: "↗";
    margin-left: auto;
    color: rgba(92,184,121,.62);
    font-size: .72rem;
  }

  .footer-legal {
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0 .9rem;
  }
}

@media (max-width: 640px) {
  .header-inner { min-height: 62px; }
  .brand-logo { height: 27px; max-width: 145px; }
  .mobile-menu-toggle { width: 38px; height: 38px; }
  .mobile-menu { top: 62px; max-height: calc(100dvh - 62px); padding: .9rem 1rem 1.15rem; }
  .mobile-menu a { min-height: 50px; font-size: 1.05rem; }

  .site-footer { padding: 2.75rem 0 1.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.65rem 1rem; }
  .brand--footer .brand-logo { height: 29px; max-width: 155px; }
  .footer-contact { gap: .45rem; }
  .footer-contact a,
  .footer-contact span { min-height: 30px; padding: .33rem .52rem; font-size: .64rem; }
  .footer-inner nav a,
  .footer-legal a { font-size: .76rem; }
}

@media (max-width: 390px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.45rem; }
  .footer-inner nav,
  .footer-legal { padding-top: .2rem; }
  .footer-legal { gap: 0 .8rem; }
}

/* Compact mobile footer refinement */
@media (max-width: 768px) {
  .site-footer {
    padding: 1.7rem 0 .9rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .75rem 1rem;
    padding-bottom: .9rem;
  }

  .brand--footer .brand-logo {
    height: 25px;
    max-width: 140px;
  }

  .footer-inner p {
    display: none;
  }

  .footer-contact {
    margin-top: 0;
    justify-content: flex-end;
    gap: .35rem .45rem;
  }

  .footer-contact a,
  .footer-contact span {
    min-height: 26px;
    padding: .24rem .45rem;
    font-size: .59rem;
  }

  .footer-inner nav::before,
  .footer-legal::before {
    margin-bottom: .35rem;
    font-size: .55rem;
  }

  .footer-inner nav a,
  .footer-legal a {
    min-height: 29px;
    padding: .18rem 0;
    font-size: .72rem;
  }

  .footer-legal {
    gap: 0 .7rem;
  }

  .site-footer::before {
    width: 190px;
    height: 190px;
    right: -110px;
    bottom: -120px;
    filter: blur(48px);
  }
}

@media (max-width: 520px) {
  .site-footer { padding: 1.45rem 0 .8rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .footer-inner > div:first-child {
    grid-template-columns: 1fr;
    gap: .55rem;
    padding-bottom: .7rem;
  }

  .footer-contact {
    justify-content: flex-start;
    gap: .3rem .4rem;
  }

  .footer-inner nav {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0 .6rem;
    padding-top: .15rem;
  }

  .footer-inner nav::before,
  .footer-legal::before {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-inner nav a {
    min-height: 28px;
    font-size: .68rem;
  }

  .footer-inner nav a::after { display: none; }

  .footer-legal {
    padding-top: .3rem;
    border-top: 1px solid rgba(255,255,255,.07);
  }
}

/* Short-page footer behavior + compact copyright row */
@media (max-width: 768px) {
  body { min-height: 100vh; min-height: 100dvh; }
  body > main { flex: 1 0 auto; }
  .footer-copyright {
    width: min(var(--container), calc(100% - 1.5rem));
    margin-top: .75rem;
    padding-top: .65rem;
    font-size: .56rem;
    line-height: 1.45;
  }

  .momentum-section { padding: 3.6rem 0; }
  .momentum-grid { grid-template-columns: 1fr; gap: 2rem; }
  .momentum-copy h2 { margin-top: .9rem; font-size: clamp(2rem,9vw,3.15rem); }
  .momentum-copy > p { margin-top: 1rem; font-size: .92rem; }
  .momentum-steps { margin-top: 1.25rem; gap: .45rem .8rem; }
  .momentum-steps span:not(:last-child)::after { margin-left: .65rem; }
  .momentum-visual { padding: .75rem .65rem .55rem; }
  .momentum-chart-head span:last-child { display: none; }
  .momentum-chart-foot { font-size: .56rem; }
  .momentum-section::before { width: 300px; height: 300px; right: -130px; top: -90px; filter: blur(52px); }
}

@media (max-width: 430px) {
  .footer-copyright { margin-top: .6rem; padding-top: .55rem; }
  .momentum-section { padding: 3rem 0; }
  .momentum-copy h2 { font-size: clamp(1.9rem,9.5vw,2.55rem); }
  .momentum-chart { margin-top: .4rem; }
  .momentum-visual { padding: .65rem .55rem .45rem; }
  .momentum-chart-foot { gap: .4rem; }
}

/* Hero growth + tighter brand fit */
.brand { line-height:0; }
.brand-logo { height:40px; max-width:172px; object-fit:contain; }
@media (max-width: 1120px) {
  .hero-main { grid-template-columns:minmax(0,1fr) minmax(320px,.8fr); gap:2.5rem; }
  .hero-copy h1 { font-size:clamp(3.3rem,6vw,5.6rem); }
  .hero-growth { min-height:420px; }
}
@media (max-width: 900px) {
  .brand-logo { height:31px; max-width:154px; }
  .hero-main { grid-template-columns:1fr; margin:2rem 0 0; }
  .hero-copy h1 { max-width:14ch; }
  .hero-growth { min-height:390px; }
  .hero-bottom { grid-template-columns:1fr; gap:1.25rem; }
  .hero-proof { justify-content:flex-start; }
}
@media (max-width: 640px) {
  .brand-logo { height:40px; max-width:145px; }
  .hero-inner { padding-top:2rem; gap:1.5rem; }
  .hero-main { gap:1.8rem; margin:1rem 0 0; }
  .hero-copy h1 { font-size:clamp(2.4rem,10.4vw,3.35rem); line-height:1.02; max-width:13ch; }
  .hero-lead { margin-top:1rem; font-size:.94rem; }
  .hero-copy .hero-links { margin-top:1.15rem; gap:.85rem; }
  .hero-growth { min-height:330px; }
  .hero-growth__head,.hero-growth__foot { font-size:.5rem; left:.7rem; right:.7rem; }
  .growth-path { inset:62px 14px 62px; }
  .growth-stage { min-width:0; width:42%; padding:.5rem .55rem; }
  .growth-stage strong { font-size:.76rem; }
  .growth-stage span { font-size:.58rem; }
  .growth-stage--1 { left:3%; bottom:58px; }
  .growth-stage--2 { left:26%; bottom:103px; }
  .growth-stage--3 { right:18%; top:100px; }
  .growth-stage--4 { right:2%; top:55px; }
  .hero-proof { font-size:.56rem; gap:.4rem .7rem; }
  .hero-proof span:not(:last-child)::after { margin-left:.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-path path { animation:none; stroke-dashoffset:0; }
  .growth-node { animation:none; opacity:1; transform:none; }
}
