/* ============================================================
   GARAGE TRADES — design system
   Dark industrial-premium · amber work-light accent · terminal mono
   ============================================================ */

/* Self-hosted variable fonts (latin subsets, ~121 KB total) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg: #0a0c10;
  --bg-raised: #10141b;
  --bg-panel: #141924;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink: #f2f1ec;
  --ink-2: #a8b0bd;
  --ink-3: #6b7484;

  /* ---- Warm accents: three tiers, deliberately distinct ----
     1. BRAND (Garage Trades, the parent) — orange-leaning work-light amber.
        Site chrome, homepage, channel assets.
     2. PRODUCT (EDGEON) — yellow-leaning gold, matched to the logo artwork.
        Every EDGEON surface: the product page, the Trade Lab, in-app.
     3. SIGNAL (below) — reserved for data meaning, never brand decoration.
     Tiers 1 and 2 must NOT be collapsed: the split is what makes EDGEON read
     as a product inside Garage Trades rather than the same thing twice. */

  /* Brand — tier 1 */
  --amber: #ffa028;
  --amber-hot: #ff7a1a;
  --amber-soft: rgba(255, 160, 40, 0.14);
  --on-amber: #170f05;      /* ink on an amber fill — 9.3:1 */

  /* Product: EDGEON — tier 2 */
  --eo-gold: #f2c14e;
  --eo-gold-deep: #c9971f;
  --eo-gold-soft: rgba(242, 193, 78, 0.12);
  --eo-chrome: #dde3ea;
  --eo-chrome-dim: #98a1ac;
  --eo-plate: #11151c;
  --logo-plate: #151a23;    /* the mark's own ground, deliberately not --bg */

  /* Market / signal — tier 3, reserved */
  --bull: #2ebd85;
  --bear: #f6465d;
  --sig-gold: #f2c14e;
  --sig-yellow: #ffd75e;
  --sig-blue: #58a6ff;
  --sig-cyan: #38d9e3;
  --sig-grey: #8b93a2;

  /* Type */
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.6, 0, 0.2, 1);

  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--amber); color: var(--on-amber); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); }
.mono { font-family: var(--font-mono); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--amber); color: var(--on-amber); font-weight: 700;
  padding: 10px 18px; border-radius: 10px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.bg__orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.5;
  will-change: transform;
}
.bg__orb--amber {
  width: 560px; height: 560px; top: -180px; right: -140px;
  background: radial-gradient(circle, rgba(255, 140, 30, 0.35), transparent 65%);
}
.bg__orb--green {
  width: 480px; height: 480px; top: 45%; left: -200px;
  background: radial-gradient(circle, rgba(46, 189, 133, 0.16), transparent 65%);
}

.bg__grain {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--amber-hot), var(--amber));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 160, 40, 0.55);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--nav-h);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              backdrop-filter 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(10, 12, 16, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-plate { fill: var(--logo-plate); }
.logo-slat { fill: var(--logo-plate); }  /* shutter panel gaps — matches the plate */
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 900; font-size: 19px; letter-spacing: 0.04em;
}
.nav__wordmark em { color: var(--amber); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2);
  position: relative; padding: 6px 0;
  transition: color 0.25s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after {
  transform: scaleX(1); transform-origin: 0 50%;
}

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; padding: 13px 11px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-glow: rgba(255, 140, 30, 0.35);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.015em; white-space: nowrap;
  border-radius: 14px; overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
              background 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
  will-change: transform;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn:not(.btn--sm):not(.btn--lg):not(.btn--xl) { padding: 13px 24px; font-size: 15px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--xl { padding: 20px 40px; font-size: 18px; border-radius: 16px; }

.btn--primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hot) 100%);
  color: var(--on-amber);
  box-shadow: 0 4px 24px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 8px 34px rgba(255, 140, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
/* sheen sweep */
.btn--primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 55%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.6s var(--ease-out);
}
.btn--primary:hover::before { left: 130%; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(84px, 11vw, 140px) 0; position: relative; }

.section__eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--amber);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.section__eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 160, 40, 0.8);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.04; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section__title em {
  color: var(--amber);
  text-shadow: 0 0 34px rgba(255, 160, 40, 0.45);
}

.section__lead { color: var(--ink-2); max-width: 620px; margin-bottom: 44px; font-size: 18px; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 44px;
}
.section__head .section__title { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); }

