/* ============================================================
   CORNERS — one place that owns the site's curved-edge language.
   Loaded LAST, so it normalises radii without touching the
   layout, colour or motion rules in the other stylesheets.

   Scale:  --rc-section  full-width section tops (stacked-sheet look)
           --rc-media    large framed imagery, hero-level blocks
           --rc-card     cards, tiles, gallery items, panels
           --rc-sm       small chips, inputs, thumbnails
   New sections / components: use these tokens (or the
   .rounded / .rounded-media helpers below) and they match.
   ============================================================ */
:root{
  --rc-section:32px;
  --rc-media:26px;
  --rc-card:22px;
  --rc-sm:12px;
}
@media (max-width: 640px){
  :root{ --rc-section:24px; --rc-media:22px; --rc-card:18px; --rc-sm:10px; }
}

/* ---- reusable helpers ---------------------------------------- */
.rounded{ border-radius:var(--rc-card); }
.rounded-media{ border-radius:var(--rc-media); overflow:hidden; }
.rounded-media > img, .rounded-media > video{ width:100%; height:100%; display:block; }

/* ---- sections: every block inside the stack gets curved top
        corners and tucks slightly under the one above, so the
        page reads as stacked sheets. clip-path (not overflow)
        keeps position:sticky scroll-pinned sections working. ---- */
.stack-fg{ border-radius:var(--rc-section) var(--rc-section) 0 0; }
.stack-fg > section,
.stack-fg > footer{
  position:relative;
  border-radius:var(--rc-section) var(--rc-section) 0 0;
  clip-path:inset(0 round var(--rc-section) var(--rc-section) 0 0);
  margin-top:calc(var(--rc-section) * -1);
}
/* The first block under the feature strip must NOT tuck under it.
   This rule used to repeat the same negative margin as the rule above, which
   did the exact opposite of what its comment claimed: it pulled #about up over
   the trust strip by 32px. The strip is only ~62px tall and its labels are
   vertically centred, so half of every label was hidden behind #about's opaque
   background — the row rendered as a band of sliced-off text.
   Every other sheet can tuck because it is hundreds of pixels tall and has
   padding to spare at the top. The strip has neither. */
.stack-fg > div + section{ margin-top:0; }

/* ---- framed imagery ------------------------------------------ */
.about-frame, .about-media::before{ border-radius:var(--rc-media); }
.swc{ border-radius:var(--rc-media); }
.swc-media, .swc-media img{ border-radius:inherit; }
.gal{ border-radius:var(--rc-card); }
.gal img{ border-radius:inherit; }
.vid-media{ border-radius:var(--rc-card); }
.vid-media video{ border-radius:inherit; }
.sc-stage{ border-radius:var(--rc-card); overflow:hidden; }
.sc-stage img{ border-radius:inherit; }
.cta-grid{ border-radius:var(--rc-media) !important; }
.tm-bg{ border-radius:0; }

/* ---- cards & panels ------------------------------------------ */
.card, .about-card, .vcard, .tm-card, .ftcard, .ss-tier{ border-radius:var(--rc-card); }
.about-quote{ border-radius:var(--rc-card); }
.vcard-logo, .vcard-rows li{ border-radius:var(--rc-sm); }

/* ---- controls ------------------------------------------------ */
.btn, .about-cta-pill{ border-radius:999px; }
.site-nav a{ border-radius:var(--rc-sm); }
