/* ==========================================================================
   2 Minute Drill — site chrome + content pages
   Owner: ui-shell. Tokens/type/base live in tokens.css.
   Design law: docs/DESIGN.md. Markup contract: docs/PAGE_TEMPLATE.md.
   Direction: Sunday-night broadcast booth. Deep stadium navy, floodlit turf,
   chalk lines, chain gold used sparingly. Game screens are ui-game's game.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page shell
   -------------------------------------------------------------------------- */

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 55% at 50% -18%, rgba(77, 141, 255, .05), transparent 62%),
    radial-gradient(80% 40% at 92% 0%, rgba(245, 197, 66, .03), transparent 58%);
  background-repeat: no-repeat;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: var(--z-skip);
  transform: translate(-50%, -120%);
  padding: 12px 22px 13px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  font: 800 13px/1 var(--display);
  letter-spacing: .11em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: -4px; }

.wrap {
  width: 100%;
  max-width: var(--maxw-page);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 32px);
}

/* Anchors and #game must clear the sticky header. */
[id] { scroll-margin-top: calc(var(--md-chrome-h) + var(--safe-t) + 14px); }

/* --------------------------------------------------------------------------
   2. Header
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
  padding-top: var(--safe-t);
  background: rgba(7, 11, 20, .84);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 18px 40px -32px rgba(0, 0, 0, .95);
}

.site-head-in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  height: var(--md-chrome-h);
  max-width: var(--maxw-page);
  margin-inline: auto;
  padding-inline: clamp(16px, 4.5vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
  transition: transform var(--dur-2) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.04); }

/* Wordmark: heavy condensed caps, "2MINUTE" in ink and "DRILL" in chain gold.
   The split is a background-clipped gradient, so it scales with the type. */
.brand-word {
  font: 800 24px/1 var(--display);
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 2px;
  color: var(--ink);
}
.brand-word-thin {
  font-weight: 700;
  /* visual gap between MINUTE and DRILL without extra markup */
  padding-right: .2em;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand-word {
    background-image: linear-gradient(90deg, var(--ink) 0 61.4%, var(--gold) 61.4% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
  margin-left: auto;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(8px, 1.1vw, 13px);
  color: var(--ink-2);
  font: 700 14px/1 var(--display);
  letter-spacing: .095em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur-2);
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: clamp(8px, 1.1vw, 13px);
  bottom: 9px;
  left: clamp(8px, 1.1vw, 13px);
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-head-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: 800 12.5px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-2) var(--ease-out), filter var(--dur-2),
    border-color var(--dur-2), background-color var(--dur-2);
}
.pill-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 8px 22px -14px rgba(245, 197, 66, .85);
}
.pill:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pill:active { transform: translateY(0); filter: brightness(.98); }

