/* Separate learning the architecture from choosing an integration approach. */
.hero .intro-copy{max-width:360px;margin:0 0 8px;color:#b6c3aa}
.hero .intro .primary{margin-top:24px}
.hero .hero-art-caption{top:32px}
.anatomy{overflow:clip}
.anatomy-top{max-width:1400px;margin:0 auto;padding-top:22px}
.layer-nav-bar{position:sticky;top:82px;z-index:25;display:flex;justify-content:space-between;align-items:center;gap:24px;max-width:1400px;margin:16px auto 0;padding:10px 0;background:#101311f5;backdrop-filter:blur(20px);border-bottom:1px solid var(--line)}
.layer-nav-bar>.card-kicker{font-size:11px;color:#8a9f7b}
.layer-nav-bar .canvas-controls{border-color:transparent;background:none}
.selected-intro{min-height:0;height:auto;padding:24px 16px 8px;margin:0 auto;max-width:1000px}
.selected-intro h1{margin:12px 0 0;font-size:clamp(30px,3vw,42px);line-height:1.2}
.canvas-stage{height:calc((var(--cover-size) + 92px)*var(--zoom,1) + 27px)}
.layer-rail{top:22px}
.layer-details{position:relative;z-index:4;width:100%;max-width:1240px;margin:0 auto;padding:0 20px 30px}
.layer-explainer{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:25px 0 30px;border-bottom:1px solid var(--line)}
.layer-explainer article{min-width:0}
.layer-explainer article+article{padding-left:34px;border-left:1px solid var(--line)}
.layer-explainer .card-kicker{font-size:12px;color:#90ac7a}
.layer-explainer h2{font-family:var(--display);font-size:28px;font-weight:400;letter-spacing:-.5px;line-height:1.3;margin:13px 0}
.layer-explainer p{font-size:17px;line-height:1.8;color:#a6b79a;margin:12px 0 0}
.layer-explainer a{font-size:14px;color:var(--green);display:inline-block;margin-top:17px;line-height:1.6}
.layer-explainer .chips{margin-top:18px}
.technical-notes{margin-top:21px;font-size:15px;color:#a8c295}
.technical-notes summary{cursor:pointer;line-height:1.6;width:fit-content}
.technical-notes h3{font-size:17px;font-weight:500;color:#c2d4b4;line-height:1.5;margin:18px 0 0}
.technical-notes p{font-size:16px;line-height:1.8}
.branch-zone{max-width:1200px;margin:0 auto;padding:0 20px 30px}
.branch-zone:before{display:none}
.branch-caption{text-align:left;margin:0 0 18px;color:#90ac7a;font-size:12px}
.branches{justify-content:flex-start}
.branch{animation:fade-up .35s both;animation-delay:calc(var(--j)*30ms)}
.layer-related{max-width:1200px;margin:0 auto 30px;padding:20px 0 0;border-top:1px solid var(--line)}
.layer-related>span{color:#8da67a}
.layer-related .compare-link{font-size:16px;color:var(--green);margin-left:auto}
.layer-related .compare-link span{margin-left:15px}
.topic-inspector{margin-top:22px;scroll-margin-top:180px;scroll-margin-bottom:95px}
.comparison{max-width:1600px;border-top:1px solid #afcf8b45;padding-top:55px;background:linear-gradient(180deg,#b0dc7d05,transparent 420px)}
.comparison-title h2{font-size:clamp(36px,4vw,58px);line-height:1.08;margin-top:20px}
.comparison-title>p{max-width:450px}
.choices-layer-bar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line);padding:30px 0 20px;margin-top:35px}
.choices-layer-bar label{font-size:15px;color:#9cb08c}
.choices-layer-bar select{font:16px var(--sans);line-height:1.5;color:#d5e6c8;border:1px solid #90ac7a55;background:#1b2418;border-radius:5px;padding:12px 38px 12px 14px;min-width:260px;max-width:100%;color-scheme:dark}
.choices-layer-bar select:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.choices-layer-bar .text-button{margin-left:auto;color:var(--green)}
@media(min-width:701px){.hero{min-height:600px}.hero .intro{top:11%}}
@media(max-width:1100px){.layer-explainer{gap:30px}.layer-explainer article+article{padding-left:25px}.layer-explainer p{font-size:16px}.layer-related{margin-left:20px;margin-right:20px}.header nav{gap:22px}.header nav .nav-link:nth-child(2){max-width:160px;line-height:1.5}}
@media(max-width:700px){
  .hero{height:900px}.hero .intro{top:40px}.hero-art{top:350px}.hero .intro-copy{font-size:18px;line-height:1.7}.hero .hero-art-caption{top:26px}
  .anatomy-top{padding-top:20px}.layer-nav-bar{top:70px;gap:12px;padding:8px 0;margin-top:12px}.layer-nav-bar>.card-kicker{font-size:10px;max-width:120px;line-height:1.6}
  .selected-intro{min-height:0;padding:24px 8px 7px}.selected-intro h1{font-size:30px}.selected-kicker{font-size:10px;letter-spacing:.5px}
  .canvas-stage{height:calc((var(--cover-size) + 92px)*var(--zoom,1) + 27px)}
  .layer-details{padding:0 2px 25px}.layer-explainer{grid-template-columns:1fr;gap:26px;padding:12px 0 26px}.layer-explainer article+article{padding:0;border:0}.layer-explainer h2{font-size:26px}.layer-explainer p{font-size:16px;line-height:1.8}.layer-explainer .card-kicker{font-size:11px}
  .branch-zone{margin:0;padding:0 2px 24px}.branch-caption{font-size:11px}.branches{justify-content:flex-start}
  .layer-related{margin:0 2px 28px;padding-top:18px}.layer-related .compare-link{width:auto;font-size:15px;margin-left:0}.layer-related>span{font-size:14px}
  .topic-inspector{scroll-margin-top:160px;padding:23px 20px}.topic-inspector h3{font-size:25px}
  .comparison{padding-top:38px}.comparison-title h2{font-size:40px}
  .choices-layer-bar{display:block;margin-top:27px;padding-top:23px}.choices-layer-bar label{display:block;font-size:15px;margin-bottom:12px}.choices-layer-bar select{width:100%;font-size:16px;min-width:0}.choices-layer-bar .text-button{margin:15px 0 0;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.branch{animation:none}}
/* Keep the selector and its cards together, without a second large section gap. */
.choices-layer-bar{display:grid;grid-template-columns:auto minmax(240px,1fr) auto;align-items:center;gap:12px 18px;margin-top:14px;padding:18px 0 12px}
.choices-layer-bar label{margin:0;line-height:1.5}
.choices-layer-bar select{width:100%;min-width:0;max-width:none;padding-top:11px;padding-bottom:11px}
.choices-layer-bar .text-button{margin:0;white-space:nowrap;justify-self:end}
#integrationContent{margin-top:0;gap:18px}
.comparison-title{align-items:center;gap:35px}
.comparison-title h2{font-size:clamp(36px,3.7vw,58px);max-width:850px}
.comparison-title>p{max-width:430px;line-height:1.75;margin:12px 0 20px}
.comparison .route-visual{margin-bottom:18px}
@media(max-width:1100px){.choices-layer-bar{grid-template-columns:auto minmax(0,1fr)}.choices-layer-bar .text-button{grid-column:2;justify-self:start;padding:2px 0}.comparison-title{gap:0}}
@media(max-width:700px){.choices-layer-bar{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px;padding:16px 0 12px}.choices-layer-bar label{margin:0}.choices-layer-bar .text-button{grid-column:1;justify-self:start;margin:0;padding:3px 0}.comparison-title h2{font-size:clamp(34px,6vw,42px)}.comparison-title>p{margin:8px 0 16px}.comparison-cards article{padding:25px}}
@media(max-width:1100px){
  .choices-layer-bar{grid-template-columns:minmax(0,1fr) auto;gap:10px 14px}
  .choices-layer-bar label{grid-column:1;grid-row:1}
  .choices-layer-bar .text-button{grid-column:2;grid-row:1;justify-self:end;margin:0;padding:2px 0}
  .choices-layer-bar select{grid-column:1 / -1;grid-row:2}
}

/* A quiet invitation to open the resting stack. All layers breathe together. */
.hero-stack{animation:hero-stack-float 4.8s ease-in-out infinite}
.hero-layer{animation:hero-layer-pulse 4.8s ease-in-out infinite}
@keyframes hero-stack-float{
  0%,100%{transform:translateY(5px)}
  50%{transform:translateY(-5px)}
}
@keyframes hero-layer-pulse{
  0%,100%{transform:translateY(calc(var(--layer-index)*12px)) rotateX(56deg) rotateZ(-35deg)}
  50%{transform:translateY(calc(var(--layer-index)*20px)) rotateX(56deg) rotateZ(-35deg)}
}
@media(prefers-reduced-motion:reduce){
  .hero-stack,.hero-layer{animation:none}
  .hero-stack{transform:none}
}

/* Shared-element unfolding: the plates remain visible throughout the scene change. */
.unfold-overlay{position:fixed;inset:0;z-index:35;pointer-events:none;overflow:hidden}
.unfold-card.tile{position:absolute;left:0;top:0;width:320px;height:320px;aspect-ratio:auto;transform-origin:center;transition:none;animation:none;will-change:transform;backface-visibility:hidden}
.unfold-card.tile .plate-tag{font-size:10px;bottom:20px;left:24px}
.unfold-card.tile .plate-id{font-size:12px;top:20px;right:24px}
.unfold-intro.intro{position:absolute;margin:0;pointer-events:none}
body.unfolding #layerRail .tile{visibility:hidden;transition:none}
body.unfolding #anatomy,body.unfolding #comparison,body.unfolding .header,body.unfolding .footer{pointer-events:none}
body.unfolding .tile-slot{transition:none}

body.reassembling .hero-art{visibility:hidden}
body.reassembling .hero-stack,body.reassembling .hero-layer{animation-play-state:paused}
body.unfolding .hero,body.unfolding .header,body.unfolding .footer{pointer-events:none}

/* Expansion uses the carousel elements themselves, so there is no card swap on landing. */
body.unfolding.live-unfolding #layerRail .tile{visibility:visible}
