/* ==========================================================================
   MacGameBox — macgamebox.com
   ========================================================================== */

/* --- Fonts (self-hosted: no third-party requests) ----------------------- */

@font-face {
  font-family: 'Press Start 2P';
  src: url('../fonts/pressstart2p-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  --bg:        #07070d;
  --bg-2:      #0b0b14;
  --panel:     #111120;
  --panel-2:   #171728;
  --panel-3:   #1e1e33;
  --line:      #262639;
  --line-2:    #35354e;

  --txt:       #ececf5;
  --txt-2:     #a8a8c2;
  --txt-3:     #74748f;

  --cyan:      #2ee6ff;
  --cyan-dim:  #14a9c4;
  --magenta:   #ff3d9a;
  --amber:     #ffc32b;
  --green:     #3dffa4;
  --coral:     #ff5a4a;

  --font-display: 'Press Start 2P', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --shadow-neon: 0 0 0 1px rgba(46, 230, 255, .35), 0 0 28px -6px rgba(46, 230, 255, .5);
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute is only display:none in the UA sheet, so any author
   display rule silently beats it — which showed both setup tabs at once. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7df0ff; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --- CRT scanline overlay ----------------------------------------------- */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, .022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

/* --- Layout primitives -------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-2); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--cyan);
  color: #04040a;
  padding: .75rem 1.25rem;
  font: 400 .6875rem/1 var(--font-display);
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Type helpers ------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .5625rem;
  letter-spacing: .08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  flex: none;
}

.h-sec {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  line-height: 1.55;
  letter-spacing: -.01em;
  text-transform: uppercase;
  max-width: 22ch;
}

.lede {
  color: var(--txt-2);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  max-width: 62ch;
  margin-top: 1.25rem;
}

.sec-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }

.sec-head--split {
  display: grid;
  gap: 1.25rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
  .sec-head--split .lede { margin-top: 0; }
}

.small { font-size: .875rem; color: var(--txt-2); }
.muted { color: var(--txt-3); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--cyan);
  --btn-fg: #04040a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: .6875rem;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15rem 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  position: relative;
  top: 0;
  box-shadow: 0 4px 0 0 var(--btn-shadow, #0d7f96);
  transition: top .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.08); }
.btn:active { top: 4px; box-shadow: 0 0 0 0 var(--btn-shadow, #0d7f96); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt);
  --btn-shadow: transparent;
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); filter: none; }
.btn--ghost:active { top: 0; }

.btn--amber { --btn-bg: var(--amber); --btn-shadow: #9c7000; }

.btn svg { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}

/* --- Header ------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 13, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: .8125rem;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: -.01em;
  flex: none;
}
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--cyan); font-weight: 400; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }

.nav a {
  color: var(--txt-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--txt); }
.nav a[aria-current='page'] { color: var(--cyan); }

.nav__cta {
  font-family: var(--font-display);
  font-size: .625rem !important;
  text-transform: uppercase;
  color: #04040a !important;
  background: var(--cyan);
  padding: .7rem .95rem;
  border-radius: var(--radius);
}
.nav__cta:hover { filter: brightness(1.1); color: #04040a !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: .55rem .7rem;
  cursor: pointer;
  color: var(--txt);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.5rem;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    transform: translateY(-140%);
    transition: transform .25s ease;
  }
  .nav[data-open='true'] { transform: translateY(0); }
  .nav a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__cta {
    margin-top: 1.1rem;
    text-align: center;
    border-bottom: 0 !important;
    padding: 1rem !important;
    font-size: .6875rem !important;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem);
  isolation: isolate;
}

/* perspective arcade grid */
.hero__grid {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 260%;
  height: 70%;
  transform: translateX(-50%) perspective(340px) rotateX(62deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(to right, rgba(46, 230, 255, .22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 230, 255, .22) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  z-index: -2;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero__glow--a {
  width: 46rem; height: 30rem;
  top: -14rem; left: -10rem;
  background: radial-gradient(circle, rgba(46, 230, 255, .38), transparent 65%);
}
.hero__glow--b {
  width: 40rem; height: 28rem;
  top: -8rem; right: -12rem;
  background: radial-gradient(circle, rgba(255, 61, 154, .3), transparent 65%);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); }
}

.hero h1 {
  font-family: var(--font-display);
  /* Press Start 2P is monospaced at ~1em per character: "EVERY SYSTEM." is 13
     of them, so the cap keeps the longest line inside the 30rem column. */
  font-size: clamp(1.2rem, 3.6vw, 2.05rem);
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 span {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(46, 230, 255, .55);
}

.hero__sub {
  color: var(--txt-2);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .8125rem;
  color: var(--txt-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta span::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  flex: none;
}

/* screenshot frame */
.frame {
  position: relative;
  border-radius: 8px;
  padding: 8px;
  background: linear-gradient(150deg, rgba(46, 230, 255, .55), rgba(255, 61, 154, .35) 55%, rgba(46, 230, 255, .18));
  box-shadow:
    0 0 0 1px rgba(46, 230, 255, .18),
    0 30px 70px -25px rgba(0, 0, 0, .9),
    0 0 90px -30px rgba(46, 230, 255, .55);
}
.frame__inner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #101018;
  line-height: 0;
}
.frame__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
}
.frame img { width: 100%; }

.hero .frame { max-width: 46rem; }
@media (min-width: 1000px) {
  .hero .frame { margin-right: calc(var(--gut) * -1 - 2rem); max-width: none; }
}

/* --- Stats strip -------------------------------------------------------- */

.stats {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
@media (min-width: 780px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.4rem) 1.25rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--amber);
  text-shadow: 0 0 20px rgba(255, 195, 43, .35);
  margin-bottom: .7rem;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-3);
  font-weight: 600;
}

/* --- Cards -------------------------------------------------------------- */

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  position: relative;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); }

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(46, 230, 255, .1);
  border: 1px solid rgba(46, 230, 255, .3);
  color: var(--cyan);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 19px; height: 19px; }