.menu-btn {
  position: relative;
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .02);
  transition: color var(--dur-2), border-color var(--dur-2), background-color var(--dur-2);
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  transition: opacity var(--dur-1);
}
.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  margin: -0.75px 0 0 -8.5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.4);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.menu-btn:hover { color: var(--gold-2); border-color: var(--line-strong); background: var(--panel-2); }
.menu-btn[aria-expanded="true"] { color: var(--gold-2); border-color: rgba(245, 197, 66, .45); }
.menu-btn[aria-expanded="true"] svg { opacity: 0; }
.menu-btn[aria-expanded="true"]::before { opacity: 1; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"]::after { opacity: 1; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  max-height: calc(100dvh - var(--md-chrome-h) - var(--safe-t));
  overflow-y: auto;
  padding: 6px clamp(16px, 4.5vw, 32px) calc(16px + var(--safe-b));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 120px),
    #0a111e;
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  animation: sheet-in var(--dur-2) var(--ease-out) both;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font: 700 15.5px/1.2 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mobile-nav a:first-child { color: var(--gold-2); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}
.mobile-nav a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Homepage hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero-home {
  background-color: var(--bg);
  background-image:
    linear-gradient(108deg, transparent 18%, rgba(125, 211, 252, .055) 34%, rgba(125, 211, 252, .018) 45%, transparent 56%),
    linear-gradient(252deg, transparent 52%, rgba(245, 197, 66, .05) 67%, rgba(245, 197, 66, .015) 78%, transparent 90%),
    radial-gradient(58% 66% at 7% -14%, rgba(125, 211, 252, .10), transparent 62%),
    radial-gradient(52% 62% at 93% -16%, rgba(245, 197, 66, .075), transparent 62%),
    radial-gradient(82% 62% at 50% 114%, rgba(34, 138, 82, .24), transparent 66%),
    linear-gradient(180deg, #0a1322 0%, #070b14 82%);
  background-repeat: no-repeat;
}

/* Giant stadium clock dial behind the hero, right side. Decorative only. */
.hero-home::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4vw;
  z-index: -1;
  width: clamp(300px, 30vw, 440px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 440' fill='none'%3E%3Ccircle cx='220' cy='220' r='198' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'/%3E%3Ccircle cx='220' cy='220' r='158' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5' stroke-dasharray='2 11'/%3E%3Cg stroke='%23ffffff' stroke-opacity='.16' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(0 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(30 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(60 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(90 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(120 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(150 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(180 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(210 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(240 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(270 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(300 220 220)'/%3E%3Cline x1='220' y1='30' x2='220' y2='50' transform='rotate(330 220 220)'/%3E%3C/g%3E%3Cg stroke='%23f5c542' stroke-linecap='round'%3E%3Cpath d='M220 220V88' stroke-opacity='.6' stroke-width='5'/%3E%3Cpath d='M220 220l83-48' stroke-opacity='.5' stroke-width='7'/%3E%3C/g%3E%3Ccircle cx='220' cy='220' r='8' fill='%23f5c542' fill-opacity='.7'/%3E%3Ccircle cx='220' cy='220' r='3' fill='%23070b14'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .85;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Field ruler bleeding up from the bottom edge of the hero. */
.hero-home::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 62%;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 24px);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%, 100% 42%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 88%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 88%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 1;
  max-width: var(--maxw-page);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 60px) clamp(18px, 4.5vw, 32px) clamp(34px, 4.6vw, 54px);
}

/* Vertical sideline ruler on the right of the desktop hero. */
.hero-home .hero-in::after {
  content: "";
  position: absolute;
  top: 16px;
  right: clamp(18px, 4.5vw, 32px);
  bottom: 16px;
  width: 88px;
  background-image:
    repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 24px);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 22px 100%, 10px 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
}

.ic {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -.16em;
  color: currentColor;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 12px/1.35 var(--body);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .ic {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold);
  opacity: .95;
}

.hero-title {
  margin-top: 14px;
  font: 900 clamp(44px, 6vw, 64px)/.92 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font: 700 clamp(17px, 1.9vw, 24px)/1.2 var(--display);
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-tag::before {
  content: "";
  flex: none;
  width: clamp(22px, 3vw, 38px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 197, 66, .12));
}

