/* Global overrides (must stay after the sections)
   Radius system, page grid, heading system, touch/mobile rules, logo size, scrollbar, skip link, pointer dot. These were written after the section rules and beat them on purpose.
   Part of the ENVY visual layer: files are loaded in numeric order and later files win — keep the order. See ../../README.md */
/* hairline + frame (Medeo language) Source: prtner.ai/font — no tile grid. Each section is a "frame": 1px divider on top, two 1px rails at the column edges,
   a barely-there vertical column rhythm (78px) between the rails, and an 11px "+" where rail meets divider. */
:root {
  --envy-line: rgba(255,255,255,.11);
  --envy-rail: clamp(16px, 3.5vw, 50px);
}
/* stat cards (light): crisp hairline that turns white when the card lights up */
@property --envy-gl { syntax: '<color>'; inherits: false; initial-value: rgba(0,0,0,.09); }
/* buttons: one style, any colour large full pill · Medeo Mono caps with open tracking · pointer spotlight · label decodes (js/motion/01-core.js and siblings) ·
   on hover the cursor itself becomes the button (js/motion/01-core.js and siblings). Colour comes from each button's own fill. */
:root { --envy-radius-btn: 999px; }
/* anti-banding: a static, barely visible dither over the whole page (kills the contour lines of soft dark gradients) one fixed layer with a tiny tiled PNG; --envy-grain: 0 turns it off */
[class*="_statsGrid_"] { counter-reset: stat; }
@supports (animation-timeline: view()) {
  @keyframes env-rise-phone { 0% { translate: -50% 220px; scale: .9; opacity: 0; } 25% { opacity: 1; } 100% { translate: -50% 0; scale: 1.04; opacity: 1; } }
}
/* first screen: the hero sits inside a frame — an even margin around it and rounded corners */
:root { --hero-gap: clamp(5px, 1vw, 14px); --hero-radius: clamp(18px, 2.4vw, 32px); --hero-gap-bg: #fff; }
/* logo: the visible gap between the mascot and the wordmark is set from the mascot's real (padded) artwork box */
.envy-logo { --m: 40px; gap: calc(var(--m) * .075) !important; }
.envy-logo .envy-mark { width: var(--m) !important; height: var(--m) !important; }
.envy-logo .envy-word { width: calc(var(--m) * 1.85) !important; margin-top: 0 !important; }
@media (max-width: 767px) {
  .envy-logo { --m: 34px; }
}
/* second screen: quiet outline visualisation (topographic lines + dashed route) */
/*  RADIUS SYSTEM (large → small) + iOS continuous corners + page grid
   xl 32 hero / showcase cards · l 24 tiles, frames · m 16 cells, glass cards · s 10 menu items · xs 6 buttons
   ====================================================================== */
:root { --r-xl: 32px; --r-l: 24px; --r-m: 16px; --r-s: 10px; --r-xs: 6px; --page-x: var(--envy-rail); --hero-gap: clamp(5px, .85vw, 12px); --hero-radius: var(--r-xl); }
@media (max-width: 1023px) {
  :root { --r-xl: 24px; --r-l: 20px; --r-m: 14px; }
}
[class*="_shell_"][class*="_1"] { border-radius: var(--r-l) !important; }
/* no grain anywhere: the page-wide dither overlay is off, gradients stay clean */
/* no custom page scrollbar (the source's 6px bar changed the layout width and fought the scroll scripts): the page scrolls without a bar */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes env-hd-l { from { translate: -15vw 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
    @keyframes env-hd-r { from { translate: 15vw 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
  }
}
/* keyboard: "skip to content" appears only on focus */
.env-skip { position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: #34fdba; color: #04120d; font-weight: 500; font-size: 14px; line-height: 1; font-family: inherit; text-decoration: none; transform: translateY(-160%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.env-skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; }
#main-content:focus { outline: none; }
/* cursor becomes the button: a soft pill that takes the button's size and shape, leaning slightly toward the pointer */
.envy-cursor i { transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease, width .42s var(--envy-ease), height .42s var(--envy-ease), left .42s var(--envy-ease), top .42s var(--envy-ease), border-radius .42s var(--envy-ease), background-color .3s ease; }
.envy-cursor.is-snap i { background: rgba(255,255,255,.14); box-shadow: none; transform: none; opacity: 1; }
.envy-cursor.is-snap.is-down i { transform: scale(.965); }
/* cursor morph: dot <-> button pill takes a little longer so the blur reads (blur itself is driven from js/motion/01-core.js and siblings) */
.envy-cursor i { transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .25s ease, width .6s cubic-bezier(.32,.72,0,1), height .6s cubic-bezier(.32,.72,0,1), left .6s cubic-bezier(.32,.72,0,1), top .6s cubic-bezier(.32,.72,0,1), border-radius .6s cubic-bezier(.32,.72,0,1), background-color .45s ease, box-shadow .45s ease; }
/* cursor pill on a filled button: tinted in the button's colour, soft halo */
.envy-cursor.is-snap i { background: var(--cur-bg, rgba(255,255,255,.14)); box-shadow: 0 0 12px var(--cur-glow, rgba(255,255,255,0)); }
/* cursor: the morphing dot has no outline and no shadow; a tiny exact pointer dot stays on top of it */
.envy-cursor i { box-shadow: none !important; }
/* sections that are far off-screen keep their loops paused (js/motion/30-offscreen-pause.js) */
/* the attribute is repeated on purpose: several loops (sphere orbit nodes) set `animation: … !important` with a multi-class selector and would otherwise keep running while asleep */
[data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep], [data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep]::before, [data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep]::after, [data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep] *, [data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep] *::before, [data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep][data-env-asleep] *::after { animation-play-state: paused !important; }

/* cursor: leaving a button, the pill shrinks back to the dot quickly (entering keeps the slow, soft morph) */
.envy-cursor:not(.is-snap) i { transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease, width .18s ease-out, height .18s ease-out, left .18s ease-out, top .18s ease-out, border-radius .18s ease-out, background-color .18s ease, box-shadow .18s ease; }

/* MOBILE · the first (hero) screen is full-bleed: no frame, no side gaps, no rounded corners (the frame only makes sense on desktop) */
@media (max-width: 767px) {
  :root { --hero-gap: 0px; --hero-radius: 0px; }
  [class*="_card_1cp90_20"] { border-radius: 0 !important; }
  [class*="_card_1cp90_20"]::after { display: none !important; }
}
