/* =================================================================
   CrimsonMods — styles.css
   -----------------------------------------------------------------
   Performance contract for this file:
     · No @font-face and no external @import — system fonts only,
       so the page needs ZERO extra network round-trips to paint.
     · Every animation moves only `transform` or `opacity`. Those are
       composited on the GPU and never trigger layout or repaint,
       which is what keeps this smooth on weak hardware.
     · No blur(), no backdrop-filter, no animated box-shadow —
       these are the three things that kill integrated GPUs.
     · Card covers are generated from a single --h (hue) custom
       property, so a finished-looking catalog costs 0 image bytes.
     · Off-screen card grids use content-visibility:auto so the
       browser skips rendering them entirely until scrolled to.
   ================================================================= */

/* ---------------------------------------------- design tokens */
:root {
  --bg:        #0a0708;
  --bg-1:      #100b0d;
  --bg-2:      #171013;
  --line:      #26161c;
  --line-2:    #3a1f27;

  --crimson:   #dc143c;
  --crimson-h: #ff3355;
  --crimson-d: #8f0f27;
  --crimson-g: #5c0a19;

  --text:      #f4eaed;
  --mute:      #a08b93;
  --dim:       #6d5b62;

  --ok:        #29c57a;

  --r:         14px;
  --r-sm:      9px;
  --wrap:      1200px;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --fast:      .18s;
  --med:       .32s;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ---------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Static backdrop: painted once, never animated. Two tiny radial
     washes + a hairline grid read as "designed" for ~0 runtime cost. */
  background-image:
    radial-gradient(760px 420px at 12% -8%,  rgba(220, 20, 60, .14), transparent 70%),
    radial-gradient(680px 380px at 92% 4%,   rgba(143, 15, 39, .11), transparent 72%),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: scroll, scroll, fixed, fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--crimson); color: #fff; }

/* Focus ring — keyboard users only, so it never flashes on click. */
:focus-visible { outline: 2px solid var(--crimson-h); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ================================================================
   HEADER
   ================================================================ */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 7, 8, .92);
  border-bottom: 1px solid var(--line);
}
.hd-in { display: flex; align-items: center; gap: 26px; height: 62px; }

.lg { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
/* 21px, not 28px. The wordmark's capitals are only 13px tall, so a 28px
   mark stood 2.15x the height of the text it sits beside and made the
   lockup read as top-heavy. Roughly 1.6x cap height is the balance point. */
.lg-mark { width: 21px; height: 21px; color: var(--crimson); flex-shrink: 0; }
/* The mark's inner shard drifts on hover — transform only. */
.lg-mark .shard { transform-origin: 50% 50%; transition: transform var(--med) var(--ease); }
.lg:hover .lg-mark .shard { transform: rotate(90deg); }
/* The wordmark is two words in two colours inside one line box.
   Three things keep it optically level:
     · line-height:1 + flex centring, so the text box cannot drift
       against the mark;
     · letter-spacing:0 — a fractional value put the second word on a
       sub-pixel boundary, so the seam between the words rendered
       unevenly depending on where the header landed;
     · a lighter accent than the brand crimson. #dc143c against a near
       black background is far darker than the white first word, and
       the mismatch in optical weight reads as the second word sitting
       crooked even when the geometry is exact. */
/* The wordmark is ONE continuous run of inline text. It is deliberately
   not a flex container: as flex items, "Crimson" and "Mods" each get
   their own line box and their own baseline computation, which is a
   mechanism for them to sit at different heights. Plain inline text has
   no such mechanism — one line box, one baseline, both words on it. */
.lg-txt {
  display: block;
  font-size: 17px; font-weight: 700;
  letter-spacing: 0; line-height: 1;
  white-space: nowrap;
}
/* Every property that can move a glyph vertically or change its metrics
   is pinned to the parent's value. Only the colour differs. */
.lg-a {
  color: #ff4d6a;
  display: inline;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  font-style: inherit; font-variant: inherit; font-stretch: inherit;
  line-height: inherit; letter-spacing: inherit; word-spacing: inherit;
  vertical-align: baseline;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--mute);
  transition: color var(--fast) var(--ease);
}
.nav a:hover, .nav a.on { color: var(--text); }
/* Underline grows from the centre via scaleX — composited, no reflow. */
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--crimson); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--med) var(--ease);
}
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }

