﻿/* Production responsive, accessibility, and performance fixes */

:root{
  --nav-height: 88px;
}

html{overflow-x:hidden}
body{min-width:0;overflow-x:hidden}
body.menu-open{overflow:hidden}

@media (hover:none), (pointer:coarse), (max-width:900px){
  body{cursor:auto}
  #cursor,#cursor-follower{display:none !important}
}

#main-nav{
  position:fixed;
  z-index:1000;
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
}

#main-nav.nav-scrolled,
#main-nav.nav-open{
  background:rgba(5,8,22,.9) !important;
  border-bottom:1px solid rgba(248,249,255,.1);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}

#nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(248,249,255,.14);
  border-radius:999px;
  background:rgba(248,249,255,.06);
  color:var(--white);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex:0 0 auto;
}

#nav-toggle .hamburger,
#nav-toggle .hamburger::before,
#nav-toggle .hamburger::after{
  display:block;
  width:18px;
  height:2px;
  background:currentColor;
  border-radius:10px;
  transition:transform .2s ease, opacity .2s ease;
  content:"";
}

#nav-toggle .hamburger{position:relative}
#nav-toggle .hamburger::before{position:absolute;top:-6px;left:0}
#nav-toggle .hamburger::after{position:absolute;top:6px;left:0}
#main-nav.nav-open #nav-toggle .hamburger{background:transparent}
#main-nav.nav-open #nav-toggle .hamburger::before{transform:translateY(6px) rotate(45deg)}
#main-nav.nav-open #nav-toggle .hamburger::after{transform:translateY(-6px) rotate(-45deg)}

.nav-links a[aria-current="page"],
.nav-links a.active{
  color:var(--white);
}

.nav-links a[aria-current="page"]::after,
.nav-links a.active::after{
  transform:scaleX(1);
  opacity:1;
}

.nav-links a{position:relative}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:1px;
  background:linear-gradient(90deg,var(--blue),transparent);
  transform:scaleX(0);
  transform-origin:left;
  opacity:0;
  transition:transform .2s ease, opacity .2s ease;
}

.subpage-inner,
.chapter-inner,
.footer-main,
.footer-bottom,
.case-studies,
.content-grid,
.wide-panel,
.trust-bar{
  min-width:0;
}

.subpage-title,
.chapter-headline,
.identity-headline,
.work-title,
.process-title,
.contact-headline,
.content-card h2,
.wide-panel h2{
  overflow-wrap:anywhere;
}

.contact-form select{
  width:100%;
  min-height:52px;
  color:var(--white);
  background:rgba(248,249,255,.04);
  border:1px solid rgba(248,249,255,.1);
  border-radius:12px;
  padding:14px 16px;
  outline:none;
}

.contact-form select option{
  color:#111827;
  background:#fff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
  border-color:rgba(79,142,247,.65);
  box-shadow:0 0 0 4px rgba(79,142,247,.12);
}

.form-status{
  display:none;
  margin-top:16px;
  padding:14px 16px;
  border-radius:12px;
  font-size:13px;
  line-height:1.6;
}

.form-status.is-visible{display:block}
.form-status.success{background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.28);color:#bbf7d0}
.form-status.error{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.28);color:#fecaca}

.contact-layout{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  gap:24px;
  align-items:start;
  margin-top:56px;
}

.contact-sidebar{
  display:grid;
  gap:18px;
}

.contact-quick-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:22px;
}

.contact-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(248,249,255,.12);
  background:rgba(248,249,255,.045);
  color:var(--white);
  text-decoration:none;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.contact-action:hover{
  transform:translateY(-2px);
  border-color:rgba(79,142,247,.45);
  background:rgba(79,142,247,.09);
}

.contact-action small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.contact-action svg{
  width:18px;
  height:18px;
  stroke:var(--blue);
  fill:none;
  stroke-width:2;
  flex:0 0 auto;
}

.contact-form-panel,
.contact-info-panel{
  margin-top:0;
}

.growth-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
  gap:34px;
  align-items:end;
  margin-top:34px;
}

.growth-scoreboard{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.growth-score{
  padding:22px 18px;
  border:1px solid rgba(248,249,255,.12);
  border-radius:18px;
  background:linear-gradient(160deg,rgba(248,249,255,.075),rgba(248,249,255,.035));
}

.growth-score strong{
  display:block;
  font-family:Inter,sans-serif;
  font-size:clamp(26px,4vw,40px);
  font-weight:300;
  color:var(--white);
  line-height:1;
}

.growth-score span{
  display:block;
  margin-top:9px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.case-study-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:64px;
}

.story-card{
  position:relative;
  display:flex;
  min-height:100%;
  flex-direction:column;
  gap:20px;
  padding:28px;
  border-radius:24px;
  border:1px solid rgba(248,249,255,.12);
  background:linear-gradient(160deg,rgba(248,249,255,.075),rgba(248,249,255,.035));
  overflow:hidden;
}

.story-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(79,142,247,.14),transparent 48%);
  pointer-events:none;
}

.story-card > *{position:relative}
.story-tag{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--blue)}
.story-card h2{font-family:Inter,sans-serif;font-size:22px;font-weight:400;line-height:1.25}
.story-card p,.story-card li{color:var(--muted);font-size:14px;line-height:1.75}
.story-card ul{padding-left:18px;margin-top:auto}
.story-metric{font-family:Inter,sans-serif;font-size:42px;font-weight:300;color:var(--white)}

.story-process{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:24px;
}

.story-process div{
  padding:20px;
  border-radius:16px;
  background:rgba(248,249,255,.045);
  border:1px solid rgba(248,249,255,.1);
}

.story-process strong{display:block;margin-bottom:8px;color:var(--white)}
.story-process span{font-size:13px;color:var(--muted);line-height:1.65}

@media (max-width:1100px){
  #main-nav{padding:22px 32px}
  .nav-links{gap:24px}
  #services{flex-direction:column;gap:52px;padding-inline:32px}
  .services-copy{padding-left:0;max-width:720px}
  .ecosystem{width:min(560px,88vw);height:min(560px,88vw)}
  .case-study-grid{grid-template-columns:1fr 1fr}
  .story-process{grid-template-columns:1fr 1fr}
}

