/* ==========================================================================
   AI Case Sorter: site styles
   ========================================================================== */

:root {
  --bg: #0b0d10;
  --bg-2: #11141a;
  --panel: #151922;
  --panel-2: #1a1f2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --dim: #6b7382;

  --brass: #d4a24c;
  --brass-hi: #f3cf7f;
  --brass-lo: #8a6120;
  --cyan: #3fd4ff;
  --cyan-dim: rgba(63, 212, 255, 0.18);
  --red: #ff4d4d;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --nav-h: 68px;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-hi); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.grad {
  background: linear-gradient(100deg, var(--brass-hi), var(--brass) 45%, #ffe7ad 60%, var(--brass) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--brass { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #1a1205; box-shadow: 0 8px 30px -8px rgba(212, 162, 76, .6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--brass:hover { color: #1a1205; box-shadow: 0 12px 40px -8px rgba(212, 162, 76, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--brass); color: #fff; background: rgba(212,162,76,.08); }
.btn--yt { background: #ff0033; color: #fff; }
.btn--yt:hover { color: #fff; box-shadow: 0 10px 30px -8px rgba(255,0,51,.6); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(11, 13, 16, .6);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 13, 16, .85); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; }
.nav__links { display: none; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255,255,255,.05); }
.nav__cta { display: none; }
.nav__toggle { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: 10px; display: grid; place-content: center; gap: 6px; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { background: rgba(11,13,16,.97); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { color: var(--text); padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 72% 42%, rgba(212,162,76,.22), transparent 70%),
    radial-gradient(30% 35% at 20% 80%, rgba(63,212,255,.10), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }

.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }

.hero h1 { font-size: clamp(42px, 5.6vw, 74px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero__facts span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--brass); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 980px) and (min-height: 760px) { .scroll-cue { display: block; } }

/* ---------- Hero showreel (square video) ---------- */
.showreel { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.showreel__frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1b1f28, #0d0f13 70%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(212,162,76,.35), 0 0 0 1px rgba(0,0,0,.4);
}
.showreel__fallback, .showreel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel__video { z-index: 1; background: transparent; }
.showreel__video.is-missing { display: none; }
.showreel__frame::after { /* soft vignette so the overlays stay readable */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 70%, rgba(0,0,0,.6));
}
.corner { position: absolute; z-index: 3; width: 26px; height: 26px; border: 2px solid var(--brass-hi); opacity: .8; pointer-events: none; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.showreel__badge {
  position: absolute; z-index: 3; top: 24px; left: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(8,10,13,.6); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.showreel__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.6s infinite; }
.showreel__cta {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff; background: rgba(8,10,13,.6); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.showreel__cta svg { width: 16px; height: 16px; color: var(--brass-hi); }
.showreel__cta:hover { border-color: var(--brass); background: rgba(212,162,76,.2); transform: translateX(-50%) translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.section__sub { color: var(--muted); font-size: 18px; margin-top: 18px; }
@media (max-width: 719px) { .section { padding: 80px 0; } .section__head { margin-bottom: 40px; } }

/* ---------- Pipeline ---------- */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; position: relative; }
@media (min-width: 640px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .pipeline::before { content: ""; position: absolute; top: 58px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--brass), var(--cyan), transparent); opacity: .35; z-index: 0; }
}
.stage {
  position: relative; z-index: 1; padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.stage:hover { transform: translateY(-4px); border-color: rgba(212,162,76,.4); }
.stage__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: var(--brass-hi); background: radial-gradient(circle at 30% 25%, rgba(212,162,76,.3), rgba(212,162,76,.06)); border: 1px solid rgba(212,162,76,.35); margin-bottom: 22px; }
.stage__icon svg { width: 32px; height: 32px; }
.stage__num { position: absolute; top: 26px; right: 24px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.stage h3 { font-size: 22px; margin-bottom: 10px; }
.stage p { color: var(--muted); font-size: 15.5px; }

.hardware { margin-top: 26px; display: grid; gap: 28px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(63,212,255,.07), transparent 50%), var(--bg-2); }
@media (min-width: 900px) { .hardware { grid-template-columns: .8fr 1.2fr; align-items: center; padding: 40px; } }
.hardware h3 { font-size: 26px; margin-bottom: 10px; }
.hardware p { color: var(--muted); margin-bottom: 16px; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.chips li { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.chip__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.chip__v { font-size: 15px; font-weight: 500; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
@media (min-width: 720px) { .step { grid-template-columns: 64px 1fr; gap: 28px; } }
.step__rail { position: relative; display: flex; justify-content: center; }
.step__rail::after { content: ""; position: absolute; top: 56px; bottom: 0; width: 2px; background: linear-gradient(var(--line-2), transparent); }
.step:last-child .step__rail::after { display: none; }
.step__n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); color: #1a1205;
  box-shadow: 0 0 0 6px rgba(212,162,76,.12), 0 8px 24px -6px rgba(212,162,76,.6);
}
@media (min-width: 720px) { .step__n { width: 56px; height: 56px; font-size: 22px; } }
.step__body { padding-bottom: 56px; }
.step:last-child .step__body { padding-bottom: 0; }
.step h3 { font-size: 26px; margin: 10px 0 12px; }
.step p { color: var(--muted); }
.step p strong { color: var(--text); }
.step__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text); font-size: 14.5px; font-weight: 500; transition: border-color .2s, background .2s, transform .2s; }
.pill:hover { border-color: var(--brass); background: rgba(212,162,76,.1); color: #fff; transform: translateY(-1px); }
.pill--brass { background: rgba(212,162,76,.14); border-color: rgba(212,162,76,.55); color: var(--brass-hi); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 15px; }
.assemblies { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 18px; }
.asm { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); position: relative; transition: border-color .2s, transform .2s; }
.asm::after { content: "PDF"; position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10px; color: var(--dim); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; }
.asm:hover { border-color: var(--brass); color: #fff; transform: translateY(-2px); }
.asm__name { font-weight: 600; font-size: 16px; }
.asm__tag { font-size: 12.5px; color: var(--dim); }

/* ---------- Kits ---------- */
.kits { display: grid; gap: 22px; }
@media (min-width: 860px) { .kits { grid-template-columns: 1fr 1fr; } }
.kit { position: relative; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.kit:hover { transform: translateY(-4px); }
.kit--featured { border-color: rgba(212,162,76,.5); box-shadow: 0 30px 80px -40px rgba(212,162,76,.55); }
.kit__badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--brass); color: #1a1205; font-weight: 600; }
.kit__badge--muted { background: rgba(11,13,16,.8); color: var(--text); border: 1px solid var(--line-2); }
.kit__img { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.kit__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kit:hover .kit__img img { transform: scale(1.04); }
.kit__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kit__body > .btn { margin-top: auto; }
.kit h3 { font-size: 26px; }
.kit__price { font-size: 34px; font-weight: 700; color: var(--brass-hi); letter-spacing: -0.02em; line-height: 1; }
.kit__body > p:not(.kit__price) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; font-size: 15px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(63,212,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233fd4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks li.minus { color: var(--muted); }
.ticks li.minus::before { background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 17h.01' fill='none' stroke='%23d4a24c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.extras { margin-top: 40px; }
.extras__title { font-size: 18px; margin-bottom: 16px; color: var(--muted); font-weight: 500; }
.extras__row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.extra { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.extra:hover { border-color: var(--brass); transform: translateY(-2px); color: #fff; }
.extra img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; flex: none; }
.extra span { display: flex; flex-direction: column; line-height: 1.3; }
.extra strong { font-size: 15px; font-weight: 600; }
.extra em { font-style: normal; color: var(--brass-hi); font-family: var(--mono); font-size: 13px; }
.extra--more { justify-content: center; border-style: dashed; min-height: 82px; }
.fineprint { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* ---------- Videos ---------- */
.videos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 900px) {
  .videos { grid-template-columns: repeat(4, 1fr); }
  .vid--hero { grid-column: span 2; grid-row: span 2; }
}
.vid { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; text-align: left; display: block; width: 100%; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .6s var(--ease), opacity .3s; }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.vid:hover { transform: translateY(-3px); border-color: rgba(212,162,76,.6); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.vid:hover img { transform: scale(1.05); opacity: 1; }
.vid__play { position: absolute; z-index: 2; left: 50%; top: 45%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(212,162,76,.92); box-shadow: 0 0 0 8px rgba(212,162,76,.2); transition: transform .3s var(--ease), box-shadow .3s; }
.vid__play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #1a1205; }
.vid:hover .vid__play { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(212,162,76,.25); }
.vid--hero .vid__play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.vid--hero .vid__play::after { left: 32px; top: 24px; border-width: 16px 0 16px 24px; }
.vid__label { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px; font-weight: 600; font-size: 16px; color: #fff; line-height: 1.25; }
.vid__label small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 3px; }
.vid--hero .vid__label { font-size: clamp(20px, 2.4vw, 28px); left: 22px; bottom: 20px; }

/* ---------- Resources ---------- */
.res-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.res { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.res::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(212,162,76,.12), transparent 50%); opacity: 0; transition: opacity .3s; }
.res:hover { transform: translateY(-3px); border-color: rgba(212,162,76,.45); color: var(--text); }
.res:hover::before { opacity: 1; }
.res--primary { border-color: rgba(212,162,76,.5); background: linear-gradient(160deg, rgba(212,162,76,.16), var(--panel) 55%); }
.res__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--brass-hi); margin-bottom: 8px; }
.res__icon svg { width: 22px; height: 22px; }
.res h3 { font-size: 20px; }
.res p { color: var(--muted); font-size: 15px; }
.res__host { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.res__host::after { content: " ↗"; }

.legacy { margin-top: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.legacy summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); }
.legacy summary::-webkit-details-marker { display: none; }
.legacy summary strong { color: var(--text); }
.legacy__chev { width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s; flex: none; }
.legacy[open] .legacy__chev { transform: rotate(-135deg); }
.legacy__body { padding: 0 24px 24px; }
.legacy__body > p { color: var(--muted); }
.legacy__vids { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 20px; }
.vid--sm .vid__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; box-shadow: none; }
.vid--sm .vid__play::after { left: 15px; top: 12px; border-width: 8px 0 8px 12px; }
.vid--sm .vid__label { font-size: 14px; bottom: 8px; left: 12px; }

/* ---------- CTA ---------- */
.cta { padding: 100px 0 110px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212,162,76,.18), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); }
.cta p { color: var(--muted); font-size: 19px; margin-top: 16px; }
.cta .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: #08090c; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer__small { font-size: 13.5px; color: var(--dim); margin-top: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { color: var(--muted); font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin: 0; width: 100%; }
@media (min-width: 900px) { .footer__copy { width: auto; } }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--text); }
.modal::backdrop { background: rgba(5,6,8,.85); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.modal__box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; }
.modal__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; font-size: 24px; line-height: 1; flex: none; }
.modal__close:hover { border-color: var(--brass); }
.modal__frame { aspect-ratio: 16 / 9; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@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 .reveal { opacity: 1; transform: none; }
}