.card h3 {
  font-family: var(--font-display);
  font-size: .75rem;
  line-height: 1.6;
  text-transform: uppercase;
  margin-bottom: .8rem;
  color: var(--txt);
}
.card p { color: var(--txt-2); font-size: .9375rem; }

/* --- Showcase (alternating image + text) -------------------------------- */

.show {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .show { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show--flip .show__media { order: 2; }
}
.show + .show { margin-top: clamp(3rem, 6vw, 5rem); }

/* A portrait screenshot at column width is taller than the text beside it and
   opens a hole in the layout. */
.show--portrait .show__media { max-width: 20rem; margin-inline: auto; width: 100%; }

.show h3 {
  font-family: var(--font-display);
  font-size: clamp(.8125rem, 1.7vw, 1rem);
  line-height: 1.6;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.show p { color: var(--txt-2); }
.show__media { line-height: 0; }

.show__list {
  list-style: none;
  margin-top: 1.35rem;
  display: grid;
  gap: .6rem;
}
.show__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--txt-2);
  font-size: .9375rem;
}
.show__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(46, 230, 255, .8);
}

/* --- Systems ------------------------------------------------------------ */

.sys-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search {
  position: relative;
  flex: 1 1 15rem;
  max-width: 22rem;
}
.search svg {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--txt-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: .9375rem;
  color: var(--txt);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: .8rem .9rem .8rem 2.5rem;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--txt-3); }
.search input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
}
.filters button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--txt-2);
  padding: .5rem .9rem;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.filters button:hover { border-color: var(--line-2); color: var(--txt); }
.filters button[aria-pressed='true'] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04040a;
}

.sys-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(50% - .3rem, 10.5rem), 1fr));
  gap: .6rem;
}