@media (max-width:880px){
  :root{--nav-height:74px}
  #main-nav{
    padding:14px 20px;
    gap:12px;
  }

  #nav-toggle{display:inline-flex;order:3}
  .nav-logo{min-width:0}
  .nav-logo-img{width:62px}
  .nav-logo-text{font-size:13px;letter-spacing:.04em}
  .nav-cta{display:none}

  .nav-links{
    position:absolute;
    top:calc(100% + 10px);
    left:16px;
    right:16px;
    display:grid;
    gap:2px;
    padding:12px;
    border:1px solid rgba(248,249,255,.12);
    border-radius:18px;
    background:rgba(5,8,22,.96);
    box-shadow:0 24px 80px rgba(0,0,0,.35);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  #main-nav.nav-open .nav-links{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
    visibility:visible;
  }

  .nav-links a{
    width:100%;
    padding:14px 14px;
    border-radius:12px;
    font-size:12px;
  }

  .nav-links a::after{display:none}
  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"]{
    background:rgba(79,142,247,.12);
  }

  #hero{padding:110px 20px 72px}
  .hero-headline{font-size:clamp(38px,12vw,68px)}
  .hero-actions{width:100%;gap:12px}
  .btn-primary,.btn-ghost{width:100%;max-width:340px;text-align:center}
  .hero-metrics{gap:18px;margin-top:38px;padding:0}
  .metric{min-width:136px}
  .scroll-hint{display:none}

  .chapter,
  #identity,
  #process,
  #work,
  #why,
  #services{
    min-height:auto;
    padding:82px 22px;
  }

  .chapter--right .chapter-inner,
  .chapter--left .chapter-inner,
  .why-inner{
    grid-template-columns:1fr;
    gap:36px;
    direction:ltr;
  }

  .chapter-body{max-width:none}
  .viz-canvas{height:260px}
  .pillars,
  .process-steps{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    margin-top:44px;
  }

  .process-steps::before{display:none}
  .case-studies,
  .case:nth-child(1),
  .case:nth-child(2),
  .case:nth-child(3){
    display:grid;
    grid-template-columns:1fr;
    grid-column:auto;
    grid-row:auto;
  }

  .case-bg,
  .case:nth-child(3) .case-bg{height:220px}
  .case-content{padding:28px 24px}
  .case-arrow{display:none}
  .page-map{grid-template-columns:1fr;padding-inline:20px}
  .content-grid{grid-template-columns:1fr;margin-top:46px}
  .contact-layout,
  .growth-hero-grid{grid-template-columns:1fr}
  .growth-scoreboard{grid-template-columns:1fr 1fr 1fr}
  .case-study-grid{grid-template-columns:1fr}
  .footer-main{grid-template-columns:1fr !important;display:grid !important}
  .footer-bottom{align-items:flex-start;text-align:left}
}

@media (max-width:640px){
  .nav-logo-text{display:none}
  .subpage{padding:108px 18px 72px}
  .subpage-title{font-size:clamp(34px,11vw,48px);line-height:1.08}
  .subpage-lead{font-size:15px;line-height:1.75}
  .trust-bar{padding:0;justify-content:flex-start}
  .trust-pill{width:100%;white-space:normal;justify-content:flex-start}
  .wide-panel{padding:28px 20px;margin-top:46px}
  .form-row{grid-template-columns:1fr}
  .contact-form .form-submit{width:100%;align-self:stretch}
  .contact-details-grid{grid-template-columns:1fr}
  .growth-scoreboard{grid-template-columns:1fr}
  .story-process{grid-template-columns:1fr}
  .story-card{padding:24px 20px}
  .footer-main,
  footer{padding-inline:20px}
  .footer-bottom{gap:10px}
  .sticky-cta a{font-size:12px;letter-spacing:0;padding-inline:8px}
}

@media (max-width:380px){
  #main-nav{padding-inline:14px}
  #hero{padding-inline:16px}
  .hero-actions a{max-width:none}
  .content-card{padding:24px 18px}
  .contact-action{padding-inline:14px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}

/* PRODUCTION AGENCY PASS */
*{min-width:0}
html{scroll-padding-top:var(--nav-height)}
body{line-height:1.5}
body.menu-open{overflow:hidden}
#main-nav{min-height:var(--nav-height);isolation:isolate}
#nav-toggle{display:none;position:relative;z-index:120}
#primary-menu{will-change:transform,opacity}
.nav-logo-text{white-space:nowrap}
.nav-links a.active,
.nav-links a[aria-current="page"]{color:var(--white)}
.subpage-inner{width:min(1180px,100%)}
.subpage-title{font-size:clamp(36px,8vw,86px);text-wrap:balance}
.subpage-lead{text-wrap:pretty}
.content-card,.wide-panel,.contact-detail-card,.case-study-card{overflow-wrap:anywhere}
.btn-primary,.btn-ghost,.nav-cta,.form-submit,.contact-action{min-height:44px}
.form-honey{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.form-status{min-height:22px;font-size:13px;color:rgba(248,249,255,.68)}
.form-status.success{color:#86efac}
.form-status.error{color:#fca5a5}
.form-submit.is-loading{opacity:.72;cursor:wait}

.contact-page .growth-hero-grid,
.growth-page .growth-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
  gap:clamp(28px,5vw,72px);
  align-items:center;
  margin-bottom:clamp(44px,7vw,88px);
}
.contact-sidebar,.growth-scorecard{display:grid;gap:14px;align-content:start}
.contact-sidebar{padding:24px;border:1px solid rgba(248,249,255,.1);border-radius:20px;background:rgba(248,249,255,.04)}
.contact-layout{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);gap:clamp(22px,4vw,46px);align-items:start;margin-top:40px}
.contact-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:32px}
.contact-action{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid rgba(248,249,255,.12);border-radius:16px;background:rgba(248,249,255,.045);color:var(--white);text-decoration:none;transition:transform .25s ease,border-color .25s ease,background .25s ease}
.contact-action:hover{transform:translateY(-2px);border-color:rgba(79,142,247,.55);background:rgba(79,142,247,.08)}
.contact-action svg{width:22px;height:22px;stroke:var(--blue);fill:none;stroke-width:1.8;margin-bottom:6px}
.contact-action span{font-family:'Inter',sans-serif;font-size:14px;font-weight:500}
.contact-action small{font-size:12px;color:var(--muted);line-height:1.4}
.contact-form-panel .contact-form{opacity:1;transform:none}
.contact-form .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown),
.contact-form select:invalid{border-color:rgba(252,165,165,.6)}

