/* SUCCESSION — loaded on top of overgrowth.css. The page follows the banner: while a "nature" artwork is showing
   it is the leaf-cornered forest theme with a mint accent; when an "urban" artwork takes over it becomes concrete —
   hard corners, capitals and a rust accent. The background stays dark in both, so the change is never a flash. */


/* ---------- Theme change ----------
   Three ways to change theme, chosen in Studio (Layout & text → Theme change) or with ?tx=fade|wipe|grow:
   fade — the accent-coloured pieces glide to their new colour and shape. Each element transitions its own colour,
          so the browser only redraws those few elements (no whole-page restyle on every frame).
   wipe — the new theme is drawn down the page from top to bottom behind a soft gradient edge.
   grow — concrete arrives as voxel blocks; the forest grows back in as vines. (The mask frames come from app.js.)
   wipe and grow use the View Transitions API: the old page is a still picture and the new one is live underneath it,
   uncovered by a mask. Clicks pass straight through to the real page while it runs. */


/* ---------- Small pieces bounce from leaf to block and back ----------
   Buttons and the social icons spring between leaf-curled and square corners with a squash-and-stretch, once, as
   the theme changes. data-morph is only present for that second, so buttons drawn later (a new page) never bounce.
   Portfolio artworks and the filter buttons don't bounce. */
:root { --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1); }
.hdr__social a, .btn { transition: background-color .3s, color .3s, border-color .3s, border-radius 1.1s var(--spring), box-shadow .6s var(--spring); }
.chip { transition: background-color .25s, color .25s, border-color .25s, border-radius .4s var(--ease); }


/* Banner extras: a progress line under the caption while one artwork is becoming the next */
.hdr__now i { display: block; height: 2px; margin-top: 8px; background: #a8f0c6; transform: scaleX(0); transform-origin: right; transition: transform .45s linear; }