/* Link tiles inside the video grid */
.vid--link { display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle at 50% 30%, rgba(212,162,76,.18), var(--panel) 70%); color: var(--text); }
.vid--link::after { display: none; }
.vid--link:hover { color: #fff; }
.vid__icon { width: 52px; height: 52px; margin-top: -24px; border-radius: 14px; display: grid; place-items: center; color: var(--brass-hi); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.vid__icon svg { width: 26px; height: 26px; }
.vid--yt { background: radial-gradient(circle at 50% 30%, rgba(255,0,51,.25), var(--panel) 70%); }
.vid--yt .vid__icon { color: #ff0033; }

/* ---------- Community / Discord ---------- */
.section--tight { padding: 30px 0 0; }
.btn--discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px -10px rgba(88,101,242,.8); }
.btn--discord:hover { color: #fff; background: #6974f3; box-shadow: 0 14px 40px -10px rgba(88,101,242,.9); }
.btn--discord svg { width: 20px; height: 20px; }
.community {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center;
  padding: 36px 28px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(88,101,242,.22), rgba(88,101,242,.05) 55%, var(--panel));
  border: 1px solid rgba(88,101,242,.45);
}
@media (min-width: 860px) { .community { grid-template-columns: auto 1fr auto; padding: 40px 44px; gap: 36px; } }
.community__glow { position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(88,101,242,.45), transparent 65%); animation: drift 12s ease-in-out infinite alternate; }
.community__logo { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: #5865f2; color: #fff; box-shadow: 0 16px 40px -12px rgba(88,101,242,.9); }
.community__logo svg { width: 40px; height: 40px; }
.community .eyebrow { color: #aab1ff; margin-bottom: 10px; }
.community h2 { font-size: clamp(26px, 3.2vw, 38px); }
.community__copy p:last-child { color: var(--muted); margin-top: 10px; max-width: 560px; }

.modal--sm { max-width: min(440px, 94vw); }
.gate { padding: 8px 24px 26px; }
.gate__step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.gate__step[hidden] { display: none; }
.gate__step > p:first-child { color: var(--muted); }
.gate__step strong { color: var(--text); }
.gate__hint { font-size: 13px; color: var(--dim); }
.gate__ok { color: #8ef0b0 !important; font-weight: 600; }
.hold {
  position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(circle at 50% 40%, #2a2f3d, var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px -10px rgba(0,0,0,.8);
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none;
  transition: transform .2s var(--ease);
}
.hold.is-holding { transform: scale(.96); }
.hold__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold__ring circle { fill: none; stroke-width: 8; }
.hold__track { stroke: rgba(255,255,255,.08); }
.hold__fill { stroke: #5865f2; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; filter: drop-shadow(0 0 6px rgba(88,101,242,.8)); }
.hold__label { position: relative; font-weight: 700; font-size: 18px; }