/* ================================================================
   HERO
   ================================================================ */
.hero { padding: 74px 0 54px; position: relative; }
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.08; font-weight: 800; letter-spacing: -1.6px;
  max-width: 15ch;
}
.hero h1 .a { color: var(--crimson); }
.hero p {
  margin-top: 20px; max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 17px); color: var(--mute);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 650; letter-spacing: .1px;
  transition: transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--crimson); color: #fff; }
.btn-p:hover { transform: translateY(-2px); }
/* Sheen sweep: a skewed bar translated across. Pure transform. */
.btn-p::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg) translateX(0);
  transition: transform .55s var(--ease);
}
.btn-p:hover::after { transform: skewX(-20deg) translateX(420%); }
.btn-s {
  border: 1px solid var(--line-2); color: var(--text);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn-s:hover { border-color: var(--crimson); transform: translateY(-2px); }

/* ---- stat strip */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 48px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--bg-1); padding: 20px 22px; }
.stat b {
  display: block; font-size: clamp(22px, 3.4vw, 32px); font-weight: 800;
  letter-spacing: -.8px; font-variant-numeric: tabular-nums;
}
.stat span {
  display: block; margin-top: 3px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--dim);
}

/* ================================================================
   SECTION HEADS
   ================================================================ */
.sec { padding: 52px 0; }
.sec-hd {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 26px; flex-wrap: wrap;
}
.sec-hd h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 750; letter-spacing: -.5px; }
.sec-hd p { color: var(--dim); font-size: 14px; }
.sec-hd .more { margin-left: auto; color: var(--crimson); font-size: 14px; font-weight: 600; }
.sec-hd .more:hover { text-decoration: underline; }

/* ================================================================
   MOD CARDS
   ================================================================ */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform var(--med) var(--ease), border-color var(--med) var(--ease);
  /* Skip rendering work for cards that are off-screen. Applied per card
     rather than to the whole grid: the grid still lays its rows out, so
     the scrollbar stays accurate and scrolling never jumps. `auto` in
     contain-intrinsic-size lets the browser remember each card's real
     measured size after its first paint. */
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }

/* ================================================================
   COVER ART
   -----------------------------------------------------------------
   No image files anywhere. A cover is three cheap layers:
     1. a dark base with a crimson-family wash (--h stays in 335–15,
        so 69 covers read as one family instead of a rainbow)
     2. a geometric pattern picked by [data-p], drawn with gradients
     3. an inline SVG with a HUD corner frame and a meaning-carrying
        glyph (a fishing script gets a fish, an executor gets braces)
   All three paint once. Only the hover states animate, and only via
   transform/opacity.
   ================================================================ */
.cv {
  position: relative;
  /* `flex: none` is required, not cosmetic: .card is a column flex
     container and its children are shrinkable by default. The cover has
     no in-flow content (everything inside is absolute), so flex layout
     collapses it to ~20px and aspect-ratio never gets to apply. */
  flex: none;
  /* 16:9 is chosen by the source material, not by taste: Roblox game
     thumbnails are exactly 16:9, and Steam store headers (2.14:1) lose
     less to a centre crop here than at any narrower ratio. */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(118% 132% at 76% 4%, hsl(var(--h, 350) 58% 25%) 0%, transparent 60%),
    linear-gradient(152deg, hsl(var(--h, 350) 40% 17%) 0%, #0c0709 74%);
}

/* ---- layer 2: pattern. One declaration per variant, no markup cost. */
.cv::before {
  content: ""; position: absolute; inset: 0;
  opacity: .55;
  transition: opacity var(--med) var(--ease);
}
.card:hover .cv::before { opacity: .8; }

.cv[data-p="0"]::before {
  background-image: repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.045) 7px 8px);
}
.cv[data-p="1"]::before {
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px);
  background-size: 13px 13px;
}
.cv[data-p="2"]::before {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cv[data-p="3"]::before {
  background-image: repeating-radial-gradient(circle at 78% 22%, transparent 0 13px, rgba(255,255,255,.05) 13px 14px);
}
.cv[data-p="4"]::before {
  background-image: repeating-linear-gradient(-38deg, transparent 0 11px, rgba(255,255,255,.04) 11px 13px);
}
.cv[data-p="5"]::before {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(255,255,255,.05) 15px 16px),
    repeating-linear-gradient(transparent 0 15px, rgba(255,255,255,.025) 15px 16px);
}