/* cursor spotlight (set via JS --mx/--my) */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 160, 40, 0.08), transparent 42%);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card--glow {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(255, 140, 30, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-raised));
  border: 1px solid rgba(255, 160, 40, 0.22);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.5) 0%, rgba(10, 12, 16, 0.14) 35%, rgba(10, 12, 16, 0.88) 88%, var(--bg) 100%),
    radial-gradient(85% 70% at 30% 45%, transparent 30%, rgba(10, 12, 16, 0.55) 100%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; }

.hero__eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.26em; color: var(--ink-2);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bull); position: relative; flex: none;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--bull); opacity: 0.7;
  animation: pulse-ring 2s var(--ease-out) infinite;
}
.pulse-dot--amber { background: var(--amber); }
.pulse-dot--amber::after { border-color: var(--amber); }
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 8.6vw, 108px);
  line-height: 0.98; letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title em {
  color: var(--amber);
  text-shadow: 0 0 46px rgba(255, 160, 40, 0.5);
}

/* line mask reveal */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-mask .line {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s var(--ease-out);
}
.is-loaded .line-mask .line { transform: translateY(0); }
.is-loaded .line-mask .line[data-line="2"] { transition-delay: 0.12s; }
.is-loaded .line-mask .line[data-line="3"] { transition-delay: 0.24s; }

.hero__sub {
  max-width: 560px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px);
  margin-bottom: 34px;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }

.hero__micro { font-size: 13px; color: var(--ink-3); margin-bottom: 54px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(24px, 5vw, 64px);
  justify-content: start;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  max-width: 780px;
}
.stat__num {
  font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--ink);
  display: block; line-height: 1.1;
}
.stat__label {
  font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.06em;
  text-transform: uppercase; display: block; margin-top: 6px;
}

.hero__scrollcue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; opacity: 0.7; transition: opacity 0.3s;
}
.hero__scrollcue:hover { opacity: 1; }
.hero__scrollcue-track {
  display: block; width: 26px; height: 42px;
  border: 2px solid var(--ink-3); border-radius: 14px; position: relative;
}
.hero__scrollcue-dot {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 3px; background: var(--amber);
  animation: scroll-dot 1.8s var(--ease-out) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(13, 16, 22, 0.7);
  overflow: hidden; padding: 14px 0;
  position: relative; z-index: 2;
}
.ticker__track {
  display: flex; gap: 48px; width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap;
}
.tick__sym { font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.tick__px { color: var(--ink-2); }
.tick__chg--up { color: var(--bull); }
.tick__chg--dn { color: var(--bear); }
.tick__note { color: var(--ink-3); font-size: 11.5px; letter-spacing: 0.1em; }

/* ---------- Pillars ---------- */
.pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 50px;
}
.pillar { padding: 34px 30px; }
.pillar__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(255, 160, 40, 0.25);
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(255, 160, 40, 0.12);
}
.pillar h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 12px;
}
.pillar p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Toolkit ---------- */
.toolkit__panel {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px);
  padding: clamp(34px, 5vw, 64px);
  align-items: center;
}
.toolkit__lead { color: var(--ink-2); margin-bottom: 30px; font-size: 17.5px; }

.toolkit__list { list-style: none; display: grid; gap: 18px; }
.toolkit__list li { display: flex; gap: 14px; align-items: flex-start; }
.toolkit__check {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(46, 189, 133, 0.14); color: var(--bull);
  border: 1px solid rgba(46, 189, 133, 0.3);
  font-size: 14px; font-weight: 700; margin-top: 2px;
}
.toolkit__list strong { display: block; font-size: 16px; }
.toolkit__list span:not(.toolkit__check) { color: var(--ink-3); font-size: 14px; }

.toolkit__form-wrap { position: relative; }
.toolkit__form {
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.toolkit__label {
  display: block; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 14px;
}
.toolkit__row { display: flex; gap: 12px; flex-wrap: wrap; }
.toolkit__input {
  flex: 1 1 200px; min-width: 0;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; font: inherit; font-size: 15.5px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.toolkit__input::placeholder { color: var(--ink-3); }
.toolkit__input:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 160, 40, 0.18);
}
.toolkit__msg { min-height: 22px; margin-top: 12px; font-size: 14px; }
.toolkit__msg.is-ok { color: var(--bull); }
.toolkit__msg.is-err { color: var(--bear); }
.toolkit__fineprint { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

.toolkit__badge {
  position: absolute; top: -16px; right: 18px;
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  color: var(--on-amber); font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 140, 30, 0.4);
  transform: rotate(3deg);
}

