/* Responsive — container + type/spacing scales
   Desktop (>1620): styles.css base
   ≤1620  → container 1440
   ≤1400  → 1280  (common 1366 laptops)
   ≤1280  → 1140
   ≤1100  → 1000
   ≤1000 / ≤960 tablet
   ≤650  → container 100% (small phones)
*/

/* ------------------------------------------------------------------
   ≤1620 — Large laptop
------------------------------------------------------------------ */
@media (max-width: 1620px) {
  :root {
    --container: 1350px;
    --gutter: 20px;
  }

  .section {
    padding: 140px 0;
  }

  .section-ctas {
    margin-top: 48px;
    width: 460px;
  }

  .title {
    font-size: 80px;
  }

  .process-title {
    font-size: 42px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .checkup-copy,
  .faq-lead,
  .final-bottom p,
  .project p,
  .service-inner p,
  .process-copy,
  .portfolio-head p,
  .reason p,
  .intro-copy p:last-child {
    font-size: 17px;
  }

  .intro-copy {
    margin-top: 40px;
    padding-top: 24px;
    gap: 28px;
  }

  .intro-copy p:first-child {
    font-size: 24px;
  }

  .stats {
    margin-top: 64px;
  }

  .stat {
    padding: 24px;
    min-height: 190px;
  }

  .stat b {
    font-size: 72px;
  }

  .stat small {
    margin-top: 28px;
  }

  .portfolio-head {
    padding-bottom: 36px;
    gap: 24px;
  }

  .projects {
    margin-top: 42px;
  }

  .project {
    min-height: 620px;
    margin-bottom: 32px;
  }

  .project-copy {
    padding: 40px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 72px;
    margin: 28px 0 18px;
  }

  .project-image {
    margin: 18px;
  }

  .service-card {
    padding: 28px;
  }

  .service-inner {
    padding: 20px 20px 32px;
  }

  .service-inner h3 {
    font-size: 48px;
    margin: 12px 14px 14px;
  }

  .service-btn {
    padding: 22px 0;
  }

  .service-btn .bi-btn-text,
  .service-btn strong {
    font-size: 40px;
  }

  .process-inner {
    padding: 36px;
    min-height: 380px;
  }

  .process-num {
    font-size: 130px;
  }

  .process-icon {
    width: 118px;
    height: 118px;
    margin: 14px 0 12px;
  }

  .process-btn {
    padding: 22px 0;
    grid-template-columns: 68px 1fr auto;
  }

  .process-btn .bi-btn-text,
  .process-btn strong {
    font-size: 50px;
  }

  .industries-grid,
  .reasons {
    margin-top: 56px;
    gap: 24px;
  }

  .industry-btn {
    min-height: 96px;
    padding: 0 22px;
    font-size: 34px;
  }

  .industry-visual {
    min-height: 380px;
    padding: 26px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 56px;
  }

  .reason {
    padding: 28px;
    min-height: 300px;
    gap: 22px;
  }

  .reason h3 {
    font-size: 32px;
  }

  .proof-copy {
    font-size: 54px;
    margin-top: 40px;
  }

  .checkup {
    padding: 52px;
    gap: 48px;
  }

  .checkup .title {
    margin-top: 18px;
  }

  .checkup-ring {
    width: 108px;
    height: 108px;
  }

  .checkup-ring .score-circle {
    font-size: 30px;
  }

  .faq-q {
    font-size: 28px;
    padding: 22px 0;
    gap: 20px;
  }

  .faq-a {
    font-size: 17px;
    padding-right: 40px;
  }

  .faq-grid {
    gap: 36px;
  }






  .final-inner {
    min-height: 640px;
    padding: 52px;
  }

  .final h2 {
    font-size: 108px;
  }

  .bi-inspired-hero {
    padding: 94px 0 16px;
  }

  .bi-hero-title {
    font-size: 68px;
  }

  .bi-hero-copy {
    padding: 30px 28px 24px 30px;
    gap: 12px;
  }

  .bi-logo {
    width: 150px;
  }

  .bi-nav {
    gap: 26px;
  }

  .bi-mega-grid {
    column-gap: 40px;
  }

  .bi-mega-rail,
  .bi-mega-content {
    padding: 44px 0 36px;
  }

  .bi-mega-rail {
    padding-right: 28px;
  }

  .bi-mega-rail>button,
  .bi-mega-rail>a:not(.bi-mega-feature) {
    font-size: 32px;
    padding: 10px 0;
  }

  .bi-mega-feature {
    min-height: 150px;
    padding: 20px;
  }

  .bi-mega-feature strong {
    font-size: 20px;
  }

  .bi-mega-back {
    margin-bottom: 32px;
  }

  .bi-resources-grid>a,
  .bi-mega-what-card {
    min-height: 160px;
    padding: 24px;
  }

  .bi-mega-what-head span,
  .bi-resources-grid>a>span {
    font-size: 26px;
  }

  .bi-mega-what-pages {
    margin-top: 14px;
    gap: 6px;
  }

  .bi-mega-what-pages a {
    font-size: 13px;
  }

  .bi-resources-grid>a p {
    margin-top: 14px;
    font-size: 14px;
  }

  .modal-head h3 {
    font-size: 36px;
  }

  .modal-slide-copy strong {
    font-size: 32px;
  }

  .bi-section {
    padding: 120px 0;
  }

  .bi-hero h1 {
    font-size: 150px;
  }

  .bi-section h2 {
    font-size: 60px;
  }

  .bi-ticker {
    font-size: 84px;
  }
}

/* ------------------------------------------------------------------
   ≤1400 — Medium laptop (1366×768 class)
------------------------------------------------------------------ */
@media (max-width: 1480px) {
  :root {
    --container: 1199px;
    --gutter: 20px;
  }

  .section {
    padding: 110px 0;
  }

  .section-ctas {
    margin-top: 40px;
    width: 440px;
    max-width: 100%;
  }

  .title {
    font-size: 68px;
  }

  .process-title {
    font-size: 42px;
    margin-bottom: 10px;
  }

  .checkup-copy,
  .faq-lead,
  .final-bottom p,
  .project p,
  .service-inner p,
  .process-copy,
  .portfolio-head p,
  .reason p,
  .intro-copy p:last-child,
  .faq-a {
    font-size: 16px;
  }

  .intro-copy {
    margin-top: 36px;
    padding-top: 22px;
    gap: 24px;
  }

  .intro-copy p:first-child {
    font-size: 22px;
  }

  .stats {
    margin-top: 56px;
  }

  .stat {
    padding: 22px;
    min-height: 170px;
  }

  .stat b {
    font-size: 64px;
  }

  .stat small {
    margin-top: 22px;
    font-size: 13px;
  }

  .portfolio-head {
    padding-bottom: 32px;
  }

  .projects {
    margin-top: 36px;
  }

  .project {
    min-height: 540px;
    margin-bottom: 28px;
  }

  .project-copy {
    padding: 36px;
  }

  .project-meta {
    padding-bottom: 14px;
    font-size: 10px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 56px;
    margin: 20px 0 14px;
  }

  .project-image {
    margin: 16px;
  }

  .service-card {
    padding: 24px;
  }

  .service-inner {
    padding: 18px 18px 28px;
    min-height: 0;
  }

  .service-card,
  .service-inner {
    min-height: 0;
  }

  .service-inner h3 {
    font-size: 42px;
    margin: 10px 12px 12px;
  }

  .service-inner>small {
    margin-top: 14px;
    padding: 0 12px;
  }

  .service-btn {
    padding: 18px 0;
  }

  .service-btn .bi-btn-text,
  .service-btn strong {
    font-size: 34px;
  }

  .process-inner {
    padding: 32px;
    min-height: 340px;
  }

  .process-num {
    font-size: 110px;
  }

  .process-icon {
    width: 108px;
    height: 108px;
    margin: 14px 0 12px;
  }

  .process-btn {
    padding: 18px 0;
    grid-template-columns: 60px 1fr auto;
  }

  .process-btn .bi-btn-text,
  .process-btn strong {
    font-size: 42px;
  }

  .industries-grid,
  .reasons {
    margin-top: 48px;
    gap: 20px;
  }

  .industry-btn {
    min-height: 88px;
    padding: 0 20px;
    font-size: 30px;
  }

  .industry-visual {
    min-height: 340px;
    padding: 24px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 46px;
  }

  .industry-visual p {
    font-size: 15px;
  }

  .reason {
    padding: 24px;
    min-height: 280px;
    gap: 18px;
  }

  .reason h3 {
    font-size: 28px;
  }

  .proof-copy {
    font-size: 46px;
    margin-top: 36px;
  }

  .checkup {
    padding: 40px;
    gap: 40px;
    border-radius: 36px;
  }

  .checkup-ring {
    width: 100px;
    height: 100px;
  }

  .checkup-ring .score-circle {
    font-size: 28px;
  }

  .checkup-score-meta strong {
    font-size: 16px;
  }

  .checkup-score-meta p {
    font-size: 13px;
  }

  .faq-q {
    font-size: 24px;
    padding: 20px 0;
    gap: 18px;
  }

  .faq-grid {
    gap: 30px;
  }






  .final-inner {
    min-height: 560px;
    padding: 44px;
  }

  .final h2 {
    font-size: 92px;
  }

  .final-bottom {
    gap: 24px;
  }

  .bi-inspired-hero {
    padding: 90px 0 14px;
  }

  .bi-hero-shell {
    max-height: min(76vh, 660px);
  }

  .bi-hero-card {
    height: min(68vh, 600px);
    max-height: min(68vh, 600px);
  }

  .bi-hero-title {
    font-size: 58px;
  }

  .bi-hero-copy {
    padding: 22px 26px 18px;
    gap: 10px;
  }

  .bi-hero-label {
    font-size: 11px;
    padding: 8px 14px;
  }

  .bi-hero-cta {
    min-height: 46px;
    font-size: 10px;
  }

  .bi-logo {
    width: 140px;
  }

  .bi-nav {
    gap: 18px;
  }

  .bi-nav-link {
    font-size: 12px;
  }

  .bi-header-phone {
    font-size: 13px;
    min-height: 48px;
  }

  .bi-header-inner {
    gap: 20px;
  }

  .btn {
    min-height: 50px;
    font-size: 13px;
  }

  .btn .bi-btn-arrow {
    width: 32px;
    height: 32px;
  }

  .marquee {
    padding: 16px 0;
  }

  .track span {
    padding: 0 28px;
    font-size: 12px;
  }

  .bi-mega-grid {
    column-gap: 32px;
    grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr);
  }

  .bi-mega-rail,
  .bi-mega-content {
    padding: 36px 0 28px;
  }

  .bi-mega-rail {
    padding-right: 22px;
  }

  .bi-mega-kicker {
    margin-bottom: 16px;
  }

  .bi-mega-rail>button,
  .bi-mega-rail>a:not(.bi-mega-feature) {
    font-size: 28px;
    padding: 8px 0;
  }

  .bi-mega-feature {
    min-height: 128px;
    padding: 16px;
    gap: 8px;
    border-radius: 18px;
  }

  .bi-mega-feature strong {
    font-size: 18px;
    max-width: 200px;
  }

  .bi-mega-feature i {
    width: 34px;
    height: 34px;
    top: 14px;
    right: 14px;
  }

  .bi-mega-feature::after {
    width: 120px;
    height: 120px;
    border-width: 18px;
  }

  .bi-mega-back {
    margin-bottom: 24px;
  }

  .bi-resources-grid>a,
  .bi-mega-what-card {
    min-height: 140px;
    padding: 20px;
  }

  .bi-mega-what-head span,
  .bi-resources-grid>a>span {
    font-size: 22px;
  }

  .bi-mega-what-pages {
    margin-top: 12px;
    gap: 5px;
  }

  .bi-mega-what-pages a {
    font-size: 12px;
  }

  .bi-resources-grid>a p {
    margin-top: 12px;
    font-size: 13px;
  }

  .bi-resources-grid>a>svg,
  .bi-resources-grid>a>b {
    top: 20px;
    right: 20px;
  }

  .modal-box {
    width: calc(100% - 48px);
    max-width: 960px;
    max-height: 780px;
  }

  .modal-layout {
    min-height: 0;
  }

  .modal-head h3 {
    font-size: 32px;
  }

  .modal-form-pane {
    padding: 36px;
  }

  .modal-slide-copy strong {
    font-size: 28px;
  }

  .bi-section {
    padding: 100px 0;
  }

  .bi-hero h1 {
    font-size: 120px;
  }

  .bi-section h2 {
    font-size: 52px;
  }

  .bi-ticker {
    font-size: 64px;
  }

  .bi-hero-ai-name {
    font-size: 15px;
  }

  .bi-hero-ai-link img {
    width: 30px;
    height: 30px;
  }

  .bi-hero-ai-link.is-gemini img {
    width: 30px;
    height: 30px;
  }
}