/* ---- layer 3: the glyph tile.
   Sized from the cover's HEIGHT (with aspect-ratio:1) rather than its
   width, so it stays square and proportionate on both the 16:10 card
   and the 21:8 detail hero. */
.cv-gw { position: absolute; inset: 0; display: grid; place-items: center; }

.cv-tile {
  height: 52%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 24%;
  background: linear-gradient(150deg, hsl(var(--h, 350) 56% 33%) 0%, hsl(var(--h, 350) 50% 19%) 100%);
  border: 1px solid hsl(var(--h, 350) 55% 62% / .3);
  transition: transform var(--med) var(--ease);
}
.cv-gl {
  width: 56%; height: auto; aspect-ratio: 1;
  color: #fff; opacity: .95;
}
.card:hover .cv-tile { transform: translateY(-4px) scale(1.06); }

.cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Diagonal light band; slides on hover. transform only. */
.cv::after {
  content: ""; position: absolute; inset: -30% -60%; z-index: 2;
  background: linear-gradient(74deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  transform: translateX(-28%);
  transition: transform .6s var(--ease);
}
.card:hover .cv::after { transform: translateX(28%); }

.pill {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3.5px 9px; border-radius: 100px;
  background: rgba(10,7,8,.74); border: 1px solid rgba(255,255,255,.13);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.1px;
  text-transform: uppercase; color: #fff;
}
.pill-ok { position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 3.5px 9px; border-radius: 100px;
  background: rgba(10,7,8,.74); border: 1px solid rgba(41,197,122,.4);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--ok);
}

.card-b { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.card-b h3 {
  font-size: 15.5px; font-weight: 680; letter-spacing: -.25px;
  transition: color var(--fast) var(--ease);
}
.card:hover .card-b h3 { color: var(--crimson-h); }
.card-b .d {
  margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--mute);
  /* two-line clamp keeps every card the same height */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-m {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 13px;
  font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.card-m .st { color: #d9b23c; }
.card-m .vr { margin-left: auto; }

/* ================================================================
   UPDATE FEED
   -----------------------------------------------------------------
   The homepage's third section. Rows rather than cards, so it does not
   read as a repeat of the two grids above it.
   ================================================================ */
.feed {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.fr {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px;
  padding: 12px 15px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.fr:hover { transform: translateX(3px); border-color: var(--line-2); }

/* Accent bar wipes in from the left edge — scaleY only. */
.fr::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: hsl(var(--h, 350) 74% 55%);
  transform: scaleY(0); transform-origin: 50% 50%;
  transition: transform var(--med) var(--ease);
}
.fr:hover::before { transform: scaleY(1); }

.fr-i {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  color: hsl(var(--h, 350) 74% 62%);
  background: hsl(var(--h, 350) 60% 50% / .11);
  border: 1px solid hsl(var(--h, 350) 60% 50% / .2);
  transition: transform var(--med) var(--ease);
}
.fr-i svg { width: 18px; height: 18px; }
.fr:hover .fr-i { transform: scale(1.08); }

.fr-t { min-width: 0; }
.fr-t b {
  display: block; font-size: 14.5px; font-weight: 640; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--fast) var(--ease);
}
.fr:hover .fr-t b { color: var(--crimson-h); }
.fr-t small { display: block; font-size: 12px; color: var(--dim); }

.fr-m { margin-left: auto; text-align: right; flex: none; }
.fr-m em { display: block; font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--mute); }
.fr-m small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ================================================================
   CATALOG CONTROLS
   ================================================================ */
.ctrl { margin-bottom: 22px; }
.search { position: relative; max-width: 460px; }
.search input {
  width: 100%; padding: 12px 15px 12px 42px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 14.5px;
  transition: border-color var(--fast) var(--ease);
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--crimson); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--dim); }
.search kbd {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 6.5px 14px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg-1);
  font-size: 13px; color: var(--mute); white-space: nowrap;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.chip:active { transform: scale(.96); }

