/* fx-close: #plan rooftops, kites and calendar; #ask doors, ledger and panels; #wall seal, chalk and the next slot. */

/* section headlines balance their lines, so a lone word never hangs ("it.") */
.sec-head h2,.cap h2{text-wrap:balance}

/* ---------- #plan ---------- */
#plan .kites{display:none} /* the milestone kites replace the loose ones on this stage */
.pl-sky{position:absolute;left:0;right:0;bottom:0;height:clamp(96px,19vh,180px);z-index:0;pointer-events:none}
.pl-sky svg{display:block;width:100%;height:100%}
.pl-lit rect{opacity:.3}
.pk-bob{animation:pkBob 4.2s ease-in-out infinite alternate}
@keyframes pkBob{0%{transform:rotate(-4deg) translateY(0)}100%{transform:rotate(4deg) translateY(-5px)}}
.pl-cal{position:absolute;z-index:2;left:clamp(20px,5vw,84px);top:clamp(68px,11vh,104px);width:86px;padding-bottom:6px;background:#F1E6D2;border-radius:3px;text-align:center;color:var(--espresso);box-shadow:0 14px 22px -12px rgba(10,2,1,.75);perspective:420px}
.pl-cal::after{content:"";position:absolute;left:6px;right:6px;bottom:-4px;height:4px;background:#D9C9AE;border-radius:0 0 3px 3px;z-index:-1}
.pl-ring{position:absolute;top:-7px;width:7px;height:15px;border:2px solid var(--gold-2);border-radius:4px;background:#2A0D0C}
.pl-ring:first-child{left:22px}.pl-ring:nth-child(2){right:22px}
.pl-cal-h{display:block;padding:8px 0 6px;border-radius:3px 3px 0 0;background:var(--sienna-2);color:var(--gold-3);font:600 13px/1 var(--sans);letter-spacing:.18em;text-transform:uppercase}
.pl-cal b{display:block;font-family:var(--display);font-weight:400;font-size:46px;line-height:1.1;font-variant-numeric:tabular-nums;transform-origin:50% 0;backface-visibility:hidden}
.pl-cal.flip b{animation:calFlip .6s var(--out)}
@keyframes calFlip{0%{transform:rotateX(-100deg);opacity:.2}100%{transform:none;opacity:1}}
@media (max-width:820px){
  #plan .viz{align-items:flex-end;padding-bottom:calc(clamp(96px,19vh,180px) - 30px)}
  .pl-cal{top:auto;left:16px;bottom:14px;width:70px}
  .pl-cal b{font-size:36px}
}

/* ---------- #ask: three doors ---------- */
.doors{display:grid;grid-template-columns:repeat(3,minmax(0,230px));justify-content:center;gap:clamp(12px,3vw,44px);margin:clamp(40px,5vw,64px) auto 0}
.door{display:grid;justify-items:center;align-content:start;text-align:center;color:var(--ivory);text-decoration:none;-webkit-tap-highlight-color:transparent;border-radius:8px}
.door:focus-visible{outline:2px solid var(--gold-3);outline-offset:8px}
.door-arch{position:relative;display:block;width:100%;aspect-ratio:280/330;perspective:900px;border-radius:50% 50% 4px 4px/40% 40% 4px 4px;background:#2A0D0C;filter:drop-shadow(0 18px 20px rgba(10,2,1,.55))}
.door-arch:has(.door-frame){background:none}
.door-frame,.door-leaf{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.door-icon{position:absolute;left:24%;right:24%;top:38%;height:42%;display:grid;place-items:center}
.door-icon img,.door-icon svg{display:block;width:100%;height:auto;max-height:100%}
.door-icon img{width:112%;max-width:none;max-height:none;filter:drop-shadow(0 8px 10px rgba(0,0,0,.5))}
.door-leaf{transform-origin:11.4% 50%;transition:transform .5s var(--out)}
.door:hover .door-leaf,.door:focus-visible .door-leaf{transform:rotateY(-26deg)}
.door.open .door-leaf{transform:rotateY(-70deg)}
.door-t{font-family:var(--display);font-weight:400;font-size:clamp(28px,2.5vw,36px);line-height:1;margin-top:16px;transition:color .2s}
.door-s{margin-top:6px;font-size:15.5px;line-height:1.35;color:var(--on-dark-2)}
.door:hover .door-t,.door:focus-visible .door-t{color:var(--gold-3)}
@media (max-width:620px){.doors{gap:10px}.door-t{font-size:21px;margin-top:10px}.door-s{font-size:13.5px}}

/* the panels the doors open onto */
.panel-h{display:flex;align-items:center;gap:14px;margin-top:clamp(64px,8vw,96px);font-size:clamp(30px,3vw,42px);color:var(--ivory);scroll-margin-top:84px}
.panel-h::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(231,200,119,.6),rgba(231,200,119,0))}
.panel-h:focus{outline:none}
.panel-n{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#F3D98B,#C9A24D 55%,#8A5A14);color:var(--espresso-2);font:700 18px/1 var(--sans);box-shadow:inset 0 -2px 0 rgba(0,0,0,.25),0 6px 12px -6px rgba(0,0,0,.6)}
#askPilot + .cta-seal{margin-top:24px}
#askSign + .rg{margin-top:24px}
#ask .close-grid{margin-top:clamp(64px,8vw,96px)}
.close-grid > .panel-h{grid-column:1/-1;margin-top:0}

/* the ledger: the impact, the meters and what the pilot would deliver, on one ruled card */
.ledger{position:relative;margin-top:clamp(48px,6vw,72px);padding:clamp(22px,3.4vw,40px) clamp(22px,3.4vw,44px) clamp(18px,2.6vw,30px) clamp(40px,5.4vw,72px);border:1px solid rgba(231,200,119,.4);border-radius:4px;background:linear-gradient(180deg,rgba(36,16,15,.62),rgba(36,16,15,.36));box-shadow:0 24px 40px -26px rgba(10,2,1,.85)}
.ledger::before{content:"";position:absolute;top:0;bottom:0;left:clamp(18px,2.6vw,34px);width:4px;border-left:1px solid rgba(217,83,30,.7);border-right:1px solid rgba(217,83,30,.7)}
.ledger .impact{margin-top:16px;padding:0;border:0}
.deliver ul.folded li:nth-child(n+3){display:none}
.ledger-more{display:inline-block;min-height:44px;margin-top:6px;padding:8px 0;border:0;background:none;color:var(--gold-3);font:600 15.5px var(--sans);text-decoration:underline;text-decoration-color:rgba(231,200,119,.6);text-underline-offset:.25em;cursor:pointer}
.ledger-more:hover{color:var(--ivory)}
.ledger-more:focus-visible{outline:2px solid var(--gold-3);outline-offset:3px}
.deliver li:focus{outline:none}

/* ---------- #wall: the seal, chalk slots and the next place ---------- */
.wall-first{text-align:center;margin-top:34px;font-family:var(--display);font-size:36px;line-height:1.1;color:var(--gold-3);text-wrap:balance}
#wall.is-empty .wall-count{display:none}
.wall-next{position:absolute;pointer-events:none;box-sizing:border-box;scale:.8;border:2px dashed rgba(243,217,139,.95);border-radius:2px;box-shadow:inset 0 0 18px rgba(231,200,119,.35),0 0 14px rgba(231,200,119,.3);animation:wallNext 2.4s ease-in-out infinite alternate}
@keyframes wallNext{from{opacity:.35}to{opacity:.7}}
.wall-seal{text-align:center;margin-top:16px;font-size:16px;color:var(--on-dark-2)}
.wall-seal em{font-family:var(--display);font-size:1.25em;color:var(--gold-3)}

/* resting and reduced motion */
.fc-off .pk-bob,.fc-off .wall-next,.fc-off .pl-cal b{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){
  .pk-bob,.pl-cal.flip b{animation:none}
  .wall-next{animation:none;opacity:.6}
  .door-leaf{transition:none}
  .door:hover .door-leaf,.door:focus-visible .door-leaf{transform:none}
}