.growth-scorecard{padding:24px;border-radius:22px;border:1px solid rgba(248,249,255,.12);background:linear-gradient(160deg,rgba(79,142,247,.12),rgba(248,249,255,.035))}
.growth-scorecard div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid rgba(248,249,255,.08)}
.growth-scorecard div:last-child{border-bottom:0}
.growth-scorecard strong{font-family:'Inter',sans-serif;font-size:clamp(34px,5vw,58px);font-weight:500;color:var(--blue)}
.growth-scorecard span{color:var(--muted);text-align:right}
.case-study-list{display:grid;gap:24px}
.case-study-card{padding:clamp(22px,4vw,40px);border:1px solid rgba(248,249,255,.1);border-radius:22px;background:linear-gradient(160deg,rgba(248,249,255,.07),rgba(248,249,255,.025));backdrop-filter:blur(18px)}
.case-study-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.case-study-top span{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--blue)}
.case-study-top strong{font-family:'Inter',sans-serif;font-size:clamp(34px,6vw,70px);color:rgba(79,142,247,.75)}
.case-study-card h2{font-family:'Inter',sans-serif;font-size:clamp(24px,3vw,38px);font-weight:400;margin-bottom:18px}
.case-study-metrics{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px}
.case-study-metrics span{padding:8px 12px;border:1px solid rgba(248,249,255,.1);border-radius:999px;color:rgba(248,249,255,.68);font-size:12px}
.case-study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.case-study-grid h3{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);margin-bottom:8px}
.case-study-grid p{color:var(--muted);line-height:1.75;font-size:14px}
.growth-cta-panel{text-align:center;margin-top:clamp(40px,7vw,80px)}
.growth-cta-panel p{margin:0 auto 28px}

@media (max-width:1024px){
  .footer-main{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-page .growth-hero-grid,
  .growth-page .growth-hero-grid,
  .contact-layout{grid-template-columns:1fr}
  .contact-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .case-study-grid{grid-template-columns:1fr}
}

@media (max-width:880px){
  #main-nav{padding:16px 18px;align-items:center}
  .nav-logo-img{width:58px}
  .nav-logo-text{font-size:13px}
  #nav-toggle{display:inline-flex}
  .nav-cta{display:none}
  .nav-links{position:fixed;left:16px;right:16px;top:calc(var(--nav-height) - 4px);display:grid;gap:8px;padding:16px;border:1px solid rgba(248,249,255,.12);border-radius:18px;background:rgba(5,8,22,.96);box-shadow:0 24px 80px rgba(0,0,0,.35);backdrop-filter:blur(18px);opacity:0;visibility:hidden;transform:translateY(-12px);pointer-events:none;transition:opacity .24s ease,transform .24s ease,visibility .24s ease}
  .nav-links a{display:flex;padding:14px 12px;border-radius:12px;font-size:15px}
  .nav-links a:hover,.nav-links a.active{background:rgba(79,142,247,.12)}
  #main-nav.nav-open .nav-links{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .subpage{padding-inline:clamp(16px,5vw,30px)}
  .contact-quick-actions{grid-template-columns:1fr}
  .footer-main{grid-template-columns:1fr}
  .footer-bottom{align-items:flex-start;flex-direction:column}
  .sticky-cta{display:grid}
}

@media (max-width:640px){
  :root{--nav-height:76px}
  .subpage{padding-top:104px}
  .content-grid{border:0;background:transparent;gap:16px}
  .content-card{border-radius:18px}
  .wide-panel{padding:24px 18px}
  .contact-form .form-row{grid-template-columns:1fr}
  .case-study-top{align-items:flex-start;flex-direction:column}
  .growth-scorecard div{align-items:flex-start;flex-direction:column}
  .growth-scorecard span{text-align:left}
  .hero-metrics{grid-template-columns:1fr;display:grid}
  .metric{min-width:0}
  .pillars,.process-steps{display:grid}
  .testi-card{width:min(320px,86vw)}
}

@media (max-width:380px){
  .nav-logo-text{display:none}
  .subpage-title{font-size:clamp(32px,11vw,42px)}
  .contact-action{padding:14px}
  .case-study-card{padding:20px 16px}
}

@media (hover:none),(pointer:coarse),(max-width:900px){
  #hero-canvas{opacity:.22}
  .noise{opacity:.25}
}

@media (prefers-reduced-motion:reduce){
  #hero-canvas,#cursor,#cursor-follower{display:none!important}
}

/* HOSTINGER DEPLOYMENT CLEANUP */
.breadcrumbs{
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:0!important;
  z-index:1;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.breadcrumbs::before,
.breadcrumbs::after{
  content:none!important;
  display:none!important;
}
#main-nav,
#main-nav *{
  list-style:none;
}
#main-nav::before,
#main-nav::after,
.nav-logo::before,
.nav-logo::after,
.nav-logo-img::before,
.nav-logo-img::after,
.nav-logo-text::before,
.nav-logo-text::after,
.nav-links::before,
.nav-links::after,
.nav-links a::before,
.nav-links a::after,
.nav-cta::before,
.nav-cta::after{
  content:none!important;
  display:none!important;
}
#main-nav{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(14px,2vw,32px);
  overflow:visible;
}
.nav-logo{
  position:relative;
  z-index:2;
  align-self:center;
  gap:12px;
  min-width:0;
}
.nav-logo-img{
  width:clamp(56px,6vw,82px);
  max-height:64px;
  object-fit:contain;
}
.nav-logo-text{
  letter-spacing:.04em;
  line-height:1;
}
.nav-links{
  justify-content:center;
  gap:clamp(18px,3vw,36px);
  min-width:0;
}
.nav-links a{
  padding:10px 0;
  line-height:1;
  white-space:nowrap;
}
.nav-cta{
  position:relative;
  z-index:2;
  min-width:max-content;
  box-shadow:none;
  overflow:visible;
}
#cursor,
#cursor-follower{
  z-index:900;
}

