/* Mobile refinement for the v4 review page. Loaded after the shared release styles. */
body.website-v4{
  --mobile-gutter:clamp(14px,4.5vw,26px);
  --header:88px;
  overflow-x:hidden;
}
html:has(body.website-v4){--header:88px}

body.website-v4 :is(main,section,article,form,dialog){min-width:0}
body.website-v4 :is(h1,h2,h3,h4,p,a,button,label,span){overflow-wrap:anywhere}
body.website-v4 :is(button,a,[role=tab]){-webkit-tap-highlight-color:transparent}
body.website-v4 :is(button,a,[role=tab]):focus-visible{outline:3px solid #047b87;outline-offset:3px}
body.website-v4 [hidden]{display:none!important}
body.website-v4 .assessment-hook__choices-label{font-size:16px;font-weight:600;margin:20px 0 10px}
body.website-v4 .assessment-hook__choice-indicator{display:grid;place-items:center;width:22px;height:22px;border:2px solid var(--ink);border-radius:50%;margin-bottom:8px;background:var(--paper)}
body.website-v4 .assessment-hook__choice-indicator>span{display:none}
body.website-v4 .assessment-hook__choice[aria-checked=true]{background:var(--jade);border-color:var(--ink)}
body.website-v4 .assessment-hook__choice[aria-checked=true] .assessment-hook__choice-indicator{background:var(--ink);box-shadow:inset 0 0 0 4px var(--jade)}

@media(max-width:760px){
  body.website-v4{font-size:16px;--header:88px}

  /* Two compact rows keep the brand, all four destinations and the contact action available. */
  body.website-v4 .masthead{
    height:88px;
    min-height:88px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    gap:1px;
    padding:5px var(--mobile-gutter);
  }
  body.website-v4 .masthead .wordmark{position:relative;align-self:flex-start;gap:7px;font-size:12px;line-height:1.05}
  body.website-v4 .masthead .wordmark svg{width:22px;height:24px}
  body.website-v4 .masthead nav{
    position:relative;
    width:100%;
    min-width:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:clamp(3px,1.8vw,12px);
    margin:0;
    font-size:clamp(10px,2.8vw,12px);
    line-height:1.2;
  }
  body.website-v4 .masthead nav>a{min-height:40px;display:inline-flex;align-items:center;white-space:nowrap}
  body.website-v4 .masthead .contact-link{min-height:40px;padding:7px 10px;font-size:inherit;white-space:nowrap}

  /* The story scene becomes a normal page section while the harbour artwork stays intact. */
  body.website-v4 .journey{height:auto!important;scroll-margin-top:calc(var(--header) + 8px)}
  body.website-v4 .journey .journey-sticky{
    position:relative!important;top:auto!important;height:auto!important;min-height:0;max-height:none;
    overflow:visible;display:flex;flex-direction:column;
  }
  body.website-v4 .journey .scene-top{
    display:grid;grid-template-columns:minmax(0,1fr);gap:8px;
    padding:18px var(--mobile-gutter) 12px;
  }
  body.website-v4 .journey .scene-top :is(h1,h2){font-size:clamp(27px,7vw,38px);line-height:1.04;letter-spacing:-.045em}
  body.website-v4 .journey .scene-top :is(h1,h2) br{display:block}
  body.website-v4 .journey .scene-top :is(h1,h2) span{display:block;color:#61706c}
  body.website-v4 .journey-intro{width:auto;max-width:68ch;margin:0;font-size:14px;line-height:1.5}
  body.website-v4 .journey-intro .skip-scene{display:inline-block;margin-top:6px;font-size:13px;white-space:normal}
  body.website-v4 .journey .journey-landscape{
    position:relative;display:block;flex:none;height:clamp(180px,58vw,270px);min-height:0;
    margin:0; padding:0;overflow:hidden;
  }
  body.website-v4 .journey .city-window{position:absolute;inset:0;height:100%;overflow:hidden}
  body.website-v4 .journey .city-world{height:100%;min-height:0}
  body.website-v4 .journey .city-tile .city-art,
  body.website-v4 .journey .city-tile .city-landmarks{top:0;bottom:auto;width:100%;height:100%;object-fit:cover;object-position:center bottom}
  body.website-v4 .journey .founder-pair{
    position:absolute;left:calc(50% - 92px);right:auto;top:auto;bottom:5px;
    width:184px;height:clamp(88px,27vw,126px);max-width:none;gap:2px;
  }
  body.website-v4 .journey .walker{width:50%!important;min-width:0}
  body.website-v4 .journey .scene-motion-toggle{
    position:absolute;z-index:8;top:auto;right:6px;bottom:8px;left:auto;
    width:44px;height:44px;min-height:44px;justify-content:center;gap:0;
    padding:0;border:1px solid var(--ink);background:var(--paper);color:var(--ink);
    font-size:0;box-shadow:none;
  }
  body.website-v4 .journey .journey-scroll-hint{display:none}
  body.website-v4 .journey .journey-bottom{
    position:relative;z-index:3;width:100%;padding:12px var(--mobile-gutter) 14px;
    background:var(--paper);border-top:1px solid var(--line);
  }
  body.website-v4 .journey .journey-rail-heading{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:1.35}
  body.website-v4 .journey .journey-instruction{display:inline;font-size:11px;text-align:right}
  body.website-v4 .journey .journey-controls{
    display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;scrollbar-width:thin;margin:9px calc(-1 * var(--mobile-gutter)) 0;
    padding:0 var(--mobile-gutter) 5px;
  }
  body.website-v4 .journey .journey-controls:before,
  body.website-v4 .journey .journey-controls:after{display:none}
  body.website-v4 .journey .journey-controls button{
    flex:0 0 124px;min-width:0;min-height:56px;display:flex;flex-direction:row;align-items:center;
    justify-content:flex-start;gap:8px;padding:7px 9px;border:1px solid var(--line);border-radius:2px;
    background:var(--paper);text-align:left;scroll-snap-align:start;
  }
  body.website-v4 .journey .journey-controls button[aria-pressed=true]{background:var(--jade);border-color:var(--ink)}
  body.website-v4 .journey .journey-controls .chapter-node{flex:none;font-size:12px;font-weight:700}
  body.website-v4 .journey .journey-controls .chapter-label{display:block;min-width:0;font-size:11px;line-height:1.2}
  body.website-v4 .journey .journey-mobile-cards{display:grid;gap:10px;padding:12px var(--mobile-gutter) 20px}
  body.website-v4 .journey .journey-mobile-cards .achievement-card{
    min-height:0;padding:18px;border:1px solid var(--line);background:var(--cream);box-shadow:none;
    scroll-margin-top:calc(var(--header) + 10px);
  }
  body.website-v4 .journey .journey-mobile-cards .achievement-kicker{margin-bottom:8px;padding-bottom:7px;font-size:11px}
  body.website-v4 .journey .journey-mobile-cards .achievement-metric{font-size:clamp(28px,8vw,36px);line-height:1.08;white-space:normal}
  body.website-v4 .journey .journey-mobile-cards .achievement-title{font-size:21px;line-height:1.15;margin:10px 0 7px}
  body.website-v4 .journey .journey-mobile-cards .achievement-copy{font-size:14px;line-height:1.5}
  body.website-v4 .journey .journey-mobile-cards .achievement-relevance{margin-top:12px;padding-top:9px}
  body.website-v4 .journey .journey-mobile-cards .achievement-relevance p{font-size:14px;line-height:1.45}

  /* Keep all four services reachable without forcing four narrow, tall cards onto the screen. */
  body.website-v4 .expertise-section{padding-block:42px}
  body.website-v4 .expertise-section.wrap{width:100%;padding-inline:var(--mobile-gutter)}
  body.website-v4 .expertise-section .section-heading{display:block;margin-bottom:18px}
  body.website-v4 .expertise-section .section-heading h2{font-size:clamp(30px,8vw,42px);line-height:1.03}
  body.website-v4 .expertise-section .section-heading>p{margin-top:12px;font-size:15px;line-height:1.5}
  body.website-v4 .expertise-section .workbench{overflow:hidden}
  body.website-v4 .expertise-section .bench-layout{display:block}
  body.website-v4 .expertise-section .expertise-tabs{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 12px;
    width:100%;min-width:0;max-width:100%;overflow:visible;scroll-snap-type:none;
  }
  body.website-v4 .expertise-section .expertise-tabs>button{
    min-width:0;min-height:52px;display:flex;align-items:center;justify-content:flex-start;
    padding:10px;border:1px solid var(--line);text-align:left;
    width:auto;max-width:100%;grid-column:auto;box-shadow:none;transform:none;
  }
  body.website-v4 .expertise-section .expertise-tabs>button[aria-selected=true]{border-color:var(--ink);background:var(--jade)}
  body.website-v4 .expertise-section .expertise-tabs>button>strong{font-size:15px}
  body.website-v4 .expertise-section .expertise-tabs>button>.pillar-description{display:none}
  body.website-v4 .expertise-section #expertise-panel{padding:18px 14px}
  body.website-v4 .expertise-section .board-heading h3{font-size:24px;line-height:1.12}
  body.website-v4 .expertise-section .workflow-map{height:auto;margin-top:14px}
  body.website-v4 .expertise-section .map-connectors{display:none}
  body.website-v4 .expertise-section .map-nodes,
  body.website-v4 .expertise-section [data-method=process] .map-nodes{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:8px;padding:0;
  }
  body.website-v4 .expertise-section .map-node:nth-child(n){grid-column:auto!important;grid-row:auto!important;min-width:0;min-height:56px;padding:9px;display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.25}
  body.website-v4 .expertise-section .map-node span{margin:0;font-size:10px}
  body.website-v4 .expertise-section .map-node:before{display:none}
  body.website-v4 .expertise-section .map-branch{position:static;grid-column:auto;grid-row:auto;width:auto;min-height:48px;padding:8px;font-size:11px}
  body.website-v4 .expertise-section .board-note{display:block;margin-top:14px;padding:10px;font-size:13px}
  body.website-v4 .expertise-section .stage-detail{display:block;min-height:0;margin-top:14px;padding-top:12px}
  body.website-v4 .expertise-section .stage-detail h4{font-size:21px;line-height:1.15}
  body.website-v4 .expertise-section .stage-detail p{font-size:14px;line-height:1.5}
  body.website-v4 .expertise-section .stage-output{margin-top:12px;padding:11px 0 0;border:0;border-top:1px solid var(--line)}
  body.website-v4 .expertise-section .bench-footer{gap:8px;padding:9px 12px}
  body.website-v4 .expertise-section .bench-footer>span{font-size:11px;line-height:1.25}
  body.website-v4 .expertise-section .next-stage{min-height:44px;padding:8px 10px;font-size:13px}

  body.website-v4 .service-outcomes{grid-template-columns:1fr;gap:20px;padding:24px var(--mobile-gutter)}
  body.website-v4 .service-outcomes>div{min-width:0;padding-top:14px}
  body.website-v4 .service-next{align-items:stretch;flex-direction:column;gap:18px;padding:22px var(--mobile-gutter)}
  body.website-v4 .service-next .assessment-hook__cta,
  body.website-v4 .service-next .capability-hook__cta{width:100%;min-height:48px;justify-content:space-between}
  body.website-v4 .solutions-canvas__opening{grid-template-columns:1fr;gap:18px;padding:22px var(--mobile-gutter)}
  body.website-v4 .solutions-canvas__opening h3{font-size:clamp(30px,8vw,40px)}
  body.website-v4 .solutions-canvas__delivery{padding:24px var(--mobile-gutter)}
  body.website-v4 .solutions-canvas__delivery ol{margin-top:20px}
  body.website-v4 .literacy-canvas__opening{align-items:flex-start;flex-direction:column;gap:16px;padding:22px var(--mobile-gutter)}
  body.website-v4 .literacy-canvas__opening h3{font-size:clamp(30px,8vw,40px)}
  body.website-v4 .literacy-canvas__learning{padding:24px var(--mobile-gutter);gap:22px}
  body.website-v4 .literacy-canvas__takeaway{padding:20px var(--mobile-gutter)}

  /* Native radio controls remain visible and the orange arrow remains the distinct action. */
  body.website-v4 .assessment-hook .service-hero{grid-template-columns:minmax(0,1fr);}
  body.website-v4 .assessment-hook .service-hero__words{min-width:0;padding:22px var(--mobile-gutter)}
  body.website-v4 .assessment-hook .service-hero h3{font-size:clamp(27px,7.4vw,38px);line-height:1.08}
  body.website-v4 .assessment-hook .service-hero__words>p{font-size:15px;line-height:1.5}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choices,
  body.website-v4 .assessment-hook .assessment-hook__choices[role=radiogroup]{
    display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:16px 0 14px;border:0;
  }
  body.website-v4 .assessment-hook .service-hero__words :is(.assessment-hook__choice,label.assessment-hook__choice){
    position:relative;min-width:0;min-height:0;display:grid;grid-template-columns:24px minmax(0,1fr);
    align-content:start;align-items:start;gap:3px 10px;padding:13px;border:1px solid var(--ink);
    border-radius:4px;background:var(--paper);text-align:left;box-shadow:none;transform:none;
  }
  body.website-v4 .assessment-hook .service-hero__words :is(.assessment-hook__choice-title,.assessment-hook__choice-meta,.assessment-hook__choice-output){grid-column:2;max-width:none}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice-indicator{
    grid-column:1;grid-row:1/4;align-self:start;display:grid;place-items:center;
    width:22px;height:22px;margin:0;border:2px solid var(--ink);border-radius:50%;background:var(--paper);
  }
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice-indicator>span{
    display:block;width:10px;height:10px;border-radius:50%;background:var(--ink);opacity:0;
  }
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice[aria-checked=true] .assessment-hook__choice-indicator{background:var(--ink);box-shadow:inset 0 0 0 4px var(--jade)}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice[role=radio]:focus-visible{outline:3px solid #047b87;outline-offset:2px}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice-title{margin:0 0 3px;font-size:16px;line-height:1.22}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice-meta{font-size:13px;line-height:1.35;color:var(--ink)}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice-output{margin:0;padding:2px 0 0;font-size:11px;line-height:1.3;letter-spacing:.02em;text-transform:none}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice-output:after{content:none}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice[aria-checked=true]{background:var(--jade);border-width:2px;padding:12px}
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choice:focus-within{outline:3px solid #047b87;outline-offset:2px}
  body.website-v4 .assessment-hook .service-hero__words .service-primary{width:100%;min-height:50px;justify-content:space-between;margin-top:2px;padding:12px 16px;text-align:left}

  /* Give dialogs a contained scroll area and keep close controls reachable. */
  body.website-v4 dialog,
  body.website-v4 #contact-dialog{
    width:calc(100vw - 20px);max-width:700px;max-height:calc(100dvh - 16px);
    margin:auto;overflow:auto;overscroll-behavior:contain;
  }
  body.website-v4 .founder-dialog-top,
  body.website-v4 .contact-dialog-bar{position:sticky;top:0;z-index:4;gap:8px;padding:9px 12px}
  body.website-v4 .founder-dialog-top{justify-content:flex-end}
  body.website-v4 .contact-dialog-bar>span{max-width:none;font-size:11px;line-height:1.3}
  body.website-v4 :is(.close-founder,.close-contact){flex:none;min-width:72px;min-height:44px;padding:8px 10px;font-size:13px}
  body.website-v4 .founder-dialog-grid{display:block}
  body.website-v4 .founder-dialog-photo{height:clamp(110px,35vw,170px)}
  body.website-v4 .founder-dialog-copy{padding:18px var(--mobile-gutter)}
  body.website-v4 .founder-dialog-copy h2{font-size:clamp(28px,8vw,36px);line-height:1.05}
  body.website-v4 .founder-dialog-copy>p{font-size:15px;line-height:1.5}
  body.website-v4 .founder-dialog-actions{gap:10px;margin-top:18px}
  body.website-v4 .founder-dialog-actions button{min-height:44px;padding:9px 12px}
  body.website-v4 .contact-dialog-content{padding:18px var(--mobile-gutter)}
  body.website-v4 .contact-dialog-content h2{font-size:clamp(28px,8vw,36px);line-height:1.05}
  body.website-v4 .contact-dialog-content>p#contact-intro{font-size:15px;line-height:1.5}
  body.website-v4 .contact-field-grid{grid-template-columns:minmax(0,1fr);gap:13px;margin-top:18px}
  body.website-v4 .contact-field-wide{grid-column:auto}
  body.website-v4 .contact-field input,
  body.website-v4 .contact-field textarea{min-width:0;width:100%;min-height:48px;font-size:16px}
  body.website-v4 .contact-field textarea{min-height:112px}
  body.website-v4 .contact-submit-row{display:block;margin-top:18px}
  body.website-v4 .send-enquiry{width:100%;min-height:48px;justify-content:space-between}
  body.website-v4 .contact-privacy{max-width:none;margin-top:14px;font-size:13px}
  body.website-v4 .contact-direct{font-size:14px;line-height:1.5}

  body.website-v4 footer{padding-block:28px;font-size:13px}
  body.website-v4 footer nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px}
  body.website-v4 footer nav a{min-height:40px;display:inline-flex;align-items:center}
}

@media(max-width:380px){
  body.website-v4{--mobile-gutter:14px}
  body.website-v4 .masthead{padding-inline:12px}
  body.website-v4 .masthead nav{gap:3px;font-size:10px}
  body.website-v4 .masthead .contact-link{min-height:38px;padding-inline:7px}
  body.website-v4 .journey .scene-top{padding-top:14px}
  body.website-v4 .journey .scene-top :is(h1,h2){font-size:27px}
  body.website-v4 .journey-intro{font-size:13px}
  body.website-v4 .journey .journey-landscape{height:184px}
  body.website-v4 .journey .founder-pair{left:calc(50% - 76px);width:152px;height:88px}
  body.website-v4 .journey .journey-controls button{flex-basis:112px}
  body.website-v4 .journey .journey-mobile-cards .achievement-card{padding:15px}
  body.website-v4 .journey .journey-mobile-cards .achievement-metric{font-size:28px}
  body.website-v4 .expertise-section .expertise-tabs>button{min-height:48px;padding:8px}
  body.website-v4 .expertise-section #expertise-panel{padding-inline:11px}
  body.website-v4 .expertise-section .map-node:nth-child(n){padding:8px;font-size:11px}
  body.website-v4 .service-hero__words{padding-inline:14px}
  body.website-v4 .assessment-hook .service-hero__words :is(.assessment-hook__choice,label.assessment-hook__choice){padding:11px}
  body.website-v4 .assessment-hook .service-hero__words .service-primary{font-size:14px}
  body.website-v4 .contact-dialog-content{padding-inline:14px}
}

@media(min-width:521px) and (max-width:760px){
  body.website-v4 .assessment-hook .service-hero__words .assessment-hook__choices,
  body.website-v4 .assessment-hook .assessment-hook__choices[role=radiogroup]{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(prefers-reduced-motion:reduce){
  body.website-v4{scroll-behavior:auto}
  body.website-v4 :is(*,*::before,*::after){scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