.hero-lede {
  max-width: 58ch;
  margin-top: 20px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: start;
  gap: clamp(24px, 4vw, 52px);
  max-width: 100%;
  margin-top: clamp(28px, 4vw, 40px);
  list-style: none;
}
.hero-stats li {
  position: relative;
  min-width: 0;
  padding-top: 14px;
}
.hero-stats li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  opacity: .85;
}
.hero-stats b {
  display: block;
  font: 900 clamp(30px, 3.6vw, 44px)/1 var(--display);
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-in > * { animation: hero-rise .55s var(--ease-out) both; }
.hero-in > :nth-child(1) { animation-delay: .02s; }
.hero-in > :nth-child(2) { animation-delay: .08s; }
.hero-in > :nth-child(3) { animation-delay: .16s; }
.hero-in > :nth-child(4) { animation-delay: .24s; }

/* --------------------------------------------------------------------------
   3b. Homepage hero with stadium art card (hero-art markup, Lead-owned)
   Copy left / broadcast art card right. The local classes here exist only on
   the homepage: .hero-art .hero-grid .hero-copy .hero-media .hero-card
   .hero-img .hero-card-shade .hero-bug(.hero-bug-team/-score/-clock)
   .hero-glow .hero-ghost
   -------------------------------------------------------------------------- */

.hero-art {
  background-image:
    radial-gradient(54% 74% at 83% 48%, rgba(34, 138, 82, .24), transparent 68%),
    radial-gradient(46% 60% at 88% 10%, rgba(125, 211, 252, .07), transparent 62%),
    radial-gradient(42% 52% at 16% -12%, rgba(245, 197, 66, .055), transparent 62%),
    linear-gradient(180deg, #0a1322 0%, #070b14 90%);
}

/* The art card replaces the old clock-dial / sideline-ruler decorations.
   Its own (cached) photo becomes a soft, blurred wash behind the card so the
   media feels floodlit rather than pasted on. */
.hero-art::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: -14%;
  right: -7%;
  bottom: -20%;
  width: 56%;
  background: url("/assets/hero/hero-wide.jpg") center / cover no-repeat;
  aspect-ratio: auto;
  transform: none;
  opacity: .22;
  filter: blur(58px) saturate(130%);
  -webkit-mask-image: radial-gradient(58% 66% at 50% 50%, #000 24%, transparent 74%);
  mask-image: radial-gradient(58% 66% at 50% 50%, #000 24%, transparent 74%);
  pointer-events: none;
}
.hero-art .hero-in::after { display: none; }
.hero-art::before { height: 46%; opacity: .5; }

.hero-art .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 3.6vw, 56px);
  min-height: 460px;
  padding-top: clamp(32px, 3.4vw, 44px);
  padding-bottom: clamp(32px, 3.4vw, 44px);
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }

.hero-art .hero-title { font-size: clamp(44px, 4.6vw, 60px); margin-top: 12px; }
.hero-art .hero-tag {
  margin-top: 12px;
  gap: 10px;
  font-size: clamp(16px, 1.55vw, 21px);
}
.hero-art .hero-lede {
  max-width: 54ch;
  margin-top: 16px;
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.58;
}
.hero-art .hero-cta { margin-top: 22px; gap: 14px; }
.hero-art .hero-stats {
  margin-top: 28px;
  gap: clamp(22px, 3vw, 44px);
}
.hero-art .hero-stats b { font-size: clamp(28px, 2.6vw, 38px); }

/* Ghost text action next to the gold CTA. */
.hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 4px;
  color: var(--ink-2);
  font: 700 13px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--dur-2);
}
.hero-ghost::after {
  content: "\2192";
  color: var(--gold);
  font-size: 15px;
  transition: transform var(--dur-2) var(--ease-out);
}
.hero-ghost:hover { color: var(--ink); }
.hero-ghost:hover::after { transform: translateX(3px); }

/* --- art card ------------------------------------------------------------ */

.hero-media {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-card {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(245, 197, 66, .32);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow:
    0 46px 90px -46px rgba(0, 0, 0, .95),
    0 1px 0 rgba(255, 255, 255, .07) inset;
  transform: rotate(-1.15deg);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-3);
}
.hero-card picture { display: block; height: 100%; }
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 58%;
}
.hero-card-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, 0) 26%),
    linear-gradient(0deg, rgba(7, 11, 20, .68) 0%, rgba(7, 11, 20, 0) 46%),
    radial-gradient(82% 92% at 100% 50%, rgba(7, 11, 20, .22), transparent 72%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 7% -10% -9% -5%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(34, 138, 82, .42), rgba(34, 138, 82, .12) 56%, transparent 76%),
    radial-gradient(closest-side, rgba(245, 197, 66, .18), transparent 72%);
  filter: blur(52px);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .hero-card:hover {
    transform: rotate(0deg) translateY(-3px);
    border-color: rgba(245, 197, 66, .5);
  }
}

/* --- broadcast score bug over the art ------------------------------------ */