.contact-info-panel{
  height:100%;
}
.contact-info-panel h2,
.contact-form-panel h2{
  font-size:clamp(24px,2.4vw,34px);
  line-height:1.15;
  margin-bottom:12px;
}
.contact-details-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.contact-detail-card{
  min-height:132px;
  height:100%;
  justify-content:flex-start;
  padding:20px;
  border-radius:16px;
}
.contact-detail-card strong{
  display:block;
  min-height:16px;
  line-height:1.2;
}
.contact-detail-card a,
.contact-detail-card span{
  overflow-wrap:anywhere;
}
.contact-form-panel{
  height:100%;
}

.site-footer{
  display:block;
  padding:clamp(42px,6vw,72px) clamp(18px,5vw,60px) 28px;
}
.site-footer .footer-main{
  display:grid!important;
  grid-template-columns:minmax(260px,1.45fr) repeat(5,minmax(112px,1fr));
  gap:clamp(24px,4vw,48px);
  align-items:start;
  max-width:1200px;
  width:100%;
}
.footer-brand-block{
  min-width:0;
}
.site-footer .footer-brand{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
}
.site-footer .footer-logo-img{
  width:clamp(72px,7vw,100px);
}
.site-footer .footer-tagline{
  max-width:360px;
  margin-top:18px;
  color:rgba(248,249,255,.58);
}
.site-footer .footer-list{
  gap:10px;
}
.site-footer .footer-list a,
.site-footer .footer-list span{
  font-size:13px;
}
.site-footer .footer-bottom{
  max-width:1200px;
  margin-top:34px;
}

@media (max-width:1024px){
  #main-nav{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  #nav-toggle{
    justify-self:end;
  }
  .site-footer .footer-main{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .footer-brand-block{
    grid-column:1 / -1;
  }
}

@media (max-width:880px){
  #main-nav{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
  }
  #primary-menu.nav-links,
  .nav-links{
    justify-content:start;
  }
  .nav-links a{
    width:100%;
    padding:14px 12px;
  }
  .nav-logo-img{
    width:56px;
  }
  .contact-details-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .contact-layout{
    gap:22px;
  }
  .contact-details-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .contact-detail-card{
    min-height:112px;
  }
  .site-footer .footer-main{
    grid-template-columns:1fr;
  }
  .site-footer .footer-tagline{
    max-width:none;
  }
  .site-footer .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
  }
}

@media (max-width:425px){
  #main-nav{
    padding-inline:16px;
  }
  .nav-logo-text{
    display:none;
  }
  .subpage{
    padding-inline:16px;
  }
  .contact-detail-card{
    padding:18px;
  }
}

/* WHY MIKID IMAGE UPGRADE
   Future developers: replace Why.jpeg/CEO.jpeg in index.html; these rules keep the media responsive. */
#why .why-inner{
  grid-template-columns:minmax(0,.88fr) minmax(240px,.72fr) minmax(0,1fr);
  gap:clamp(28px,4.5vw,64px);
}

.why-media,
.why-founder-card{
  position:relative;
  margin:0;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(248,249,255,.12);
  background:linear-gradient(160deg,rgba(248,249,255,.075),rgba(248,249,255,.025));
  box-shadow:0 26px 80px rgba(0,0,0,.24);
}

.why-media{
  align-self:stretch;
  min-height:520px;
  border-radius:28px;
}

.why-media::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 36% 24%,rgba(79,142,247,.24),transparent 34%),
    linear-gradient(180deg,transparent 52%,rgba(5,8,22,.88));
  pointer-events:none;
}

.why-media img{
  width:100%;
  height:100%;
  min-height:520px;
  display:block;
  object-fit:cover;
  object-position:center top;
  filter:contrast(1.06) brightness(.9);
}

.why-media figcaption{
  position:absolute;
  left:22px;
  right:22px;
  bottom:22px;
  z-index:2;
  display:grid;
  gap:8px;
}

.why-media figcaption span,
.why-founder-card figcaption span{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--blue);
}

.why-media figcaption strong,
.why-founder-card figcaption strong{
  color:var(--white);
  font-family:'Inter',sans-serif;
  font-weight:500;
  line-height:1.45;
}

.why-founder-card{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:16px;
  align-items:center;
  max-width:440px;
  margin-top:28px;
  padding:14px;
  border-radius:22px;
}

.why-founder-card img{
  width:72px;
  height:72px;
  border-radius:18px;
  object-fit:cover;
  object-position:center 22%;
  filter:contrast(1.05);
}

.why-founder-card figcaption{
  display:grid;
  gap:5px;
  min-width:0;
}

.why-founder-card figcaption strong{
  font-size:13px;
}

@media (max-width:1180px){
  #why .why-inner{
    grid-template-columns:minmax(0,1fr) minmax(260px,.82fr);
  }

  #why .why-grid{
    grid-column:1 / -1;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media (max-width:1024px){
  #why .why-inner{
    grid-template-columns:1fr!important;
    max-width:760px!important;
  }

  .why-media{
    min-height:0;
    aspect-ratio:4 / 5;
    width:100%;
  }

  .why-media img{
    min-height:0;
    aspect-ratio:4 / 5;
  }

  #why .why-grid{
    grid-template-columns:1fr!important;
  }
}

@media (max-width:520px){
  .why-founder-card{
    grid-template-columns:60px minmax(0,1fr);
    gap:12px;
    padding:12px;
    margin-top:22px;
  }

  .why-founder-card img{
    width:60px;
    height:60px;
    border-radius:15px;
  }

  .why-media{
    border-radius:22px;
  }

  .why-media figcaption{
    left:16px;
    right:16px;
    bottom:16px;
  }
}

/* FINAL HOMEPAGE CHAPTER MOBILE LOCK
   Keep chapter line breaks visible so words like "Meaningful" and "Connections" do not merge on phones. */