/* ------------------------------------------------------------------
   ≤1280 — Small laptop
------------------------------------------------------------------ */
@media (max-width: 1280px) {
  :root {
    --container: 991px;
    --gutter: 18px;
  }

  .section {
    padding: 96px 0;
  }

  .section-ctas {
    margin-top: 36px;
    width: 485px;
  }

  .title {
    font-size: 58px;
  }

  .process-title {
    font-size: 40px;
  }

  .checkup-copy,
  .faq-lead,
  .final-bottom p,
  .project p,
  .service-inner p,
  .process-copy,
  .portfolio-head p,
  .reason p,
  .intro-copy p:last-child,
  .faq-a {
    font-size: 15px;
  }

  .intro-copy {
    margin-top: 32px;
    padding-top: 20px;
    gap: 20px;
  }

  .intro-copy p:first-child {
    font-size: 20px;
  }

  .stats {
    margin-top: 48px;
  }

  .stat {
    padding: 18px;
    min-height: 150px;
  }

  .stat b {
    font-size: 52px;
  }

  .stat small {
    margin-top: 18px;
    font-size: 12px;
  }

  .portfolio-head {
    padding-bottom: 28px;
    gap: 20px;
  }

  .projects {
    margin-top: 32px;
  }

  .project {
    min-height: 480px;
    margin-bottom: 24px;
  }

  .project-copy {
    padding: 28px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 46px;
    margin: 16px 0 12px;
  }

  .service-card {
    padding: 20px;
  }

  .service-inner {
    padding: 16px 16px 24px;
  }

  .service-inner h3 {
    font-size: 36px;
    margin: 8px 10px 10px;
  }

  .service-btn {
    padding: 16px 0;
  }

  .service-btn .bi-btn-text,
  .service-btn strong {
    font-size: 30px;
  }

  .process-inner {
    padding: 28px;
    min-height: 300px;
  }

  .process-num {
    font-size: 96px;
  }

  .process-icon {
    width: 96px;
    height: 96px;
    margin: 12px 0 10px;
  }

  .process-btn {
    padding: 16px 0;
    grid-template-columns: 52px 1fr auto;
  }

  .process-btn .bi-btn-text,
  .process-btn strong {
    font-size: 36px;
  }

  .industries-grid,
  .reasons {
    margin-top: 40px;
    gap: 18px;
  }

  .industry-btn {
    min-height: 78px;
    padding: 0 16px;
    font-size: 26px;
  }

  .industry-visual {
    min-height: 300px;
    padding: 20px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 40px;
  }

  .reason {
    padding: 20px;
    min-height: 250px;
    gap: 14px;
  }

  .reason h3 {
    font-size: 24px;
  }

  .proof-copy {
    font-size: 40px;
    margin-top: 28px;
  }

  .checkup {
    padding: 32px;
    gap: 32px;
    border-radius: 32px;
  }

  .checkup-ring {
    width: 92px;
    height: 92px;
  }

  .checkup-ring .score-circle {
    font-size: 26px;
  }

  .faq-q {
    font-size: 22px;
    padding: 18px 0;
    gap: 16px;
  }

  .faq-grid {
    gap: 24px;
  }





  .final-inner {
    min-height: 500px;
    padding: 36px;
  }

  .final h2 {
    font-size: 78px;
  }

  .bi-inspired-hero {
    padding: 88px 0 12px;
  }

  .bi-hero-shell {
    max-height: min(74vh, 600px);
  }

  .bi-hero-card {
    height: min(66vh, 560px);
    max-height: min(66vh, 560px);
  }

  .bi-hero-title {
    font-size: 50px;
  }

  .bi-hero-copy {
    padding: 18px 22px 16px;
    gap: 8px;
  }

  .bi-logo {
    width: 130px;
  }

  .bi-nav {
    gap: 12px;
  }

  .bi-nav-link {
    font-size: 11px;
  }

  .bi-header-phone {
    display: none;
  }

  .bi-header-inner {
    gap: 16px;
  }

  .bi-mega-grid {
    column-gap: 24px;
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  }

  .bi-mega-rail,
  .bi-mega-content {
    padding: 28px 0 22px;
  }

  .bi-mega-rail {
    padding-right: 18px;
  }

  .bi-mega-rail>button,
  .bi-mega-rail>a:not(.bi-mega-feature) {
    font-size: 24px;
    padding: 6px 0;
  }

  .bi-mega-feature {
    min-height: 110px;
    padding: 14px;
  }

  .bi-mega-feature strong {
    font-size: 16px;
  }

  .bi-mega-back {
    margin-bottom: 18px;
  }

  .bi-resources-grid>a,
  .bi-mega-what-card {
    min-height: 120px;
    padding: 16px;
  }

  .bi-mega-what-head span,
  .bi-resources-grid>a>span {
    font-size: 20px;
  }

  .bi-mega-what-pages {
    margin-top: 10px;
  }

  .bi-mega-what-pages a {
    font-size: 12px;
  }

  .bi-resources-grid>a p {
    margin-top: 10px;
    font-size: 12px;
  }

  .modal-head h3 {
    font-size: 28px;
  }

  .bi-section {
    padding: 88px 0;
  }

  .bi-hero h1 {
    font-size: 100px;
  }

  .bi-section h2 {
    font-size: 44px;
  }

  .bi-ticker {
    font-size: 56px;
  }
}