/* ---------- Videos ---------- */
.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.video-card { overflow: hidden; cursor: pointer; }
.video-card__thumb {
  /* the card is built from spans so it can nest inside the <a>;
     they must be blockified or aspect-ratio and margins are ignored */
  display: block;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0;
  background:
    linear-gradient(160deg, rgba(255, 140, 30, 0.16), transparent 55%),
    linear-gradient(180deg, #171d28, var(--bg-raised));
}
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.video-card:hover .video-card__thumb img { transform: scale(1.06); }

/* CSS-art fallback chart lines inside placeholder thumbs */
.video-card__art {
  position: absolute; inset: 0; opacity: 0.8;
}
.video-card__art svg { width: 100%; height: 100%; }

.video-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s;
}
.video-card:hover .video-card__play {
  transform: scale(1.12); background: var(--amber); color: var(--on-amber);
  border-color: transparent;
}
.video-card__body { display: block; padding: 20px 22px 24px; }
.video-card__kicker {
  display: block;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 8px;
}
.video-card__title { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.35; }

/* ---------- Arsenal ---------- */
.arsenal { position: relative; }
.arsenal__stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 22px,
    var(--on-amber) 22px 44px
  );
  opacity: 0.85;
}

.arsenal__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-bottom: 54px;
}

.edgeon__badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: -14px 0 40px;
}
.edgeon-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--amber);
  border: 1px solid rgba(255, 160, 40, 0.35);
  background: rgba(255, 160, 40, 0.07);
  border-radius: 999px; padding: 7px 14px;
}

.edgeon__grid {
  display: grid;
  /* 240px min → four columns at desktop: the eight-card set lands 4×2 clean
     instead of 5+3 ragged */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 54px;
}
.edgeon-sig {
  padding: 20px 20px 18px;
  border-radius: var(--radius-sm);
}
.edgeon-sig__num {
  display: block; font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.12em; margin-bottom: 12px;
}
.edgeon-sig h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px; position: relative; padding-left: 14px;
}
.edgeon-sig h3::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 4px; height: 16px; transform: translateY(-50%);
  border-radius: 3px; background: var(--sig, var(--amber));
  box-shadow: 0 0 10px var(--sig, var(--amber));
}
.edgeon-sig__tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--sig, var(--sig-gold));
  border: 1px solid currentColor; border-radius: 6px; padding: 2px 6px;
}
.edgeon-sig p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.edgeon-sig:hover { border-color: color-mix(in srgb, var(--sig, var(--sig-gold)) 45%, transparent); }

.arsenal__cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px);
}
.arsenal__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.arsenal__cta h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  text-transform: uppercase; margin-bottom: 6px;
}
.arsenal__cta p { color: var(--ink-2); }

/* ---------- Story ---------- */
.story__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 90px); align-items: center;
}

.story__frame {
  position: relative; aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #171c26, #0e1117);
  overflow: hidden;
}
.story__door {
  position: absolute; inset: 12% 14% 0;
  display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px;
}
.story__door span {
  background: linear-gradient(180deg, #232a37, #1a2029);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05);
}
.story__glow {
  position: absolute; left: 14%; right: 14%; bottom: 0; height: 26%;
  background: linear-gradient(0deg, rgba(255, 150, 30, 0.55), transparent 80%);
  filter: blur(6px);
  animation: door-glow 4s ease-in-out infinite alternate;
}
@keyframes door-glow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.story__copy p { color: var(--ink-2); margin-bottom: 18px; }
.story__values { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.story__values li {
  display: flex; align-items: center; gap: 16px;
  font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.story__values li:hover { border-color: rgba(255, 160, 40, 0.4); transform: translateX(6px); }
.story__values .mono { color: var(--amber); font-size: 13px; }

/* ---------- Voices ---------- */
.voices .container { margin-bottom: 40px; }
.voices__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.voices__track {
  display: flex; gap: 22px; width: max-content;
  animation: ticker-scroll 46s linear infinite;
  padding-block: 6px;
}
.voices__marquee:hover .voices__track { animation-play-state: paused; }
.voice {
  width: 340px; flex: none; padding: 26px 26px 22px;
}
.voice p { font-size: 15.5px; color: var(--ink); margin-bottom: 16px; }
.voice footer { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 14px; margin-top: 44px; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-raised));
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(255, 160, 40, 0.35); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-weight: 700; font-size: 16.5px;
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--amber); }
.faq__chev {
  flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out);
}
.faq__item[open] .faq__chev { transform: rotate(-135deg); }
.faq__body { padding: 0 24px; overflow: hidden; }
.faq__body p { color: var(--ink-2); font-size: 15.5px; padding-bottom: 22px; }