@media (max-width:768px){
  .chapter{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  .chapter-inner,
  .chapter-content,
  .chapter-visual{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .chapter--right .chapter-inner,
  .chapter--left .chapter-inner,
  .chapter--center .chapter-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:28px!important;
    direction:ltr!important;
  }

  .chapter-headline{
    width:100%!important;
    max-width:100%!important;
    font-size:clamp(32px,9.4vw,42px)!important;
    line-height:1.16!important;
    letter-spacing:0!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  .chapter-headline br{
    display:block!important;
  }

  .chapter-headline em{
    display:inline!important;
  }

  .chapter-body{
    width:100%!important;
    max-width:100%!important;
    font-size:15px!important;
    line-height:1.78!important;
    overflow-wrap:break-word!important;
  }

  .viz-canvas{
    width:100%!important;
    max-width:100%!important;
    min-height:220px!important;
    height:240px!important;
  }
}

@media (max-width:380px){
  .chapter-headline{
    font-size:clamp(30px,9vw,36px)!important;
  }

  .chapter-tag{
    letter-spacing:.18em!important;
    font-size:10px!important;
  }
}

/* FINAL HOW WE WORK RESPONSIVE LOCK
   EOF override: process timeline becomes compact cards on mobile/tablet. */
@media (max-width:900px){
  #process{
    min-height:auto!important;
    padding:80px 16px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
  }

  #process .chapter-tag{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  #process .process-title{
    width:100%!important;
    max-width:360px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
    font-size:clamp(34px,10vw,44px)!important;
    line-height:1.12!important;
    letter-spacing:0!important;
    opacity:1!important;
    transform:none!important;
  }

  #process .process-steps{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    width:100%!important;
    max-width:440px!important;
    margin:34px auto 0!important;
    padding:0!important;
    position:relative!important;
  }

  #process .process-steps::before{
    display:none!important;
  }

  #process .step{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    align-items:center!important;
    gap:16px!important;
    text-align:left!important;
    padding:18px!important;
    border:1px solid rgba(248,249,255,.1)!important;
    border-radius:22px!important;
    background:rgba(248,249,255,.035)!important;
    opacity:1!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  #process .step-dot{
    width:56px!important;
    height:56px!important;
    margin:0!important;
  }

  #process .step-name{
    margin:0 0 4px!important;
    font-size:16px!important;
    line-height:1.25!important;
  }

  #process .step-desc{
    margin:0!important;
    font-size:13px!important;
    line-height:1.6!important;
    overflow-wrap:break-word!important;
  }
}

@media (max-width:360px){
  #process .step{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:12px!important;
    padding:16px!important;
  }

  #process .step-dot{
    width:48px!important;
    height:48px!important;
  }
}

/* FINAL HOW WE WORK RESPONSIVE LOCK
   Keep at EOF with the chapter lock: the process timeline must become stacked cards on small screens. */
@media (max-width:900px){
  #process{
    min-height:auto!important;
    padding:80px 16px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
  }

  #process .chapter-tag{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  #process .process-title{
    width:100%!important;
    max-width:360px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
    font-size:clamp(34px,10vw,44px)!important;
    line-height:1.12!important;
    letter-spacing:0!important;
    opacity:1!important;
    transform:none!important;
  }

  #process .process-steps{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    width:100%!important;
    max-width:440px!important;
    margin:34px auto 0!important;
    padding:0!important;
    position:relative!important;
  }

  #process .process-steps::before{
    display:none!important;
  }

  #process .step{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    align-items:center!important;
    gap:16px!important;
    text-align:left!important;
    padding:18px!important;
    border:1px solid rgba(248,249,255,.1)!important;
    border-radius:22px!important;
    background:rgba(248,249,255,.035)!important;
    opacity:1!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  #process .step-dot{
    width:56px!important;
    height:56px!important;
    margin:0!important;
  }

  #process .step-name{
    margin:0 0 4px!important;
    font-size:16px!important;
    line-height:1.25!important;
  }

  #process .step-desc{
    margin:0!important;
    font-size:13px!important;
    line-height:1.6!important;
    overflow-wrap:break-word!important;
  }
}

@media (max-width:360px){
  #process .step{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:12px!important;
    padding:16px!important;
  }

  #process .step-dot{
    width:48px!important;
    height:48px!important;
  }
}

/* FINAL RESPONSIVE ALIGNMENT PASS */
.site-footer{
  clear:both;
  width:100%;
  overflow:hidden;
}
.site-footer .footer-main{
  grid-template-columns:minmax(260px,1.7fr) repeat(5,minmax(116px,1fr))!important;
  align-items:start;
}
.site-footer .footer-main > section{
  min-width:0;
}
.site-footer .footer-col-title{
  min-height:18px;
  margin-bottom:16px;
}
.site-footer .footer-list{
  align-items:flex-start;
}
.site-footer .footer-list a,
.site-footer .footer-list span{
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
}
.site-footer .footer-social{
  margin-top:0;
  align-items:center;
}
.site-footer .footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

@media (max-width:1180px){
  .site-footer .footer-main{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .site-footer .footer-brand-block{
    grid-column:1 / -1;
  }
}

@media (max-width:768px){
  .site-footer .footer-main{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:28px 22px;
  }
  .site-footer .footer-brand-block{
    grid-column:1 / -1;
  }
  .site-footer .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
  }
}

@media (max-width:520px){
  .site-footer{
    padding-inline:18px;
  }
  .site-footer .footer-main{
    grid-template-columns:1fr!important;
    gap:24px;
  }
  .site-footer .footer-logo-img{
    width:78px;
  }
}

/* FINAL HOMEPAGE RESPONSIVE LOCK
   Future developers: this block is intentionally last. It prevents the homepage cards and visual sections from
   inheriting desktop widths on phone/tablet screens. */
@media (max-width:1024px){
  #why .why-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:32px!important;
    width:100%!important;
  }

  #why .why-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
    width:100%!important;
  }

  #why .why-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:clamp(20px,4vw,30px)!important;
    border:1px solid rgba(248,249,255,.1);
    border-radius:18px;
    opacity:1!important;
    transform:none!important;
  }

  #why .why-copy{
    width:100%;
    max-width:720px;
  }
}

@media (max-width:768px){
  #hero,
  .chapter,
  #services,
  #identity,
  #process,
  #work,
  #why,
  #testimonials,
  #faq,
  #contact{
    min-height:auto!important;
    padding-top:clamp(72px,14vw,96px)!important;
    padding-bottom:clamp(72px,14vw,96px)!important;
  }

  #services .chapter-inner,
  .chapter-inner,
  .why-inner,
  #contact .contact-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:28px!important;
    width:100%!important;
  }

  .ecosystem{
    width:min(100%,320px)!important;
    height:320px!important;
  }

  .eco-center{
    width:96px!important;
    height:96px!important;
  }

  .hero-metrics,
  .growth-intro,
  .pillars,
  .process-steps,
  .case-studies,
  .why-grid,
  .contact-form .form-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:14px!important;
  }

  .metric,
  .growth-stat,
  .pillar,
  .step,
  .case,
  .why-item,
  .faq-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  .case,
  .case:nth-child(1),
  .case:nth-child(2),
  .case:nth-child(3){
    grid-column:auto!important;
    grid-row:auto!important;
  }

  .faq-section{
    width:100%!important;
    max-width:100%!important;
  }
}

