/* The shared ending of every project page: a night with two dunes, the creature rising behind the near one, and the ring of
   projects above it. Orange throughout, whatever the project. Each page sets its night colours (Sama: the desert; the others:
   the home page's green). Everything is scoped to .finale so it sits on any page. */
.finale{--accent:#e8643c;--fg:#efe8d8;--muted:#a9b2a4;--line:rgba(239,232,216,.16);
  --fin-top:#16211a;--fin-mid:#132017;--fin-bot:#0f1a13;--dune-far:#1c2d22;--dune-near-a:#22382a;--dune-near-b:#0c1510;--dune-line:#e8643c;
  --serif:"Instrument Serif",Georgia,serif;--display:"Bricolage Grotesque",system-ui,sans-serif;--mono:"JetBrains Mono",ui-monospace,monospace;
  position:relative;overflow:hidden;min-height:100svh;display:grid;align-items:center;padding:clamp(80px,12svh,130px) var(--gutter,clamp(20px,5vw,72px));color:var(--fg);
  background:linear-gradient(180deg,var(--fin-top) 0%,var(--fin-mid) 40%,var(--fin-bot) 100%)}
.finale.desert{--fin-top:#0f0d0c;--fin-mid:#0e0c14;--fin-bot:#2a160d;--dune-far:#2a160d;--dune-near-a:#3b1e10;--dune-near-b:#140a06;--dune-line:#d99a66;--muted:#a49a8e}
.finale canvas.stars{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.finale .scene{position:absolute;left:0;right:0;bottom:0;pointer-events:none;will-change:transform}
.finale .scene svg{position:absolute;inset:0;width:100%;height:100%}
.finale .scene.far{top:0;z-index:1}
.finale .scene.near{top:auto;height:clamp(120px,22svh,220px);z-index:3}
.finale .fin-moon{position:absolute;left:47%;top:9%;width:clamp(30px,3vw,46px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff3df,#e9d3ae 60%,#b79c75);box-shadow:0 0 40px rgba(255,230,190,.22);z-index:1}
.finale .fin-glow{position:absolute;right:6%;bottom:6%;width:min(760px,60vw);height:min(520px,60svh);background:radial-gradient(closest-side,rgba(232,110,50,.22),rgba(232,110,50,0));z-index:1;pointer-events:none}
.finale .fin-3d{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}

/* the next project, named on the left, as before */
.finale{min-height:84svh;align-items:start;padding-top:clamp(110px,18svh,190px)}
.finale .fin-copy{position:relative;z-index:4;max-width:min(640px,60vw)}
.finale .fin-copy .mono{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.finale .fin-kick{color:var(--muted)}
.finale .fin-next{display:inline-flex;align-items:baseline;gap:.3em;margin-top:18px;font-family:var(--display);font-weight:600;font-size:clamp(2.4rem,5vw,4.6rem);line-height:1;letter-spacing:-.045em;color:var(--fg);text-decoration:none}
.finale .fin-next em{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.01em;color:var(--accent)}
.finale .fin-next b{font-weight:400;font-size:.6em;color:var(--accent);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.finale .fin-next:hover b,.finale .fin-next:focus-visible b{transform:translateX(12px)}
.finale .fin-next span{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .6s cubic-bezier(.2,.7,.2,1)}
.finale .fin-next:hover span{background-size:100% 1px}
.finale .fin-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:34px}
.finale .fin-btn{display:inline-flex;align-items:center;gap:12px;padding:14px 22px;border:1px solid rgba(239,232,216,.25);border-radius:999px;color:var(--fg);text-decoration:none;transition:border-color .3s,background .3s}
.finale .fin-btn i{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}
.finale .fin-btn:hover,.finale .fin-btn:focus-visible{border-color:var(--accent);background:rgba(232,100,60,.1)}
.finale .fin-back{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:3px;transition:color .3s,border-color .3s}
.finale .fin-back:hover,.finale .fin-back:focus-visible{color:var(--accent);border-color:var(--accent)}
/* the creature, hopping to the right along the edge of the near dune */
.finale .fin-walk{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.finale .fin-critter{position:absolute;left:0;top:0;width:clamp(130px,12vw,190px);height:auto;transform-origin:50% 100%;will-change:transform}
@media (max-width:900px){.finale{min-height:78svh}.finale .fin-copy{max-width:none}.finale .fin-moon{left:auto;right:8%;top:6%}.finale .fin-glow{right:auto;left:50%;transform:translateX(-50%);width:90vw}.finale .fin-critter{width:96px}}
@media (prefers-reduced-motion:reduce){.finale .fin-next b,.finale .fin-next span{transition:none}}
