/* /founding: one object, the first cohort's seal. An owl made of 21 stars; a lit star is a taken Founding seat. Builds on /site.css and /21-nich/sale.css. */

/* hero */
.fh{position:relative;padding:8px 0 clamp(64px,10vw,120px);overflow:clip}
.fh-g{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "sc" "b";row-gap:20px;align-items:center}
.fh-h{grid-area:h;font-size:clamp(42px,8.4vw,96px);max-width:11ch;text-wrap:balance;margin-top:clamp(8px,3vw,24px)}
.fh-h .n,.final h2 .n{color:var(--acc)}
.fh-sc{grid-area:sc;width:min(100%,560px);margin:0 auto}
.fh-sc figcaption{margin-top:6px;text-align:center;color:var(--ink3);font-size:14px;font-weight:600}
.fh-b{grid-area:b}
.fh-b .lead{font-size:clamp(18px,2.1vw,21px);color:var(--ink2);max-width:42ch}
.fh-b .row{margin-top:26px}
.live{display:flex;align-items:center;gap:10px;margin-top:20px;font-size:14px;font-weight:600;color:var(--ink2)}
.live b{color:var(--acc)}
.live i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--acc)}
@media (min-width:900px){
  .fh{padding-top:clamp(16px,3vw,40px)}
  .fh-g{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"h sc" "b sc";column-gap:clamp(32px,5vw,72px);row-gap:0;min-height:min(760px,calc(100svh - 96px))}
  .fh-h{align-self:end;margin:0}
  .fh-b{align-self:start;padding-top:28px}
  .fh-sc{margin:0 0 0 auto}
}

/* the seal */
.seal-w{position:relative;aspect-ratio:1;transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .9s var(--ease);will-change:transform}
.seal{display:block;width:100%;height:auto;overflow:visible}
.seal *{transform-box:view-box}
.seal .face{fill:var(--plate);fill-opacity:.62;transform-origin:200px 200px}
.seal .r{fill:none;stroke:rgba(232,142,237,.24);stroke-width:1;transform:rotate(-90deg);transform-origin:200px 200px}
.seal .r.i{stroke:rgba(232,142,237,.14)}
.seal .tk line{stroke:rgba(232,142,237,.26);stroke-width:1;stroke-linecap:round}
.seal .tk line.b{stroke:rgba(232,142,237,.6);stroke-width:1.6}
.seal .band{transform-origin:200px 200px}
.seal text{font:600 12px 'Geologica',system-ui,sans-serif;fill:var(--ink3)}
.seal .ln line{stroke:rgba(232,142,237,.36);stroke-width:1;stroke-dasharray:2 4;stroke-linecap:round}
.seal .ln line.on{stroke:var(--acc);stroke-width:1.5;stroke-dasharray:var(--l);stroke-dashoffset:0;opacity:.9}
.seal .eye circle{fill:none;stroke:rgba(232,142,237,.16);stroke-width:1;stroke-dasharray:1.5 5}
.seal .eye circle.on{stroke:var(--acc);stroke-opacity:.55;stroke-width:1.2;stroke-dasharray:var(--c);transform:rotate(-90deg);transform-box:fill-box;transform-origin:center}
.seal .s circle{transform-box:fill-box;transform-origin:center}
.seal .s .c{fill:#200E28;stroke:rgba(232,142,237,.62);stroke-width:1.3}
.seal .s .h{fill:url(#glow);opacity:0}
.seal .s .rp{fill:none;stroke:var(--acc);stroke-width:1.2;opacity:0}
.seal .s.on .c{fill:var(--acc);stroke:var(--acc);transform:scale(1.15)}
.seal .s.on .h{opacity:1}
.seal .s.nx .c{stroke:var(--acc)}

/* group */
.fdr .plans{margin-top:40px}
.fdr .plan .pi{text-decoration:none}

/* motion: everything above is the final state; .js arms it, .in plays it once, .done lets the night breathe */
@media (prefers-reduced-motion:no-preference){
  .js .seal .r{stroke-dasharray:var(--c);stroke-dashoffset:var(--c)}
  .js .seal.in .r{stroke-dashoffset:0;transition:stroke-dashoffset 1.8s cubic-bezier(.65,0,.35,1)}
  .js .seal.in .r.i{transition-delay:.25s}
  .js .seal .tk,.js .seal .band text,.js .seal .ln line,.js .seal .eye circle{opacity:0}
  .js .seal.in .tk{opacity:1;transition:opacity 1.2s var(--ease) .55s}
  .js .seal.in .band text{opacity:1;transition:opacity 1.6s var(--ease) .9s}
  .js .seal.in .ln line,.js .seal.in .eye circle{opacity:1;transition:opacity .9s var(--ease) 1.25s}
  .js .seal.in .ln line.on{opacity:.9;transition:none;animation:draw .8s var(--ease) both}
  .js .seal.in .eye circle.on{opacity:1;transition:none;animation:ring 1.1s var(--ease) both}
  .js .seal .s .c{transform:scale(0)}
  .js .seal.in .s .c{transform:scale(1);transition:transform .8s var(--ease) calc(.7s + var(--d))}
  .js .seal.in .s.on .c{animation:pop .7s var(--ease) both}
  .js .seal.in .s.on .h{animation:flare 1.3s var(--ease) both}
  .js .seal.in .s.on .rp{animation:ripple 1.2s var(--ease) both}
  .seal .band{animation:spin 160s linear infinite}
  .js .seal.done .s:not(.on):not(.nx) .c{animation:tw var(--tw) ease-in-out var(--td) infinite}
  .js .seal.done .s.nx .rp{animation:breathe 2.8s var(--ease) infinite}
  .js .seal .face{opacity:0;transform:scale(.9)}
  .js .seal.in .face{opacity:1;transform:none;transition:opacity 1.4s var(--ease),transform 1.8s var(--ease)}

  .js [data-rv]{opacity:0;transform:translateY(28px);filter:blur(8px)}
  .js [data-rv].in{opacity:1;transform:none;filter:none;transition:opacity .9s var(--ease),transform 1.2s var(--ease),filter 1s var(--ease)}
  .js .plans [data-rv]:nth-child(2).in{transition-delay:.14s}
  .js .kd .lead[data-rv].in{transition-delay:.08s}
  .js .fdr .plan.fd{box-shadow:none}
  .fdr .plan.fd::after{content:'';position:absolute;left:0;top:0;width:100%;height:3px;background:var(--acc);transform:scaleX(0);transform-origin:left;transition:transform 1.4s cubic-bezier(.65,0,.35,1) .35s}
  .js .fdr .plan.fd.in::after{transform:none}
  .fdr .plan.fd{position:relative}
}
@keyframes draw{from{stroke-dashoffset:var(--l)}to{stroke-dashoffset:0}}
@keyframes ring{from{stroke-dashoffset:var(--c)}to{stroke-dashoffset:0}}
@keyframes pop{0%{transform:scale(.3)}45%{transform:scale(1.9)}100%{transform:scale(1.15)}}
@keyframes flare{0%{opacity:0;transform:scale(.3)}35%{opacity:1;transform:scale(1.6)}100%{opacity:1;transform:scale(1)}}
@keyframes ripple{from{opacity:.9;transform:scale(.6)}to{opacity:0;transform:scale(3.4)}}
@keyframes breathe{0%{opacity:.85;transform:scale(.7)}100%{opacity:0;transform:scale(2.8)}}
@keyframes tw{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes spin{to{transform:rotate(360deg)}}