@media (max-width:425px){
  #hero,
  .chapter,
  #services,
  #identity,
  #process,
  #work,
  #why,
  #testimonials,
  #faq,
  #contact{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  .hero-headline,
  .chapter-headline,
  .identity-headline,
  .process-title,
  .work-title,
  .contact-headline{
    font-size:clamp(28px,10vw,38px)!important;
    line-height:1.14!important;
    overflow-wrap:normal;
  }

  .why-item-title,
  .pillar-title,
  .case-name{
    font-size:clamp(16px,5vw,20px);
  }

  .why-item-text,
  .pillar-text,
  .case-detail,
  .faq-answer p{
    font-size:14px;
    line-height:1.75;
  }

  .ecosystem{
    width:min(100%,288px)!important;
    height:288px!important;
  }
}

@media (max-width:375px){
  .site-footer{
    padding-inline:16px;
  }
  .site-footer .footer-social a{
    width:36px;
    height:36px;
  }
}

/* FINAL HOME PAGE POLISH */
.nav-logo-text{
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:.14em;
}

/* Keep chapter content readable even if scroll animations are skipped on mobile or reduced-motion devices. */
.chapter .chapter-tag,
.chapter .chapter-headline,
.chapter .chapter-body{
  opacity:1;
  transform:none;
}

.growth-intro{
  width:min(920px,100%);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:0 auto 42px;
}
.growth-stat{
  min-height:136px;
  padding:24px 22px;
  border:1px solid rgba(248,249,255,.1);
  border-radius:18px;
  background:linear-gradient(160deg,rgba(79,142,247,.11),rgba(248,249,255,.035));
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  box-shadow:0 18px 54px rgba(0,0,0,.18);
}
.growth-stat-num{
  font-family:'Inter',sans-serif;
  font-size:clamp(40px,6vw,68px);
  line-height:.95;
  font-weight:500;
  color:var(--white);
  letter-spacing:0;
}
.growth-stat-num span{
  color:var(--blue);
  font-size:.58em;
}
.growth-stat-label{
  margin-top:18px;
  color:rgba(248,249,255,.66);
  font-size:13px;
  line-height:1.45;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.chapter{
  overflow:hidden;
}
.chapter--right .chapter-inner,
.chapter--left .chapter-inner{
  grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);
  gap:clamp(36px,7vw,88px);
}
.chapter--left .chapter-inner{
  grid-template-columns:minmax(300px,.9fr) minmax(0,1fr);
}
.chapter-content{
  min-width:0;
}
.chapter--right .chapter-content,
.chapter--left .chapter-content{
  max-width:620px;
}
.chapter--left .chapter-content{
  justify-self:end;
}
.chapter-visual{
  width:100%;
}

#contact .contact-form{
  opacity:1;
  transform:none;
}

/* Footer and contact email links must stay on one line on narrow screens. */
.site-footer .footer-list a[href^="mailto:"],
.contact-detail-card a[href^="mailto:"],
.contact-detail-text a[href^="mailto:"],
.contact-action small{
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:keep-all;
  font-size:clamp(12px,1vw,13px);
}

/* Thank-you page shares the static Hostinger deployment flow after FormSubmit redirects. */
.thank-you-page{
  min-height:72vh;
  display:grid;
  place-items:center;
  padding:140px 20px 80px;
}

.thank-you-panel{
  width:min(760px,100%);
  padding:clamp(28px,5vw,56px);
  border:1px solid rgba(18,41,76,.12);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(247,250,255,.94));
  box-shadow:0 28px 80px rgba(18,41,76,.12);
  text-align:center;
}

.thank-you-panel h1{
  margin:0 0 16px;
  font-size:clamp(34px,7vw,68px);
  line-height:.95;
  color:var(--navy);
}

.thank-you-panel p{
  margin:0 auto 28px;
  max-width:540px;
  color:var(--muted);
  font-size:clamp(16px,2vw,19px);
  line-height:1.7;
}

.thank-you-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

@media (max-width:900px){
  .growth-intro{
    grid-template-columns:1fr;
    gap:14px;
    margin-bottom:32px;
  }
  .growth-stat{
    min-height:112px;
  }
  .chapter--right .chapter-inner,
  .chapter--left .chapter-inner{
    grid-template-columns:1fr;
    gap:30px;
  }
  .chapter--left .chapter-content{
    justify-self:start;
  }
  .chapter-content,
  .chapter-headline,
  .chapter-body{
    text-align:left!important;
  }
  .chapter-tag,
  .section-divider{
    margin-left:0!important;
    margin-right:0!important;
  }
  .viz-canvas{
    min-height:240px;
  }
}

@media (max-width:425px){
  .growth-stat{
    padding:20px 18px;
  }
  .growth-stat-label{
    font-size:12px;
  }
  .site-footer .footer-list a[href^="mailto:"],
  .contact-detail-card a[href^="mailto:"],
  .contact-detail-text a[href^="mailto:"],
  .contact-action small{
    font-size:12px;
  }
  .thank-you-actions .cta-button,
  .thank-you-actions .ghost-button{
    width:100%;
    justify-content:center;
  }
}

/* FINAL DEPLOYMENT RESPONSIVE PATCH
   Keep this section at the end so it wins over older mobile rules in styles.css and earlier fixes. */
.nav-logo{
  min-width:0;
  max-width:calc(100vw - 108px);
}

.nav-logo-text{
  display:inline-flex!important;
  max-width:42vw;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--blue);
}

