/*
 * Site Architect 2.4.0 | Mobile-first visual finishing layer.
 * The homepage art is decorative; all text, buttons and forms remain real HTML.
 * Never modify score calculations, scan endpoints or result components here.
 */
@media (max-width: 760px) {
  :root { --sa-mobile-gutter: clamp(18px, 5.2vw, 32px); }
  html { scroll-padding-top: 84px; }
  body { overflow-x: clip; }
  .shell { width: calc(100% - 2 * var(--sa-mobile-gutter)); max-width: 640px; }
  .homepage .section-pad { padding: 59px 0; }
  .homepage h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.13; letter-spacing: -.045em; }
  .homepage .eyebrow { font-size: .68rem; letter-spacing: .16em; }
  .homepage .section-intro > p, .homepage .center-heading > p { font-size: .94rem; line-height: 1.63; }
  .homepage .btn { min-height: 50px; border-radius: 12px; white-space: normal; line-height: 1.2; }

  /* 01: Header - the logo, menu and dropdown all fit on narrow phones. */
  .site-header { height: 72px; position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.98); border-bottom: 1px solid #d9e7f6; box-shadow: 0 3px 15px rgba(15,47,87,.06); }
  .site-header .header-inner { gap: 10px; }
  .site-header .site-brand { min-width: 0; gap: 9px; }
  .site-header .brand-symbol { width: 31px; transform: scale(.95); flex-shrink: 0; }
  .site-header .brand-name { font-size: clamp(1.15rem, 5.15vw, 1.43rem); line-height: 1.1; letter-spacing: -.056em; }
  .site-header .sa-brand-tagline { font-size: clamp(.43rem, 1.7vw, .54rem); letter-spacing: .14em; margin-top: 3px; }
  .site-header .brand-custom-logo { max-width: min(62vw, 245px); max-height: 54px; }
  .site-header .mobile-menu-toggle { width: 46px; height: 46px; border: 1px solid #c6dbf3; background: linear-gradient(150deg,#fff,#eaf3ff); border-radius: 12px; box-shadow: 0 5px 13px rgba(12,75,151,.07); }
  .site-header .nav-links { top: 72px; display: none; align-items: stretch; gap: 0; padding: 14px var(--sa-mobile-gutter) 22px; max-height: calc(100dvh - 72px); overflow-y: auto; background: #fff; box-shadow: 0 22px 34px rgba(9,38,74,.16); border-bottom: 1px solid #c9dbed; white-space: normal; }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links > a, .site-header .nav-links .menu-item > a, .site-header .sa-nav-details summary { display: flex; align-items: center; min-height: 45px; width: 100%; padding: 11px 6px; color: #153158; font-size: .96rem; font-weight: 730; border-bottom: 1px solid #eaf1fb; }
  .site-header .sa-nav-details { padding: 0; }
  .site-header .sa-nav-details summary { justify-content: space-between; }
  .site-header .sa-nav-flyout > a { white-space: normal; font-size: .86rem; padding: 11px; }
  .site-header .header-actions .nav-primary { display: none; }

  /* 02: One continuous navy architectural scene; never a tiny photo card. */
  .homepage .home-hero {
    color: #fff;
    background: radial-gradient(ellipse at 100% 64%,rgba(10,104,207,.35),transparent 58%), linear-gradient(158deg,#07172e 0%,#0b2952 48%,#093f75 100%);
    border: 0;
    position: relative;
    overflow: hidden;
  }
  .homepage .home-hero::after { display: none; }
  .homepage .hero-grid-bg { opacity: .26; mask-image: none; background-size: 34px 34px; background-image: linear-gradient(rgba(150,212,255,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(150,212,255,.17) 1px,transparent 1px); }
  .homepage .home-hero .hero-shell { width: 100%; max-width: none; display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; }
  .homepage .home-hero .hero-copy { position: relative; z-index: 2; width: 100%; max-width: 660px; margin-inline: auto; padding: 44px var(--sa-mobile-gutter) 0; }
  .homepage .hero-eyebrow { color: #aedaff; font-size: .65rem; font-weight: 800; letter-spacing: .135em; line-height: 1.4; margin-bottom: 22px; }
  .homepage .hero-eyebrow::before { width: 23px; background: #4ab8ff; }
  .homepage .hero-copy h1 { color: #fff; font-size: clamp(2.55rem,10.4vw,4.5rem); line-height: 1.055; letter-spacing: -.056em; font-weight: 850; margin: 0 0 18px; max-width: 15ch; text-wrap: balance; }
  .homepage .hero-copy h1 br { display: none; }
  .homepage .hero-copy h1 > span { color: #55c8ff; }
  .homepage .hero-copy > p { max-width: 33rem; color: #d7e8fd; font-size: clamp(.95rem,3.8vw,1.07rem); line-height: 1.6; margin: 0 0 24px; }
  .homepage .hero-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 450px; }
  .homepage .hero-buttons .btn { width: 100%; min-width: 0; min-height: 51px; font-size: .93rem; padding: 13px 17px; gap: 13px; justify-content: center; border-radius: 12px; white-space: normal; }
  .homepage .home-hero .hero-buttons .btn-primary { background: linear-gradient(120deg,#0874ff,#0956df); color: #fff; border: 1px solid #167df7; box-shadow: 0 12px 24px rgba(0,54,153,.28); }
  .homepage .home-hero .hero-buttons .btn-soft { color: #f7fbff; border-color: rgba(189,220,255,.7); background: rgba(255,255,255,.095); box-shadow: none; }
  .homepage .hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 20px 0 0; }
  .homepage .hero-ticks > span { color: #e3f0ff; font-size: .72rem; line-height: 1.3; font-weight: 670; white-space: normal; }
  .homepage .hero-ticks b { color: #55d7b5; }
  .homepage .hero-local-link { margin: 12px 0 0; color: #a9d8ff; font-size: .78rem; line-height: 1.5; text-decoration-color: rgba(175,221,255,.55); }
  .homepage .home-hero .hero-visual {
    width: 100%; max-width: none; flex: none; min-height: 0; height: clamp(242px, 78vw, 370px); max-height: none;
    margin: 10px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
    background-color: #0d3a6d;
    background-image: linear-gradient(180deg,#0a2c56 0%,rgba(10,44,86,.68) 10%,transparent 44%,rgba(6,28,56,.17) 86%,rgba(6,28,56,.58) 100%),var(--sa-hero-mobile);
    background-size: cover; background-position: center center; overflow: hidden;
    transform: none; isolation: isolate;
  }
  .homepage .home-hero .hero-visual::before { display: none; }
  .homepage .home-hero .hero-visual::after { content: ''; position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: inset 0 -18px 30px rgba(8,33,65,.24); pointer-events:none; }
  .homepage .home-hero .hero-visual > img, .homepage .home-hero .hero-visual .hero-art-label { display: none; }

  /* 03: Four compact strengths instead of an overly long mobile list. */
  .homepage .strength-bar { border: 0; background: linear-gradient(180deg,#f0f7ff,#fff); }
  .homepage .strength-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 22px 0 7px; }
  .homepage .strength-item, .homepage .strength-item:nth-child(3) { display: flex; align-items: flex-start; flex-direction: row; min-width: 0; gap: 9px; padding: 13px 10px!important; background: #fff; border: 1px solid #dbe9f8; border-radius: 14px; box-shadow: 0 7px 17px rgba(20,78,142,.06); }
  .homepage .strength-icon { flex: 0 0 31px; width: 31px; height: 31px; display:grid;place-items:center; background: #eaf4ff; border: 1px solid #d8eafa; border-radius: 9px; }
  .homepage .strength-icon svg { width: 19px; height: 19px; }
  .homepage .strength-item h2 { color: #102b50; font-size: .80rem; line-height:1.28; margin: 1px 0 4px; }
  .homepage .strength-item p { color: #5d728a; font-size: .7rem; line-height:1.42; margin: 0; }

  /* 04: Consistent editorial headings and one clear swipeable project. */
  .homepage .portfolio-layout, .homepage .process-grid, .homepage .configurator-grid, .homepage .pricing-layout { grid-template-columns: minmax(0,1fr); }
  .homepage .portfolio-layout { gap: 22px; }
  .homepage .portfolio-home .section-intro { max-width:none; text-align: center; }
  .homepage .portfolio-home .eyebrow, .homepage .process-section .eyebrow { justify-content: center; }
  .homepage .portfolio-home .section-intro h2, .homepage .process-grid .section-intro h2 { max-width: 22ch; margin-left: auto; margin-right: auto; font-size: clamp(1.9rem,7.2vw,2.5rem); }
  .homepage .portfolio-home .section-intro > p { margin-inline:auto; }
  .homepage .portfolio-home .section-intro .text-link { justify-content: center; }
  .homepage .portfolio-scroller { min-width:0; width:100%; margin-right:0; }
  .homepage .project-carousel { display:flex; overflow-x:auto; gap:14px; padding: 9px 6px 20px; scroll-snap-type:x mandatory; }
  .homepage .project-card { flex: 0 0 min(83%,340px); min-width: 0; }
  .homepage .project-link { display:block; height:100%; background:#fff; border:1px solid #dce7f6; border-radius:17px; padding: 10px 7px 15px; box-shadow:0 10px 24px rgba(16,61,119,.1); }
  .homepage .project-machine { height: 190px; padding-bottom: 15px; }
  .homepage .project-browser { height:162px; }
  .homepage .project-caption { padding: 4px 10px 0; }
  .homepage .project-caption h3 { font-size: 1rem; }
  .homepage .carousel-controls { justify-content:center; }

  /* 05: Scan still uses exactly the original fields, no extra reports. */
  .homepage .scan-section { padding: 51px 0 54px; }
  .homepage .scan-layout { display:flex; flex-direction:column; gap:22px; align-items:stretch; }
  .homepage .scan-copy { padding:0; }
  .homepage .scan-copy h2 { font-size:clamp(1.95rem,7.3vw,2.65rem); max-width: 18ch; }
  .homepage .scan-copy p { font-size:.92rem; line-height:1.6; }
  .homepage .scan-form { display:flex; flex-direction:column; margin:20px 0 9px; gap:10px; }
  .homepage .scan-form input, .homepage .scan-form button { width:100%; min-height:51px; flex: 0 0 auto; border-radius:12px; }
  .homepage .scan-form button {white-space:normal;}
  .homepage .scan-panel { width:100%; min-width:0; padding:19px 16px 16px; margin:0; transform:none; border-radius:18px; box-shadow:0 16px 35px rgba(0,15,35,.18); }
  .homepage .scan-panel:before { display:none; }
  .homepage .scan-score-area { display:grid; grid-template-columns:1fr; gap:18px; padding:13px 0 18px; }
  .homepage .scan-gauge { width:146px; }
  .homepage .scan-gauge strong { font-size:2.9rem; }
  .homepage .scan-gauge small { font-size:.91rem; }
  .homepage .scan-row { display:grid;grid-template-columns:minmax(0,122px) minmax(0,1fr) 23px;gap:8px;font-size:.78rem;align-items:center; }
  .homepage .scan-rows { gap:14px; }
  .homepage .scan-details { min-height: 0; }
  .homepage .scan-panel-foot { overflow:hidden; }
  .homepage .scan-keypoints { gap: 6px 14px; }

  /* 06: A readable blueprint roadmap, not five squashed columns. */
  .homepage .process-section { background:linear-gradient(180deg,#f8fbff,#eef6ff); }
  .homepage .process-grid {gap:25px;}
  .homepage .process-section .section-intro {text-align:center;}
  .homepage .process-section .section-intro p { margin-left:auto; margin-right:auto; }
  .homepage .process-section .text-link {justify-content:center;}
  .homepage .process-steps {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0;}
  .homepage .process-steps::before { display:none; }
  .homepage .process-step,.homepage .process-step:nth-child(5) {
    position:relative;display:grid;grid-column:auto;grid-template-columns:45px minmax(0,1fr);grid-template-rows:auto auto;
    column-gap:13px; min-width:0; padding:15px 15px 15px 13px;
    border:1px solid #d9e6f5; border-radius:15px; background:linear-gradient(160deg,#fff,#f7fbff);
    box-shadow:0 8px 21px rgba(22,83,155,.075);
  }
  .homepage .process-num { position:absolute;top:9px;right:13px;left:auto;display:block;width:auto;height:auto;margin:0;border:0;background:transparent;box-shadow:none;color:#2579d8;font-size:.65rem;line-height:1; }
  .homepage .process-icon { grid-column:1;grid-row:1/3;width:44px;height:44px;margin:0;background:#e9f3ff;border:1px solid #d5e7fa;border-radius:12px; }
  .homepage .process-icon svg { width:24px;height:24px; }
  .homepage .process-step h3 {grid-column:2;grid-row:1;margin:1px 25px 4px 0;font-size:1rem;line-height:1.25;}
  .homepage .process-step p {grid-column:2;grid-row:2;margin:0;font-size:.81rem;line-height:1.48;}

  /* 07: Other homepage modules share one rhythm and good touch targets. */
  .homepage .services-grid {grid-template-columns:1fr;gap:12px;}
  .homepage .service-card {min-height:0;padding:20px 19px;border-radius:15px;}
  .homepage .capability-list {gap:8px;}
  .homepage .capability-list button {min-height:46px;}
  .homepage .capability-demo {min-width:0;max-width:100%;transform:none;}
  .homepage .demo-pane {padding:18px 15px;}
  .homepage .demo-pane-head {flex-wrap:wrap;}
  .homepage .configurator-form {min-width:0;padding:18px 15px;border-radius:16px;}
  .homepage .config-options {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  .homepage .config-options label > span {padding:10px 5px;min-height:107px;overflow-wrap:anywhere;}
  .homepage .config-options label strong {font-size:.76rem;}
  .homepage .config-options label small {font-size:.65rem;line-height:1.3;}
  .homepage .config-checks {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .homepage .config-checks label {font-size:.74rem;line-height:1.4;}
  .homepage .config-bottom {display:flex;flex-direction:column;align-items:stretch;gap:12px;}
  .homepage .config-bottom .btn {width:100%;}
  .homepage .pricing-layout {gap:25px;}
  .homepage .sa-home-price-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .homepage .pricing-model {padding:22px 18px;}
  .homepage .pricing-layer:nth-of-type(n) {margin-left:0;}
  .homepage .pricing-section .btn {max-width:100%;}
  .homepage .final-cta {overflow:hidden;}
  .homepage .final-cta-inner {display:flex;flex-direction:column;min-height:0;gap:0;}
  .homepage .final-cta .cta-content {width:100%;max-width:none;padding:56px 0 17px;}
  .homepage .final-cta .cta-content h2 {font-size:clamp(1.98rem,7.5vw,2.75rem);}
  .homepage .final-cta .hero-buttons {display:grid;grid-template-columns:1fr;max-width:480px;gap:10px;}
  .homepage .final-cta .hero-buttons .btn {width:100%;}
  .homepage .final-cta .cta-visual {position:relative;display:block;flex:none;left:auto;right:auto;bottom:auto;width:100%;height:160px;max-width:550px;opacity:.82;margin:0 0 0 auto;overflow:hidden;}
  .homepage .cta-visual > img {position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;max-width:100%;object-fit:contain;object-position:right bottom;}

  /* Footer and generic inner pages. No hero on inner pages. */
  .site-footer {padding-top:45px;}
  .site-footer .footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 17px;}
  .site-footer .footer-about {grid-column:1/-1;}
  .site-footer .footer-grid > div:nth-child(4) {grid-column:1/-1;}
  .site-footer .footer-bottom {padding:20px 0;}
  .sa-page-heading,.page-intro {padding:37px 0 34px;}
  .sa-page-heading h1,.page-intro h1 {font-size:clamp(1.95rem,8vw,2.75rem);text-wrap:balance;}
  .sa-page-heading p,.page-intro p {font-size:.95rem;line-height:1.55;}
  .sa-inner-stack {gap:20px;}
  .sa-inner-page .sa-blue-banner {border-radius:16px;}
  .sa-inner-page .sa-action {border-radius:16px;}
  .sa-inner-page .sa-cap-card,.sa-inner-page .sa-service-tile,.sa-inner-page .sa-price-card {border-radius:15px;}
  .sa-inner-page .sa-contact-form-card {border-radius:16px;}
}

@media (max-width: 359px) {
  .homepage .hero-copy h1 {font-size:clamp(2.12rem,10.2vw,2.52rem);}
  .homepage .hero-eyebrow {font-size:.57rem;letter-spacing:.105em;}
  .homepage .hero-ticks {gap:7px 10px;}
  .homepage .hero-ticks > span {font-size:.67rem;}
  .homepage .strength-items {gap:8px;}
  .homepage .strength-item,.homepage .strength-item:nth-child(3) {gap:7px;padding:11px 8px!important;}
  .homepage .strength-icon {flex-basis:28px;width:28px;height:28px;}
  .homepage .strength-item h2 {font-size:.75rem;}
  .homepage .strength-item p {font-size:.66rem;}
  .homepage .scan-row {grid-template-columns:minmax(0,107px) minmax(0,1fr) 22px;gap:6px;font-size:.72rem;}
  .homepage .scan-panel {padding-inline:14px;}
  .homepage .config-options label small {font-size:.61rem;}
}

@media (prefers-reduced-motion: reduce) {
  .homepage .btn, .homepage .project-browser, .homepage .service-card {transition:none!important;}
}

/* Make the supplied blueprint layers genuinely visible in the final CTA. */
@media (max-width: 760px) {
  .homepage .final-cta .cta-visual { height: 180px; margin-top: 8px; opacity: 1; }
  .homepage .final-cta .cta-visual > img {
    object-fit: cover; object-position: right center;
    mix-blend-mode: normal; opacity: .91;
    mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.5) 15%,#000 35%);
    filter: saturate(1.1) brightness(1.04);
  }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar {scroll-padding-top: 128px;}
}