/* ------------------------------------------------------------------
   ≤1100 — Compact laptop / large tablet landscape
------------------------------------------------------------------ */
@media (max-width: 1100px) {
  :root {
    --container: 768px;
    --gutter: 18px;
  }

  .section {
    padding: 88px 0;
  }

  .section-ctas {
    width: 470px;
  }

  .title {
    font-size: 52px;
  }
  .checkup .title{
    font-size: 45px;
  }
  .process-title {
    font-size: 36px;
  }

  .intro-copy p:first-child {
    font-size: 18px;
  }

  .stat b {
    font-size: 46px;
  }

  .stat {
    min-height: 140px;
    padding: 16px;
  }

  .project {
    min-height: 440px;
  }

  .project-copy {
    padding: 24px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 40px;
  }

  .services,
  .process-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    position: relative;
    top: auto;
  }

  .service-card,
  .industry-visual {
    position: relative;
    top: auto;
  }

  .service-inner h3 {
    font-size: 34px;
  }

  .service-btn .bi-btn-text,
  .service-btn strong,
  .process-btn .bi-btn-text,
  .process-btn strong {
    font-size: 32px;
  }

  .process-num {
    font-size: 84px;
  }

  .process-inner {
    min-height: 280px;
    padding: 24px;
  }

  .industry-btn {
    min-height: 72px;
    font-size: 24px;
  }

  .industry-visual {
    min-height: 280px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 36px;
  }

  .reason h3 {
    font-size: 22px;
  }

  .reason {
    min-height: 220px;
    padding: 18px;
  }

  .proof-copy {
    font-size: 36px;
  }

  .checkup {
    padding: 28px;
    gap: 28px;
  }

  .faq-q {
    font-size: 20px;
  }


  .final h2 {
    font-size: 68px;
  }

  .final-inner {
    min-height: 460px;
    padding: 32px;
  }

  .final-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .bi-hero-title {
    font-size: 44px;
  }

  .bi-nav,
  .bi-header-phone {
    display: none;
  }

  .bi-menu-button {
    display: grid;
  }

  .bi-mega {
    display: none;
  }

  .bi-logo {
    width: 148px;
  }

  /* Mobile drawer replaces mega from this breakpoint */
  .bi-mobile-inner {
    padding-block: 28px 32px;
    min-height: calc(100svh - var(--header-h, 86px));
  }

  .bi-mobile-group > summary {
    font-size: 34px;
    padding: 14px 0;
    line-height: 1.15;
  }

  .bi-mobile-inner nav > a {
    font-size: 34px;
    padding: 14px 0;
    line-height: 1.15;
  }

  .bi-mobile-nested > summary {
    font-size: 17px;
  }

  .bi-mobile-sub {
    padding-bottom: 14px;
  }

  .bi-mobile-sub a {
    font-size: 15px !important;
    padding: 9px 0;
  }

  .bi-mobile-meta {
    margin-top: 32px;
    font-size: 13px;
    gap: 6px;
  }

  .modal {
    padding: 16px;
    align-items: center;
  }

  .modal-box {
    width: min(100%, 640px);
    max-height: min(90svh, 860px);
    overflow: auto;
    border-radius: 24px;
  }

  .modal-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .modal-showcase {
    min-height: 200px;
    height: 200px;
  }

  .modal-form-pane {
    padding: 28px 24px 28px;
  }

  .modal-head h3 {
    font-size: 28px;
  }

  .modal .form {
    grid-template-columns: 1fr;
  }

  .bi-hero h1 {
    font-size: 88px;
  }

  .bi-section h2 {
    font-size: 40px;
  }
}