/* Home contact section: switch to a clean single-column form before the layout starts squeezing. */
@media (max-width:900px){
  #contact{
    min-height:auto;
    padding:86px 20px 78px;
    align-items:flex-start;
    overflow:hidden;
  }

  #contact .contact-inner{
    display:grid;
    grid-template-columns:1fr;
    gap:34px;
    width:100%;
    max-width:640px;
  }

  #contact .contact-copy,
  #contact .contact-form{
    width:100%;
    min-width:0;
  }

  #contact .contact-headline,
  #contact .contact-sub{
    max-width:none;
  }

  #contact .form-row{
    grid-template-columns:1fr;
    gap:0;
    margin-bottom:0;
  }

  #contact .form-field{
    min-width:0;
  }

  #contact .form-field input,
  #contact .form-field select,
  #contact .form-field textarea{
    min-height:52px;
    border-radius:16px;
  }

  #contact .form-field textarea{
    min-height:150px;
  }

  #contact .form-submit{
    width:100%;
    min-height:56px;
    white-space:normal;
    line-height:1.25;
  }

  #identity{
    text-align:center;
    align-items:center;
  }

  #identity .chapter-tag,
  #identity .identity-headline,
  #identity .about-copy{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* Contact page: equal cards, stable form controls, and no horizontal overflow on mobile. */
.contact-layout,
.contact-hero{
  width:100%;
  min-width:0;
}

.contact-info-panel,
.contact-form-panel{
  min-width:0;
}

.contact-details-grid{
  align-items:stretch;
}

.contact-detail-card{
  height:100%;
}

.contact-form,
.contact-form .form-row,
.contact-form .form-field{
  min-width:0;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  max-width:100%;
}

@media (max-width:640px){
  .contact-page .contact-hero,
  .contact-page .contact-layout{
    gap:22px;
  }

  .contact-quick-actions{
    grid-template-columns:1fr!important;
  }

  .contact-action{
    align-items:flex-start;
    text-align:left;
  }

  .contact-detail-card{
    min-height:auto;
    padding:20px;
  }

  .contact-form-panel .contact-form{
    gap:14px;
  }

  .contact-form .form-submit{
    width:100%;
    align-self:stretch;
  }
}

/* Footer: left-align text sections on mobile, center only the social icon row under its heading. */
.site-footer .footer-social{
  justify-content:flex-start;
}

@media (max-width:520px){
  .site-footer{
    padding:54px 22px 76px;
  }

  .site-footer .footer-main{
    gap:28px!important;
  }

  .site-footer .footer-main > section{
    width:100%;
  }

  .site-footer .footer-logo{
    justify-content:flex-start;
  }

  .site-footer .footer-social{
    justify-content:flex-start;
    width:auto;
    max-width:none;
  }

  .site-footer .footer-bottom{
    width:100%;
    align-items:flex-start;
    text-align:left;
    padding-bottom:8px;
  }

  .site-footer .footer-bottom p{
    max-width:100%;
    overflow-wrap:normal;
  }
}

@media (max-width:360px){
  .nav-logo-img{
    width:50px!important;
  }

  .nav-logo-text{
    max-width:40vw;
    font-size:10px!important;
    letter-spacing:.06em!important;
  }

  #contact{
    padding-inline:16px;
  }
}

/* FINAL HOME PAGE RESPONSIVE PATCH
   This is the home-page safety layer for 320px-1024px screens. Keep it last so it overrides older desktop rules. */
#hero,
.chapter,
#services,
#identity,
#process,
#work,
#why,
#testimonials,
#faq,
#contact{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

#why .why-inner,
#services .chapter-inner,
#identity .pillars,
#process .process-steps,
#work .case-studies,
#contact .contact-inner{
  min-width:0;
}

/* Why Mikid cards: desktop grid becomes tablet/mobile stacks without clipped cards. */
#why .why-grid{
  min-width:0;
  width:100%;
}

#why .why-item{
  min-width:0;
  height:100%;
  overflow-wrap:break-word;
  opacity:1;
  transform:none;
}

@media (max-width:1024px){
  #why{
    min-height:auto;
    padding:96px clamp(22px,5vw,48px);
  }

  #why .why-inner{
    grid-template-columns:1fr;
    gap:42px;
    align-items:start;
  }

  #why .why-copy{
    max-width:720px;
  }

  #why .why-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  #why .why-item{
    border:1px solid rgba(248,249,255,.08);
    border-radius:18px;
    padding:30px 26px;
  }
}

@media (max-width:640px){
  #hero{
    min-height:auto;
    padding:112px 18px 70px;
  }

  .hero-headline{
    font-size:clamp(36px,12vw,54px);
    max-width:100%;
  }

  .hero-sub{
    max-width:100%;
  }

  .hero-actions{
    width:100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost{
    width:100%;
    max-width:none;
    justify-content:center;
    white-space:normal;
  }

  .hero-metrics{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    width:100%;
  }

  .metric{
    width:100%;
    min-width:0;
    padding:18px;
    border:1px solid rgba(248,249,255,.08);
    border-radius:18px;
    background:rgba(248,249,255,.03);
  }

  .chapter,
  #services,
  #identity,
  #process,
  #work,
  #why,
  #testimonials,
  #faq{
    padding:76px 18px!important;
  }

  .chapter-headline,
  .identity-headline,
  .process-title,
  .work-title,
  .testi-title{
    font-size:clamp(30px,9vw,42px);
    line-height:1.12;
  }

  .chapter-body,
  .about-copy,
  .work-sub{
    font-size:15px;
    line-height:1.75;
  }

  #services .chapter-inner{
    display:grid;
    grid-template-columns:1fr;
    gap:28px;
  }

  .services-copy{
    padding-left:0;
    max-width:none;
    width:100%;
  }

  .ecosystem{
    width:min(100%,340px);
    height:340px;
    margin:0 auto;
  }

  .eco-center{
    width:104px;
    height:104px;
  }

  .eco-icon{
    width:44px;
    height:44px;
    border-radius:14px;
  }

  .eco-label{
    max-width:76px;
    white-space:normal;
    font-size:9px;
    line-height:1.25;
  }

  .pillars,
  .process-steps,
  .case-studies{
    grid-template-columns:1fr!important;
    display:grid!important;
    gap:16px!important;
    width:100%;
  }

  .pillar,
  .step,
  .case{
    width:100%;
    min-width:0;
    opacity:1;
    transform:none;
  }

  .pillar{
    padding:30px 22px;
    border-radius:18px;
  }

  .pillar-num{
    font-size:52px;
    margin-bottom:18px;
  }

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

  .step{
    align-items:flex-start;
    text-align:left;
    padding:22px;
    border:1px solid rgba(248,249,255,.08);
    border-radius:18px;
    background:rgba(248,249,255,.025);
  }

  .case,
  .case:nth-child(1),
  .case:nth-child(2),
  .case:nth-child(3){
    grid-column:auto;
    grid-row:auto;
    border-radius:18px;
  }

  .case-bg,
  .case:nth-child(3) .case-bg{
    height:210px;
  }

  .case-content{
    padding:24px 20px;
  }

  #why .why-grid{
    grid-template-columns:1fr;
  }

  #why .why-item{
    padding:24px 20px;
  }

  #testimonials{
    min-height:auto;
  }

  .testi-title{
    margin-bottom:34px;
  }

  .testi-card{
    width:min(300px,82vw);
    padding:34px 24px;
  }

  #faq{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}