.count { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.empty { padding: 60px 0; text-align: center; color: var(--dim); }

/* ================================================================
   DETAIL PAGE
   ================================================================ */
.crumb { display: flex; align-items: center; gap: 8px; padding: 22px 0; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.crumb a:hover { color: var(--crimson); }
.crumb .sp { opacity: .5; }

.det { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-bottom: 60px; align-items: start; }

/* Shares the .cv cover system (base, pattern, frame, glyph); only the
   ratio and the border differ. */
.det-hero {
  border-radius: var(--r);
  border: 1px solid var(--line);
  /* 2:1 rather than the card's 16:9 — wide enough to read as a banner,
     shallow enough that a 16:9 cover loses only ~11% to the crop. */
  aspect-ratio: 2 / 1;
}
.det-hero::after { content: none; }   /* no hover sheen on a static hero */
.det-hero .cv-tile { height: 46%; border-radius: 22%; }

.det h1 { margin-top: 24px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -1px; }
.det-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; font-size: 13px; color: var(--mute); }
.tag { padding: 4px 11px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 12px; }
.tag-ok { border-color: rgba(41,197,122,.4); color: var(--ok); font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; }

.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.3px; }
.panel p { color: var(--mute); font-size: 14.5px; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.feat { display: flex; gap: 12px; }
.feat-i {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(220,20,60,.11); border: 1px solid rgba(220,20,60,.22); color: var(--crimson);
}
.feat-i svg { width: 17px; height: 17px; }
.feat b { display: block; font-size: 14px; font-weight: 640; }
.feat span { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); line-height: 1.5; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-child { border-top: 0; }
.row .k { color: var(--dim); }
.row .v { text-align: right; font-family: var(--mono); font-size: 13px; }

/* ---- sidebar / download */
.side { position: sticky; top: 82px; }

.os { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.os button {
  padding: 9px 4px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 12px; color: var(--mute);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.os button:hover { color: var(--text); }
.os button.on { border-color: var(--crimson); color: var(--text); background: rgba(220,20,60,.1); }

.dl {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 15px; border-radius: var(--r-sm);
  background: var(--crimson); color: #fff; font-size: 15px; font-weight: 700;
  position: relative; overflow: hidden;
  transition: transform var(--fast) var(--ease);
}
.dl:hover { transform: translateY(-2px); }
.dl.off { background: var(--bg-2); color: var(--dim); border: 1px solid var(--line); cursor: not-allowed; transform: none; }
.dl svg { width: 17px; height: 17px; }

.pw { margin-top: 14px; }
.pw label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.pw-box { display: flex; gap: 8px; }
.pw-box code {
  flex: 1; padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13.5px;
  user-select: all; -webkit-user-select: all;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pw-box button {
  padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); color: var(--mute); font-size: 12.5px;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.pw-box button:hover { color: var(--crimson); border-color: var(--crimson); }

.note { margin-top: 13px; font-size: 12.5px; color: var(--dim); line-height: 1.55; }

/* ================================================================
   FOOTER
   ================================================================ */
.ft { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0; }
.ft-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.ft p { font-size: 13px; color: var(--dim); max-width: 62ch; }
.ft-nav { display: flex; gap: 16px; margin-left: auto; font-size: 13px; color: var(--mute); }
.ft-nav a:hover { color: var(--crimson); }

/* Honeypot link — invisible to humans and to screen readers, but a
   site-cloner following every href will hit it and get itself banned. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================================================================
   ENTRANCE ANIMATIONS
   -----------------------------------------------------------------
   Two mechanisms, both transform+opacity only:
     .up      — fires on load, staggered by --i (hero content)
     .rv      — fires when scrolled into view (JS adds .in)
   Both are opt-in, so a page renders complete with JS disabled:
   .rv only hides content once JS has confirmed it is running.
   ================================================================ */
@keyframes up { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }

.up { animation: up .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* .js is set by main.js on <html>. Without it, .rv stays fully visible. */
.js .rv { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .rv.in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* Respect the OS setting — kill every motion, keep every layout. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 940px) {
  .det { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 720px) {
  .hd-in { height: 56px; gap: 14px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .hero { padding: 48px 0 36px; }
  .stats { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .cv-l { font-size: 58px; }
  .card-b { padding: 11px 12px 13px; }
  .card-b h3 { font-size: 14px; }
  .card-b .d { font-size: 12px; }
  .sec { padding: 38px 0; }
  .ft-nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 15px; }
  .os { grid-template-columns: repeat(2, 1fr); }
}