.sys {
  --sys-c: var(--line-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--sys-c);
  border-radius: var(--radius);
  padding: 1rem .75rem .85rem;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.sys:hover { background: var(--panel-2); border-color: var(--line-2); border-top-color: var(--sys-c); }
.sys[hidden] { display: none; }

.sys[data-cat='console']  { --sys-c: var(--cyan); }
.sys[data-cat='handheld'] { --sys-c: var(--green); }
.sys[data-cat='computer'] { --sys-c: var(--amber); }
.sys[data-cat='arcade']   { --sys-c: var(--magenta); }
.sys[data-cat='mac']      { --sys-c: var(--coral); }
.sys[data-cat='engine']   { --sys-c: #a78bfa; }

.sys__art {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.sys__art img {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.sys__wordmark {
  font-family: var(--font-display);
  font-size: .5rem;
  line-height: 1.5;
  text-align: center;
  color: var(--sys-c);
  text-transform: uppercase;
}
.sys__name {
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
  color: var(--txt-3);
  text-wrap: balance;
}
.sys:hover .sys__name { color: var(--txt-2); }

.sys-empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--txt-3);
  font-size: .9375rem;
}

.sys-count {
  font-family: var(--font-display);
  font-size: .625rem;
  color: var(--txt-3);
  text-transform: uppercase;
  margin-top: 1.5rem;
}
.sys-count b { color: var(--cyan); font-weight: 400; }

/* --- Emulators ---------------------------------------------------------- */

.emu-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: .75rem;
}

.emu {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, background .18s ease;
  height: 100%;
}
a.emu:hover { border-color: var(--cyan); background: var(--panel-2); }

.emu b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .6875rem;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.5;
}
a.emu:hover b { color: var(--cyan); }
.emu b svg { width: 11px; height: 11px; opacity: 0; flex: none; transition: opacity .18s ease; }
a.emu:hover b svg { opacity: 1; }
.emu span { font-size: .8125rem; color: var(--txt-3); }

.note {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem 1.3rem;
  font-size: .9375rem;
  color: var(--txt-2);
}
.note b { color: var(--txt); font-weight: 600; }

/* --- Steps -------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tabs button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--txt-2);
  padding: .85rem 1.15rem;
  font-family: var(--font-display);
  font-size: .625rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.5;
  text-align: left;
}
.tabs button:hover { border-color: var(--line-2); color: var(--txt); }
.tabs button[aria-selected='true'] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04040a;
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.step {
  counter-increment: step;
  background: var(--panel);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem) clamp(3.6rem, 6vw, 4.5rem);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: clamp(1.1rem, 2.2vw, 1.6rem);
  top: clamp(1.3rem, 2.6vw, 1.85rem);
  font-family: var(--font-display);
  font-size: .75rem;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(46, 230, 255, .5);
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}
.step p { color: var(--txt-2); font-size: .9375rem; }
.step p + p { margin-top: .6rem; }

kbd {
  font-family: var(--font-body);
  font-size: .8125em;
  font-weight: 600;
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: .1em .45em;
  color: var(--txt);
  white-space: nowrap;
}

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

.faq-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 940px) {
  .faq-layout { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .faq-layout .sec-head { margin-bottom: 0; position: sticky; top: 92px; }
}

.faq { display: grid; gap: .75rem; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-2); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--txt);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--cyan); }

.faq__body {
  padding: 0 1.35rem 1.35rem;
  color: var(--txt-2);
  font-size: .9375rem;
}
.faq__body p + p { margin-top: .75rem; }
.faq__body ul { padding-left: 1.15rem; margin-top: .6rem; }
.faq__body li { margin-bottom: .35rem; }

/* --- Big CTA ------------------------------------------------------------ */

.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(46, 230, 255, .3);
  border-radius: 8px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(46, 230, 255, .16), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px);
}
.cta > * { position: relative; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.75rem);
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.cta h2 span { color: var(--cyan); text-shadow: 0 0 20px rgba(46, 230, 255, .5); }
.cta p { color: var(--txt-2); max-width: 48ch; margin-inline: auto; margin-bottom: 2rem; }
.cta .btn-row { justify-content: center; }
.cta__meta { margin-top: 1.6rem; font-size: .8125rem; color: var(--txt-3); }

/* --- Featured links ----------------------------------------------------- */

.links-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.linkcard {
  --lc: var(--cyan);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.linkcard::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--lc) 16%, transparent), transparent 60%);
  transition: opacity .25s ease;
}
.linkcard:hover {
  border-color: var(--lc);
  background: var(--panel-2);
  transform: translateY(-2px);
  color: inherit;
}
.linkcard:hover::after { opacity: 1; }

.linkcard__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--lc);
  background: color-mix(in srgb, var(--lc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent);
}
.linkcard__icon svg { width: 24px; height: 24px; }

