/* One centered scene. Only the sample on the right changes. */
.folder-tour{padding:0;margin:80px 0 60px;height:auto}
.folder-tour .tour-scene{display:grid;grid-template-columns:1.05fr 1fr;gap:60px;align-items:center;padding:35px 0}
.tour-copy{position:relative;padding:8px 0 8px 30px}
.tour-rail{position:absolute;left:0;top:0;bottom:0;width:3px;background:#e8e1ed;border-radius:9px;overflow:hidden}
.tour-rail span{display:block;width:100%;height:100%;background:#7653b0;transform-origin:top;transform:scaleY(var(--tour-progress,.25));transition:transform .2s linear}
.folder-tour .tour-copy>.eyebrow{font-size:10px;letter-spacing:1.2px;margin-bottom:18px}
.folder-tour h2{font:600 clamp(34px,3.6vw,45px)/1.1 Arial,sans-serif;letter-spacing:-1.4px;margin:0}
.tour-copy>p{font-size:16px;line-height:1.65;color:#72667d;margin:22px 0 0;max-width:420px}
.tour-picker{background:#fff;border-radius:23px;padding:24px;margin-top:36px;box-shadow:0 12px 28px #3924460c}
.tour-picker h3{font:600 22px/1.25 Arial,sans-serif;letter-spacing:-.6px;margin:0 0 5px}
.tour-picker>p{font-size:13px;line-height:1.5;color:#80728b;margin:0 0 20px}
.tour-topic-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.tour-topic-controls button{display:flex;align-items:center;gap:9px;min-width:0;min-height:58px;text-align:left;border:1.5px solid #e5e0eb;border-radius:13px;padding:9px;background:white;color:#42374e;font:600 12px/1.3 Arial,sans-serif;box-shadow:none}
.tour-topic-controls button[aria-pressed=true]{border-color:#7957b3;background:#faf7ff;color:#513381}
.tour-topic-controls button:focus-visible{outline:3px solid #b6ce6d;outline-offset:3px}
.tour-topic-icon{display:grid;place-items:center;width:32px;height:34px;flex-shrink:0;border-radius:9px;background:#f0edf3;color:#a098aa}
.tour-topic-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button[aria-pressed=true] .tour-topic-icon{color:#6842a4;background:#e9dcfb}
.topic-selected{margin-left:auto;flex-shrink:0;width:12px;height:12px;border:1px solid #8055b8;border-radius:50%;visibility:hidden;position:relative}
button[aria-pressed=true] .topic-selected{visibility:visible}.topic-selected:after{content:'';position:absolute;width:5px;height:3px;border-left:1px solid #8055b8;border-bottom:1px solid #8055b8;transform:rotate(-45deg);left:2px;top:2px}
.tour-scroll-hint{font-size:11px;color:#82748e;text-align:center;margin-top:20px}.tour-scroll-hint .mobile-hint{display:inline}.tour-scroll-hint .desktop-hint{display:none}
.folder-stage{position:static;align-self:center;padding:0;min-width:0}
.folder-canvas{background:#f1ebfa;border-radius:35px;padding:34px 25px 24px;overflow:hidden}
.folder-canvas>p{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#715785;margin:0 0 25px}
.folder-stack{position:relative;height:350px;margin:0 7px}
.tour-folder{position:absolute;left:0;top:25px;width:calc(100% - 32px);height:240px;border:1px solid #a891ba;border-radius:0 17px 17px 17px;padding:20px;background:#ffeadc;transform:rotate(-5deg);box-shadow:0 7px 0 #36204108}
.tour-folder:before{content:'';position:absolute;top:-19px;left:-1px;width:90px;height:19px;background:inherit;border:1px solid #a891ba;border-bottom:0;border-radius:10px 10px 0 0}
.tour-folder:nth-child(2){left:14px;top:71px;background:#e4d8fa;transform:none}
.tour-folder:nth-child(3){left:28px;top:115px;background:#e1f39e;transform:rotate(3deg);height:220px}
.tour-folder>strong{font:700 19px/1.3 Arial,sans-serif;letter-spacing:-.4px}
.folder-question{background:#fffef9;border-radius:12px;padding:17px;margin-top:18px;box-shadow:0 4px 12px #3a26420a;min-height:141px}
.folder-question span{font-size:8px;letter-spacing:.8px;text-transform:uppercase;color:#7b668e}
.folder-question p{font-size:17px;line-height:1.35;color:#392b48;margin:8px 0 12px}
.folder-question small{font-size:10px;line-height:1.4;color:#776785;display:block}
.folder-tour .phone-caption{max-width:390px;font-size:10px;line-height:1.6;color:#80748c;margin:18px auto 0;text-align:center}
@media(min-width:900px) and (min-height:680px) and (prefers-reduced-motion:no-preference){
.folder-tour{height:250svh}
.folder-tour .tour-scene{position:sticky;top:max(24px,calc((100svh - 620px)/2));min-height:620px;padding:25px 0}
.tour-scroll-hint .mobile-hint{display:none}.tour-scroll-hint .desktop-hint{display:inline}
}
@media(max-width:899px){.folder-tour{margin:65px 0 40px}.folder-tour .tour-scene{grid-template-columns:1fr;gap:35px;padding:0;max-width:550px;margin:auto}.tour-copy{padding-left:23px}.folder-tour h2{font-size:36px}.tour-copy>p{font-size:15px;margin-top:18px}.tour-picker{padding:20px;margin-top:26px}.tour-picker h3{font-size:20px}.folder-stage{width:100%}.folder-canvas{padding:29px 24px 24px}.tour-rail span{transition:none}}
@media(max-width:420px){.folder-tour h2{font-size:32px}.tour-picker{padding:17px}.tour-topic-controls button{gap:6px;font-size:11px;padding:7px}.tour-topic-icon{width:28px}.topic-selected{display:none}.folder-canvas{padding:25px 17px 20px}.tour-folder{padding:17px}.folder-question{padding:14px}.folder-question p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.tour-rail span{transition:none}}
/* A selected subject develops through three scroll stages. */
.folder-story{position:relative}.folder-canvas>p{min-height:16px}
.loose-questions{position:absolute;inset:0;z-index:4;pointer-events:none;opacity:var(--loose-alpha,0);transform:translateY(var(--loose-y,0px)) scale(var(--loose-scale,1));transform-origin:center}
.loose-questions>div{position:absolute;padding:25px 22px;border:1px solid #c4afd9;border-radius:5px 5px 15px 5px;background:#fffdf8;box-shadow:5px 6px 0 #e2d7ee;color:#493659;font:600 20px/1.3 Arial,sans-serif;width:85%;left:4%;top:30px;transform:rotate(-7deg)}
.loose-questions>div:nth-child(2){top:135px;left:13%;background:#ffeadc;transform:rotate(5deg)}
.loose-questions>div:nth-child(3){top:237px;left:7%;background:#e1f39e;transform:rotate(-3deg)}
.folder-story .folder-stack{opacity:var(--folders-alpha,1);transform:translateY(var(--folders-y,0px)) scale(var(--folders-scale,1));transform-origin:50% 65%}
.folder-story .folder-question{opacity:var(--question-alpha,1);transform:translateY(var(--question-y,0px));box-shadow:0 4px 12px #3a26420a}
.folder-story #folder-sample{transform:translateY(var(--front-y,0px)) rotate(var(--front-angle,3deg))}
.folder-story .tour-folder:not(:last-child){opacity:var(--backs-alpha,1)}
.folder-story .folder-stack,.folder-story #folder-sample,.folder-story .folder-question,.loose-questions{will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.folder-story *{will-change:auto!important}}
@media(max-width:899px){.folder-story *{will-change:auto!important}}
/* Larger desktop presentation, with four synchronized topic chapters. */
@media(min-width:900px){
.folder-tour .tour-scene{grid-template-columns:1fr 1.18fr;gap:44px}
.folder-canvas{padding:38px 24px 28px;border-radius:32px}
.folder-stack{height:420px;margin:0 10px}
.tour-folder{height:275px;padding:25px;top:35px}
.tour-folder:nth-child(2){top:92px}
.tour-folder:nth-child(3){top:150px;height:245px}
.tour-folder>strong{font-size:25px}
.folder-question{min-height:154px;padding:20px;margin-top:18px}
.folder-question p{font-size:20px;line-height:1.35}
.folder-question small{font-size:11px}.folder-question span{font-size:9px}
.loose-questions>div{font-size:25px;padding:30px 25px;top:40px}
.loose-questions>div:nth-child(2){top:168px}.loose-questions>div:nth-child(3){top:290px}
.tour-topic-controls button{min-height:66px;font-size:13px}
.tour-topic-controls button[aria-pressed=true]{box-shadow:0 0 0 1px #7957b3;background:#eee4fc}
.tour-topic-controls button{transition:background .2s,border-color .2s,box-shadow .2s}
}
@media(min-width:900px) and (min-height:680px) and (prefers-reduced-motion:no-preference){.folder-tour{height:430svh}}
@media(min-width:900px) and (max-height:760px){.folder-stack{height:370px}.tour-folder:nth-child(3){top:120px}.tour-folder:nth-child(2){top:75px}.folder-canvas{padding-top:26px;padding-bottom:20px}.loose-questions>div:nth-child(3){top:250px}}
@media(prefers-reduced-motion:reduce){.tour-topic-controls button{transition:none}}
/* Fill the available desktop stage and give each topic more room. */
@media(min-width:900px){
  #example-result.folder-tour{width:min(1480px,calc(100vw - 96px));max-width:none;margin-left:50%;transform:translateX(-50%)}
  .folder-tour .tour-scene{grid-template-columns:1fr 1.12fr;gap:clamp(50px,5vw,95px)}
  .folder-tour h2{font-size:clamp(52px,4.4vw,76px);line-height:1.06;letter-spacing:-2.4px}
  .folder-tour .tour-copy>.eyebrow{font-size:13px}
  .tour-copy{padding-left:38px}
  .tour-copy>p{font-size:clamp(18px,1.3vw,22px);max-width:600px;margin-top:27px}
  .tour-picker{padding:clamp(26px,2vw,36px);margin-top:48px}
  .tour-picker h3{font-size:clamp(26px,2vw,33px)}
  .tour-picker>p{font-size:16px}
  .tour-topic-controls{gap:13px}
  .tour-topic-controls button{min-height:82px;font-size:16px;padding:14px;gap:14px}
  .tour-topic-icon{width:45px;height:45px}.tour-topic-icon svg{width:26px;height:26px}
  .tour-scroll-hint{font-size:14px;margin-top:22px}
  .folder-canvas{padding:clamp(36px,3vw,52px);border-radius:42px}
  .folder-canvas>p{font-size:13px;margin-bottom:36px}
  .folder-stack{height:480px;margin:0 12px}
  .tour-folder{height:310px;padding:30px;top:30px;border-radius:0 24px 24px 24px}
  .tour-folder:nth-child(2){top:100px;left:22px}
  .tour-folder:nth-child(3){top:172px;left:44px;height:285px}
  .tour-folder>strong{font-size:29px}
  .folder-question{min-height:180px;padding:25px;margin-top:22px;border-radius:16px}
  .folder-question span{font-size:11px}.folder-question p{font-size:24px}.folder-question small{font-size:13px}
  .loose-questions>div{font-size:30px;padding:35px 28px;top:25px}
  .loose-questions>div:nth-child(2){top:178px}.loose-questions>div:nth-child(3){top:325px}
}
@media(min-width:900px) and (min-height:680px) and (prefers-reduced-motion:no-preference){
  #example-result.folder-tour{height:490svh}
  #example-result .tour-scene{height:min(1200px,calc(100svh - 100px));min-height:0;top:max(50px,calc((100svh - 1200px)/2));padding:0}
}
@media(min-width:900px) and (max-height:900px){
  .folder-tour h2{font-size:clamp(44px,3.8vw,60px)}
  .tour-picker{margin-top:25px;padding:22px}.tour-topic-controls button{min-height:64px;font-size:14px;padding:9px}.tour-topic-icon{height:35px;width:35px}
  .folder-canvas{padding:25px}.folder-canvas>p{margin-bottom:14px}
  .folder-stack{height:385px}.tour-folder{height:250px;padding:20px}.tour-folder:nth-child(2){top:75px}.tour-folder:nth-child(3){top:125px;height:235px}
  .folder-question{min-height:145px;padding:18px}.folder-question p{font-size:19px}
  .loose-questions>div{font-size:23px;padding:23px}.loose-questions>div:nth-child(2){top:140px}.loose-questions>div:nth-child(3){top:255px}
}
@media(max-width:899px){#example-result.folder-tour{width:100%;margin-left:0;transform:none}}
.folder-stage{position:relative}
.folder-canvas.topic-ghost{position:absolute;inset:0 0 auto 0;z-index:4;pointer-events:none}
@media(min-width:900px) and (min-height:1000px){
  .folder-stack{height:650px}
  .tour-folder{height:385px;padding:36px;top:45px}
  .tour-folder:nth-child(2){top:130px;left:25px}
  .tour-folder:nth-child(3){top:220px;left:50px;height:375px}
  .tour-folder>strong{font-size:34px}
  .folder-question{min-height:225px;padding:30px;margin-top:27px}
  .folder-question p{font-size:29px;line-height:1.32;margin:13px 0 18px}
  .folder-question small{font-size:15px}
  .loose-questions>div{font-size:34px;padding:42px 34px;top:45px}
  .loose-questions>div:nth-child(2){top:250px}
  .loose-questions>div:nth-child(3){top:445px}
}