.hero-bug {
  position: absolute;
  right: clamp(10px, 2.6%, 16px);
  bottom: clamp(10px, 2.6%, 16px);
  left: clamp(10px, 2.6%, 16px);
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(7, 11, 20, .70);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 16px 34px -20px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  font: 700 12px/1 var(--body);
}
.hero-bug-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font: 800 13px/1 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-bug-team::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-bug .hero-bug-team:first-child::before {
  background: #0f8bd1;
  box-shadow: 0 0 8px rgba(15, 139, 209, .7);
}
.hero-bug .hero-bug-team:nth-last-child(2)::before {
  background: #ffb01f;
  box-shadow: 0 0 8px rgba(255, 176, 31, .6);
}
.hero-bug-score {
  margin: 0 1px;
  color: var(--ink);
  font: 900 18px/1 var(--display);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-bug-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: var(--muted);
  font: 700 10px/1 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- tablet: single column, wide art card below the copy ----------------- */

@media (max-width: 1023px) {
  .hero-art::after { display: none; }
  .hero-art .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3.6vw, 36px);
    min-height: 0;
    padding-top: clamp(28px, 4vw, 40px);
    padding-bottom: clamp(30px, 4vw, 42px);
  }
  .hero-art .hero-title { font-size: clamp(42px, 5.6vw, 58px); }
  .hero-art .hero-tag { font-size: clamp(17px, 2.2vw, 22px); }
  .hero-art .hero-lede { max-width: 60ch; font-size: 17px; }
  .hero-art .hero-card {
    aspect-ratio: 16 / 9;
    transform: none;
    border-radius: var(--r-md);
  }
  .hero-art .hero-img { object-position: 64% 58%; }
}

/* --- phone: compact copy, then a 16:10 art card -------------------------- */

