:root{--studio-bg:#062f43;--studio-ink:#fff;--studio-muted:#c3d5de;--studio-line:#668394}
.studio-page,.studio-dialog{font-family:Arial,sans-serif;color:var(--studio-ink);line-height:1.55;font-size:16px}
.studio-page{margin:0;min-height:100vh;height:auto;overflow:auto;background:#01344c}
html:has(.studio-page){height:auto;overflow:auto}
.studio-page *,.studio-dialog *{box-sizing:border-box}
.studio-page a,.studio-dialog a{color:inherit;text-underline-offset:4px}
.studio-page button,.studio-dialog button,.studio-page input,.studio-page select,.studio-page textarea,.studio-dialog input,.studio-dialog select,.studio-dialog textarea{font:inherit}
.studio-page :focus-visible,.studio-dialog :focus-visible,.studio-launch:focus-visible,.home-message a:focus-visible{outline:3px solid #a5e6ff;outline-offset:4px}
.studio-header{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1280px;margin:auto;padding:24px 5vw;border-bottom:1px solid var(--studio-line)}
.studio-brand{font-size:20px;font-weight:bold;letter-spacing:.05em;text-decoration:none}
.studio-header nav,.studio-footer nav,.studio-row{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}
.studio-header nav>a:not(.studio-button),.studio-footer nav>a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.studio-main{max-width:1280px;margin:auto;padding:64px 5vw 80px}
.studio-page h1,.studio-dialog h2{font-size:clamp(36px,5vw,64px);line-height:1.05;letter-spacing:-.035em;margin:12px 0 24px;font-weight:500}
.studio-page h2,.studio-dialog h3{font-size:26px;line-height:1.2;margin:20px 0 12px;font-weight:500;letter-spacing:-.02em}
.studio-page h3{font-size:23px;line-height:1.2;font-weight:500}
.studio-page p,.studio-dialog p{max-width:75ch;margin:0 0 20px}
.studio-lede{font-size:clamp(20px,2.5vw,26px);line-height:1.45;max-width:62ch!important}
.studio-kicker{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--studio-muted)}
.studio-note{font-size:14px;color:var(--studio-muted);margin-top:24px!important}
.studio-contact{overflow-wrap:anywhere}
.studio-section{margin-top:56px;padding-top:32px;border-top:1px solid var(--studio-line)}
.studio-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:16px;border:1px solid var(--studio-line);padding:10px 18px;border-radius:24px;text-decoration:none;cursor:pointer;background:transparent;color:var(--studio-ink);line-height:1.4}
.studio-button.is-primary{background:#fff;border-color:#fff;color:#01344c}
.studio-button:hover{border-color:#fff}
.studio-text-link{min-height:44px;display:inline-flex;align-items:center}
.trust-grid,.service-grid,.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:32px 0}
.trust-grid article,.service-grid>article,.service-grid>section{padding:24px 0;border-top:1px solid var(--studio-line)}
.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.work-card{min-width:0;background:var(--studio-bg);border:1px solid var(--studio-line);overflow:hidden;border-radius:8px}
.work-card>a{display:block;text-decoration:none;height:100%}
.work-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-bottom:1px solid var(--studio-line)}
.work-card-copy{padding:20px}.work-card-copy h3{margin:0 0 16px}.work-card-copy .studio-text-link{text-decoration:underline}
.project-preview{display:block;width:100%;height:auto;margin:32px 0;border:1px solid var(--studio-line);border-radius:8px}
.case-scope{border-left:2px solid #a5e6ff;padding-left:18px;margin:24px 0}.case-scope p{margin:0 0 6px}
.case-decisions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:32px 0 40px}.case-decisions h3{margin:0 0 16px}.case-decisions .studio-kicker{margin-bottom:12px}
.case-shot{margin:0 0 40px;border:1px solid var(--studio-line);border-radius:8px;overflow:hidden;background:var(--studio-bg)}.case-shot img{display:block;width:100%;height:auto;aspect-ratio:16/9}.case-shot figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;padding:16px 20px;font-size:14px;color:var(--studio-muted)}
.studio-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0 32px}
.studio-steps li{display:flex;gap:16px;border-top:1px solid var(--studio-line);padding-top:20px}
.studio-steps li>span{font-size:13px;color:var(--studio-muted);padding-top:4px}
.studio-faq{max-width:850px;margin:24px 0}.studio-faq details{border-top:1px solid var(--studio-line);padding:0 0 12px}.studio-faq summary{cursor:pointer;min-height:56px;padding:16px 0;font-size:18px}.studio-faq details p{color:var(--studio-muted);padding-right:24px}
.studio-footer{max-width:1280px;margin:auto;padding:32px 5vw;border-top:1px solid var(--studio-line);color:var(--studio-muted);font-size:14px}
.studio-skip{position:absolute;top:-100px;left:20px;z-index:100;background:#fff;color:#01344c!important;padding:12px}.studio-skip:focus{top:8px}
.studio-dialog{padding:0;background:#062f43;border:1px solid var(--studio-line);border-radius:16px;width:min(1160px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);overflow:hidden;box-shadow:0 24px 100px #001826;margin:auto}
.studio-dialog[open]{display:flex;flex-direction:column}
.studio-dialog::backdrop{background:rgba(0,20,32,.8);backdrop-filter:blur(10px)}
.studio-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px;border-bottom:1px solid var(--studio-line);flex:none}
.studio-dialog-head p,.studio-dialog-head h2{font-size:14px;letter-spacing:.06em;margin:0;font-weight:500}
.studio-close{width:44px;height:44px;background:transparent;color:#fff;border:1px solid var(--studio-line);border-radius:50%;font-size:28px!important;cursor:pointer;flex:none}
.studio-tabs{display:flex;gap:6px 20px;flex-wrap:wrap;padding:8px 28px;border-bottom:1px solid var(--studio-line);flex:none}
.studio-tabs a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:14px}.studio-tabs a[aria-current]{text-decoration:underline;text-decoration-thickness:2px}
.studio-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:32px 28px 40px;min-height:0}
.studio-dialog [hidden],.studio-page [hidden]{display:none!important}
.brief-dialog{width:min(760px,calc(100% - 48px))}
.brief-form{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.brief-form.is-ready{display:grid}
.brief-form label,.brief-result label{display:flex;flex-direction:column;gap:8px;font-size:14px}.brief-wide{grid-column:1/-1}
.brief-form input,.brief-form select,.brief-form textarea,.brief-result textarea{width:100%;min-width:0;padding:12px;color:#fff;background:#01344c;border:1px solid var(--studio-line);border-radius:6px;font-size:16px;line-height:1.45;min-height:48px}
.brief-form textarea,.brief-result textarea{resize:vertical}.brief-form input::placeholder,.brief-form textarea::placeholder{color:#c3d5de;opacity:1}
.brief-module-note{font-size:14px;margin:0!important;color:var(--studio-muted)}.brief-result{padding:24px 0;border-top:1px solid var(--studio-line);margin-top:24px}.brief-result .studio-row{margin-top:20px}
.studio-launch{display:none;min-height:44px;padding:0 16px;align-items:center;color:#fff;text-decoration:none;border:1px solid #b4c9d3;background:rgba(1,52,76,.9);border-radius:24px}
.header-actions{gap:12px}
.home-message{position:absolute;top:82px;left:clamp(18px,1.95vw,28px);width:340px;padding:12px 14px;color:#fff;background:rgba(1,52,76,.9);border:1px solid rgba(180,201,211,.55);border-radius:12px}
.home-message h1{font-size:24px;line-height:1.15;font-weight:500;letter-spacing:-.02em;margin:0}.home-message .home-lede{font-size:14px;line-height:1.4;margin:8px 0 12px}.home-actions{display:flex;gap:8px}.home-actions a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 14px;border:1px solid #b4c9d3;border-radius:24px;color:#fff;text-decoration:none;font-size:14px}.home-actions .home-primary{background:#fff;color:#01344c;border-color:#fff}.home-message .home-proof{font-size:11px;line-height:1.4;margin:10px 0 0}
.experience .planet-list{top:calc(50% + 20px)}
@media(max-width:1050px){.home-message{width:280px}.home-message h1{font-size:21px}.home-actions a{padding:0 10px;font-size:13px}.nav a{padding-left:14px;padding-right:14px}}
@media(min-width:641px) and (max-width:800px){.home-message{width:210px}.home-message h1{font-size:18px}.home-message .home-lede{font-size:13px}.home-actions{gap:6px}.home-actions a{padding:0 6px;gap:6px;font-size:12px;white-space:nowrap}.home-message .home-proof{display:none}.experience .portal-wrap{left:55%;top:40%;width:200px}}
@media(min-width:641px) and (max-height:680px){.experience .planet-list{top:278px;transform:none!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:300px}.home-message .home-proof{display:none}}
@media(min-width:641px) and (max-width:800px) and (max-height:680px){.experience .planet-list{width:210px}.experience .portal-wrap{width:160px;top:34%}}
@media(max-width:900px){.studio-launch{display:inline-flex}.work-grid,.trust-grid,.case-decisions{grid-template-columns:1fr}.studio-header{align-items:flex-start;flex-direction:column;gap:12px}.studio-header nav{gap:8px 18px}.studio-main{padding-top:40px}}
@media(max-width:640px){.home-message{top:78px;left:18px;right:18px;width:auto;padding:10px 12px}.home-message h1{font-size:21px}.home-message .home-lede{font-size:13px;margin:6px 0 10px}.home-actions a{font-size:13px;padding:0 12px}.home-message .home-proof{font-size:10px;margin-top:8px}.experience:not([data-chapter="web"]) .home-message{display:none}.experience[data-chapter="web"] .portal-wrap{left:70%;top:56%;width:145px}.experience[data-chapter="web"] .portal-heading{font-size:12px}.experience[data-chapter="web"] .portal-heading strong{font-size:14px}.experience[data-chapter="web"] .portal-cta{font-size:12px;padding:0 10px;gap:5px}.experience[data-chapter="web"] .planet-title{font-size:72px}}
@media(max-width:600px){.studio-dialog,.brief-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.studio-dialog-head,.studio-tabs{padding-left:16px;padding-right:16px}.studio-tabs{gap:0 16px}.studio-dialog-body{padding:24px 16px}.studio-tabs a{font-size:13px}.service-grid,.studio-steps,.brief-form{grid-template-columns:1fr}.brief-wide{grid-column:auto}.studio-row{gap:12px}.header-actions{gap:8px}.header .menu{padding:0 14px}.studio-launch{padding:0 14px}.studio-page h1,.studio-dialog h2{font-size:38px}.studio-page .studio-header .studio-button{padding:10px 14px}}
@media(prefers-reduced-motion:reduce){.studio-dialog::backdrop{backdrop-filter:none}}
@media(max-width:360px){.logo-word{font-size:13px;margin-left:8px}}
@media(max-width:640px){.home-message h1{max-width:calc(100% - 40px)}}


/* ============================================================
   MOBILE REPAIR (<=640px only; desktop >640px is untouched).
   Measured DOM order inside main.experience:
     backgrounds, preloader, floating-logo, preloader-count, shade, header,
     home-message, sound, portal-canvas, portal-wrap, planet-content, builder…
   On phones the fixed/absolute stack (home-message top:78, portal-wrap top:%,
   planet-content bottom:18, sound fixed) collided at 320x568. Here the
   experience becomes one natural-flow column that scrolls with the page:
   header (sticky) / home-message / sound / portal-wrap / planet-title+facts.
   Media (backgrounds, preloader, shade, portal canvas) stays fixed to the
   viewport, decorative and behind the content. Chapter switching is untouched:
   data-chapter rules that hide the home-message and build-cta still apply.
   ============================================================ */
@media(max-width:640px){
  html{height:auto;overflow-x:hidden;overflow-y:auto}
  html:has(dialog[open]){overflow:hidden}
  body{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}

  main.experience{display:flex;flex-direction:column;align-items:stretch;gap:12px;
    height:auto;min-height:100vh;min-height:100dvh;overflow:visible;overflow-x:clip;
    padding-bottom:max(24px,env(safe-area-inset-bottom))}

  /* decorative media: pinned to the viewport, behind all content */
  main.experience .backgrounds{position:fixed;inset:0;width:100%;height:100%;z-index:0}
  main.experience .shade{position:fixed;inset:0;width:100%;height:100%;z-index:1}
  main.experience .preloader{position:fixed;inset:0}
  main.experience .transition-layer{position:fixed;inset:0;width:100%;height:100%}
  main.experience .loading{position:fixed;pointer-events:none!important}

  /* row 1: header. Sticky so the docked logo (fixed, top-left) always has a
     solid row to sit on instead of drifting over scrolling content. */
  main.experience .header.chrome{position:sticky!important;top:0!important;left:auto!important;right:auto!important;
    z-index:24;margin:0;padding:14px 18px 10px;flex:0 0 auto;
    background:rgba(1,52,76,.92);backdrop-filter:blur(12px)}
  main.experience .floating-logo.is-docked{top:18px!important;left:18px!important}
  main.experience .floating-logo.is-settled{z-index:25}
  /* while the builder sheet is open it must sit above the header and logo */
  main.experience:has(.builder:not([hidden])) .header.chrome{z-index:19}
  main.experience:has(.builder:not([hidden])) .floating-logo.is-settled{z-index:20}

  /* row 2: home message (its own display:none for non-web chapters is kept) */
  main.experience .home-message.chrome{display:none;position:relative!important;top:auto!important;left:auto!important;right:auto!important;
    bottom:auto!important;transform:none!important;width:auto;margin:0 18px;flex:0 0 auto;
    padding:0;background:none;border:0;border-radius:0;box-shadow:none;
    -webkit-backdrop-filter:none;backdrop-filter:none}
  /* compact integrated intro: headline plus one action row; the lede and proof
     stay in the DOM but are hidden here */
  main.experience .home-message h1{max-width:none;font-size:20px;line-height:1.2;
    text-shadow:0 1px 2px rgba(0,20,32,.6),0 0 14px rgba(0,20,32,.45)}
  main.experience .home-message .home-lede,
  main.experience .home-message .home-proof{display:none}
  main.experience .home-actions{align-items:center;gap:6px;margin-top:8px}
  main.experience .home-actions a{min-height:44px;padding:0 6px;border:0;border-radius:0;
    background:none;color:#fff;font-size:14px;text-decoration:underline;
    text-underline-offset:4px;text-shadow:0 1px 2px rgba(0,20,32,.6)}
  main.experience .home-actions .home-primary{padding:0 16px;border-radius:24px;background:#fff;
    color:#01344c;text-decoration:none;text-shadow:none}

  /* row 3: sound control — its own reserved row, right aligned, no overlay */
  main.experience .sound{position:relative;top:auto;right:auto;left:auto;align-self:flex-end;
    flex:0 0 auto;margin:0 var(--sound-right,12px) 0 0}

  /* row 4: portal window (canvas mask stays fixed behind, decorative) */
  main.experience .portal-wrap.chrome,
  main.experience[data-chapter] .portal-wrap.chrome{position:relative!important;left:auto!important;top:auto!important;
    right:auto!important;bottom:auto!important;transform:none!important;
    width:min(240px,70vw)!important;margin:4px auto 0;flex:0 0 auto}
  /* the lane reservation is only needed when the caption shared the sound band */
  main.experience .portal-wrap.sound-lane .portal-heading{margin-right:0}

  /* row 5+6: planet title and content (facts, build-cta anchor) */
  main.experience .planet-content.chrome{position:relative!important;left:auto!important;right:auto!important;
    bottom:auto!important;top:auto!important;transform:none!important;
    display:block;width:auto;margin:8px 18px 0;flex:0 0 auto}
  main.experience .planet-content .planet-title{margin-top:0}

  /* the hidden chapter list stays hidden */
  main.experience .planet-list{display:none}

  /* studio / brief dialogs: pinned head + tabs, body is the only scroller,
     so wrapped tabs can never clip the body */
  .studio-dialog[open]{display:flex;flex-direction:column;height:auto;overflow:hidden}
  .studio-dialog-head{flex:0 0 auto}
  .studio-tabs{flex:0 0 auto;min-height:min-content}
  .studio-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch}
}


/* ============================================================
   MOBILE REPAIR 2 (<=640px): "Build your app" anchor in natural flow.
   portal.css pins .build-cta absolute at top:0/right:0 of .planet-content; on
   phones .planet-content is now in normal flow under the portal, so that
   anchor overlaid the APPS title/portal edge. Here it becomes the last block
   in the content column with its own spacing. It is removed from layout
   (display:none) everywhere except the apps chapter, so other chapters gain no
   empty row; the base visibility:hidden / pointer-events:none / opacity rules
   stay in force, so it is still never focusable or clickable when hidden.
   ============================================================ */
@media(max-width:640px){
  main.experience .planet-content .build-cta{position:relative;top:auto;right:auto;bottom:auto;left:auto;
    display:none;width:fit-content;max-width:100%;margin:16px 0 8px;z-index:auto}
  body.intro-ready main.experience[data-chapter="apps"] .planet-content .build-cta{display:inline-flex}
}

/* ============================================================
   MOBILE REPAIR 3 (<=360px): header never collides at 320x568.
   Measured with a Windows scrollbar: clientWidth 305, fixed logo at x18 ran to
   ~126 while the "Menu" pill began ~120. Budget at 305px (layout widths are
   container-relative, so the scrollbar is already excluded):
     12 pad | logo 32 + 6 + wordmark ~58..64 | >=8 gap | Menu | 8 | Contact | 12 pad
   The header reserves the logo's footprint on its left (padding-left) so the
   action pills can never extend under it; the docked logo is sized to match.
   Pills keep 44px minimum touch targets in both axes.
   ============================================================ */
@media(max-width:360px){
  main.experience .header.chrome{padding:14px 12px 10px 126px}
  main.experience .floating-logo.is-docked{left:12px!important;top:20px!important;width:32px;height:31px}
  .logo-word{font-size:11px;margin-left:6px;letter-spacing:0}
  main.experience .header-actions{gap:8px;min-width:0;max-width:100%;flex:0 1 auto;justify-content:flex-end}
  main.experience .header-actions>a{flex:0 0 auto;min-width:44px;min-height:44px;height:44px;
    justify-content:center;text-align:center;white-space:nowrap;font-size:13px;box-sizing:border-box}
  main.experience .header .menu,main.experience .header .studio-launch{padding:0 10px}
}
