/* Mobile, unfolded screens and embedded browsers. No device model lock-in. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:100px}
body{padding-left:0;padding-right:0;padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);max-width:100%}
.site-header{padding-top:env(safe-area-inset-top,0px)}
.site-footer{padding-bottom:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.nav-wrap,.header-actions,.hero-copy,.section-heading>*,.product-panel>*,.loop-panel>*,.scenario-layout>*,.compliance-roles>*,.asset-grid>*,.form-row>*{min-width:0}
.brand-mark img,.about-symbol img{object-fit:contain;height:auto}
.button,.text-link{max-width:100%}
.numbered-features li>div,.data-hub>div,.journey-stage>div,.report-items>div{min-width:0}
.menu-toggle,.dialog-close{min-width:44px;min-height:44px}
.dialog-close{right:8px;top:7px;z-index:2;background:#fff;border-radius:50%}
.mobile-nav{max-height:calc(100vh - 90px);max-height:calc(var(--view-height,100vh) - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.mobile-nav a{min-height:44px;display:flex;align-items:center}
dialog{max-height:90vh;max-height:calc(var(--view-height,100vh) - 32px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
dialog:not([open]){display:none}
.brief-dialog,.privacy-dialog{width:calc(100% - 32px);max-width:610px}
.privacy-dialog{max-width:560px}
dialog textarea{white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word}
.dialog-fallback-backdrop{position:fixed;inset:0;z-index:98;background:rgba(39,36,44,.5)}
dialog.dialog-fallback[open]{display:block;position:fixed;left:0;right:0;top:calc(var(--view-top,0px) + 16px);bottom:auto;margin:0 auto;z-index:99;max-height:calc(var(--view-height,100vh) - 32px)}
@media(pointer:coarse){
  .button,.text-link,.result-back,.menu-toggle,.dialog-close,.enterprise-tabs button,.preaudit-tab{min-height:44px}
  .button:hover{transform:none}
  .brief-dialog input:not([type=checkbox]),.brief-dialog select,.brief-dialog textarea{font-size:16px}
  .interest-options label>span{min-height:44px}
}
/* Reading and navigation switch to one column before a half-width pane gets cramped. */
@media(max-width:980px),(horizontal-viewport-segments:2){
  .desktop-nav{display:none}
  .menu-toggle{display:block}
  .section-wrap,.nav-wrap{width:calc(100% - 40px)}
  .restore-hero{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;gap:24px;padding-block:44px}
  .restore-hero .hero-copy{width:100%;max-width:700px;margin-inline:auto}
  .restore-hero .hero-copy h1{font-size:42px;font-size:clamp(27px,6.7vw,46px);letter-spacing:-1px;line-height:1.42}
  .restore-hero .hero-copy .hero-promise{font-size:22px;max-width:none}
  .restore-hero .hero-copy .hero-description{font-size:15px;max-width:43em}
  .restore-hero .hero-copy .hero-buttons{flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px 22px}
  .restore-hero .hero-buttons>.button,.restore-hero .hero-buttons>.text-link{font-size:13px;min-height:44px}
  .restore-hero .hero-caption{font-size:12px;margin-top:24px;line-height:1.8}
  .restore-hero .ecosystem-art{max-width:470px;width:100%;margin:0 auto}
  .section-heading{flex-direction:column;align-items:flex-start;gap:18px}
  .section-heading>p{flex:auto;max-width:620px}
  .product-panel,.scenario-layout,.intelligence,.preaudit,.growth{grid-template-columns:minmax(0,1fr);gap:30px}
  .product-content>p{max-width:none}
  .product-visual{min-height:0}
  .workspace-shell{grid-template-columns:minmax(0,1fr)}
  .workspace-sidebar{display:none}
  .enterprise-detail-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .enterprise-chart{padding-right:0;border-right:0}
  .enterprise-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .enterprise-tabs button{min-height:44px;font-size:13px}
  .workspace-caption,.enterprise-footer,.enterprise-flow,.enterprise-insight-label{flex-wrap:wrap}
  .scenario-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
  .scenario-choice{min-width:0;padding:16px 0}
  .scenario-choice:last-child{grid-column:1/-1}
  .scenario-panel{min-height:0}
  .report-stack{width:100%;max-width:520px;justify-self:center}
  .compliance-roles{grid-template-columns:minmax(0,1fr)}
  .compliance-roles article,.compliance-roles article+article{padding:24px 0;border-left:0}
  .compliance-roles article+article{border-top:1px solid var(--line)}
  .compliance-delivery,.partner-next{flex-wrap:wrap;gap:24px}
  .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .explore-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .explore-heading p{font-size:12px}
  .explainer-copy>span{font-size:12px}
  .enterprise-metrics em{font-size:11px}
  .footer-bottom,.footer-bottom nav{flex-wrap:wrap;gap:16px}
}
@media(max-width:600px),(horizontal-viewport-segments:2){
  .nav-wrap{height:68px;gap:8px}
  .brand{gap:7px}
  .brand-mark{width:34px}
  .brand-type{font-size:19px;letter-spacing:1px}
  .brand-type small{font-size:6px;letter-spacing:.3px}
  .header-actions{gap:4px}
  .header-actions>.button{font-size:12px;padding:10px 12px;gap:6px}
  .header-actions>.button svg{display:none}
  .restore-hero .hero-copy .hero-promise{font-size:20px;line-height:1.65}
  .restore-hero .hero-copy .hero-description{font-size:14px;line-height:1.95}
  .restore-hero .hero-caption{font-size:11px}
  .section-space{padding-block:52px}
  .section-heading h2,h2{font-size:27px;line-height:1.55}
  .product-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-tab{padding:16px 10px;gap:7px}
  .product-tab:last-child{grid-column:1/-1}
  .product-tab strong{font-size:16px}
  .product-tab small{font-size:11px}
  .product-content h3,.scenario-panel h3,.loop-story h3{font-size:25px;line-height:1.55}
  .product-visual{padding:24px 16px}
  .visual-topline{letter-spacing:.3px;flex-wrap:wrap;gap:6px;margin-bottom:22px}
  .data-sources{align-items:stretch;gap:8px}
  .data-sources>span{align-self:center}
  .data-sources>div{min-width:0;padding:18px 8px}
  .data-sources strong{font-size:12px}
  .data-sources small{font-size:10px}
  .data-hub{flex-wrap:wrap;gap:10px;padding:16px 12px}
  .data-hub>div{flex:1;min-width:130px}
  .data-hub .outline-tag{margin-left:0}
  .data-outputs{flex-wrap:wrap}
  .data-outputs span{min-width:65px}
  .loop-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .loop-tabs button{padding:17px 12px;min-width:0}
  .loop-tabs strong{font-size:15px;white-space:nowrap}
  .loop-tabs small{font-size:11px;line-height:1.7}
  .loop-panel{grid-template-columns:minmax(0,1fr);padding:24px 20px}
  .loop-work>div{grid-template-columns:minmax(0,1fr);gap:6px}
  .loop-work dt,.loop-work dd{font-size:12px}
  .working-scale{grid-template-columns:minmax(0,1fr);gap:24px}
  .working-scale article+article{padding:24px 0 0;border-left:0;border-top:1px solid var(--line)}
  .product-value{grid-template-columns:minmax(0,1fr)}
  .product-value>div+div{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}
  .explainer>summary{gap:10px}
  .explainer-label{display:none}
  .explainer-open{gap:8px}
  .explainer-open>span{display:none}
  .explainer-body{padding:24px 12px}
  .enterprise-toolbar,.enterprise-context{flex-wrap:wrap;gap:8px}
  .enterprise-toolbar,.enterprise-context,.enterprise-body{padding-inline:14px}
  .enterprise-tabs{margin-inline:14px}
  .enterprise-metrics{grid-template-columns:minmax(0,1fr);gap:14px}
  .enterprise-metrics>div,.enterprise-metrics>div:first-child{border-left:0;border-bottom:1px solid var(--line);padding:0 0 14px}
  .enterprise-metrics em{max-width:none;font-size:12px}
  .enterprise-metrics>div>span{font-size:12px}
  .enterprise-metrics strong{font-size:32px}
  #vision-actions{grid-template-columns:minmax(0,1fr)}
  .enterprise-flow{justify-content:flex-start}
  .enterprise-flow span{font-size:11px}
  .enterprise-footer{font-size:11px;gap:10px}
  .preaudit-rows>div{grid-template-columns:22px minmax(0,1fr);gap:8px}
  .preaudit-rows>div>b{grid-column:2;justify-self:start}
  .scenario-choices{grid-template-columns:minmax(0,1fr)}
  .scenario-path{flex-wrap:wrap;gap:9px}
  .scenario-delivery{display:block}
  .scenario-delivery ul{padding-left:18px;margin-top:14px}
  .report-stack{padding:18px 14px}
  .report-paper{padding:24px 18px}
  .report-items>div{flex-wrap:wrap}
  .report-items small{font-size:11px}
  .growth-lanes li{min-width:0}
  .contact-inner{padding:28px 20px;gap:24px}
  .contact-action,.contact-action .button{max-width:100%}
  .contact-copy h2{font-size:26px}
  .form-row,.interest-options{grid-template-columns:minmax(0,1fr)}
  .brief-dialog input:not([type=checkbox]),.brief-dialog select,.brief-dialog textarea{font-size:16px}
  .brief-dialog #brief-summary,.partner-dialog #partner-summary{font-size:16px}
  .result-buttons{flex-wrap:wrap}
  .result-buttons .button{flex:1 1 120px;min-height:44px}
  .result-back{min-height:44px}
  dialog[open]{top:calc(var(--view-top,0px) + 12px);bottom:auto;left:0;right:0;margin:0 auto;padding:48px 20px 24px;max-height:calc(var(--view-height,100vh) - 24px)}
  .copy-status,.result-note,.form-privacy{font-size:12px;line-height:1.8}
}
@media(max-width:360px){
  .section-wrap,.nav-wrap{width:calc(100% - 28px)}
  .brand-type{font-size:17px}
  .brand-type small{display:none}
  .brand-mark{width:29px}
  .header-actions>.button{font-size:11px;padding-inline:8px}
  .restore-hero .hero-copy h1{font-size:26px;letter-spacing:-.8px}
  .restore-hero .hero-copy .hero-promise{font-size:18px}
  .restore-hero .hero-copy .hero-buttons{gap:10px}
  .restore-hero .hero-buttons>.button{width:100%}
  .product-tabs,.asset-grid{grid-template-columns:minmax(0,1fr)}
  .product-tab:nth-child(2n){border-left:0}
  .product-tab strong{font-size:16px}
  .ecosystem-product{width:33%;padding-inline:3px;gap:2px;font-size:8.5px}
  .ecosystem-product-audit{width:34%;font-size:8.5px}
  .ecosystem-product-business{width:33%}
  .ecosystem-capability{font-size:10px;letter-spacing:0}
  .ecosystem-heading{font-size:9px;gap:5px;width:100%}
  .ecosystem-caption>div{gap:4px 8px}
  .scenario-panel{padding:24px 18px}
}
@media(orientation:landscape) and (max-height:520px){
  .site-header{position:relative}
  .mobile-nav{max-height:calc(var(--view-height,100vh) - 80px)}
  dialog[open]{top:calc(var(--view-top,0px) + 8px);max-height:calc(var(--view-height,100vh) - 16px);bottom:auto;margin:0 auto;padding-top:42px}
  .restore-hero{padding-block:30px}
}
/* Progressive fallback: a physical split screen gets a single safe reading pane. */
@media(horizontal-viewport-segments:2){
  body{width:env(viewport-segment-width 0 0);margin-left:env(viewport-segment-left 0 0);padding-inline:0}
  .restore-hero .hero-copy h1{font-size:27px;letter-spacing:-.8px}
  .restore-hero .ecosystem-art{max-width:360px}
  .asset-grid{grid-template-columns:minmax(0,1fr)}
  .product-tabs{grid-template-columns:minmax(0,1fr)}
  dialog[open]{width:calc(env(viewport-segment-width 0 0) - 24px);left:calc(env(viewport-segment-left 0 0) + 12px);right:auto;margin-left:0;margin-right:0}
}
@supports not (font-size:1cqw){
  .ecosystem-product{font-size:12px}
  .ecosystem-product-audit{font-size:11px}
  .ecosystem-capability{font-size:13px}
  .restore-hero .ecosystem-map .map-center>span{font-size:12px}
  .restore-hero .ecosystem-map .map-center>svg{width:23px;height:23px}
  @media(max-width:420px){.ecosystem-product{font-size:10px}.ecosystem-product-audit{font-size:9px}.ecosystem-capability{font-size:11px}.restore-hero .ecosystem-map .map-center>span{font-size:10px}}
  @media(max-width:360px){.ecosystem-product,.ecosystem-product-audit{font-size:8.5px}.ecosystem-capability{font-size:10px}}
}
@supports not (aspect-ratio:1){
  .restore-hero .ecosystem-map{height:auto}
  .restore-hero .ecosystem-map::before{content:"";display:block;padding-top:100%}
  .restore-hero .ecosystem-map .map-center{height:18%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