@media (max-width: 767px) {
  .hero-art::before { height: 30%; opacity: .4; }
  .hero-art .hero-in {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hero-art .hero-title { font-size: clamp(38px, 10.4vw, 50px); margin-top: 8px; }
  .hero-art .hero-tag {
    font-size: clamp(15px, 4vw, 18px);
    margin-top: 8px;
    gap: 9px;
  }
  .hero-art .hero-tag::before { width: 22px; height: 2px; }
  .hero-art .hero-lede {
    max-width: 46ch;
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 1.55;
  }
  .hero-art .hero-cta { margin-top: 16px; gap: 10px; }
  .hero-art .hero-cta .btn {
    --btn-h: 46px;
    flex: 0 0 auto;
    padding: 0 18px;
    font-size: 13.5px;
  }
  .hero-art .hero-ghost { min-height: 46px; font-size: 12px; padding: 0 2px; }
  .hero-art .hero-stats { margin-top: 20px; gap: 12px; }
  .hero-art .hero-stats b { font-size: clamp(25px, 7vw, 32px); }
  .hero-art .hero-stats li { padding-top: 11px; }
  .hero-art .hero-stats li::before { width: 20px; }
  .hero-art .hero-card {
    aspect-ratio: 16 / 10;
    border-radius: var(--r-md);
  }
  .hero-bug {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  .hero-bug-team { font-size: 11.5px; gap: 5px; }
  .hero-bug-team::before { width: 7px; height: 7px; }
  .hero-bug-score { font-size: 15px; }
  .hero-bug-clock { font-size: 9px; gap: 7px; padding-left: 8px; }
}

@media (max-width: 359px) {
  .hero-art .hero-lede { font-size: 15px; }
  .hero-art .hero-cta { gap: 8px; }
  .hero-art .hero-cta .btn { font-size: 12.5px; padding: 0 15px; }
  .hero-art .hero-ghost { font-size: 11px; }
}

/* --------------------------------------------------------------------------
   4. Section rule — the yard-marker divider
   -------------------------------------------------------------------------- */

.section-rule {
  position: relative;
  height: 64px;
  margin: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 120px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 8px, 100% 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.section-rule::before,
.section-rule::after {
  content: "";
  position: absolute;
  top: 50%;
}
.section-rule::before {
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}
.section-rule::after {
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(245, 197, 66, .45);
  transform: translate(-50%, -50%) rotate(45deg);
}

.noscript {
  max-width: var(--maxw);
  margin: 28px auto;
  padding: 20px 22px;
  border: 1px solid rgba(240, 68, 56, .28);
  border-left: 3px solid var(--flag);
  border-radius: var(--r-md);
  background: rgba(240, 68, 56, .06);
}
.noscript h2 {
  font: 800 22px/1.15 var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.noscript p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   5. Content pages — breadcrumb, hero, body
   -------------------------------------------------------------------------- */

.breadcrumb { padding-top: 16px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font: 700 11.5px/1.4 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb a { color: var(--muted); transition: color var(--dur-2); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

.page-hero {
  position: relative;
  overflow: clip;
  padding: clamp(32px, 4.6vw, 52px) 0 clamp(34px, 4.6vw, 54px);
  background-image:
    radial-gradient(70% 120% at 12% -10%, rgba(77, 141, 255, .075), transparent 62%),
    radial-gradient(54% 100% at 92% -12%, rgba(245, 197, 66, .05), transparent 62%);
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .wrap::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 6px;
  width: 92px;
  background-image:
    repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 24px);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 22px 100%, 10px 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40%;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 24px);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%, 100% 46%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}
.page-hero h1 {
  max-width: 20ch;
  margin-top: 14px;
  font: 900 clamp(38px, 5.4vw, 64px)/.98 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.lede {
  max-width: 64ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.byline time { color: var(--ink-2); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.page-body {
  padding: clamp(38px, 5.6vw, 64px) 0 clamp(56px, 8vw, 88px);
  background-image: linear-gradient(180deg, rgba(11, 18, 32, .55), transparent 440px);
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   6. Editorial type (content pages .prose + homepage .page-copy .wrap)
   -------------------------------------------------------------------------- */

.prose,
.page-copy .wrap {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Long-form measure: prose stays readable, tables/cards use the full grid. */
.prose > * { max-width: 68ch; }
.prose > .data-table,
.prose > .table-wrap { max-width: 900px; }
.prose > .card-grid { max-width: none; }
.prose > .cta-end { max-width: 860px; }
.page-copy .wrap { max-width: 840px; }

:is(.prose, .page-copy .wrap) > h2 {
  position: relative;
  margin: clamp(40px, 6vw, 56px) 0 18px;
  padding-top: 22px;
  font: 800 clamp(28px, 3.6vw, 40px)/1.04 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--ink);
}
:is(.prose, .page-copy .wrap) > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 197, 66, .06));
}
:is(.prose, .page-copy .wrap) > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}
:is(.prose, .page-copy .wrap) > h2:first-child::before { display: none; }

:is(.prose, .page-copy .wrap) > h3,
.prose > section > h3 {
  margin: 34px 0 10px;
  font: 800 clamp(20px, 2.2vw, 24px)/1.2 var(--display);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}

:is(.prose, .page-copy .wrap) > p {
  max-width: 68ch;
  margin-bottom: 18px;
}
:is(.prose, .page-copy .wrap) > p:last-child { margin-bottom: 0; }
.prose strong,
.page-copy .wrap strong { color: var(--ink); font-weight: 600; }
.prose em,
.page-copy .wrap em { color: var(--ink); font-style: italic; }

/* Text links: chain gold, underlined, never mistaken for buttons. */
:is(.prose, .page-copy .wrap) :is(p, li, td, .callout, .cta-end, .faq) a:not(.btn):not(.pill) {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(245, 197, 66, .38);
  text-underline-offset: 3px;
  transition: color var(--dur-2), text-decoration-color var(--dur-2);
}
:is(.prose, .page-copy .wrap) :is(p, li, td, .callout, .cta-end, .faq) a:not(.btn):not(.pill):hover {
  color: #fff;
  text-decoration-color: var(--gold);
}

:is(.prose, .page-copy .wrap) > ul,
.prose ul.bullets,
.page-copy .wrap ul.bullets {
  max-width: 68ch;
  margin: 0 0 20px;
  padding-left: 1.25em;
  list-style: disc;
}
:is(.prose, .page-copy .wrap) > ul li,
.bullets li { margin-top: 8px; padding-left: .15em; }
:is(.prose, .page-copy .wrap) > ul li::marker,
.bullets li::marker { color: var(--gold); }
:is(.prose, .page-copy .wrap) > ul li:first-child,
.bullets li:first-child { margin-top: 0; }
:is(.prose, .page-copy .wrap) > ul li::before {
  content: none;
}

/* --------------------------------------------------------------------------
   7. Cards, tables, callouts, FAQ, CTA — content components
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}
.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 24px;
}

.info-card,
.mini-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 46%),
    var(--panel);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2),
    box-shadow var(--dur-2);
}
.info-card::before,
.mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 197, 66, .55), rgba(245, 197, 66, 0) 72%);
  opacity: .55;
}
.info-card::after,
.mini-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 30px;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 7px);
  opacity: .55;
  pointer-events: none;
}
.info-card h3,
.mini-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 19px/1.2 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
.info-card h3 .ic,
.mini-card h3 .ic {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}
.info-card p,
.mini-card p {
  max-width: none;
  margin: 9px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.info-card a,
.mini-card a { color: inherit; text-decoration: none; }
.info-card a:hover,
.mini-card a:hover { color: var(--gold-2); }

/* Stat / data tables ------------------------------------------------------ */

.data-table {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}
.data-table caption {
  padding: 0 0 12px;
  caption-side: top;
  text-align: left;
  font: 700 11px/1.45 var(--body);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table thead th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .025);
  font: 700 11.5px/1.35 var(--body);
  letter-spacing: .085em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .018); }
.data-table tbody tr:hover td { background: rgba(245, 197, 66, .05); color: var(--ink); }
.data-table tbody tr:last-child td { border-bottom-color: var(--line-strong); }
.data-table strong { color: var(--ink); font-weight: 600; }
.data-table td.num,
.data-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.data-table .grade { vertical-align: -7px; }

.table-wrap {
  width: 100%;
  margin: 24px 0 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-sm);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}
.table-wrap .data-table { width: 100%; margin: 0; }
.table-wrap:focus-visible { outline-offset: 4px; }

/* Callout ----------------------------------------------------------------- */

.callout {
  margin: 26px 0;
  padding: 18px 22px 18px 24px;
  border: 1px solid rgba(245, 197, 66, .24);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(90deg, rgba(245, 197, 66, .09), rgba(245, 197, 66, .015));
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.callout > :last-child { margin-bottom: 0; }

/* FAQ --------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  margin: 20px 0 8px;
}
.faq details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color var(--dur-2), background-color var(--dur-2);
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] {
  border-color: rgba(245, 197, 66, .3);
  background: linear-gradient(180deg, rgba(245, 197, 66, .035), transparent 80%), var(--panel);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 15px 18px;
  font: 600 15.5px/1.4 var(--body);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform var(--dur-2) var(--ease-out), margin-top var(--dur-2) var(--ease-out);
}
.faq details[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.faq details > p {
  max-width: 62ch;
  padding: 0 18px 18px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* End-of-page CTA --------------------------------------------------------- */

.cta-end {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: clamp(44px, 6vw, 64px) 0 8px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background-image:
    radial-gradient(80% 140% at 100% 0%, rgba(245, 197, 66, .13), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, var(--grass-glow), transparent 62%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow-card);
}
.cta-end::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 197, 66, .6), rgba(245, 197, 66, 0) 70%);
}
.cta-end::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.cta-end > * { position: relative; z-index: 1; }
.cta-end h2 {
  max-width: none;
  margin: 0 0 10px;
  padding-top: 0;
  font: 900 clamp(26px, 3.6vw, 38px)/1.02 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--ink);
}
.cta-end h2::before { display: none; }
.cta-end p {
  max-width: 48ch;
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* Grade key --------------------------------------------------------------- */

.grade-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  max-width: 68ch;
  margin: 22px 0 8px;
  list-style: none;
}
.grade-key li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.grade {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 700 14px/1 var(--body);
  background: rgba(255, 255, 255, .03);
}
.grade-green { color: var(--g-green); background: rgba(52, 211, 153, .12); }
.grade-yellow { color: var(--g-yellow); background: rgba(250, 204, 21, .10); }
.grade-orange { color: var(--g-orange); background: rgba(251, 146, 60, .12); }
.grade-red { color: var(--g-red); background: rgba(248, 113, 113, .12); }

