/* VISTRUBA v1.9 — responsive refinements only.
   Preserves original illustrations, palette, copy, pages and Worker API.
   Loaded last to resolve collisions between older CSS breakpoint definitions. */
:root { --site-gutter: clamp(16px, 3.3vw, 66px); }
html { scroll-padding-top: 88px; }
body { overflow-x: clip; }
.wrap { width: min(calc(100% - 2 * var(--site-gutter)), 1660px); margin-inline: auto; }
/* Avoid children making CSS grids wider than their containers. */
.services-heading > *, .service-grid > *, .approach-inner > *, .approach-list > *,
.app-layout > *, .app-grid > *, .cta-layout > *, .detail-block > *,
.industry-grid > *, .about-grid > * { min-width: 0; }
.nav-shell { gap: clamp(14px, 1.65vw, 30px); }
.nav { gap: clamp(11px, 1.4vw, 26px); }
.brand { flex-shrink: 0; }
.nav-link, .footer nav a { opacity: 1; color: #f8fbff; }
.service-grid { gap: clamp(14px, 1.25vw, 22px); align-items: stretch; }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-media { height: auto; aspect-ratio: 16 / 10; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-content { display: flex; flex-direction: column; flex: 1; }
.service-content h3 { overflow-wrap: break-word; }
.service-content p { min-height: 0; flex: 1; }
.service-link { align-self: flex-start; margin-top: 15px; }
.services-heading { grid-template-columns: minmax(0, 1.25fr) minmax(0, .92fr) auto; gap: clamp(16px, 2vw, 38px); }
.approach-inner { grid-template-columns: minmax(250px, 27%) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.approach-list { gap: clamp(15px, 1.5vw, 26px); }
.app-layout { grid-template-columns: minmax(235px, 23%) minmax(0, 1fr); gap: clamp(22px, 2.8vw, 50px); }
.app-grid { gap: clamp(13px, 1.25vw, 23px); }
.solution-card > img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.app-caption { align-items: flex-start; }
.cta-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(210px, auto); gap: clamp(18px, 2.5vw, 48px); }
.footer-inner { gap: 18px 28px; }
.footer nav { row-gap: 4px; }
/* Interior page layouts resize without clipped image/text blocks. */
.detail-block, .detail-block:nth-child(even) { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
.detail-block:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-close .wrap > * { min-width: 0; }
/* Laptop: let images and copy breathe; switch to accessible nav before crowding. */
@media (max-width: 1200px) {
  .nav-shell { height: 72px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    padding: 16px var(--site-gutter) 22px; flex-direction: column; align-items: stretch;
    gap: 3px; background: #08152d; border-top: 1px solid #53689b;
    box-shadow: 0 18px 28px rgba(4, 16, 38, .3); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-link { font-size: 17px; padding: 12px 9px; min-height: 46px; }
  .nav-link:after { right: auto; width: 52px; bottom: 3px; }
  .nav-cta { display: none; }
  .services-heading { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .section-text-link { grid-column: 2; justify-self: start; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .service-content h3 { font-size: 19px; }
  .service-content p { font-size: 15px; }
  .approach-inner { grid-template-columns: 1fr; gap: 28px; }
  .approach-head > p:last-child { max-width: 680px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-intro { margin-bottom: 0; }
  .app-intro > p:not(.eyebrow) { max-width: 660px; }
  .cta-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-action { grid-column: 2; }
  .footer-inner { justify-content: space-between; }
}
/* Tablet portrait and landscape. */
@media (max-width: 820px) {
  .services-heading { grid-template-columns: 1fr; gap: 11px; }
  .services-heading h2 br { display: none; }
  .services-heading > p { max-width: 680px; }
  .section-text-link { grid-column: auto; margin: 2px 0 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; display: block; padding: 46px 0 38px; }
  .hero-copy { width: 100%; max-width: none; }
  .hero h1 { font-size: clamp(40px, 6.2vw, 55px); max-width: 660px; }
  .hero-description { max-width: 600px; }
  .hero-art { inset: 220px 0 0 0; opacity: .78; background-position: 34% center;
    mask-image: linear-gradient(to bottom, transparent, black 19%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 19%, black 75%, transparent); }
  .hero-features { position: relative; top: auto; left: auto; right: auto; z-index: 1;
    margin-top: clamp(240px, 41vw, 350px); display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .hero-features > div { font-size: 13px; }
  .approach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { justify-content: center; text-align: center; }
  .footer nav { justify-content: center; width: 100%; }
  .detail-block, .detail-block:nth-child(even) { grid-template-columns: 1fr; }
  .detail-block:nth-child(even) .detail-photo { order: 0; }
  .detail-photo { min-height: 240px; max-height: 340px; }
  .detail-copy { padding: 30px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --site-gutter: 20px; }
  html { scroll-padding-top: 72px; }
  .nav-shell { height: 68px; }
  .nav { top: 68px; max-height: calc(100dvh - 68px); }
  .brand { font-size: 22px; }
  .brand-symbol { width: 29px; height: 29px; }
  .hero-inner { padding: 38px 0 30px; }
  .hero h1 { font-size: clamp(35px, 9.2vw, 45px); line-height: 1.12; }
  .hero-description { font-size: 16px; line-height: 1.55; }
  .hero-buttons { gap: 11px 16px; margin-top: 20px; }
  .hero-buttons .btn { font-size: 15px; }
  .hero-features { margin-top: clamp(205px, 50vw, 285px); gap: 12px; }
  .hero-features > div { font-size: 11.5px; line-height: 1.35; flex-direction: column; align-items: flex-start; }
  .hero-features svg { width: 30px; height: 30px; }
  .hero-art { inset: 240px 0 0; background-position: 32% center; }
  .services-section, .applications-section { padding-block: 48px; }
  .services-heading h2, .approach-head h2, .app-intro h2 { font-size: clamp(29px, 7vw, 35px); }
  .services-heading > p { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; gap: 19px; }
  .service-media { aspect-ratio: 16 / 8; }
  .service-content { padding: 16px 19px 22px; }
  .service-content h3 { font-size: 21px; }
  .service-content p { font-size: 16px; }
  .service-link { font-size: 16px; }
  .approach-section { padding-block: 48px; }
  .approach-list { gap: 28px 16px; }
  .approach-list li { flex-direction: row; align-items: flex-start; gap: 11px; }
  .step-icon { width: 40px; height: 40px; }
  .step-copy { margin-top: 10px; padding-top: 15px; }
  .step-copy p { font-size: 14px; }
  .app-grid { grid-template-columns: 1fr; gap: 25px; }
  .solution-card > img { aspect-ratio: 16 / 9; }
  .app-caption h3 { font-size: 19px; }
  .app-caption p { font-size: 16px; }
  .cta-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .cta-action { grid-column: auto; }
  .cta-copy { margin-top: 0; }
  .contact-cta { padding-block: 37px; }
  .footer-inner { padding-block: 26px; }
  .footer nav { gap: 6px 21px; }
  .footer nav a { font-size: 15px; padding-block: 8px; }
  .detail-hero { padding-block: 60px; }
  .detail-body { padding-block: 45px; }
  .detail-copy { padding: 23px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card img { height: auto; aspect-ratio: 16/9; }
  .detail-close .wrap { align-items: flex-start; flex-direction: column; }
  .legal-inner, .contact-section { min-width: 0; }
  .contact-form, .contact-form input, .contact-form select, .contact-form textarea { max-width: 100%; }
}
/* Small phones: no clipped hero CTAs or miniature 3-column feature grid. */
@media (max-width: 390px) {
  :root { --site-gutter: 16px; }
  .kicker { font-size: 10px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(32px, 9.7vw, 38px); }
  .hero-buttons { align-items: flex-start; }
  .hero-buttons .btn { padding: 11px 13px; }
  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 205px; }
  .hero-features > div:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .approach-list { grid-template-columns: 1fr; gap: 25px; }
  .approach-list li { flex-direction: row; }
  .footer nav { gap: 4px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card:hover, .btn.primary:hover, .nav-cta:hover { transform: none; }
}

/* VISTRUBA local-first: complete artwork and zoom-safe layout */
html{overflow-x:clip}.hero,.hero-inner,.hero-copy,.service-grid,.service-card{min-width:0}
.hero-art{background-size:contain!important;background-position:right center!important;mask-image:none!important;-webkit-mask-image:none!important}
.service-media{height:auto!important;aspect-ratio:480/166!important;background:#dce5f2}.service-media img{width:100%;height:100%;object-fit:contain!important;object-position:center}
.service-card{display:flex;flex-direction:column}.service-content{display:flex;flex-direction:column;flex:1}.service-content p{min-height:0!important}.service-link{margin-top:auto;padding-top:12px}
.hero-buttons,.hero-features{flex-wrap:wrap}.hero h1,.service-content{overflow-wrap:break-word}
@media(max-width:900px){.hero-art{inset:0 0 0 32%!important;opacity:.5}.hero-copy{width:min(100%,650px)!important}}
@media(max-width:600px){.hero,.hero-inner{min-height:0!important}.hero-inner{padding-block:36px 28px!important}.hero-art{inset:auto 0 0!important;height:230px;opacity:.25;background-position:center bottom!important}.hero-features{position:static!important;margin-top:26px!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.service-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:380px){.hero-features{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* 2.4.3 visual hotfix: remove the hero image/background seam and preserve all artwork */
.hero { background-color:#071329; }
.hero-art {
  background-image:url('/assets/reference-hero.webp') !important;
  background-repeat:no-repeat !important;
  background-size:contain !important;
  background-position:right center !important;
  background-color:transparent !important;
  mask-image:none !important;
  -webkit-mask-image:none !important;
  border:0 !important;
  box-shadow:none !important;
}
.service-media { aspect-ratio:480 / 166 !important; height:auto !important; }
.service-media img { object-fit:contain !important; object-position:center !important; }
.solution-card>img { object-fit:contain !important; background:#101d38; }
@media(max-width:600px) {
  .hero-art { inset:auto 0 0 !important; width:100%; height:clamp(110px,31vw,210px) !important; opacity:.55 !important; background-position:center bottom !important; }
  .hero-inner { min-height:0 !important; }
  .hero-features { position:static !important; margin-top:30px !important; }
}

/* Verified 2026-10-14 screenshot fix: the bright stripe was embedded in the last
   two pixel rows of reference-hero.webp, now physically removed. */
.hero-features {
  width:100%; max-width:100%;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
}
.hero-features > div { min-width:0 !important; gap:7px !important; font-size:clamp(10px,.77vw,12px) !important; }
.hero-features > div span { min-width:0; overflow-wrap:normal; }
.hero-features svg { flex:none; width:27px; height:27px; }
.hero-copy { max-width: min(54%, 650px); }
@media(max-width:900px) {
 .hero-copy { max-width:min(72%,650px) !important; }
 .hero-features { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media(max-width:600px) {
 .hero-copy { max-width:100% !important; }
 .hero-features { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
 .hero-features>div { flex-direction:column; align-items:flex-start; }
}
@media(max-width:390px) {
 .hero-features { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 .hero-features>div:last-child {grid-column:1 / -1;}
}