@media (max-width:380px){
  .ecosystem{
    width:min(100%,300px);
    height:300px;
  }

  .eco-center{
    width:92px;
    height:92px;
  }

  .eco-icon{
    width:38px;
    height:38px;
  }

  .eco-label{
    display:none;
  }

  #why .why-item,
  .pillar,
  .step,
  .case-content{
    padding:20px 16px;
  }
}

/* FINAL HOME PAGE CARD RESPONSIVE OVERRIDE
   Future developers: keep these rules last if new homepage sections/cards are added. */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

main,
section,
.chapter-inner,
.why-inner,
.why-grid,
.pillars,
.process-steps,
.case-studies,
.faq-section,
.contact-inner{
  max-width:100%;
}

.why-item,
.pillar,
.step,
.case,
.faq-item,
.metric,
.growth-stat,
.contact-form,
.contact-copy{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.why-item-title,
.why-item-text,
.pillar-title,
.pillar-text,
.case-name,
.case-detail,
.faq-question,
.faq-answer p{
  overflow-wrap:break-word;
}

@media (max-width:1024px){
  /* Why Mikid cards become a true single-column stack on tablet and mobile. */
  #why{
    padding:82px clamp(18px,4vw,40px)!important;
  }

  #why .why-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:30px!important;
    width:100%!important;
    max-width:760px!important;
    margin-inline:auto!important;
  }

  #why .why-copy{
    width:100%;
    max-width:640px;
  }

  #why .why-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    width:100%!important;
    min-width:0!important;
  }

  #why .why-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:24px 20px;
    border:1px solid rgba(248,249,255,.08);
    border-radius:18px;
    background:rgba(248,249,255,.035);
    opacity:1!important;
    transform:none!important;
  }
}

@media (max-width:520px){
  /* Full homepage mobile pass: every major repeated layout stacks cleanly. */
  .hero-metrics,
  .growth-intro,
  .pillars,
  .process-steps,
  .case-studies,
  .why-grid,
  .contact-form .form-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }

  .chapter,
  #services,
  #identity,
  #process,
  #work,
  #why,
  #testimonials,
  #faq,
  #contact{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  .chapter-headline br,
  .identity-headline br,
  .contact-headline br{
    display:none;
  }

  .chapter-headline,
  .identity-headline,
  .process-title,
  .work-title,
  .contact-headline{
    max-width:100%;
    font-size:clamp(28px,10vw,40px)!important;
    line-height:1.12!important;
  }

  .chapter-body,
  .about-copy,
  .contact-sub{
    max-width:100%;
    font-size:15px;
    line-height:1.75;
  }

  .why-item,
  .pillar,
  .step,
  .case-content,
  .faq-item{
    width:100%;
    padding-left:18px!important;
    padding-right:18px!important;
  }

  .faq-question{
    align-items:flex-start;
    gap:14px;
  }
}

/* FINAL HOMEPAGE CHAPTER MOBILE LOCK
   Keep this at EOF: chapter line breaks must stay visible so words do not merge on phones. */
@media (max-width:768px){
  .chapter{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  .chapter-inner,
  .chapter-content,
  .chapter-visual{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .chapter--right .chapter-inner,
  .chapter--left .chapter-inner,
  .chapter--center .chapter-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:28px!important;
    direction:ltr!important;
  }

  .chapter-headline{
    width:100%!important;
    max-width:100%!important;
    font-size:clamp(32px,9.4vw,42px)!important;
    line-height:1.16!important;
    letter-spacing:0!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  .chapter-headline br{
    display:block!important;
  }

  .chapter-headline em{
    display:inline!important;
  }

  .chapter-body{
    width:100%!important;
    max-width:100%!important;
    font-size:15px!important;
    line-height:1.78!important;
    overflow-wrap:break-word!important;
  }

  .viz-canvas{
    width:100%!important;
    max-width:100%!important;
    min-height:220px!important;
    height:240px!important;
  }
}

@media (max-width:380px){
  .chapter-headline{
    font-size:clamp(30px,9vw,36px)!important;
  }

  .chapter-tag{
    letter-spacing:.18em!important;
    font-size:10px!important;
  }
}

/* FINAL HOW WE WORK RESPONSIVE LOCK - TRUE EOF
   Process timeline becomes compact cards on mobile/tablet. Keep this as the last process override. */
@media (max-width:900px){
  #process{
    min-height:auto!important;
    padding:80px 16px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
  }

  #process .chapter-tag{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  #process .process-title{
    width:100%!important;
    max-width:360px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
    font-size:clamp(34px,10vw,44px)!important;
    line-height:1.12!important;
    letter-spacing:0!important;
    opacity:1!important;
    transform:none!important;
  }

  #process .process-steps{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    width:100%!important;
    max-width:440px!important;
    margin:34px auto 0!important;
    padding:0!important;
    position:relative!important;
  }

  #process .process-steps::before{
    display:none!important;
  }

  #process .step{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    align-items:center!important;
    gap:16px!important;
    text-align:left!important;
    padding:18px!important;
    border:1px solid rgba(248,249,255,.1)!important;
    border-radius:22px!important;
    background:rgba(248,249,255,.035)!important;
    opacity:1!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  #process .step-dot{
    width:56px!important;
    height:56px!important;
    margin:0!important;
  }

  #process .step-name{
    margin:0 0 4px!important;
    font-size:16px!important;
    line-height:1.25!important;
  }

  #process .step-desc{
    margin:0!important;
    font-size:13px!important;
    line-height:1.6!important;
    overflow-wrap:break-word!important;
  }
}

@media (max-width:360px){
  #process .step{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:12px!important;
    padding:16px!important;
  }

  #process .step-dot{
    width:48px!important;
    height:48px!important;
  }
}