/* Link rows, updated line ------------------------------------------------ */

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 68ch;
  margin: 22px 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--faint);
}
.link-row a {
  display: inline;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(245, 197, 66, .4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-2), text-decoration-color var(--dur-2);
}
.link-row a:hover { color: var(--gold-2); text-decoration-color: var(--gold); }

.updated-line {
  max-width: none;
  margin: 42px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.updated-line time { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 800 15px/1 var(--display);
  letter-spacing: .085em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2),
    border-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2),
    filter var(--dur-2);
}
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: rgba(255, 255, 255, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .48),
    inset 0 -1px 0 rgba(0, 0, 0, .16),
    0 14px 34px -18px rgba(245, 197, 66, .9);
}
.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .16),
    0 18px 40px -18px rgba(245, 197, 66, .95);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover {
  color: var(--gold-2);
  border-color: rgba(245, 197, 66, .5);
  background: rgba(245, 197, 66, .06);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.site-foot {
  position: relative;
  margin-top: auto;
  padding-bottom: var(--safe-b);
  background: var(--bg-2);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, .7) 16%, rgba(245, 197, 66, .7) 84%, transparent);
}
/* Yard ticks, 6% gold, fading out down the footer. */
.site-foot::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 70%;
  background-image: repeating-linear-gradient(90deg, rgba(245, 197, 66, .06) 0 1px, transparent 1px 52px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}
