/* Header second-level navigation and chapter stepping. */
html{scroll-padding-top:110px}.desktop-nav{align-items:center}.platform-nav{position:relative}.platform-trigger{background:none;display:flex;align-items:center;gap:7px;font:inherit;font-size:14px;font-weight:550;color:#4c5064;padding:12px 0;min-height:42px;position:relative}.platform-trigger svg,.mobile-platform-trigger svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.3;fill:none;transition:transform .2s}.platform-trigger[aria-expanded="true"],.platform-trigger.has-active-feature{color:var(--accent)}.platform-trigger[aria-expanded="true"] svg,.mobile-platform-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}.platform-trigger:after{content:'';position:absolute;bottom:3px;left:0;right:100%;height:2px;background:var(--accent);transition:right .2s}.platform-trigger:hover:after,.platform-trigger[aria-expanded="true"]:after,.platform-trigger.has-active-feature:after{right:0}.platform-menu{position:absolute;left:-30px;top:calc(100% + 13px);width:500px;padding:23px;background:#fffffff7;border:1px solid #e5dfef;border-radius:13px;box-shadow:0 20px 60px #34274518;backdrop-filter:blur(24px);z-index:50;animation:menuAppear .16s ease-out;max-height:calc(100svh - 115px);overflow-y:auto;overscroll-behavior:contain}.platform-nav:after{content:'';position:absolute;top:100%;left:-30px;width:500px;height:15px;pointer-events:none}.platform-nav.menu-open:after{pointer-events:auto}.platform-menu-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px;color:#a295b5;line-height:1.5;padding-bottom:16px;border-bottom:1px solid #eee8f4;margin-bottom:11px}.platform-menu-heading>span:first-child{font:12px ui-monospace,SFMono-Regular,monospace;letter-spacing:.4px}.platform-menu-heading b{color:var(--accent);font-weight:500}.platform-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 9px}.desktop-nav .platform-menu-grid>a{display:flex;align-items:center;gap:12px;padding:14px 10px;border-radius:8px;color:#59516a;white-space:normal;transition:background .2s,color .2s}.desktop-nav .platform-menu-grid>a:after,.desktop-nav .platform-overview:after{display:none}.menu-step{width:31px;height:31px;border:1px solid #e3dced;background:#fbf9fe;border-radius:9px;display:grid;place-items:center;flex-shrink:0;font:12px ui-monospace,SFMono-Regular,monospace;color:#a18dae;transition:background .2s,color .2s,border .2s}.platform-menu-grid strong{display:block;font-size:14px;font-weight:570;line-height:1.5}.platform-menu-grid small{display:block;font-size:12px;font-weight:400;color:#a092b0;line-height:1.5;margin-top:4px;white-space:nowrap}.desktop-nav .platform-menu-grid>a:hover,.platform-menu-grid>a.is-current{background:#f4f0fc;color:var(--accent)}.platform-menu-grid>a.is-current .menu-step{background:var(--accent);color:white;border-color:var(--accent)}.platform-menu-grid>a.is-visited:not(.is-current) .menu-step{background:#f0eaf8;border-color:#d6c8e9;color:#8c75aa}.desktop-nav .platform-overview{display:block;margin-top:13px;border-top:1px solid #ece6f2;padding:16px 10px 0;font-size:12px;color:#9380a5;font-weight:450}.platform-overview:hover{text-decoration:underline;text-underline-offset:4px}.mobile-platform-trigger{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;text-align:left;padding:14px 0;font-size:16px;font-weight:450}.mobile-platform-menu{padding:3px 0 12px 13px;border-left:1px solid #ded3ec;margin-bottom:10px}.mobile-nav .mobile-platform-menu a{display:flex;align-items:center;gap:12px;padding:11px 10px;font-size:14px;border-radius:7px}.mobile-platform-menu strong{display:block;font-size:14px;font-weight:500;line-height:1.5}.mobile-platform-menu small{display:block;font-size:12px;color:#a292b1;line-height:1.5;margin-top:3px}.mobile-platform-menu a.is-current{color:var(--accent);background:#f0eafb}.mobile-platform-menu a.is-current .menu-step{background:var(--accent);border-color:var(--accent);color:white}.mobile-platform-menu a.is-visited:not(.is-current) .menu-step{background:#f1eaf8;color:#8d75aa}.mobile-nav{max-height:calc(100svh - 72px);overflow-y:auto;overscroll-behavior:contain}.journey-intro{padding-bottom:25px}.feature-chapter{min-height:max(660px,calc(100svh - 86px));padding-top:40px;padding-bottom:50px;scroll-margin-top:0}.chapter-navigation{display:flex;gap:13px;align-items:center;margin-top:27px;pointer-events:auto}.chapter-navigation a{font-size:12px;line-height:1.5;padding:10px 12px;border:1px solid #e0d6ec;border-radius:6px;color:#9d8aac;background:#f9f6fd}.chapter-navigation .chapter-next{color:var(--scene);border-color:rgba(var(--scene-rgb),.25);background:rgba(var(--scene-rgb),.035)}.chapter-navigation a:hover{background:#eee6f8;color:var(--accent)}.chapter-transition .story-copy{transition:opacity .28s}.chapter-transition .feature-chapter:not(.is-active) .story-copy{opacity:.5}.chapter-space{padding-bottom:90px}.hero-scroll>a{background:#f8f9fca6;border-radius:8px;padding:4px 6px 4px 0}.platform-menu a:focus-visible,.platform-trigger:focus-visible{outline-offset:3px}
@keyframes menuAppear{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1180px){.platform-menu{left:-95px;width:470px;padding:21px}.platform-nav:after{left:-95px;width:470px}.platform-menu-grid small{font-size:12px;letter-spacing:-.2px}}
@media(max-width:920px){.platform-menu{left:-120px;width:440px;padding:18px}.platform-nav:after{left:-120px;width:440px}.platform-menu-grid{column-gap:4px}.desktop-nav .platform-menu-grid>a{gap:9px;padding:13px 7px}.platform-menu-grid small{font-size:12px;white-space:normal}.platform-menu-heading>span:first-child{font-size:12px;letter-spacing:0}.chapter-space{padding-bottom:95px}}
@media(max-width:700px){html{scroll-padding-top:92px}.hero-scroll>a{font-size:12px;line-height:1.6;max-width:310px}.journey-intro{padding-bottom:25px}.feature-chapter{min-height:max(750px,calc(100svh - 72px));padding-top:25px;padding-bottom:245px}.chapter-navigation{margin-top:20px;gap:9px}.chapter-navigation a{font-size:12px;padding:9px 11px}.chapter-space{bottom:97px;padding:0}.story-copy{padding-bottom:14px}.platform-menu{display:none!important}}
@media(max-width:700px) and (max-height:730px){.feature-chapter{padding-top:15px;min-height:760px}.chapter-navigation{margin-top:14px}.chapter-navigation a{padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.platform-menu{animation:none}.chapter-transition .feature-chapter:not(.is-active) .story-copy{opacity:1}}

/* One shared second header: reveal on platform hover, pin throughout the platform section. */
.platform-nav:after{display:none}.platform-subheader{position:absolute;top:100%;left:0;width:100%;height:80px;padding:8px 24px;z-index:42;pointer-events:auto;animation:subheaderReveal .2s ease-out;background:linear-gradient(#f8f9fc7a,#f8f9fc20);border:0}.platform-subheader .journey-nav-inner{height:64px;width:min(1010px,100%);padding:10px 18px;gap:8px;background:#fffffff5;box-shadow:0 8px 28px #37305109}.platform-subheader .journey-nav-title{display:block}.platform-subheader a{display:flex;align-items:center;gap:8px;flex:1;padding:5px 7px;font-size:13px;font-weight:450;white-space:nowrap;min-height:40px;color:#a49aad;border-radius:6px;transition:color .2s,background .2s}.platform-subheader a:hover{color:var(--accent);background:#f4f1fa}.platform-subheader a.is-visited .step-dot{border-color:#bfb4da;background:#f1edf9;color:#8e7bac}.platform-subheader a.is-current{color:var(--scene);background:rgba(var(--scene-rgb),.045);font-weight:600}.platform-subheader a.is-current .step-dot{color:white;background:var(--scene);border-color:var(--scene);box-shadow:0 0 0 4px rgba(var(--scene-rgb),.07)}.platform-subheader .journey-count{display:block}.feature-chapter{scroll-margin-top:80px}
@keyframes subheaderReveal{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:920px){.platform-subheader{padding-inline:18px}.platform-subheader .journey-nav-inner{padding-inline:12px;gap:4px}.platform-subheader .journey-nav-title{font-size:12px;padding-right:10px;letter-spacing:0}.platform-subheader a{font-size:12px;gap:6px;padding-inline:5px}.platform-subheader .journey-count{padding-left:10px}}
@media(max-width:700px){.platform-subheader{padding:8px 10px}.platform-subheader .journey-nav-inner{height:64px;max-width:none;padding:6px 7px;gap:0;border-radius:9px}.platform-subheader .journey-nav-title,.platform-subheader .journey-count{display:none}.platform-subheader a{flex-direction:column;gap:5px;font-size:12px;line-height:1.3;min-height:48px;padding:3px;border-radius:5px}.platform-subheader .step-dot{width:22px;height:22px;font-size:12px}.platform-subheader a.is-current .step-dot{box-shadow:none}.header.menu-expanded .platform-subheader{display:none}.feature-chapter{scroll-margin-top:80px}}
@media(prefers-reduced-motion:reduce){.platform-subheader{animation:none}}
@media(min-width:701px) and (max-width:920px){.platform-subheader .journey-nav-title{display:none}}

/* Place the chapter index close to the secondary header, not at the viewport midpoint. */
.feature-chapter{align-items:start;padding-top:12px}.feature-chapter .story-copy{padding-top:10px}.world-node.minor{pointer-events:auto;cursor:grab;touch-action:pan-y;padding:8px 10px;border:1px solid transparent;border-radius:7px;outline-offset:4px}.world-node.minor:hover,.world-node.minor:focus-visible{background:#fff;color:var(--scene);border-color:rgba(var(--scene-rgb),.28);box-shadow:0 5px 18px rgba(var(--scene-rgb),.08);z-index:4}.world-node.being-dragged{cursor:grabbing;z-index:6}.world-node.minor.being-dragged{background:white;color:var(--scene);border-color:rgba(var(--scene-rgb),.45);box-shadow:0 7px 22px rgba(var(--scene-rgb),.12)}.accessibility-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}footer{padding-bottom:24px}
@media(max-width:700px){.feature-chapter{padding-top:6px}.feature-chapter .story-copy{padding-top:8px}.world-node.minor{padding:7px 9px}.connection-toast{bottom:24px}footer{padding-bottom:28px}}

/* Keep the current chapter crisp while adjacent content recedes. */
.hero-copy,.hero-scroll,.journey-intro,.feature-chapter .story-copy,.chapter-space,.journey-complete,
.chapter-transition .story-copy{transition:filter .35s ease,opacity .35s ease}
body[data-view="story"] :is(.hero-copy,.hero-scroll,.journey-intro,.journey-complete),
.feature-chapter:not(.is-active) :is(.story-copy,.chapter-space),
.chapter-transition .feature-chapter:not(.is-active) .story-copy{filter:blur(6px);opacity:.3}
.feature-chapter.is-active :is(.story-copy,.chapter-space){filter:none;opacity:1}
/* Keyboard-focused links remain readable, including between chapters. */
body :is(.hero-copy,.hero-scroll,.journey-complete):has(:focus-visible),
body .feature-chapter:not(.is-active) .story-copy:has(:focus-visible){filter:none;opacity:1}
.network-world{transition:opacity .45s ease,visibility 0s linear}
body[data-view="content"] .network-world,
.network-world[data-active="false"]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease,visibility 0s linear .45s}
@media(prefers-reduced-motion:reduce){
 .hero-copy,.hero-scroll,.journey-intro,.feature-chapter .story-copy,.chapter-space,.journey-complete,
 .chapter-transition .story-copy,.network-world,body[data-view="content"] .network-world,.network-world[data-active="false"]{transition:none}
}

/* Mobile chapters leave a dedicated, interactive graph area below the copy. */
@media(max-width:700px){
 .feature-chapter{width:calc(100% - 40px);min-height:max(650px,calc(100svh - 72px));padding:8px 0 220px}
 .feature-chapter .story-copy{max-width:none;padding:8px 0 12px}
 .chapter-heading{margin-bottom:18px;gap:12px}
 .story-copy h3{font-size:clamp(28px,7.8vw,33px);line-height:1.35;margin:14px 0 17px;letter-spacing:-.045em}
 .chapter-description{font-size:16px;line-height:1.8;max-width:none;overflow-wrap:anywhere}
 .chapter-tags{margin-top:18px;gap:7px}
 .chapter-tags span{padding:7px 10px;line-height:1.4}
 .chapter-space{display:none}
 body[data-view="story"] .network-world{clip-path:inset(var(--mobile-graph-top,0px) 0 0)}
 .world-node.main{min-height:44px}
 .world-node.minor{min-height:40px}
 .platform-subheader a{min-width:0;min-height:48px}
 .hero-actions{flex-wrap:wrap;row-gap:18px}
 .hero-actions .text-link{min-height:44px;display:inline-flex;align-items:center;font-size:14px}
 .journey-complete{padding:26px 22px;gap:16px;scroll-margin-top:96px}
 .journey-complete p,.solution-card>p,.insight-card>p,.faq details>p,.contact-copy>p{font-size:16px;line-height:1.8}
 .journey-complete .button{min-height:48px;white-space:normal;text-align:center}
 .connection-toast{max-width:calc(100% - 32px);white-space:normal;text-align:center;bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){
 .hero-actions{align-items:stretch;flex-direction:column}
 .hero-actions .button{width:100%;font-size:14px}
 .hero-actions .text-link{align-self:flex-start}
 .chapter-discovered{font-size:12px}
 .journey-complete{padding:24px 20px}
 .completion-symbol{display:none}
}

/* A shared Docktre symbol across navigation, footer, and the living graph. */
.brand-mark{display:block;flex:none;width:36px;height:36px;padding:0;background:none;border-radius:0;object-fit:contain;letter-spacing:normal}
.mini-mark{display:block;flex:none;width:16px;height:16px;border:0;border-radius:0;transform:none;object-fit:contain}
.world-core{padding:0;background:#fff;overflow:hidden}
.world-core img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
@media(max-width:700px){.brand-mark{width:31px;height:31px}.world-core{padding:0}}
@media(max-width:380px){.nav-wrap{gap:8px}.header-actions{gap:2px}.header-actions .button-small{padding-inline:9px}}