/* ---------- Final CTA ---------- */
.final { padding-bottom: clamp(100px, 12vw, 160px); }
.final__inner { text-align: center; }
.final__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(52px, 11vw, 140px);
  line-height: 0.96; text-transform: uppercase; letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.final__title em { color: var(--amber); text-shadow: 0 0 60px rgba(255, 160, 40, 0.5); }
.final__sub { color: var(--ink-2); font-size: 18px; margin-bottom: 38px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.85);
  padding: 60px 0 40px;
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-bottom: 44px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a {
  font-size: 14px; color: var(--ink-2); font-weight: 600;
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--amber); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.footer__social a:hover {
  color: var(--amber); border-color: rgba(255, 160, 40, 0.5);
  transform: translateY(-3px);
}

.footer__legal {
  border-top: 1px solid var(--line); padding-top: 34px;
}
.footer__legal h4 {
  font-size: 11.5px; letter-spacing: 0.2em; color: var(--ink-2);
  margin-bottom: 10px;
}
.footer__legal p {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.7;
  max-width: 980px; margin-bottom: 22px;
}
.footer__base {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.footer__base p { font-size: 13px; color: var(--ink-3); margin: 0; }
.footer__base-links { display: flex; gap: 18px; }
.footer__base-links a {
  font-size: 13px; color: var(--ink-3); text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__base-links a:hover { color: var(--amber); }

/* ---------- Reveal system ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"] { transform: translateY(38px); }
[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(0.94) translateY(20px); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Tilt ---------- */
[data-tilt] { transform-style: preserve-3d; }
[data-tilt] > * { transform: translateZ(1px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars__grid, .videos__grid, .arsenal__grid { grid-template-columns: repeat(2, 1fr); }
  .toolkit__panel { grid-template-columns: 1fr; }
  .story__grid { grid-template-columns: 1fr; }
  .story__visual { max-width: 420px; }
}

@media (max-width: 1280px) {
  .nav__links { gap: 20px; }
}

@media (max-width: 1024px) {
  /* burger takes over before the desktop nav row can overflow (~890px needed) */
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 12, 16, 0.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 10px 6vw 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }

  .hero { padding-top: calc(var(--nav-h) + 34px); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero__cta .btn { width: 100%; }

  .pillars__grid, .videos__grid, .arsenal__grid { grid-template-columns: 1fr; }
  .section__head { align-items: flex-start; flex-direction: column; }
  .arsenal__cta { flex-direction: column; align-items: flex-start; }
  .arsenal__cta .btn { width: 100%; }
  .toolkit__row .btn { width: 100%; }
  .voice { width: 290px; }
}

@media (max-width: 480px) {
  .nav__actions .btn { display: none; }
}

@media (max-width: 380px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .btn--lg, .btn--xl { white-space: normal; text-align: center; }
}

/* ---------- Legal pages ---------- */
.legal-main { padding: calc(var(--nav-h) + 60px) 0 90px; }
.legal-main h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5vw, 46px); text-transform: uppercase;
  margin-bottom: 8px;
}
.legal-main .legal-updated {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3);
  letter-spacing: 0.12em; margin-bottom: 40px;
}
.legal-main h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  text-transform: uppercase; margin: 36px 0 12px;
  color: var(--amber);
}
.legal-main p, .legal-main li { color: var(--ink-2); font-size: 15.5px; margin-bottom: 14px; }
.legal-main ul { padding-left: 22px; }
.legal-main .legal-back { margin-top: 50px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .line-mask .line { transform: none; }
  .ticker__track, .voices__track { animation: none; }
  .hero__scrollcue { display: none; }
}
