/* A pinned stage is an enhancement: ordinary document flow is the fallback. */
.story-stage { display: contents; }
body[data-page=home] .story-pinned.section {
  display: block; padding: 0; overflow: visible; min-height: 0;
  height: calc(var(--story-height) + var(--story-distance));
}
.story-pinned > .story-stage {
  display: flex; flex-direction: column; position: sticky; top: var(--story-top);
  height: var(--story-height); padding: 28px var(--gutter) 132px; overflow: clip;
  isolation: isolate; justify-content: center;
}
.story-pinned [data-reveal] { opacity: 1 !important; transform: none !important; transition-delay: 0ms !important; }
.story-pinned .eyebrow { margin-bottom: 12px; }
.story-pinned :is(.values-title,.section-heading) { max-width: none; margin: 0 0 28px; flex-shrink: 0; }
.story-pinned :is(.values-title,.section-heading) h2 { font-size: clamp(28px,3vw,44px); }
.story-pinned .section-heading > .section-lead { font-size: 13px; max-width: 300px; }
.story-pinned .story-panel { grid-area: 1 / 1; min-width: 0; }
.story-pinned .story-panel[data-story-active=false] { opacity: 0 !important; visibility: hidden; pointer-events: none; }
.story-pinned .story-panel[data-story-active=true] { animation: story-message .55s cubic-bezier(.2,.7,.2,1) both; }
.story-controls { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 68px; display: flex; align-items: center; gap: 30px; z-index: 4; }
.story-controls nav { display: flex; gap: 8px; flex: 1; max-width: 400px; }
.story-controls button { flex: 1; position: relative; border: 0; background: transparent; text-align: left; padding: 8px 0 12px; min-width: 32px; min-height: 44px; font-size: 11px; color: var(--muted); }
.story-controls button::after,.story-controls button i { content: ''; position: absolute; bottom: 1px; left: 0; width: 100%; height: 2px; background: #8092aa40; }
.story-controls button i { background: var(--blue); transform: scaleX(var(--step-fill,0)); transform-origin: left; z-index: 1; }
.story-controls [aria-current] { color: var(--blue); }
.story-hint { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.story-hint > span { font-size: 18px; }
.story-next { margin-left: auto; display: flex; align-items: center; gap: 16px; min-height: 44px; font-size: 11px; }
.story-next > span { font-size: 24px; }
.dark .story-controls button i { background: var(--gold); }
.dark .story-controls [aria-current] { color: var(--gold); }
.dark :is(.story-hint,.story-controls button) { color: #abb3bf; }
/* Values: one large message, one living sculpture, three connected moments. */
.story-pinned .values-diagram { margin: 0; flex: 0 1 auto; height: min(540px,57vh); min-height: 0; align-items: center; gap: 5%; }
.story-pinned .value-list { display: grid; align-items: center; }
.story-pinned .value-list > div { padding: 20px 0 32px; border: 0; }
.story-pinned .value-list > div::after { width: 8px; height: 8px; background: var(--blue); box-shadow: 0 0 22px #60a5fa66; }
.story-pinned .value-list h3 { font-size: clamp(42px,5.4vw,88px); letter-spacing: -.065em; margin: 18px 0 22px; }
.story-pinned .value-list p { font-size: clamp(14px,1.4vw,19px); max-width: 350px; }
.story-pinned .nexus-map { height: 100%; min-height: 320px; max-height: 540px; perspective: 1000px; }
html:not([data-motion-paused=true]) .story-pinned .nexus-map > .sculpture { translate: 0 var(--story-lift,0px); rotate: var(--story-turn,0deg); }
.story-pinned .nexus-map .sculpture picture { animation: story-float 7s ease-in-out infinite; animation-play-state: paused; }
.story-visible .nexus-map .sculpture picture { animation-play-state: running; }
.story-pinned .map-lines { rotate: var(--story-turn,0deg); transition: color .6s; }
.story-pinned[data-story-step="0"] .map-lines { color: #0b3d9160; }
.story-pinned[data-story-step="1"] .map-lines { color: #d4a85388; }
.story-pinned[data-story-step="2"] .map-lines { color: #60a5fa88; }
.story-pinned .sculpture-small img { filter: drop-shadow(8px 18px 22px #1112); }
/* Architecture and security retain the stage while each capability takes focus. */
.story-pinned.division-section > .story-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; }
.story-pinned.division-section .story-stage > [data-reveal] { position: relative; z-index: 1; }
.story-pinned.division-section h2 { font-size: clamp(32px,3.5vw,56px); margin-bottom: 18px; }
.story-pinned.division-section .section-lead { font-size: 15px; max-width: 420px; }
.story-pinned .line-list { display: grid; margin: 26px 0; }
.story-pinned .line-list li { font-size: clamp(19px,2.3vw,34px); line-height: 1.2; min-height: 90px; border-color: #0b3d9140; padding: 12px 0; gap: 24px; }
.story-pinned.dark .line-list li { border-color: #d4a85360; }
.story-pinned .line-list svg { width: 28px; flex-shrink: 0; }
.story-pinned :is(.atlas-visual,.forge-visual) { height: min(430px,55vh); }
.story-pinned .vault-halo { opacity: calc(.3 + var(--story-progress,0)); background: radial-gradient(ellipse,#d4a85338,transparent 66%); }
/* Product and case presentations occupy the whole stage, one at a time. */
.story-pinned :is(.product-grid,.case-grid) { display: grid; grid-template-columns: 1fr; gap: 0; }
.story-pinned .product-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8%; align-items: center; margin: 0; }
.story-pinned .product-visual { height: min(390px,44vh); }
.story-pinned .product-heading { padding-top: 0; }
.story-pinned .product-heading h3 { font-size: clamp(44px,6vw,84px); }
.story-pinned .product-content > p:not(.product-descriptor) { min-height: 0; max-width: 420px; font-size: 15px; }
.story-pinned .product-descriptor { margin: 10px 0 20px; font-size: 16px !important; }
.story-pinned .product-content .text-link { margin-top: 26px; }
.story-pinned .case-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8%; align-content: center; margin: 0; }
.story-pinned .case-art { grid-column: 1; grid-row: 1 / 4; height: min(350px,40vh); margin: 0; }
.story-pinned .case-card > :not(.case-art) { grid-column: 2; }
.story-pinned .case-card h3 { font-size: clamp(32px,4vw,60px); min-height: 0; margin: 16px 0 26px; }
.story-pinned .case-card .text-link { align-self: end; }
.story-pinned.cases-section .caption { margin-top: 18px; }
/* Method: the moving sphere traces the route as the five steps unfold. */
.story-pinned .method-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; max-width: 750px; }
/* Pinned copy has its own flow; the mobile timeline's two-column grid would
   place the title and description side by side after the number is absolute. */
.story-pinned .method-steps li { display: block; position: relative; padding-left: 110px; }
.story-pinned .step-top { position: absolute; inset: 0 auto auto 0; border: 0; font-size: 64px; color: var(--blue); letter-spacing: -.06em; gap: 10px; }
.story-pinned .step-dot { display: none; }
.story-pinned .method-steps h3 { font-size: clamp(40px,5vw,74px); margin-bottom: 20px; }
.story-pinned .method-steps p { font-size: 18px; max-width: 520px; }
.story-pinned .method-track { margin-top: 40px; height: 130px; }
@keyframes story-message { from { opacity: 0; translate: 0 22px; filter: blur(3px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes story-float { 0%,100% { transform: translateY(5px) rotateY(-2deg) rotateX(1deg); } 50% { transform: translateY(-8px) rotateY(2deg) rotateX(-1deg); } }
@media(max-width:700px) {
  .story-pinned > .story-stage { padding: 18px var(--gutter) 132px; }
  .story-pinned :is(.values-title,.section-heading) { margin-bottom: 16px; }
  .story-pinned :is(.values-title,.section-heading) h2 { font-size: 26px; }
  .story-pinned .section-heading { display: block; }
  .story-pinned .section-heading > div { max-width: none; }
  .story-pinned .section-heading > .section-lead { font-size: 11px; margin-top: 10px; max-width: none; }
  .story-pinned .eyebrow { font-size: 8px; margin-bottom: 9px; }
  .story-pinned .values-diagram { display: flex; flex-direction: column-reverse; gap: 0; align-items: stretch; height: auto; flex: 1; }
  .story-pinned .nexus-map { min-height: 180px; height: 26vh; flex: 1; max-height: 290px; }
  .story-pinned .nexus-map .sculpture { width: min(260px,80%); height: auto; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%,-50%); }
  .story-pinned .map-name { bottom: 5px; font-size: 7px; }
  .story-pinned .value-list > div { padding: 8px 0 10px; }
  .story-pinned .value-list h3 { font-size: clamp(34px,9vw,44px); margin: 8px 0 12px; }
  .story-pinned .value-list p { font-size: 13px; max-width: 90%; }
  .story-pinned .value-list > div::after { display: none; }
  .story-controls { bottom: 68px; gap: 20px; }
  .story-hint { display: none; }
  .story-next { font-size: 10px; gap: 8px; }
  .story-controls nav { max-width: 55%; }
  .story-pinned.division-section > .story-stage { display: flex; gap: 0; justify-content: flex-start; }
  .story-pinned.division-section .story-stage > [data-reveal] { display: contents; }
  .story-pinned.division-section h2 { font-size: 30px; order: 0; margin: 0 0 12px; }
  .story-pinned.division-section .section-lead { font-size: 12px; order: 0; }
  .story-pinned :is(.atlas-visual,.forge-visual) { width: 100%; height: 190px; flex: 1; min-height: 160px; max-height: 270px; order: 1; }
  .story-pinned .architecture { scale: .72; transform-origin: 0 0; }
  .story-pinned .vault { scale: .65; transform-origin: 0 0; }
  .story-pinned .diagram-caption,.story-pinned .vault-note { font-size: 6px; }
  .story-pinned .line-list { order: 2; width: 100%; margin: 12px 0; }
  .story-pinned .line-list li { min-height: 48px; font-size: 21px; padding: 8px 0; }
  .story-pinned.division-section .button { order: 3; align-self: flex-start; min-height: 42px; font-size: 11px; padding: 10px 15px; }
  .story-pinned .product-card { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .story-pinned .product-visual { height: 180px; }
  .story-pinned :is(.zeus-system,.niko-system,.cuida-system) { scale: .75; }
  .story-pinned .product-heading h3 { font-size: 38px; }
  .story-pinned .product-descriptor { font-size: 12px !important; margin: 5px 0 8px; }
  .story-pinned .product-content > p:not(.product-descriptor) { font-size: 12px; }
  .story-pinned .product-content .text-link { margin-top: 12px; padding-top: 8px; font-size: 11px; }
  .story-pinned .case-card { display: flex; flex-direction: column; gap: 10px; }
  .story-pinned .case-art { height: 170px; width: 100%; }
  .story-pinned .case-card h3 { font-size: 28px; margin: 0; }
  .story-pinned .case-meta { margin: 0; font-size: 9px; }
  .story-pinned .case-card .text-link { align-self: stretch; }
  .story-pinned.cases-section .caption { margin-top: 8px; font-size: 9px; }
  .story-pinned .method-steps li { padding-left: 0; padding-top: 65px; }
  .story-pinned .step-top { font-size: 48px; padding: 0; }
  .story-pinned .method-steps h3 { font-size: 38px; margin: 12px 0 18px; }
  .story-pinned .method-steps p { font-size: 15px; }
  .story-pinned .method-track { margin-top: 25px; height: 100px; }
}
@media(prefers-reduced-motion:reduce) { .story-panel,.story-pinned .sculpture picture { animation: none !important; } }
@media print { .story-stage { display: contents !important; } .story-pinned.section { height: auto !important; } .story-controls { display: none !important; } .story-panel { visibility: visible !important; opacity: 1 !important; } }
