/*
 * Site Architect 2.4.0 | homepage, desktop hierarchy and truly responsive layout.
 * Additive styling; does not alter the sitescan's structure, dimensions or logic.
 */
:root {
  --sa-ink: #102749;
  --sa-royal: var(--blue, #1265eb);
  --sa-border: #d9e6f6;
  --sa-soft-shadow: 0 14px 34px rgba(23, 72, 137, .075);
}
body.sa-theme {text-rendering: optimizeLegibility;}
.site-header {
  background: rgba(249, 252, 255, .97);
  border-bottom: 1px solid #e1ebf7;
  box-shadow: 0 3px 20px rgba(17, 64, 119, .025);
}
.site-brand {min-width: 0;}
.sa-brand-lockup {display: flex; flex-direction: column; min-width: 0; line-height: 1;}
.sa-brand-tagline {font-size: .56rem; margin-top: 7px; letter-spacing: .20em; font-weight: 750; color: #426080; white-space: nowrap;}
.site-header .nav-links > a,
.site-header .nav-menu > li > a {font-weight: 710;}
.site-header .header-actions .btn {border-radius: 9px; box-shadow: 0 6px 17px rgba(14, 85, 196, .15);}

/* Desktop hero: preserve the recognizable blueprint photograph, add legible text and deliberate spacing. */
.homepage .home-hero {
  border-bottom: 1px solid #d9e6f6;
  background-color: #f7fbff;
}
.homepage .hero-copy {max-width: 620px;}
.homepage .hero-eyebrow {font-size: .72rem; letter-spacing: .19em; margin-bottom: 22px;}
.homepage .hero-copy h1 {
  color: var(--sa-ink);
  font-size: clamp(3.15rem, 4.18vw, 4.75rem);
  font-weight: 840;
  line-height: 1.085;
  letter-spacing: -.055em;
  text-wrap: balance;
  margin-bottom: 22px;
}
.homepage .hero-copy > p {color: #3c506b; font-size: 1.08rem; line-height: 1.72; max-width: 500px; margin-bottom: 27px;}
.homepage .hero-buttons {gap: 11px;}
.homepage .hero-buttons .btn {min-height: 51px; padding: 13px 20px; border-radius: 10px;}
.homepage .hero-ticks {margin-top: 30px; gap: 11px 20px;}
.homepage .hero-ticks > span {font-size: .79rem; white-space: nowrap;}
.homepage .hero-local-link {margin-top: 19px; font-size: .81rem;}
.homepage .hero-visual {pointer-events: none;}

@media (min-width: 1025px) {
  .homepage .home-hero {
    background-image:
      linear-gradient(90deg, rgba(249,252,255,.99) 0%,rgba(249,252,255,.965) 27%,rgba(246,251,255,.88) 39%,rgba(240,247,255,.18) 67%,rgba(240,247,255,0) 100%),
      var(--sa-hero-background);
    background-size: cover;
    background-position: center center;
  }
  .homepage .home-hero .hero-shell {min-height: 630px; grid-template-columns: minmax(0, 49%) minmax(0, 51%);}
  .homepage .home-hero .hero-copy {padding: 60px 0 65px;}
  .homepage .home-hero .hero-visual {min-height: 0; margin: 0; background: none;}
  .homepage .home-hero .hero-visual::before {display: none;}
}
@media (min-width: 761px) and (max-width: 1024px) {
  .homepage .home-hero {
    background-image:
      linear-gradient(90deg, rgba(248,252,255,.99) 0%,rgba(248,252,255,.94) 37%,rgba(244,250,255,.5) 59%,transparent 100%),
      var(--sa-hero-background);
    background-size: cover;
    background-position: 55% center;
  }
  .homepage .home-hero .hero-shell {min-height: 545px; grid-template-columns: 54% 46%;}
  .homepage .hero-copy {padding: 40px 0;}
  .homepage .hero-copy h1 {font-size: clamp(2.65rem, 4.5vw, 3.5rem);}
  .homepage .hero-copy > p {font-size: .95rem; max-width: 430px;}
  .homepage .hero-visual {min-height: 0; margin: 0;}
  .homepage .hero-visual::before {display: none;}
}

/* Larger screens: more deliberate section rhythm without repetitive card decoration. */
@media (min-width: 1025px) {
  .homepage .section-pad {padding-top: 96px; padding-bottom: 96px;}
  .homepage .portfolio-layout {grid-template-columns: minmax(250px, .3fr) minmax(0, .7fr); gap: 46px;}
  .homepage .process-grid {grid-template-columns: minmax(260px, .29fr) minmax(0, .71fr); gap: 50px;}
}
.homepage .strength-bar {background: #f8fbff;}
.homepage .strength-items {padding: 30px 0;}
.homepage .strength-item {gap: 14px;}
.homepage .strength-icon {display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #d7e7fa; border-radius: 11px; background: #eef5ff;}
.homepage .strength-icon svg {width: 26px; height: 26px;}
.homepage .strength-item h2 {font-size: .91rem;}
.homepage .strength-item p {font-size: .78rem;}
.homepage .section-intro > p {line-height: 1.75;}
.homepage .portfolio-home {background: linear-gradient(180deg,#fff 0%,#f8fbff 100%);}
.homepage .project-carousel {padding-bottom: 30px;}
.homepage .project-caption {padding-top: 8px;}
.homepage .project-browser {box-shadow: 5px 19px 27px rgba(27,60,112,.19), inset 0 0 0 1px rgba(255,255,255,.45);}
.homepage .carousel-controls button {width: 40px; height: 40px;}
.homepage .services-grid {gap: 19px;}
.homepage .service-card {
  background: linear-gradient(155deg,#fff 25%,#f8fbff 100%);
  border: 1px solid #dae7f6;
  box-shadow: var(--sa-soft-shadow);
  border-radius: 17px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.homepage .service-card:hover {border-color: #a5caef; transform: translateY(-4px); box-shadow: 0 19px 37px rgba(23,72,137,.12);}
.homepage .process-section {
  background:
    linear-gradient(90deg,rgba(15,94,210,.027) 1px,transparent 1px),
    linear-gradient(rgba(15,94,210,.027) 1px,transparent 1px),
    linear-gradient(180deg,#fff,#f6faff);
  background-size: 42px 42px, 42px 42px, auto;
}
.homepage .process-steps {gap: 16px;}
.homepage .process-steps::before {background: #b5cff1; top: 66px;}
.homepage .process-step {padding: 10px 0 7px;}
.homepage .process-icon {border-radius: 13px; width: 57px; height: 57px; background: #edf5ff;}
.homepage .process-step h3 {font-size: 1rem; line-height: 1.3;}
.homepage .process-step p {line-height: 1.6;}
.homepage .center-heading h2 {text-wrap: balance;}
.homepage .pricing-section {background: linear-gradient(180deg,#fff,#f8fbff);}
.homepage .final-cta {overflow:hidden;}
.homepage .cta-content h2 {text-wrap: balance;}

/* Mobile hero: NEVER treat the wide desktop scene as a full-bleed crop. */
@media (max-width: 760px) {
  .site-header {height: 70px;}
  .site-header .header-inner {gap: 10px;}
  .site-header .brand-name {font-size: clamp(1.07rem,4.6vw,1.26rem);}
  .site-header .sa-brand-tagline {font-size: .46rem;letter-spacing:.115em; margin-top: 5px;}
  .site-header .brand-custom-logo {max-width: min(62vw,230px); max-height: 51px;}
  .site-header .mobile-menu-toggle {margin-left:auto; width:44px;height:44px;}
  .site-header .nav-links {top:70px; left:0;right:0; padding:12px 5% 20px; max-height: calc(100dvh - 70px); overflow-y:auto; border-bottom:1px solid #c7dbf3;}
  .site-header .nav-links.open {box-shadow: 0 18px 28px rgba(17,51,96,.15);}
  .homepage .section-pad {padding: 57px 0;}
  .homepage .home-hero {
    background: linear-gradient(160deg,#fbfdff 0%,#f0f7ff 70%,#f4f9ff 100%);
  }
  .homepage .home-hero:after {display:none;}
  .homepage .hero-grid-bg {mask-image:none; opacity:.4; background-size:36px 36px;}
  .homepage .home-hero .hero-shell {display:flex; flex-direction:column; min-height:0; align-items:stretch; gap:0;}
  .homepage .hero-copy {max-width:none; width:100%; padding: 38px 0 19px;}
  .homepage .hero-eyebrow {font-size:.65rem; margin-bottom:15px; letter-spacing:.16em;}
  .homepage .hero-copy h1 {
    font-size: clamp(2.04rem, 8.6vw, 3.55rem);
    line-height:1.095;
    letter-spacing:-.051em;
    max-width:600px;
    margin-bottom: 17px;
    text-wrap: balance;
  }
  .homepage .hero-copy h1 br {display:none;}
  .homepage .hero-copy > p {font-size:.95rem;line-height:1.62;margin-bottom:19px;max-width:570px;}
  .homepage .hero-buttons {gap:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .homepage .hero-buttons .btn {min-width:0; width:100%; min-height:49px; padding:10px 11px; gap:8px; font-size:.78rem; white-space:normal; line-height:1.26;}
  .homepage .hero-ticks {margin-top:17px;gap:7px 15px;}
  .homepage .hero-ticks > span {font-size:.72rem;white-space:normal;}
  .homepage .hero-local-link {margin-top:12px;font-size:.75rem;}
  .homepage .home-hero .hero-visual {
    display:block;
    flex:none;
    position:relative;
    width:100%;
    min-height:0;
    height:auto;
    aspect-ratio: 1.73;
    max-height:280px;
    margin: 3px 0 27px;
    border:1px solid #b8d7f6;
    border-radius:16px;
    overflow:hidden;
    background-image:var(--sa-hero-mobile);
    background-color:#cbe5ff;
    background-size:cover;
    background-position:center;
    box-shadow:0 16px 31px rgba(17,84,155,.13);
    isolation:isolate;
  }
  .homepage .hero-visual::after {content:'';position:absolute;inset:0;pointer-events:none;border:1px solid rgba(255,255,255,.4);border-radius:inherit;}
  .homepage .hero-visual::before,
  .homepage .hero-visual > img,
  .homepage .hero-visual .hero-art-label {display:none;}
  .homepage .strength-items {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; padding:20px 0;}
  .homepage .strength-item,
  .homepage .strength-item:nth-child(3) {display:flex;align-items:flex-start;gap:9px;min-width:0;padding:10px!important;border:1px solid #e0eafa;border-radius:12px;background:#fff;}
  .homepage .strength-icon {flex:none;width:32px;height:32px;border-radius:9px;}
  .homepage .strength-icon svg {width:20px;height:20px;}
  .homepage .strength-item h2 {font-size:.78rem;line-height:1.3;margin:0 0 3px;}
  .homepage .strength-item p {font-size:.68rem;line-height:1.4;}
  .homepage .portfolio-layout {gap:17px;}
  .homepage .portfolio-scroller {margin-right:-5vw;}
  .homepage .project-card {flex:0 0 min(76vw,310px);min-width:0;}
  .homepage .portfolio-home .section-intro h2,
  .homepage .process-grid .section-intro h2 {font-size:clamp(1.85rem,6.5vw,2.6rem);}
  .homepage .process-grid {display:grid;grid-template-columns:1fr;gap:24px;}
  .homepage .process-steps {display:grid;grid-template-columns:1fr;gap:0;padding:0 0 0 18px;}
  .homepage .process-steps::before {display:block;left:0;right:auto;top:22px;bottom:22px;width:2px;height:auto;background:#c6daf4;}
  .homepage .process-step,
  .homepage .process-step:nth-child(5) {grid-column:auto;display:grid;grid-template-columns:47px minmax(0,1fr);grid-template-rows:auto auto;column-gap:13px;min-width:0;padding:13px 10px 13px 18px;border-bottom:1px solid #e0eaf7;}
  .homepage .process-step:last-child {border-bottom:0;}
  .homepage .process-num {position:absolute;left:-26px;top:29px;z-index:2;width:17px;height:17px;margin:0;border:3px solid #fff;background:var(--sa-royal);border-radius:50%;font-size:0;box-shadow:0 0 0 1px #b1d0f5;}
  .homepage .process-icon {grid-row:1/3;grid-column:1;align-self:start;width:44px;height:44px;margin:0;border-radius:10px;}
  .homepage .process-icon svg {width:23px;height:23px;}
  .homepage .process-step h3 {grid-row:1;grid-column:2;font-size:.98rem;margin:1px 0 4px;}
  .homepage .process-step p {grid-row:2;grid-column:2;line-height:1.52;font-size:.8rem;}
  .homepage .services-grid {gap:12px;}
  .homepage .service-card {min-height:0;padding:22px;}
  .homepage .final-cta-inner {display:flex;flex-direction:column;min-height:0;gap:0;}
  .homepage .final-cta .cta-content {width:100%;padding:49px 0 22px;}
  .homepage .cta-content h2 {font-size:clamp(1.98rem,7vw,2.65rem);}
  .homepage .final-cta .cta-visual {position:relative;display:block;flex:none;left:auto;right:auto;bottom:auto;height:142px;width:min(100%,420px);align-self:flex-end;opacity:.88;margin:-8px -3% 0 auto;overflow:hidden;}
  .homepage .cta-visual>img {position:absolute;inset:0;width:100%;min-width:0;max-width:100%;height:100%;object-fit:contain;object-position:bottom right;}
}
@media (max-width: 460px) {
  .homepage .hero-copy {padding-top:30px;}
  .homepage .hero-copy h1 {font-size:clamp(2rem,9vw,2.55rem);}
  .homepage .hero-buttons {grid-template-columns:1fr;}
  .homepage .hero-buttons .btn {font-size:.88rem;min-height:48px;}
  .homepage .hero-ticks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 9px;}
  .homepage .hero-ticks > span {font-size:.7rem;}
  .homepage .home-hero .hero-visual {aspect-ratio:1.8;max-height:215px;margin-bottom:23px;border-radius:13px;}
  .homepage .strength-items {gap:8px;}
  .homepage .strength-item {gap:7px;padding:9px!important;}
  .homepage .strength-item h2 {font-size:.75rem;}
  .homepage .strength-item p {font-size:.66rem;}
  .homepage .services-grid {grid-template-columns:1fr;}
  .homepage .final-cta .hero-buttons {grid-template-columns:1fr;}
  .homepage .final-cta .cta-visual {height:116px;}
}
@media (max-width: 350px) {
  .site-header .brand-name {font-size:1.02rem;}
  .site-header .sa-brand-tagline {font-size:.43rem;}
  .homepage .hero-copy h1 {font-size:2rem;}
  .homepage .strength-item {flex-direction:column;}
  .homepage .hero-ticks {grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce) {
  .homepage .service-card {transition:none;}
}