/* Mega menu — follow site container; stop oversized overrides at 1440 */
@media (min-width: 1101px) {
  .bi-mega-shell.wrap {
    width: min(calc(100% - 40px), var(--container));
    max-width: var(--container);
    height: 100%;
    min-height: 0;
  }

  .bi-mega-shell,
  .bi-mega-grid {
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .bi-mega-rail,
  .bi-mega-content {
    min-height: 0;
  }
}

/* ~1440 / large laptop — 2-col What We Do with tighter fit */
@media (min-width: 1400px) and (max-width: 1620px) {
  .bi-mega-grid {
    column-gap: 36px;
    grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr);
  }

  .bi-mega-rail,
  .bi-mega-content {
    padding: 40px 0 32px;
  }

  .bi-mega-rail {
    padding-right: 28px;
  }

  .bi-mega-rail>button,
  .bi-mega-rail>a:not(.bi-mega-feature) {
    font-size: 30px;
    padding: 8px 0;
    line-height: 1.15;
  }

  .bi-mega-feature {
    min-height: 132px;
    padding: 18px;
  }

  .bi-mega-feature strong {
    font-size: 18px;
    max-width: 210px;
  }

  .bi-mega-what.bi-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bi-mega-what .bi-mega-what-card--single {
    grid-column: 1 / -1;
  }

  .bi-resources-grid>a,
  .bi-mega-what-card {
    min-height: 0;
    padding: 18px 20px;
  }

  .bi-mega-what-head span,
  .bi-resources-grid>a>span {
    font-size: 20px;
    max-width: 90%;
    line-height: 1.15;
  }

  .bi-mega-what-pages {
    margin-top: 10px;
    gap: 4px;
  }

  .bi-mega-what-pages a {
    font-size: 12px;
    line-height: 1.3;
  }

  .bi-mega-what-card--single {
    min-height: 0;
    padding: 16px 20px;
  }

  .bi-mega-what-card--single .bi-mega-what-head > span {
    font-size: 18px;
    white-space: nowrap;
  }
}

/* Desktop — What We Do stays 2 columns */
@media (min-width: 1621px) {
  .bi-mega-what.bi-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bi-mega-what .bi-mega-what-card--single {
    grid-column: 1 / -1;
  }
}