.linkcard__body { display: block; }
.linkcard__body b {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .8125rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: .65rem;
}
.linkcard:hover .linkcard__body b { color: var(--lc); }
.linkcard__body b svg { width: 12px; height: 12px; opacity: .5; transition: transform .2s ease, opacity .2s ease; }
.linkcard:hover .linkcard__body b svg { opacity: 1; transform: translate(2px, -2px); }
.linkcard__body span { display: block; color: var(--txt-2); font-size: .9375rem; }

.linkcard--youtube { --lc: #ff4d4d; }
.linkcard--patreon { --lc: var(--magenta); }
.linkcard--coffee  { --lc: var(--amber); }

/* Fallback where color-mix isn't supported. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .linkcard__icon { background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
  .linkcard::after { display: none; }
}

/* --- Footer ------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.foot-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

.foot-brand p { color: var(--txt-3); font-size: .875rem; margin-top: 1rem; max-width: 34ch; }
.foot-brand .brand { margin-bottom: 0; }

.foot-col h4 {
  font-family: var(--font-display);
  font-size: .625rem;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 1.1rem;
  letter-spacing: .06em;
}
.foot-col ul { list-style: none; display: grid; gap: .65rem; }
.foot-col a { color: var(--txt-2); text-decoration: none; font-size: .875rem; }
.foot-col a:hover { color: var(--cyan); }

/* Thumbs need more than a line of text to aim at. */
@media (max-width: 760px) {
  .foot-col ul { gap: .15rem; }
  .foot-col a, .legal a { display: inline-block; padding-block: .6rem; }
}

.legal {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--txt-3);
}
.legal a { color: var(--txt-3); }
.legal a:hover { color: var(--cyan); }

.disclaimer {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--txt-3);
}
.disclaimer b { color: var(--txt-2); font-weight: 600; }

/* --- Inner page hero ---------------------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--bg-2);
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 20% 0%, rgba(46, 230, 255, .12), transparent 65%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.6vw, 2rem);
  line-height: 1.5;
  text-transform: uppercase;
}
.page-head p { color: var(--txt-2); margin-top: 1.25rem; max-width: 58ch; }

/* --- 404 ---------------------------------------------------------------- */

.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.lost h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 3rem);
  line-height: 1.5;
}
.lost h1 span { color: var(--magenta); text-shadow: 0 0 22px rgba(255, 61, 154, .5); }
.lost p { color: var(--txt-2); margin: 1.5rem auto 2.25rem; max-width: 42ch; }
.lost .btn-row { justify-content: center; }

/* --- Prose -------------------------------------------------------------- */

.prose { max-width: 44rem; }
.prose .btn-row { margin-top: 2.5rem; }
.prose p { color: var(--txt-2); margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(.875rem, 2vw, 1.125rem);
  line-height: 1.6;
  text-transform: uppercase;
  margin: 2.75rem 0 1.15rem;
}
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--txt); font-weight: 600; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.25rem; color: var(--txt-2); }
.prose li { margin-bottom: .5rem; }

/* --- Forms -------------------------------------------------------------- */

.form-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
}

.field { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--txt); }
.field label .req { color: var(--coral); }

.field input,
.field textarea {
  font: inherit;
  font-size: .9375rem;
  width: 100%;
  color: var(--txt);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--txt-3); }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: transparent;
}
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--coral); }
.err { font-size: .8125rem; color: var(--coral); min-height: 1px; }
.err--consent { display: block; margin: -1rem 0 1rem; }

.check {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: var(--txt-2);
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .18rem;
  accent-color: var(--cyan);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: .9375rem;
  border: 1px solid;
}
.alert--ok { background: rgba(61, 255, 164, .08); border-color: rgba(61, 255, 164, .4); color: var(--green); }
.alert--bad { background: rgba(255, 90, 74, .08); border-color: rgba(255, 90, 74, .4); color: var(--coral); }

.contact-card {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: .6875rem;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  line-height: 1.5;
}
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--txt-3);
  font-weight: 700;
  margin-bottom: .25rem;
}
.contact-card dd { margin: 0; font-size: .9375rem; }

/* --- Motion ------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body::after, .site-head, .hero__grid, .hero__glow { display: none !important; }
  body { background: #fff; color: #000; }
}
