/* Content-led layout; dimensions are CSS pixels, independent of device density. */
:root{--page-gutter:max(clamp(20px,4.5vw,72px),calc((100vw - 1640px)/2));--dock-height:90px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:calc(var(--dock-height) + 24px)}
body{padding-bottom:var(--dock-height)}
.header,.scene,.project.portfolio-scene,.company-footer,.footer{padding-left:max(var(--page-gutter),env(safe-area-inset-left));padding-right:max(var(--page-gutter),env(safe-area-inset-right))}
.header{height:auto;min-height:90px;padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:14px}
.header nav{gap:clamp(12px,2vw,28px)}
.scene,#scene{min-height:calc(100svh - 90px - var(--dock-height))}
.flow-experiment{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(28px,4vw,70px);row-gap:22px;align-content:start;min-height:640px;padding-top:32px;padding-bottom:36px}
.flow-experiment .hero-rail{grid-column:1/-1;gap:24px;flex-wrap:wrap}
.flow-experiment .hero-copy{grid-column:1;grid-row:2;width:100%;min-width:0}
.flow-experiment h1{font-size:clamp(48px,5.8vw,96px);margin:22px 0 28px}
.flow-experiment .flow-stage{position:relative;grid-column:2;grid-row:2;inset:auto;width:100%;max-width:none;margin:0;min-width:0}
.flow-experiment .flow-visual{aspect-ratio:1.5}
.flow-experiment .hero-foot{grid-column:1/-1;max-width:none;margin:8px 0 0;gap:18px}
.flow-experiment .hero-bottom{gap:24px;align-items:center;flex-direction:row;margin-top:0}
.flow-experiment .hero-bottom p{font-size:16px;line-height:1.7;max-width:340px}
.flow-experiment .hero-bottom br{display:none}
.flow-experiment .round-cta{width:100px;height:100px;font-size:13px}
.flow-picker{gap:12px;justify-content:space-between}
.flow-picker button{white-space:normal;min-height:48px;font-size:12px;text-align:left}
.flow-picker span{font-size:12px;margin-left:4px}
.flow-node>span{font-size:13px}.flow-node>small{font-size:11px}
.flow-story h2{font-size:24px}.flow-story p:not(.flow-kicker){font-size:14px;max-width:none}
.flow-story{margin-top:22px;padding-top:18px}.flow-progress{margin-top:20px}
.flow-hover{font-size:12px;line-height:1.5;bottom:-15px;padding-inline:0}
.flow-bottom{font-size:12px;align-items:flex-start;gap:14px}.flow-bottom button{font-size:12px;min-height:44px}
.flow-kicker{font-size:11px}.orbit-instruction{font-size:11px}
.footer{bottom:calc(23px + env(safe-area-inset-bottom));min-height:64px;gap:16px}
.prototype-tag{height:calc(23px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}
.chapter-nav{gap:clamp(12px,2vw,30px)}.chapter-nav button{min-height:44px}
.footer-tools button,.footer-tools label{min-height:44px;display:inline-flex;align-items:center}
:where(.solution-stage,.studio-grid,.analysis-workbench,.business-hub,.delivery-lines,.company-columns,.case-layout,.detail-grid)>*{min-width:0}
:where(dialog,.scene,.company-footer) :where(p,li,dd,h2,h3,strong){overflow-wrap:break-word}
:where(input,textarea,select){max-width:100%;font-size:16px!important}
dialog[open]{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-width:calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));overscroll-behavior:contain;scrollbar-gutter:stable}
.dialog-top{position:sticky;top:-32px;background:var(--paper);z-index:8;padding-block:10px}
.close,.case-close,.case-gallery-nav button,.lightbox-top button,.lightbox-nav button{min-height:44px;min-width:44px;flex-shrink:0}
.case-lightbox>img{max-height:calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.demo .flow-node{position:static;opacity:1;width:auto;transform:none;flex-direction:row;justify-content:space-between;text-align:left}
.demo .flow-node>span{font-size:12px;background:none}
.company-columns p,.company-columns button,.company-columns a:not(.company-wordmark){font-size:14px}
.company-columns nav button,.company-legal button{min-height:44px;margin:0;padding:8px 0}
.company-disclaimer,.company-tech-note,.company-draft{font-size:12px}
@media(max-width:1100px){
 .index-groups{grid-template-columns:repeat(3,minmax(0,1fr))}
 .portfolio-gallery{gap:20px}.portfolio-name{font-size:28px}
 .company-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
 .case-layout{grid-template-columns:1fr}.case-visual{padding:24px}.case-visual img{max-height:430px}.case-story{padding:28px}
 .analysis-workbench{grid-template-columns:minmax(240px,.85fr) minmax(0,1.2fr);gap:24px}
 .business-hub{gap:28px}
}
@media(max-width:980px){
 .flow-experiment{grid-template-columns:1fr;min-height:0;row-gap:26px}
 .flow-experiment .hero-copy,.flow-experiment .flow-stage,.flow-experiment .hero-foot{grid-column:1;grid-row:auto}
 .flow-experiment .flow-stage{max-width:680px;justify-self:center}
 .flow-experiment h1{font-size:clamp(44px,8.5vw,76px);max-width:740px;margin:8px 0 26px}
 .flow-experiment .hero-bottom{max-width:620px;justify-content:space-between}
 .flow-experiment .hero-bottom p{max-width:460px}
 .flow-experiment .hero-foot{margin-top:6px}
 .analysis-workbench,.business-hub{grid-template-columns:1fr}
 .business-insight{min-height:0}.analysis-example{margin:0;padding:26px}
 .business-hub{margin-top:48px}.hub-experience{max-width:none}
 .portfolio-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-heading>div{display:block}.portfolio-heading>div>p{margin-top:22px}
 .solution-stage,.studio-grid{grid-template-columns:1fr;gap:28px}.studio-intro{max-width:640px}
 .detail-grid{display:block}.detail-stage{margin-top:28px}
}
@media(max-width:760px){
 .header{min-height:78px;gap:12px}.header nav{margin-left:auto}.header nav button{font-size:12px}
 .flow-experiment{padding-top:26px;row-gap:30px}.flow-experiment h1{font-size:clamp(42px,10.6vw,72px);line-height:1.05}
 .flow-experiment .hero-bottom{gap:16px;align-items:flex-start}.flow-experiment .hero-bottom p{font-size:16px;flex:1}
 .flow-experiment .round-cta{width:92px;height:92px;font-size:12px}
 .flow-picker span{display:block;margin:3px 0 0}.flow-picker button{font-size:11px}
 .flow-visual{margin-block:8px 18px}.flow-node{width:76px}.flow-node>span{font-size:12px}.flow-node>small{display:none}
 .flow-hover{bottom:-22px}.flow-story{margin-top:24px}.flow-story h2{font-size:23px}
 .flow-center{font-size:20px}.flow-bottom{flex-wrap:wrap}.flow-bottom>span{flex:1;min-width:140px}
 .footer{display:block;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
 .chapter-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:100%}
 .chapter-nav button{align-items:center;justify-content:center;white-space:normal;font-size:12px;line-height:1.25;padding:8px 0;gap:3px}
 .chapter-nav span{display:none}.footer-tools{font-size:12px;justify-content:space-between}.footer-tools button{font-size:12px}
 .portfolio-gallery{grid-template-columns:1fr}.portfolio-caption,.portfolio-heading>div>p{font-size:16px}
 .company-columns{gap:24px}.company-about{grid-column:1/-1}.company-columns>div:last-child{grid-column:1/-1}
 .group-tabs{gap:8px;justify-content:flex-start;overflow-x:auto;padding-bottom:3px}.group-tabs button{flex-shrink:0;font-size:13px;padding-inline:5px}
 .solution-heading>p,.studio-process p,.journey-bottom p{font-size:16px}.studio-intro{font-size:20px}
 .service-row strong{font-size:19px}.service-row{min-height:54px}
 .index-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.index-group button{font-size:14px;min-height:44px}
 dialog{padding:18px}.dialog-top{top:-18px}.detail-stage{margin:24px 0 0;padding:16px}.demo-surface{padding:16px}
 .mini-property-hero{margin-inline:-16px}.demo-top{flex-wrap:wrap}.demo p{font-size:14px}.demo label{font-size:14px}
 .brief-options button{font-size:14px;min-height:44px}.brief-dialog>p{font-size:16px}
 .case-dialog{padding:0}.case-top{padding:12px 16px}.case-visual{padding:16px;max-height:none}.case-visual img{max-height:340px}
 .case-story{padding:22px}.case-story h2{font-size:clamp(32px,9vw,42px)}.case-text p,.case-text li{font-size:16px}
 .case-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.case-thumb img{height:80px}.case-thumb span{font-size:12px}
 .case-lightbox{padding:12px}.lightbox-top{gap:10px;align-items:flex-start}.lightbox-nav{gap:8px;font-size:12px}
 .company-dialog{padding:20px}.legal-fields>div{grid-template-columns:1fr;gap:8px}
 .analysis-stages{flex-wrap:wrap;justify-content:flex-start;gap:8px 16px}.analysis-stages button{min-height:44px;font-size:13px}
 .audience-switch{flex-wrap:wrap;gap:4px 20px;overflow:visible}.audience-switch button{font-size:14px;white-space:normal}
 .analysis-controls{flex-wrap:wrap}.analysis-controls button{min-height:44px}.hub-channels{gap:16px;flex-wrap:wrap}.hub-channels button{font-size:14px;min-height:44px}
 .company-contact{white-space:normal}.company-legal nav{gap:4px 20px}
}
@media(max-width:359px){
 :root{--page-gutter:16px}.header{gap:8px}.brand>.brand-name{font-size:28px}.brand .brand-symbol{width:24px;height:24px}
 .header nav button,.contact-link{font-size:11px}.flow-experiment h1{font-size:42px}
 .flow-experiment .hero-bottom{flex-wrap:wrap}.flow-experiment .hero-bottom p{flex-basis:100%}
 .flow-node{width:66px}.flow-node>span{font-size:11px}.flow-node>svg{width:27px;height:27px}
 .flow-picker{gap:8px}.flow-picker span{font-size:11px}.flow-center{font-size:18px}
 .index-groups{grid-template-columns:1fr}.analysis-example,.hub-experience{padding:18px}.company-columns{grid-template-columns:1fr}
 .evidence-row>div:first-child{gap:10px;flex-wrap:wrap}.example-top{flex-wrap:wrap}
}
/* Short landscape windows need usable content, not a compressed desktop hero. */
@media(max-height:500px) and (orientation:landscape){
 .header{min-height:64px;padding-block:10px}.scene{min-height:0}
 .flow-experiment{padding-top:22px}.flow-experiment h1{font-size:clamp(42px,5.5vw,64px)}
 .footer{position:relative;bottom:auto;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
 .prototype-tag{position:relative;height:auto;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 body{padding-bottom:0}.header nav button{display:block!important}.header nav{gap:14px}
 .case-lightbox>img{max-height:calc(100dvh - 140px)}.lightbox-top,.lightbox-nav{padding-block:3px}
 .company-lead{gap:24px}
}
@media(max-height:500px) and (max-width:760px) and (orientation:landscape){
 .header{flex-wrap:wrap}.header nav{order:3;width:100%;justify-content:space-between;margin:0}.header nav button{min-height:40px}
}
/* Mobile questions expand beneath their own title in the normal page flow. */
.business-answer,.service-answer{display:none}
@media(max-width:980px){
  .business-analysis{overflow:visible}
  .solutions{overflow:clip}
  .analysis-workbench>.analysis-example{display:none}
  .business-question,.service-item{position:relative}
  .questions [data-topic],.service-item>.service-row{
    min-height:56px;position:sticky;top:env(safe-area-inset-top,0px);z-index:2;
    background:rgba(247,249,252,.94);
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  }
  .questions [data-topic]>.question-marker,.service-row>.row-plus{transition:transform 350ms var(--ease)}
  .business-question.is-open>[data-topic],.service-item.is-open>.service-row{
    color:var(--blue);border-color:rgba(38,56,245,.25);
  }
  .business-question.is-open>[data-topic]>.question-marker,.service-item.is-open>.service-row>.row-plus{transform:rotate(45deg)}
  .business-answer,.service-answer{
    display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;
    transition:grid-template-rows 420ms var(--ease),opacity 280ms ease,visibility 0s 420ms;
  }
  .business-question.is-open>.business-answer,.service-item.is-open>.service-answer{grid-template-rows:1fr;opacity:1;visibility:visible;transition-delay:0s}
  .business-answer-inner,.service-answer-inner{min-height:0;overflow:hidden}
  .business-answer .analysis-example{padding:22px 0 30px;margin:0;background:transparent;border-bottom:1px solid var(--line)}
  .business-answer .example-top{font-size:10px;gap:10px}
  .business-answer .evidence-chart h2{font-size:clamp(23px,5.5vw,30px);line-height:1.2;margin:20px 0 24px}
  .business-answer .evidence-bars{gap:15px}
  .business-answer .evidence-row>div:first-child{font-size:13px;gap:12px}
  .business-answer .evidence-row strong{font-size:21px}
  .business-answer .evidence-track{height:3px;background:rgba(38,56,245,.09)}
  .business-answer .analysis-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:24px}
  .business-answer .analysis-stages button{min-height:44px;font-size:12px;white-space:nowrap}
  .business-answer .business-insight{min-height:0;padding-top:20px}
  .business-answer .insight-label{font-size:10px}
  .business-answer .business-insight h3{font-size:24px;margin:10px 0}
  .business-answer .business-insight p{font-size:15px;line-height:1.7}
  .business-answer .analysis-controls{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px}
  .business-answer .analysis-controls button{min-height:44px;font-size:13px}
}
@media(max-width:359px){
  .business-answer .analysis-stages{gap:3px}
  .business-answer .analysis-stages button{font-size:11px}
  .business-answer .evidence-row>div:first-child{font-size:12px}
  .business-answer .evidence-row strong{font-size:19px}
}
.motion-off .business-answer,.motion-off .service-answer,.motion-off .question-marker,.motion-off .row-plus{transition:none!important}
@media(prefers-reduced-motion:reduce){.business-answer,.service-answer,.question-marker,.service-row>.row-plus{transition:none!important}}

/* Service details use the same inline disclosure as the business questions. */
@media(max-width:980px){
  .service-item>.service-row:hover{padding-left:0}
  .service-content{padding:22px 0 30px;border-bottom:1px solid var(--line)}
  .service-content>h2{font:500 clamp(25px,6vw,34px)/1.12 Space,sans-serif;letter-spacing:-.045em;margin:0 0 20px}
  .service-description{font-size:15px;color:var(--muted);line-height:1.7;margin:0}
  .service-features{list-style:none;padding:0;margin:22px 0}
  .service-features li{font-size:14px;line-height:1.6;border-top:1px solid var(--line);padding:11px 0}
  .service-content .scope{font-size:12px;line-height:1.7;margin:22px 0}
  .service-example{padding-top:20px;border-top:1px solid var(--line);margin:24px 0}
  .service-example>.demo-label{font-size:10px;margin:0 0 18px}
  .service-answer .demo{min-height:0}
  .service-answer .demo-surface{background:rgba(255,255,255,.3);box-shadow:none;padding:16px}
  .service-answer .demo-top{gap:10px;align-items:start;flex-wrap:wrap}
  .service-answer .demo-top small{font-size:9px}
  .service-answer .demo h3{font-size:23px;line-height:1.2}
  .service-answer .demo p{font-size:14px;line-height:1.65}
  .service-answer .demo label{font-size:14px}
  .service-answer .demo :is(button,select){min-height:44px}
  .service-answer .demo input[type=range]{min-height:44px;margin:0}
  .service-answer .mini-property-hero{margin-inline:-16px}
  .service-answer .mini-app-row{grid-template-columns:repeat(3,minmax(0,1fr));font-size:11px;gap:8px}
  .service-answer .mini-app-row>*{min-width:0;overflow-wrap:anywhere}
  .service-answer .demo-caption{font-size:11px;line-height:1.6;margin:16px 0 0}
  .service-answer .demo .flow-node{position:static;transform:none;width:auto;text-align:left;gap:8px}
  .service-answer .demo .flow-node>span{font-size:12px;white-space:normal}
  .service-answer .demo .flow-node>span:first-child{display:flex;align-items:center;gap:8px}
  .service-answer .demo .flow-node .state{flex-shrink:0}
}

/* A compact illustration beside the headline, directly above the mobile CTA. */
@media(max-width:980px){
  .flow-experiment{
    grid-template-columns:minmax(0,1.08fr) minmax(132px,.92fr);
    column-gap:12px;row-gap:24px;
  }
  .flow-experiment .hero-copy,.flow-experiment .hero-bottom{display:contents}
  .flow-experiment h1{
    grid-column:1;grid-row:2;align-self:center;
    font-size:clamp(30px,8.1vw,64px);line-height:1.05;
    letter-spacing:-.065em;margin:0;max-width:none;
  }
  .flow-experiment .flow-stage{
    grid-column:2;grid-row:2;align-self:center;justify-self:center;
    width:100%;max-width:350px;margin:0;
  }
  .flow-experiment .hero-bottom p{
    grid-column:1;grid-row:3;max-width:none;margin:0;
    font-size:clamp(13px,3.65vw,16px);line-height:1.65;
  }
  .flow-experiment .round-cta{
    grid-column:2;grid-row:3;align-self:start;justify-self:center;
    width:88px;height:88px;font-size:11px;
    border-color:rgba(98,111,145,.4);background:rgba(255,255,255,.2);
  }
  .flow-experiment .hero-foot{grid-column:1/-1;grid-row:4;margin:0}
  .flow-experiment .flow-picker{gap:0;justify-content:space-between;border-color:rgba(38,56,245,.12)}
  .flow-experiment .flow-picker button{flex:1;min-width:44px;min-height:44px;padding:8px 0;text-align:center;font-size:11px}
  .flow-experiment .flow-picker span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .flow-experiment .flow-visual{aspect-ratio:1.15;margin:8px 0 0;opacity:.86}
  .flow-experiment .flow-node,.flow-experiment .flow-stage[data-mode="1"] .flow-node{width:36px;padding:3px;pointer-events:none}
  .flow-experiment .flow-node>svg{width:clamp(18px,3.5vw,28px);height:clamp(18px,3.5vw,28px);filter:none}
  .flow-experiment .flow-node>span,.flow-experiment .flow-node>small,
  .flow-experiment .flow-hover,.flow-experiment .flow-story,
  .flow-experiment .flow-progress,.flow-experiment .flow-bottom,
  .flow-experiment .orbit-instruction{display:none}
  .flow-experiment .flow-center{font-size:clamp(12px,2.5vw,20px);gap:4px;padding:4px 6px;letter-spacing:-.7px;background:rgba(247,249,252,.65)}
  .flow-experiment .flow-center img{width:clamp(12px,2.5vw,18px);height:auto}
  .flow-experiment .flow-halo{opacity:.5}
}
@media(max-width:359px){
  .flow-experiment{column-gap:8px;row-gap:20px}
  .flow-experiment .hero-bottom p{font-size:13px}
}
@media(max-width:980px) and (max-height:500px) and (orientation:landscape){
  .flow-experiment{grid-template-columns:minmax(0,1.2fr) minmax(160px,.8fr);row-gap:18px}
  .flow-experiment h1{font-size:clamp(36px,6vw,52px)}
  .flow-experiment .flow-stage{max-width:210px}
  .flow-experiment .flow-visual{aspect-ratio:1.5}
}