/* Height > 800 — open cleanly, allow rail/content scroll if needed */
@media (min-width: 1101px) and (min-height: 801px) {
  .bi-mega-rail,
  .bi-mega-content {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Short laptop height ≤800 — denser 2-col, still readable, always scrollable */
@media (min-width: 1101px) and (max-height: 800px) {
  .bi-mega-grid {
    column-gap: 28px;
    grid-template-columns: minmax(190px, 0.24fr) minmax(0, 1fr);
  }

  .bi-mega-rail,
  .bi-mega-content {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .bi-mega-rail {
    padding-right: 20px;
  }

  .bi-mega-rail>button,
  .bi-mega-rail>a:not(.bi-mega-feature) {
    font-size: 26px;
    padding: 6px 0;
    line-height: 1.12;
  }

  .bi-mega-feature {
    min-height: 100px;
    padding: 14px;
  }

  .bi-mega-feature strong {
    font-size: 16px;
  }

  .bi-mega-what.bi-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bi-mega-what .bi-mega-what-card--single {
    grid-column: 1 / -1;
  }

  .bi-resources-grid>a,
  .bi-mega-what-card {
    min-height: 0;
    padding: 12px 14px;
  }

  .bi-mega-what-head span,
  .bi-resources-grid>a>span {
    font-size: 17px;
  }

  .bi-mega-what-pages {
    margin-top: 6px;
    gap: 2px;
  }

  .bi-mega-what-pages a {
    font-size: 11px;
  }

  .bi-mega-what-card--single {
    padding: 12px 14px;
  }

  .bi-mega-what-card--single .bi-mega-what-head > span {
    font-size: 16px;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .modal {
    padding: 12px;
  }

  .modal-box {
    max-height: calc(100vh - 24px);
    overflow: hidden;
  }

  .modal-layout {
    min-height: 0;
    max-height: calc(100vh - 24px);
  }

  .modal-form-pane {
    overflow: auto;
    padding: 28px 32px 32px;
  }

  .modal-head h3 {
    font-size: 28px;
  }

  .section {
    padding: 88px 0;
  }

  .bi-inspired-hero {
    padding-top: 92px;
    padding-bottom: 14px;
  }

  .bi-hero-shell {
    max-height: min(72vh, 600px);
  }

  .bi-hero-card {
    height: min(64vh, 560px);
    max-height: min(64vh, 560px);
  }

  .bi-hero-title {
    font-size: 52px;
  }

  .bi-hero-title {
    font-size: 60px;
  }

  .bi-hero-card {
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.95fr);
  }

  .bi-hero-copy {
    padding: 16px 22px;
    gap: 8px;
  }

  .bi-hero-bottom {
    padding-block: 8px;
  }

  .bi-hero-ai-link {
    min-height: 34px;
    padding: 4px 10px 4px 4px;
    gap: 6px;
  }

  .title {
    font-size: 56px;
  }

  .process-title {
    font-size: 36px;
  }

  .process-num {
    font-size: 90px;
  }

  .stat b {
    font-size: 48px;
  }

  .project {
    min-height: 420px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 44px;
  }

  .final-inner {
    min-height: 440px;
    padding: 36px;
  }

  .final h2 {
    font-size: 72px;
  }

  .proof-copy {
    font-size: 38px;
  }
}

@media (min-width: 1621px) and (max-height: 820px) {
  .bi-hero-title {
    font-size: 70px;
  }

  .bi-hero-card {
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.95fr);
  }
}

/* ------------------------------------------------------------------
   ≤1000 — Tablet
------------------------------------------------------------------ */
@media (max-width: 1000px) {
  :root {
    --container: 920px;
    --gutter: 16px;
  }

  .checkup,
  .faq-grid,
  .foot-grid,
  .intro-grid,
  .head-grid {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
    top: auto;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .project {
    grid-template-columns: 1fr;
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    z-index: auto !important;
  }

  .project-image {
    position: relative;
    min-height: 360px;
    aspect-ratio: 16 / 10;
  }

  .project h3,
  .project-copy h3 {
    font-size: 42px;
  }

  .reasons {
    grid-template-columns: 1fr 1fr;
  }


  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand,
  .foot-contact {
    grid-column: 1 / -1;
  }

  .checkup {
    padding: 28px;
  }

  .checkup .title {
    max-width: none;
  }

  .checkup-score-row {
    grid-template-columns: auto 1fr;
  }

  .section {
    padding: 84px 0;
  }

  .title {
    font-size: 48px;
  }
  .checkup-copy-col {
      order: 2;
  }

  .checkup-board {
      order: 1;
  }
  .process-title {
    font-size: 34px;
  }

  .process-num {
    font-size: 72px;
  }

  .stat b {
    font-size: 48px;
  }

  .industry-btn {
    font-size: 28px;
    min-height: 72px;
  }

  .industry-visual strong,
  .industry-visual-copy h3,
  .reason h3,
  .proof-copy {
    font-size: 34px;
  }

  .final h2 {
    font-size: 64px;
  }

  .final-inner {
    min-height: 480px;
  }

  .checkup-ring .score-circle {
    font-size: 26px;
  }

  .faq-q {
    font-size: 20px;
  }

  .intro-copy p:first-child {
    font-size: 20px;
  }
}

@media (max-width: 960px) {
  :root {
    --container: 100%;
    --gutter: 18px;
  }

  :root,
  .bi-header,
  .bi-header.is-scrolled,
  :root:has(.bi-header.is-scrolled) {
    --header-h: 74px;
  }

  .bi-header,
  .bi-header.is-scrolled {
    height: var(--header-h);
  }

  /* —— Hero: large phone / tablet portrait —— */
  .bi-inspired-hero {
    height: auto;
    max-height: none;
    min-height: 100svh;
    padding-top: 90px;
    padding-bottom: 18px;
    overflow: visible;
    background: #000;
    justify-content: flex-start;
    overflow: hidden;
  }

  .bi-hero-shell {
    width: 100%;
    max-width: 100%;
    max-height: none;
    padding-inline: var(--gutter);
    gap: 12px;
  }

  .bi-hero-shell,
  .bi-hero-stage,
  .bi-hero-card {
    flex: none;
    height: auto;
    min-height: 0;
  }

  .bi-hero-card {
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    border-radius: 20px;
  }

  .bi-hero-frame {
    inset: -1px -1px 0 -1px;
    border-radius: 22px 22px 0 0;
    padding: 1px 1px 0;
  }

  .bi-hero-frame::after {
    display: none;
  }

  .bi-hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 24px 22px 18px;
    gap: 12px;
  }

  .bi-hero-label {
    margin-inline: auto;
    font-size: 11px;
    padding: 8px 14px;
    letter-spacing: 0.1em;
    max-width: 100%;
  }

  .bi-hero-title {
    margin: 2px auto;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
  }

  .bi-hero-lead {
    margin-inline: auto;
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
  }

  .bi-hero-title .bi-hero-line {
    white-space: normal;
  }

  .bi-hero-actions {
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .bi-hero-proof {
    width: 100%;
    justify-content: center;
    text-align: left;
  }

  .bi-hero-cta {
    position: relative;
    display: flex;
    width: 100%;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 5px 48px 5px 16px;
    font-size: 11px;
    text-align: center;
  }

  .bi-hero-cta .bi-btn-label {
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100% - 8px);
    justify-items: center;
    text-align: center;
  }

  .bi-hero-cta .bi-btn-label-line {
    justify-content: center;
  }

  .bi-hero-cta .bi-btn-arrow {
    display: none;
  }

  .bi-hero-cta::before {
    content: "↗";
    position: absolute;
    right: 6px;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: var(--btn-dock-bg);
    box-shadow: var(--btn-dock-shadow);
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform 0.45s var(--ease);
  }

  .bi-hero-cta:hover::before,
  .bi-hero-cta:focus-visible::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .bi-hero-visual {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 220px;
    max-height: 280px;
  }

  .bi-hero-visual::before {
    display: block;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    top:-30px;
    background:linear-gradient(180deg, rgb(0 8 28) 0%, rgba(0, 10, 30, 0.92) 18%, rgba(0, 13, 36, 0.35) 42%, transparent 62%),
    linear-gradient(0deg, rgb(0 5 24) 0%, rgba(0, 8, 28, 0.55) 0%, transparent 0%);
  }

  .bi-hero-visual::after {
    width: 200px;
    max-width: 55%;
    top: 8%;
    right: 6%;
    bottom: auto;
  }

  .bi-hero-anim-frames,
  .bi-hero-anim-img {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: cover;
  }

  .bi-hero-bottom {
    grid-column: 1;
    grid-row: 3;
    padding: 14px 18px 16px;
    text-align: center;
  }

  .bi-hero-ai {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .bi-hero-ai-label {
    font-size: 11px;
    text-align: center;
  }

  .bi-hero-ai-links {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  a.bi-hero-ai-link.is-claude,
  a.bi-hero-ai-link.is-perplexity {
    padding-inline: 10px 12px;
    border-left: 0;
    border-right: 0;
  }

  .bi-hero-ai-link {
    min-height: 40px;
    padding: 4px 10px 4px 4px;
  }

  .bi-hero-ai-name {
    font-size: 13px;
  }

  .bi-hero-trust {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
    padding: 8px 0 4px;
    overflow: visible;
  }

  .bi-hero-trust > p,
  .bi-hero-trust > span,
  .bi-hero-trust > i,
  .bi-hero-trust-services {
    display: none;
  }

  .bi-hero-trust-scroll,
  .bi-hero-trust-scroll.is-hero-bob {
    position: relative;
    right: auto;
    bottom: auto;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    overflow: visible;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    border-width: 1.5px;
  }

  .bi-hero-trust-scroll .bi-btn-text,
  .bi-hero-trust-scroll .bi-btn-label-line {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
  }

  /* —— Mobile mega / drawer: large —— */
  .bi-mobile-inner {
    padding-block: 22px 28px;
  }

  .bi-mobile-group > summary,
  .bi-mobile-inner nav > a {
    font-size: 30px;
    padding: 12px 0;
  }

  .bi-mobile-nested > summary {
    font-size: 16px;
    padding: 10px 0;
  }

  .bi-mobile-sub a {
    font-size: 15px !important;
  }

  .btn {
    min-height: 50px;
    font-size: 13px;
  }

  .section-ctas {
    width: 100%;
    max-width: 460px;
    margin-top: 36px;
  }

  .section-ctas .btn {
    min-height: 46px;
    font-size: 12px;
  }

  /* —— Rest of homepage: large phone / tablet portrait —— */
  html {
    scroll-padding-top: calc(var(--header-h, 74px) + 12px);
  }

  .section {
    padding: 72px 0;
  }

  .intro-grid,
  .head-grid {
    gap: 12px 18px;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .intro-copy p:first-child {
    font-size: 18px;
  }

  .intro-copy p:last-child {
    font-size: 15px;
  }

  .title {
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .sub,
  .head-grid p {
    font-size: 16px;
    line-height: 1.6;
  }

  .stats {
    margin-top: 32px;
  }

  .stat {
    min-height: 118px;
    padding: 16px 14px;
  }

  .stat b {
    font-size: 38px;
  }

  .stat small {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
  }

  .services,
  .process-grid,
  .industries-grid,
  .reasons {
    margin-top: 32px;
    gap: 18px;
  }

  .service-btn,
  .process-btn {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 14px 0;
    gap: 8px;
  }

  .service-btn strong,
  .service-btn .bi-btn-text {
    font-size: 22px;
    letter-spacing: -0.03em;
  }

  .process-btn strong,
  .process-btn .bi-btn-text {
    font-size: 24px;
    letter-spacing: -0.03em;
  }

  .service-card {
    border-radius: 24px;
    padding: 14px;
  }

  .service-inner {
    padding: 14px 14px 20px;
    border-radius: 18px;
  }

  .service-inner > small {
    margin-top: 10px;
    padding: 0 4px;
  }

  .service-inner h3 {
    font-size: 26px;
    margin: 8px 4px 10px;
    line-height: 1.08;
  }

  .service-inner p {
    font-size: 15px;
    margin: 0 4px;
  }

  .tags {
    padding: 16px 4px 0;
    gap: 6px;
  }

  .tags span {
    padding: 6px 10px;
    font-size: 12px;
  }

  .portfolio-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 22px;
  }

  .portfolio-head p {
    max-width: none;
    font-size: 15px;
  }

  .projects {
    margin-top: 24px;
  }

  .project {
    border-radius: 24px;
    margin-bottom: 18px;
    min-height: 0;
  }

  .project-copy {
    padding: 20px 18px 14px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 34px;
    margin: 16px 0 10px;
    line-height: 1.02;
  }

  .project p {
    font-size: 15px;
  }

  .project-copy > a,
  .project-copy > b {
    width: 100%;
  }

  .project-meta {
    font-size: 10px;
    padding-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .project-image {
    margin: 0 14px 14px;
    min-height: 200px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .placeholder {
    font-size: 24px;
    max-width: 14ch;
    padding: 12px;
  }

  .reason {
    min-height: 0;
    padding: 18px 16px;
    gap: 14px;
  }

  .reason-icon {
    width: 72px;
    height: 72px;
  }

  .reason h3 {
    font-size: 20px;
  }

  .reason p,
  .reason small {
    font-size: 14px;
  }

  .process-card {
    border-radius: 24px;
    padding: 14px;
  }

  .process-inner {
    height: auto;
    min-height: 0;
    padding: 20px 18px;
    border-radius: 18px;
  }

  .process-icon {
    width: 84px;
    height: 84px;
    margin: 12px 0 10px;
  }

  .process-title {
    font-size: 34px;
    margin: 0 0 10px;
    min-height: 0;
    max-height: none;
  }

  .process-copy {
    font-size: 15px;
    max-width: none;
    min-height: 0;
    max-height: none;
  }

  .process-btn {
    height: auto;
    min-height: 0;
    padding: 20px 0;
  }

  .process-btn .bi-btn-label {
    font-size: clamp(24px, 7vw, 34px);
    height: 1.4em;
  }

  .process-num {
    font-size: 56px;
  }

  .industry-list {
    grid-template-columns: 1fr 1fr;
  }

  .industry-btn {
    min-height: 60px;
    padding: 10px 12px;
    font-size: 16px;
    letter-spacing: -0.03em;
  }

  .industry-visual {
    min-height: 220px;
    border-radius: 24px;
    padding: 20px 16px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 26px;
  }

  .industry-visual p {
    font-size: 14px;
    max-width: none;
  }

  .industries-grid {
    display: none;
  }

  .industry-slider {
    display: block;
    margin-top: 28px;
  }

  .industry-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    outline: none;
  }

  .industry-slider-viewport::-webkit-scrollbar {
    display: none;
  }

  .industry-slider-viewport:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 48, 96, 0.28);
    border-radius: 24px;
  }

  .industry-slider-track {
    display: flex;
    gap: 12px;
  }

  .industry-slide {
    position: relative;
    flex: 0 0 86%;
    min-width: 0;
    min-height: 280px;
    scroll-snap-align: start;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    display: grid;
    align-items: end;
    isolation: isolate;
  }

  .industry-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
  }

  .industry-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 11, 22, 0.12) 0%, rgba(7, 11, 22, 0.78) 100%);
  }

  .industry-slide-copy {
    position: relative;
    z-index: 2;
    padding: 22px 18px 20px;
    text-align: left;
  }

  .industry-slide-copy strong {
    display: block;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .industry-slide-copy p {
    margin: 8px 0 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
  }

  .industry-slider-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
  }

  .industry-slider-count {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(11, 18, 32, 0.7);
  }

  .industry-slider .circle {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-color: rgba(11, 18, 32, 0.18);
    color: var(--ink);
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 18, 32, 0.08);
  }

  .industry-slider .circle:hover,
  .industry-slider .circle:focus-visible {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }


  .circle {
    width: 44px;
    height: 44px;
  }





  .proof {
    height: 180vh;
  }

  .proof-copy {
    margin-top: 24px;
    font-size: 26px;
    line-height: 1.28;
  }

  .checkup {
    border-radius: 24px;
    padding: 24px 18px;
    gap: 22px;
  }

  .checkup .title {
    font-size: 30px;
    max-width: none;
    margin-top: 14px;
  }

  .checkup-copy {
    font-size: 15px;
    max-width: none;
  }

  .checkup-board {
    width: 100%;
  }

  .checkup-visual,
  .checkup-steps,
  .checkup-marquee,
  .checkup-slider {
    width: min(100%, 400px);
    margin-inline: auto;
    background: transparent;
    box-shadow: none;
  }

  .checkup-steps-stage {
    max-height: 440px;
  }

  .checkup-steps-meta {
    padding: 0;
  }

  .checkup-actions {
    width: 100%;
    margin-top: 22px;
  }

  .checkup-actions .btn {
    width: 100%;
  }

  .checkup-note {
    font-size: 12px;
  }

  .faq-grid {
    gap: 24px;
  }

  .faq-lead {
    font-size: 15px;
  }

  .faq-q {
    font-size: 18px;
    gap: 12px;
    padding: 16px 0;
    align-items: center;
  }

  .plus {
    width: 36px;
    height: 36px;
  }

  .faq-a {
    font-size: 15px;
    padding-right: 4px;
  }

  .faq-item.open .faq-a {
    max-height: 520px;
    padding-bottom: 18px;
  }

  .final {
    padding: 0 var(--gutter) 16px;
  }

  .final-inner {
    min-height: 400px;
    padding: 26px 20px;
    border-radius: 24px;
  }

  .final h2 {
    font-size: 42px;
    line-height: 1.04;
  }

  .final-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .final-bottom p {
    max-width: none;
    font-size: 15px;
  }

  .final .actions {
    flex-direction: column;
    width: 100%;
  }

  .final .actions .btn {
    width: 100%;
  }

  footer {
    padding: 56px 0 18px;
  }

  .foot-grid {
    gap: 28px 20px;
    padding-bottom: 28px;
  }

  .foot-logo {
    width: 168px;
    margin-bottom: 14px;
  }

  .foot-about {
    max-width: none;
    font-size: 14px;
  }

  .foot-accords {
    padding: 22px 0 24px;
    gap: 10px;
  }

  .foot-acc summary {
    padding: 14px 16px;
    font-size: 12px;
  }

  .foot-acc-panel {
    padding: 16px;
    max-height: 380px;
  }

  .copyright {
    gap: 8px;
    font-size: 12px;
  }

  .marquee {
    padding: 12px 0;
  }

  .track span {
    padding: 0 20px;
    font-size: 11px;
  }

  .modal {
    padding: 0;
    align-items: end;
    justify-items: stretch;
  }

  .modal-box {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100dvh;
    max-height: 100svh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }

  .modal-showcase {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }

  .modal-form-pane {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .modal-head h3 {
    font-size: 24px;
  }

  .modal-lead {
    display: none;
  }

  .modal .form {
    grid-template-columns: 1fr 1fr;
  }

  .modal .form input,
  .modal .form select,
  .modal .form textarea,
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
  }

  .bi-scroll-top {
    right: 12px;
    bottom: 12px;
  }
}

