@import url("/shared/character-scenes.css");
.chapter-action-link{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:48px;padding:.65rem 1.1rem;border:1.5px solid #fff;border-radius:28px;background:#fff;color:#081b26;font:inherit;font-size:.95rem;line-height:1.25;text-decoration:none;text-align:center}.chapter-action-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}.chapter-action-link:hover{background:#dcebf1}.chapter-actions{flex-wrap:wrap}
/* One quiet, glass category rail sits above the current topic's scene. */
.how-path-picker{position:fixed;z-index:25;top:calc(var(--story-header-height,88px) + .75rem);left:50%;transform:translateX(-50%);width:min(calc(100% - 3rem),44rem)}
.how-path-picker h2{margin:0 0 .45rem;color:#edf2f4;text-align:center;font:inherit;font-size:.95rem;line-height:1.3;font-weight:600;letter-spacing:0}
.how-audience-nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);overflow-x:auto;gap:8px;width:100%;padding:6px;border:1px solid #ffffff2e;border-radius:20px;background:#1733428c;box-shadow:0 8px 32px #0002;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.how-audience-nav a{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:48px;padding:8px 10px;border-radius:14px;color:#edf2f4;text-decoration:none;font:inherit;font-size:.875rem;line-height:1.2;transition:background 160ms ease,color 160ms ease}
.how-audience-nav a[aria-current]{background:#ffffffeb;color:#081b26;box-shadow:0 2px 10px #0002}.how-audience-nav a:hover:not([aria-current]){background:#ffffff16}.how-audience-nav svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.chapter-story .story-chapter{height:var(--story-slide-height);min-height:0;padding-top:calc(clamp(2rem,5dvh,4rem) + 6.25rem)}
.chapter-story .chapter-previous{top:7rem}
/* Reserve the path picker band before framing a character. Keep the existing
   photo bottom and copy positions so navigation never crosses a face. */
.chapter-story{--how-photo-inset:7.25rem}
.chapter-story .chapter-photo{top:var(--how-photo-inset);height:calc(100% - var(--how-photo-inset))}
@media(max-width:700px){.how-path-picker{top:calc(var(--story-header-height,88px) + .5rem);width:calc(100% - 1.5rem)}.how-audience-nav{gap:8px;padding:5px;border-radius:18px}.how-audience-nav a{flex-direction:column;gap:4px;min-height:56px;padding:6px 2px;font-size:.75rem;border-radius:12px}.how-audience-nav svg{width:21px;height:21px}.chapter-action-link{min-height:44px;font-size:.875rem;padding-inline:.85rem}.chapter-actions{gap:12px}}
@media(max-width:400px){
 .how-path-picker{width:calc(100% - 1rem)}
 .how-audience-nav{gap:2px;padding:4px}
 .how-audience-nav a{min-width:44px;padding-inline:1px}
}
@media(max-width:700px) and (orientation:portrait){.chapter-story .story-chapter{padding-top:var(--how-photo-inset);padding-bottom:4rem}}
@media(max-width:700px) and (orientation:portrait){
 .chapter-story .chapter-photo{height:calc(65% - var(--how-photo-inset))}
 .chapter-story .chapter-photo img{object-position:var(--chapter-photo-position,62%) top}
}
/* Portrait tablets use the same photo-above-copy composition as phones.
   A narrow side crop would lose the action or place a face behind the copy. */
@media(min-width:701px) and (max-width:1000px) and (orientation:portrait){
 .chapter-story .story-chapter:not(.chapter-product){align-items:flex-end;padding-top:var(--how-photo-inset);padding-bottom:4rem}
 .chapter-story .chapter-copy{width:100%;max-width:34rem;margin-inline:auto}
 .chapter-story .chapter-photo{left:0;width:100%;height:calc(65% - var(--how-photo-inset));mask-image:linear-gradient(to bottom,#000 0%,#000 38%,transparent 100%)}
 .chapter-story .chapter-photo img{object-position:var(--chapter-photo-position,62%) top}
 .chapter-story .chapter-photo::after{display:none}
}
@media(orientation:landscape) and (max-height:600px){.how-path-picker{top:calc(var(--story-header-height,88px) + .25rem);width:min(calc(100% - 7rem),44rem)}.how-path-picker h2{font-size:.85rem;margin-bottom:.25rem}.how-audience-nav{padding:3px;gap:8px;border-radius:14px}.how-audience-nav a{flex-direction:row;gap:7px;min-height:44px;padding:5px 8px;font-size:.8rem;border-radius:10px}.how-audience-nav svg{width:20px;height:20px}.chapter-story .story-chapter{padding-top:5.75rem}.chapter-story .chapter-previous{top:5.25rem}}
@media(orientation:landscape) and (max-height:600px) and (max-width:700px){
 .how-path-picker{width:calc(100% - 2rem)}
 .how-audience-nav{gap:3px}
 .how-audience-nav a{gap:4px;padding-inline:3px}
}
@media(orientation:landscape) and (max-height:600px){
 .chapter-story{--how-photo-inset:5.5rem}
 .chapter-story .chapter-photo img{object-position:var(--chapter-photo-position,62%) top}
}


.key-beginning-lead span{display:block}.key-beginning-lead span+span{margin-top:.65rem}

@media(orientation:landscape) and (max-height:600px){
 .chapter-copy:has(.key-beginning-lead){width:100%;max-width:42rem}
 .chapter-story .key-beginning-lead{max-width:65ch;margin-block:.65rem .75rem}
 .key-beginning-lead span+span{margin-top:.4rem}
}


/* Seven chapters retain full touch targets; the active dot stays in view. */
[data-character-audience="marketing"] .chapter-nav{gap:8px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x}
[data-character-audience="marketing"] .chapter-nav::-webkit-scrollbar{display:none}
[data-character-audience="marketing"] .chapter-nav a{flex:0 0 44px}
@media(max-width:520px){
 [data-character-audience="marketing"] .chapter-nav{left:var(--chapter-inset);transform:none;max-width:calc(100% - 2 * var(--chapter-inset) - 52px)}
}

/* Actual product views link directly into their interactive workspaces. */
.product-screen{margin:1.5rem 0 2rem;max-width:100%}
.product-screen>a{display:block;border:1px solid #cddbdc;border-radius:12px;overflow:hidden;background:#fff}
.product-screen picture,.product-screen img{display:block;width:100%;height:auto}
.product-screen figcaption{margin-top:.65rem;font-size:1rem;line-height:1.5}
.product-screen figcaption a{display:inline-flex;align-items:center;gap:.5rem;min-height:44px}
.product-screen a:focus-visible{outline:3px solid #0864e8;outline-offset:4px}

/* Product steps give the actual workspace its own area, free of photo masks. */
.chapter-story .story-chapter.chapter-product{display:grid;grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr);gap:clamp(1.5rem,3vw,3rem);grid-template-rows:minmax(0,1fr);align-items:center}
.chapter-product .chapter-copy{grid-column:1;grid-row:1;width:100%;max-width:34rem}
.chapter-story .chapter-product .chapter-copy h2{font-size:clamp(2.1rem,3.5vw,3.7rem)}
.chapter-product-screen{grid-column:2;grid-row:1;min-width:0;min-height:0;height:100%;margin:0;display:flex;align-items:center;justify-content:center}
.chapter-product-screen a{display:flex;align-items:center;justify-content:center;max-height:100%;max-width:100%;overflow:hidden;border:1px solid #ffffff40;border-radius:12px;background:#fff}
.chapter-product-screen picture{display:flex;min-height:0;max-height:100%;width:100%}.chapter-product-screen img{display:block;width:100%;height:100%;min-height:0}
.chapter-product-screen img{max-height:100%;object-fit:contain}
.chapter-product-screen a:focus-visible{outline:3px solid #71c3f6;outline-offset:5px}
@media(max-width:1000px) and (orientation:portrait){
 .chapter-story .story-chapter.chapter-product{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;align-content:stretch;gap:1rem;padding-top:var(--how-photo-inset);padding-bottom:4rem}
 .chapter-product-screen{grid-column:1;grid-row:1;width:100%;max-width:34rem;justify-self:center}
 .chapter-product-screen a{height:100%;width:100%;margin-inline:auto;background:transparent;border:0}
 .chapter-product-screen picture{height:100%}.chapter-product-screen img{width:100%;height:100%;max-height:100%;border-radius:10px}
 .chapter-product .chapter-copy{grid-column:1;grid-row:2}
 .chapter-story .chapter-product .chapter-copy h2{font-size:clamp(1.8rem,7.5vw,2.7rem)}
 .chapter-story .chapter-product .chapter-lead{margin:.85rem 0 1.1rem}
}
@media(orientation:landscape) and (max-height:600px){
 .chapter-story .story-chapter.chapter-product{gap:1.25rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .chapter-story .chapter-product .chapter-copy h2{font-size:clamp(1.7rem,3vw,2.5rem)}
 .chapter-product-screen img{max-height:100%}
}

/* Every chapter is one slide. Artwork uses the room left after readable copy
   and controls, never an independent viewport-height allowance. */
@media(orientation:portrait) and (max-height:700px){
 .chapter-story .chapter-copy h2,.chapter-story .chapter-product .chapter-copy h2{font-size:clamp(1.55rem,7vw,2rem)}
 .chapter-story .chapter-lead,.chapter-story .chapter-product .chapter-lead{font-size:1rem;line-height:1.35;margin:.65rem 0 .85rem}
}
@media(orientation:landscape) and (max-height:500px){
 .chapter-story .story-chapter{padding-top:4rem;padding-bottom:3rem}
 .how-path-picker h2{display:none}
 .chapter-story{--how-photo-inset:4rem}
 .chapter-story .chapter-previous{top:3.75rem}
 .chapter-story .chapter-copy h2,.chapter-story .chapter-product .chapter-copy h2{font-size:clamp(1.35rem,2.6vw,1.7rem)}
 .chapter-story .chapter-lead{font-size:.9375rem;line-height:1.3;margin:.4rem 0 .5rem}
}

/* Reserve the action's space so switching its label keeps the title bar steady. */
.site-header [data-audience-action]{width:11rem}
@media(max-width:600px){.site-header [data-audience-action]{width:9rem}}
@media(max-width:380px){.site-header [data-audience-action]{width:7rem}}