.foot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  padding-block: clamp(40px, 6vw, 64px) clamp(30px, 4vw, 44px);
}
.brand-foot { min-height: 0; margin-bottom: 14px; }
.brand-foot .brand-mark { width: 30px; height: 30px; }
.brand-foot .brand-word { font-size: 21px; }

.foot-brand p {
  max-width: 46ch;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
}
.foot-brand a,
.foot-note a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
  transition: color var(--dur-2), text-decoration-color var(--dur-2);
}
.foot-brand a:hover,
.foot-note a:hover { color: var(--gold-2); text-decoration-color: var(--gold); }
.foot-copy {
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.foot-h {
  margin: 0 0 12px;
  font: 700 11px/1.4 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.foot-nav a:hover { color: var(--gold-2); transform: translateX(2px); }
.foot-note p {
  max-width: 38ch;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
}
.foot-note p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   10. 404 page
   -------------------------------------------------------------------------- */

.error-hero { padding-top: clamp(40px, 6vw, 68px); }
.error-code {
  font: 900 clamp(76px, 13vw, 132px)/.78 var(--display);
  letter-spacing: .02em;
  color: rgba(245, 197, 66, .14);
  -webkit-text-stroke: 1.5px rgba(245, 197, 66, .42);
  user-select: none;
}
@supports (-webkit-text-stroke: 1px #000) or (text-stroke: 1px #000) {
  .error-code { color: transparent; }
}
.error-hero h1 { max-width: 18ch; }
.error-links { margin-top: 4px; }
.error-links h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(245, 197, 66, .5), rgba(245, 197, 66, .5));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color var(--dur-2), background-size var(--dur-2) var(--ease-out);
}
.error-links h3 a:hover { color: var(--gold-2); background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   11. Motion / pointer refinements
   -------------------------------------------------------------------------- */

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .info-card:hover,
  .mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .95);
  }
  .info-card:hover::before,
  .mini-card:hover::before { opacity: 1; }
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-home::after,
  .hero-home .hero-in::after,
  .page-hero .wrap::after { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .brand-foot { margin-bottom: 12px; }
}

@media (max-width: 859px) {
  .site-nav { display: none; }
  .menu-btn { display: grid; }
  .site-head-cta { margin-left: auto; }
}