/* ------------------------------------------------------------------
   ≤650 — Medium phones
------------------------------------------------------------------ */
@media (max-width: 650px) {
  :root {
    --container: 100%;
    --gutter: 16px;
  }

  :root,
  .bi-header,
  .bi-header.is-scrolled,
  :root:has(.bi-header.is-scrolled) {
    --header-h: 68px;
  }

  .bi-header,
  .bi-header.is-scrolled {
    height: var(--header-h);
  }

  .bi-logo {
    width: 136px;
  }

  .bi-menu-button {
    width: 40px;
    height: 40px;
  }

  /* Hero — medium */
  .bi-inspired-hero {
    padding: 80px 0 14px;
  }

  .bi-hero-card {
    border-radius: 18px;
  }

  .bi-hero-frame {
    border-radius: 20px 20px 0 0;
  }

  .bi-hero-copy {
    padding: 20px 16px 14px;
    gap: 10px;
  }

  .bi-hero-label {
    font-size: 10px;
    padding: 7px 12px;
    max-width: 100%;
    line-height: 1.4;
  }

  .bi-hero-title {
    margin-top: 2px;
    font-size: 29px;
    line-height: 1.1;
  }

  .bi-hero-lead {
    font-size: 14px;
    max-width: 34ch;
    line-height: 1.55;
  }

  .bi-hero-proof {
    padding: 8px 10px 8px 8px;
    gap: 10px;
  }

  .bi-hero-proof strong {
    font-size: 11px;
  }

  .bi-hero-proof small {
    font-size: 10px;
  }

  .bi-hero-cta {
    min-height: 48px;
    font-size: 10px;
  }

  .bi-hero-visual {
    height: 220px;
    max-height: 220px;
    min-height: 200px;
  }

  .bi-hero-bottom {
    padding: 12px 16px 14px;
  }

  .bi-hero-ai-name {
    display: none;
  }

  .bi-hero-ai-link {
    min-height: 36px;
    padding: 4px;
  }

  .bi-hero-ai-link img,
  .bi-hero-ai-link.is-gemini img {
    width: 32px;
    height: 32px;
  }

  .bi-hero-trust {
    min-height: 68px;
  }

  .bi-hero-trust-scroll {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }

  /* Mobile mega / drawer — medium */
  .bi-mobile-inner {
    padding-block: 18px 24px;
  }

  .bi-mobile-group > summary,
  .bi-mobile-inner nav > a {
    font-size: 26px;
    padding: 11px 0;
  }

  .bi-mobile-nested > summary {
    font-size: 15px;
    padding: 9px 0;
  }

  .bi-mobile-sub p {
    font-size: 10px;
    margin: 12px 0 4px;
  }

  .bi-mobile-sub a {
    font-size: 14px !important;
    padding: 8px 0;
  }

  .bi-mobile-meta {
    margin-top: 24px;
    font-size: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .reasons,
  .form,
  .modal .form {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand,
  .foot-contact {
    grid-column: 1 / -1;
  }

  .stats,
  .industry-list {
    grid-template-columns: 1fr 1fr;
  }

  .title {
    font-size: 30px;
  }

  .intro-copy p:first-child {
    font-size: 16px;
  }

  .stat {
    min-height: 104px;
    padding: 14px 12px;
  }

  .stat b {
    font-size: 32px;
  }

  .service-btn strong,
  .service-btn .bi-btn-text,
  .process-btn strong,
  .process-btn .bi-btn-text {
    font-size: 20px;
  }

  .service-card,
  .checkup,
  .final-inner,
  .process-card {
    padding: 12px;
  }

  .service-inner,
  .process-inner {
    padding: 14px;
  }

  .service-inner h3 {
    font-size: 22px;
  }

  .project-copy {
    padding: 16px 14px 12px;
  }

  .project-image {
    min-height: 180px;
    margin: 0 12px 12px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 28px;
  }

  .reason h3 {
    font-size: 18px;
  }

  .process-title {
    font-size: 28px;
  }

  .process-num {
    font-size: 48px;
  }

  .process-icon {
    width: 72px;
    height: 72px;
    margin: 10px 0 8px;
  }

  .industry-btn {
    font-size: 14px;
    min-height: 56px;
    padding: 8px 10px;
  }

  .industry-visual {
    min-height: 200px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 22px;
  }

  .industry-slide {
    min-height: 250px;
    flex-basis: 88%;
    border-radius: 20px;
  }

  .industry-slide-copy strong {
    font-size: 24px;
  }




  .proof {
    height: 160vh;
  }

  .proof-copy {
    font-size: 22px;
  }

  .checkup-score-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .checkup-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkup .title {
    font-size: 26px;
  }

  .faq-q {
    font-size: 16px;
  }

  .final-inner {
    min-height: 360px;
    padding: 22px 16px;
  }

  .final h2 {
    font-size: 34px;
  }

  .modal .form {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .modal-lead {
    display: none;
  }

  .modal-box {
    width: 100%;
    height: auto;
    max-height: 100dvh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }

  .modal-showcase {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }

  .modal-form-pane {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .modal-head h3 {
    font-size: 22px;
  }

  .modal .form input,
  .modal .form select,
  .modal .form textarea {
    min-height: 40px;
    height: 40px;
    padding: 7px 12px;
    font-size: 16px;
  }

  .modal .form textarea {
    min-height: 64px;
    height: 64px;
  }

  .modal .modal-submit {
    min-height: 42px;
    height: 42px;
    font-size: 13px;
  }

  .modal-slide-copy strong {
    font-size: 20px;
  }

  .copyright {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-ctas {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    border-radius: 28px;
  }

  .btn {
    min-height: 48px;
    font-size: 13px;
    width: 100%;
    margin-inline:0;
  }

  .foot-menu,
  .foot-contact {
    min-width: 0;
  }

  footer ul {
    font-size: 13px;
  }
  .bi-hero-copy{
    grid-row: 2;
  }
  .bi-hero-visual{
    grid-row: 1;
  }
  .bi-hero-accent-rule {
    display: none;
  }
  .bi-hero-proof>span {
    width: 22px;
    height: 30px;
  }
}

/* ------------------------------------------------------------------
   ≤430 — Small phones (SE / compact Android)
------------------------------------------------------------------ */
@media (max-width: 430px) {
  :root {
    --container: 100%;
    --gutter: 14px;
  }

  :root,
  .bi-header,
  .bi-header.is-scrolled,
  :root:has(.bi-header.is-scrolled) {
    --header-h: 64px;
  }

  .bi-logo {
    width: 124px;
  }

  .bi-inspired-hero {
    padding: 74px 0 12px;
    min-height: 0;
  }

  .bi-hero-shell {
    gap: 10px;
  }

  .bi-hero-card {
    border-radius: 16px;
  }

  .bi-hero-frame {
    border-radius: 18px 18px 0 0;
  }

  .bi-hero-copy {
    padding: 16px 14px 12px;
    gap: 8px;
  }

  .bi-hero-label {
    font-size: 11px;
    padding: 6px 10px;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .bi-hero-title {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .bi-hero-cta {
    min-height: 46px;
    font-size: 10px;
    padding: 4px 42px 4px 12px;
  }

  .bi-hero-cta::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .bi-hero-visual {
    height: 190px;
    max-height: 190px;
    min-height: 170px;
  }

  .bi-hero-bottom {
    padding: 10px 14px 12px;
  }

  .bi-hero-ai-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .bi-hero-ai-links {
    gap: 6px;
  }

  .bi-hero-trust {
    min-height: 64px;
  }

  .bi-hero-trust-scroll {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  /* Mobile mega / drawer — small */
  .bi-mobile-inner {
    padding-block: 14px 20px;
  }

  .bi-mobile-group > summary,
  .bi-mobile-inner nav > a {
    font-size: 22px;
    padding: 10px 0;
  }

  .bi-mobile-nested > summary {
    font-size: 14px;
    padding: 8px 0;
  }

  .bi-mobile-sub a {
    font-size: 13px !important;
    padding: 7px 0;
  }

  .bi-mobile-meta {
    margin-top: 18px;
    font-size: 12px;
  }

  .bi-mobile-meta a {
    word-break: break-word;
  }

  /* —— Rest of homepage: small phones —— */
  html {
    scroll-padding-top: calc(var(--header-h, 64px) + 10px);
  }

  .section {
    padding: 48px 0;
  }

  .title {
    font-size: 30px;
  }

  .sub,
  .intro-copy p:first-child,
  .intro-copy p:last-child,
  .portfolio-head p,
  .faq-lead {
    font-size: 14px;
  }

  .stat {
    min-height: 96px;
    padding: 12px 10px;
  }

  .stat b {
    font-size: 28px;
  }

  .stat small {
    font-size: 11px;
    margin-top: 8px;
  }

  .service-btn,
  .process-btn {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 12px 0;
  }

  .service-btn strong,
  .service-btn .bi-btn-text,
  .process-btn strong,
  .process-btn .bi-btn-text {
    font-size: 17px;
  }

  .service-inner h3 {
    font-size: 20px;
  }

  .service-inner p,
  .project p,
  .process-copy,
  .reason p,
  .industry-visual p,
  .checkup-copy,
  .faq-a,
  .final-bottom p,
  .foot-about {
    font-size: 14px;
  }

  .project h3,
  .project-copy h3 {
    font-size: 32px;
    margin: 12px 0 8px;
  }

  .project-image {
    min-height: 160px;
    margin: 0 10px 10px;
    border-radius: 14px;
  }

  .placeholder {
    font-size: 20px;
  }

  .reason {
    padding: 14px 12px;
  }

  .reason-icon {
    width: 56px;
    height: 56px;
  }

  .reason h3 {
    font-size: 19px;
        letter-spacing: -.3px;
  }
    .industry-slide .btn.light {
        margin-top: 30px;
    }
  .process-title {
    font-size: 24px;
  }

  .process-num {
    font-size: 40px;
  }

  .process-icon {
    width: 64px;
    height: 64px;
    margin: 8px 0 8px;
  }

  .industry-list {
    grid-template-columns: 1fr;
  }

  .industry-btn {
    font-size: 16px;
    min-height: 52px;
  }

  .industry-visual {
    min-height: 180px;
    border-radius: 18px;
    padding: 16px 14px;
  }

  .industry-visual strong,
  .industry-visual-copy h3 {
    font-size: 20px;
  }

  .industry-slide {
    min-height: 240px;
    flex-basis: 90%;
    border-radius: 18px;
  }

  .industry-slide-copy {
    padding: 18px 14px 16px;
  }

  .industry-slide-copy strong {
    font-size: 22px;
  }

  .industry-slide-copy p {
    font-size: 13px;
  }



  .proof {
    height: 140vh;
  }

  .proof-copy {
    font-size: 28px;
    margin-top: 16px;
  }

  .checkup {
    border-radius: 18px;
    padding: 18px 14px;
  }

  .checkup .title {
    font-size: 32px;
  }

  .checkup-board,
  .checkup-visual {
    width: 100%;
  }

  .faq-q {
    font-size: 15px;
    gap: 10px;
    padding: 14px 0;
  }

  .plus {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .final-inner {
    min-height: 320px;
    padding: 20px 14px;
    border-radius: 18px;
  }

  .final h2 {
    font-size: 35px;
        margin-top: 20px;
  }

  footer {
    padding: 44px 0 16px;
  }

  .foot-logo {
    width: 148px;
  }

  .foot-acc summary {
    padding: 12px 14px;
    font-size: 11px;
  }

  .modal-showcase {
    height: 148px;
    min-height: 148px;
    max-height: 148px;
  }

  .modal-head h3 {
    font-size: 20px;
  }

  .modal-lead {
    display: none;
  }

  .modal .close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .modal-slide-copy {
    padding: 14px 14px 40px;
  }

  .modal-slide-copy strong {
    font-size: 18px;
  }

  .modal .form input,
  .modal .form select,
  .modal .form textarea {
    min-height: 40px;
    height: 40px;
    font-size: 16px;
  }

  .modal .form textarea {
    min-height: 60px;
    height: 60px;
  }

  .bi-hero h1 {
    font-size: 40px;
  }

  .bi-section {
    padding: 48px 0;
  }

  .bi-section h2 {
    font-size: 28px;
  }

  .bi-ticker {
    font-size: 28px;
  }

  .bi-step h3 {
    font-size: 22px;
  }

  .bi-hero-bottom p,
  .bi-copy {
    font-size: 15px;
  }
  .copyright > span:last-child {
    justify-content: center;
  }
  .copyright > span:last-child a:last-child{
    display:none;
  }
  .bi-scroll-top{
      right: 12px;
        bottom: 85px;
        scale: .8;
  }
}

/* Case study */
@media (max-width: 1000px) {
  .bi-progress {
    display: none;
  }

  .bi-section {
    padding: 72px 0;
  }

  .bi-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bi-meta {
    grid-template-columns: 1fr 1fr;
  }

  .bi-meta>div+div {
    border-left: 0;
  }

  .bi-meta>div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .bi-step {
    grid-template-columns: 50px 1fr;
  }

  .bi-step p {
    grid-column: 2;
  }

  .bi-visual figcaption {
    grid-template-columns: 1fr;
  }

  .bi-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .bi-media-overlay {
    flex-direction: column;
  }

  .bi-hero h1 {
    font-size: 84px;
  }

  .bi-section h2 {
    font-size: 40px;
  }

  .bi-ticker {
    font-size: 48px;
  }
}

@media (max-width: 560px) {
  :root {
    --container: 100%;
    --gutter: 14px;
  }

  .bi-meta {
    grid-template-columns: 1fr;
  }

  .bi-meta>div+div,
  .bi-meta>div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .bi-hero {
    padding: calc(var(--header-h, 68px) + 28px) 0 20px;
  }

  .bi-hero h1 {
    font-size: 48px;
    margin-top: 18px;
  }

  .bi-hero-bottom p,
  .bi-copy {
    font-size: 16px;
  }

  .bi-section {
    padding: 56px 0;
  }

  .bi-section h2 {
    font-size: 28px;
  }

  .bi-step {
    grid-template-columns: 40px 1fr;
    gap: 8px 12px;
  }

  .bi-step h3 {
    font-size: 22px;
  }

  .bi-hero-media,
  .bi-media,
  .bi-visual img,
  .bi-next-card {
    border-radius: 16px;
  }

  .bi-hero-caption {
    flex-direction: column;
    gap: 8px;
    left: 14px;
    right: 14px;
  }

  .bi-ticker {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Single testimonial column — mobile */
@media (max-width: 960px) {
  .testimonial-slider {
    margin-top: 36px;
    padding-inline: 48px;
  }

  .testimonial-slide {
    flex-basis: 100%;
  }

  .testimonial-nav--prev {
    left: 0;
  }

  .testimonial-nav--next {
    right: 0;
  }

  .testimonial-dots {
    margin-top: 22px;
  }

  .testimonial {
    grid-template-columns: 1fr;
    border-radius: 28px;
    margin-top: 36px;
  }

  .testimonial-slider .testimonial {
    margin-top: 0;
  }

  .testimonial-media,
  .testimonial-media-fallback {
    min-height: 240px;
  }

  .testimonial-media-fallback {
    font-size: 42px;
  }

  .testimonial-play {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
  }

  .testimonial-play svg {
    width: 22px;
    height: 22px;
  }

  .quote {
    min-height: auto;
    padding: 28px 22px 30px;
    gap: 22px;
  }

  .quote blockquote {
    font-size: clamp(17px, 4.2vw, 22px);
    max-width: none;
  }

  .quote-foot b {
    font-size: 16px;
  }

  .quote-icon-svg {
    width: 28px;
    height: 28px;
  }

  .review-video-close {
    top: -42px;
  }
}

@media (max-width: 650px) {
  .testimonial-slider {
    margin-top: 28px;
    padding-inline: 44px;
  }

  .testimonial-slide {
    flex-basis: 100%;
  }

  .testimonial-nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
    margin-top: -22px;
  }

  .testimonial {
    border-radius: 22px;
    margin-top: 28px;
  }

  .testimonial-slider .testimonial {
    margin-top: 0;
  }

  .testimonial-media,
  .testimonial-media-fallback {
    min-height: 200px;
  }

  .testimonial-media-fallback {
    font-size: 34px;
  }

  .testimonial-play {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
  }

  .testimonial-play svg {
    width: 20px;
    height: 20px;
  }

  .quote {
    padding: 22px 16px 26px;
    gap: 18px;
  }

  .quote blockquote {
    font-size: 16px;
  }

  .quote-date {
    font-size: 11px;
  }

  .quote-platform {
    height: 18px;
  }

  .quote-verified {
    height: 24px;
  }
}

@media (max-width: 430px) {
  .quote blockquote {
    font-size: 15px;
  }

  .quote-meta {
    gap: 10px;
  }
}