@media (max-width: 767px) {
  .hero-stats { gap: 18px; }
  .three-up { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .section-rule { height: 48px; }
  .site-head { box-shadow: 0 12px 30px -26px rgba(0, 0, 0, .95); }
}

@media (max-width: 620px) {
  .brand-word { font-size: 21px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
  .brand { gap: 8px; }
  .site-head-cta { gap: 8px; }
  .pill { min-height: 36px; padding: 0 13px; font-size: 11px; letter-spacing: .08em; }
  .menu-btn { width: 40px; height: 40px; border-radius: 9px; }

  .hero-in { padding-top: clamp(26px, 7vw, 40px); padding-bottom: clamp(30px, 7vw, 40px); }
  .hero-title { font-size: clamp(42px, 11.5vw, 58px); }
  .hero-tag { gap: 10px; margin-top: 13px; font-size: clamp(16px, 4.2vw, 20px); }
  .hero-lede { margin-top: 16px; font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
  .hero-stats b { font-size: clamp(26px, 7.5vw, 34px); }
  .hero-stats span { font-size: 9.5px; letter-spacing: .06em; }

  .page-hero h1 { font-size: clamp(36px, 10vw, 52px); max-width: none; }
  .lede { font-size: 16px; }
  .hero-cta { margin-top: 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .btn { --btn-h: 48px; padding: 0 20px; font-size: 14px; }

  .prose,
  .page-copy .wrap { font-size: 16px; }
  :is(.prose, .page-copy .wrap) > h2 { padding-top: 18px; margin-top: 40px; }
  :is(.prose, .page-copy .wrap) > h2::before { width: 34px; height: 2px; }

  .data-table { font-size: 12.5px; }
  .data-table caption { font-size: 10px; letter-spacing: .09em; }
  .data-table thead th {
    padding: 8px 6px;
    font-size: 9.5px;
    letter-spacing: .035em;
    line-height: 1.3;
    white-space: normal;
  }
  .data-table tbody td { padding: 9px 6px; overflow-wrap: break-word; }
  .data-table td.num,
  .data-table th.num { white-space: normal; }

  /* Wrapped by js/site.js: scroll wide tables instead of crushing columns. */
  .table-wrap .data-table { min-width: calc(var(--cols, 3) * 78px); }
  .table-wrap .data-table caption {
    width: calc(100vw - 2 * clamp(18px, 4.5vw, 32px));
    max-width: none;
  }

  .grade-key { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .faq summary { padding: 14px 16px; font-size: 15px; }
  .faq details > p { padding: 0 16px 16px; }

  .cta-end { padding: 24px 20px; border-radius: var(--r-md); }
  .cta-end p { margin-bottom: 18px; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 36px 30px; }
  .foot-brand { grid-column: auto; }
  .site-foot::after { height: 55%; }

  .error-code { font-size: clamp(68px, 22vw, 96px); }
}

@media (max-width: 400px) {
  /* No-JS fallback for wide tables: allow word breaks instead of page scroll.
     JavaScript-wrapped tables are wide enough that nothing actually breaks. */
  .data-table { font-size: 11.5px; }
  .data-table thead th { padding: 6px 4px; font-size: 8.5px; letter-spacing: .01em; }
  .data-table tbody td { padding: 7px 4px; overflow-wrap: anywhere; }
}

@media (max-width: 379px) {
  .brand-word { font-size: 18px; letter-spacing: .02em; }
  .brand-mark { width: 29px; height: 29px; }
  .wrap,
  .site-head-in { padding-inline: 14px; }
  .header-pill { display: none; }
  .site-head-cta .pill { display: none; }
  .hero-stats { gap: 10px; }
  .hero-stats b { font-size: 26px; }
  .hero-stats span { font-size: 9.5px; letter-spacing: .07em; }
  .btn { font-size: 13px; padding: 0 16px; }
}

/* --------------------------------------------------------------------------
   13. Preferences fallbacks
   -------------------------------------------------------------------------- */

@media (prefers-contrast: more) {
  :root {
    --line: rgba(255, 255, 255, .22);
    --line-strong: rgba(255, 255, 255, .42);
    --muted: #b9c8db;
    --faint: #94a8c2;
  }
  .brand-word {
    background-image: none;
    color: var(--ink);
    -webkit-text-fill-color: currentColor;
  }
  .brand-word .brand-word-thin { color: var(--ink); }
  .hero-home::before,
  .hero-home::after,
  .hero-home .hero-in::after,
  .page-hero::after,
  .page-hero .wrap::after,
  .site-foot::after,
  .section-rule { opacity: .5; }
  .hero-card { border-color: rgba(245, 197, 66, .6); }
  .hero-bug { border-color: rgba(255, 255, 255, .35); }
  .data-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .05); }
}

@media (forced-colors: active) {
  .brand-word {
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
  .btn-gold,
  .pill-gold,
  .grade { border: 1px solid ButtonText; }
  .hero-home::before,
  .hero-home::after,
  .hero-home .hero-in::after,
  .page-hero::after,
  .page-hero .wrap::after,
  .site-foot::after,
  .section-rule,
  .cta-end::after,
  .hero-glow { display: none; }
  .hero-card { border: 1px solid ButtonText; }
  .hero-bug { border: 1px solid ButtonText; background: Canvas; }
}
