/* ==========================================================================
   bill — Minecraft builds

   Editorial type, square corners, hard offset shadows, amethyst accent.
   Animations only move `transform` / `opacity`, so the GPU handles them.
   ========================================================================== */

:root {
  --am: #8d5be8;            /* amethyst */
  --am-hi: #b794ff;
  --am-deep: #6b3fd0;
  --lime: #6fd34a;          /* status light */
  --discord: #5865f2;
  --paper: #f2f0eb;
  --night: #0b0b0b;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --pad: clamp(20px, 4.5vw, 72px);
  --wrap: 1240px;
}

/* light = paper, dark = night. .sec-dark is always night. */
[data-theme="light"] {
  --bg: #f2f0eb; --card: #faf9f6; --text: #111; --ink-2: #4a4944; --mute: #6e6b63;
  --line: rgba(17, 17, 17, .12); --line-2: rgba(17, 17, 17, .24);
  --btn-bg: #111; --btn-fg: #f2f0eb;
  color-scheme: light;
}
[data-theme="dark"], .sec-dark {
  --bg: #0b0b0b; --card: #151515; --text: #f2f0eb; --ink-2: #b9b6ae; --mute: #8a877f;
  --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .24);
  --btn-bg: #f2f0eb; --btn-fg: #111;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; border-radius: 0; }
ul, ol { list-style: none; }
::selection { background: var(--am); color: #fff; }
:focus-visible { outline: 2px solid var(--am); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--am); color: #fff; font: 500 12px var(--mono); }
.skip:focus { top: 16px; }

.label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* ---------- pixel icons (drawn from tiny maps in main.js) ---------- */
.px-icon { display: inline-block; width: var(--s, 40px); height: var(--s, 40px); color: var(--am); }
.px-icon svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.px-dot { display: inline-block; width: 8px; height: 8px; background: var(--lime); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Buttons: square, hard offset shadow, icon box on the right ---------- */
.btn {
  --bg: var(--btn-bg); --fg: var(--btn-fg); --edge: var(--am); --box: var(--am);
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 8px 8px 8px 20px;
  background: var(--bg); color: var(--fg);
  font: 700 13px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 6px 6px 0 var(--edge);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn i { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: var(--box); color: #fff; }
.btn i svg { fill: currentColor; transition: transform .25s var(--ease-out); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--edge); transition-duration: .08s; }
.btn-light { --bg: #f2f0eb; --fg: #111; --edge: #111; --box: #111; }
.btn i.i-discord { background: var(--discord); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--edge); }
  .btn:hover i svg { transform: translateY(2px); }
  .btn:hover i.i-discord svg { transform: rotate(-8deg) scale(1.08); }
}

.sq-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--edge-c); color: var(--fg-c);
  transition: border-color .2s, background-color .2s, color .2s;
}
.sq-btn:hover { background: var(--fg-c); color: var(--bg-c); border-color: var(--fg-c); }

/* ---------- Nav ---------- */
.nav {
  --fg-c: #fff; --bg-c: #111; --edge-c: rgba(255, 255, 255, .4);
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  height: 72px; padding: 0 var(--pad);
  color: var(--fg-c);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease-out), background-color .25s, border-color .25s, color .25s;
}
.nav.solid { --fg-c: var(--text); --bg-c: var(--bg); --edge-c: var(--line-2); background: var(--bg); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
/* logo: "bill" with STUDIOS spread exactly underneath it */
.wordmark { justify-self: start; display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; }
.wm-main { font: 800 26px/.8 var(--display); letter-spacing: -.05em; }
.wm-sub { display: flex; justify-content: space-between; font: 700 7px/1 var(--display); }
.wm-sub i { font-style: normal; }
.links { display: flex; gap: 28px; }
.links a { position: relative; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--am);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.links a:hover::after, .links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.theme-btn .px-icon { --s: 18px; grid-area: 1 / 1; color: currentColor; transition: transform .45s var(--ease-out), opacity .25s; }
[data-theme="dark"] .theme-btn .sun { transform: translateY(24px); opacity: 0; }
[data-theme="light"] .theme-btn .moon { transform: translateY(-24px); opacity: 0; }
.theme-btn { overflow: hidden; }

.discord-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px;
  background: var(--discord); color: #fff; font: 500 12px/1 var(--mono);
  box-shadow: 4px 4px 0 var(--am-deep);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.discord-btn svg { fill: #fff; flex: none; }
.discord-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--am-deep); transition-duration: .08s; }
@media (hover: hover) and (pointer: fine) {
  .discord-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--am-deep); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: #0b0b0b;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
.hero-bg img.missing { display: none; }
[data-theme="dark"] .bg-day, [data-theme="light"] .bg-night { opacity: 0; }
@keyframes drift { from { transform: scale(1.06) translate(-1%, -.6%); } to { transform: scale(1.06) translate(1%, .6%); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 8, 8, .82), rgba(8, 8, 8, .25) 45%, rgba(8, 8, 8, 0) 70%),
    linear-gradient(to right, rgba(8, 8, 8, .55), rgba(8, 8, 8, 0) 60%),
    linear-gradient(to bottom, rgba(8, 8, 8, .5), rgba(8, 8, 8, 0) 18%);
}
.hero-inner { padding-top: 130px; padding-bottom: clamp(44px, 7vh, 80px); }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(8, 8, 8, .55); border: 1px solid rgba(255, 255, 255, .22);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.hero-title {
  margin: 24px 0 22px;
  font: 800 clamp(40px, 7.2vw, 104px)/.95 var(--display); letter-spacing: -.045em;
}
.hero-title em { font-style: normal; color: var(--am-hi); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) .15s forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .27s; }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 34em; font-size: clamp(16px, 1.3vw, 18px); color: rgba(255, 255, 255, .82); }
.hero-sub a { color: #fff; box-shadow: inset 0 -2px 0 var(--am); transition: box-shadow .25s var(--ease-out); }
.hero-sub a:hover { box-shadow: inset 0 -1.2em 0 var(--am); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.hero .btn-accent { --bg: #f2f0eb; --fg: #111; }
.hero-caption {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .16);
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}

/* ---------- Strip ---------- */
.strip { background: var(--am); color: #fff; overflow: hidden; height: 54px; display: flex; align-items: center; }
.strip-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.strip-set { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.strip span { font: 700 13px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.strip b { width: 8px; height: 8px; background: #fff; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(90px, 11vw, 150px) 0; scroll-margin-top: 40px; background: var(--bg); color: var(--text); }
.sec + .sec:not(.sec-dark) { padding-top: 0; }
#why { padding-bottom: clamp(80px, 9vw, 120px); }
[data-theme="dark"] .sec-dark { border-top: 1px solid var(--line); }
.h2 { font: 700 clamp(40px, 6vw, 76px)/.98 var(--display); letter-spacing: -.035em; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-side { max-width: 360px; color: var(--ink-2); font-size: 15px; display: flex; flex-direction: column; gap: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 34px; padding: 0 12px; border: 1px solid var(--line-2);
  font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: color .2s, background-color .2s, border-color .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip sup { margin-left: 4px; opacity: .55; }

.empty { padding: 80px 20px; text-align: center; border: 1px dashed var(--line-2); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

/* ---------- Gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.grid:empty { display: none; }
.card { grid-column: span 4; }
.card.wide { grid-column: span 8; }
.card.hidden { display: none; }
.grid > .card:only-child { grid-column: 1 / -1; }
.card-btn { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; }
.card-media {
  position: relative; flex: 1; overflow: hidden; background: var(--card);
  aspect-ratio: 16 / 10;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card.wide .card-media { aspect-ratio: 16 / 9; }
.grid > .card:only-child .card-media { aspect-ratio: 21 / 9; }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease-out);
}
.card-media img.loaded { opacity: 1; }
/* builds with more than one photo: second photo fades in on hover */
.card-media img.alt { opacity: 0; transition: opacity .5s ease, transform 1.2s var(--ease-out); }
.card-count {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 3px; padding: 7px 10px 7px 8px;
  background: rgba(11, 11, 11, .72); color: #f2f0eb;
  font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.card-count i { width: 6px; height: 6px; border: 1px solid currentColor; }
.card-count i + i { margin-right: 5px; background: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .card-btn:hover .card-media.multi img.alt.loaded { opacity: 1; }
}
.card-go {
  position: absolute; right: 0; bottom: 0; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--am); color: #fff;
  transform: translate(100%, 100%); transition: transform .35s var(--ease-out);
}
.card-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; }
.card-title { display: block; font: 700 clamp(20px, 2vw, 26px)/1.1 var(--display); letter-spacing: -.02em; margin-top: 8px; }
.card-meta { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .card-btn:hover .card-media { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--am); }
  .card-btn:hover .card-media img { transform: scale(1.04); }
  .card-btn:hover .card-go { transform: none; }
}

/* ---------- Why ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk {
  display: flex; flex-direction: column; padding: 26px 24px 30px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.perk h3 { font: 700 20px/1.15 var(--display); letter-spacing: -.02em; margin: 48px 0 10px; }
.perk p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.perk .px-icon { transition: transform .4s steps(4); }
@media (hover: hover) and (pointer: fine) {
  .perk:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--am); border-color: var(--am); }
  .perk:hover .px-icon { transform: translateY(-6px); }
}

.built-for { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
.clients .client { text-align: left; }
.client {
  display: flex; align-items: center; gap: 14px; min-width: 300px; padding: 12px 44px 12px 12px; position: relative;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s;
}
.client img { width: 56px; height: 56px; flex: none; image-rendering: auto; }
.client-text { display: flex; flex-direction: column; gap: 6px; }
.client-name { font: 700 17px/1 var(--display); letter-spacing: -.01em; }
.client-meta { font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.client-arrow { position: absolute; top: 8px; right: 10px; font-size: 14px; color: var(--mute); transition: color .2s, transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .client:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--am); border-color: var(--am); }
  .client:hover .client-arrow { color: var(--am); transform: translate(2px, -2px); }
}

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px 80px; align-items: start; }
.how-left { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.how-left p { color: var(--ink-2); max-width: 26em; font-size: 16px; }
.how-left .btn { margin-top: 8px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0 32px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 700 28px/1 var(--display); color: var(--am-hi); }
.step h3 { font: 700 21px/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; max-width: 34em; }
.step b { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { background: var(--am); color: #fff; padding: clamp(80px, 10vw, 130px) 0; }
.contact-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.contact-title { font: 800 clamp(42px, 7vw, 100px)/.95 var(--display); letter-spacing: -.045em; }
.discord-card {
  display: flex; align-items: center; gap: 16px; padding: 12px 28px 12px 12px; text-align: left;
  background: #f2f0eb; color: #111; box-shadow: 8px 8px 0 #111;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.dc-badge { width: 60px; height: 60px; display: grid; place-items: center; background: var(--discord); flex: none; }
.dc-badge svg { fill: #fff; }
.dc-text { display: flex; flex-direction: column; gap: 8px; }
.dc-label { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #6e6b63; }
.dc-name { font: 700 clamp(20px, 2.4vw, 28px)/1 var(--display); letter-spacing: -.02em; }
.discord-card:active { transform: translate(8px, 8px); box-shadow: 0 0 0 #111; transition-duration: .08s; }
@media (hover: hover) and (pointer: fine) {
  .discord-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 #111; }
}

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 32px;
  font: 500 10px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute);
}
.wordmark-sm { color: var(--text); text-transform: none; letter-spacing: 0; }
.wordmark-sm .wm-main { font-size: 20px; }
.wordmark-sm .wm-sub { font-size: 5.5px; }
.footer-note { flex: 1 1 300px; text-align: center; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--am); }

/* ---------- Lightbox (always dark) ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: transparent; color: #f2f0eb; overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 8, 8, .94); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s ease; }
.lightbox[open] .lb-figure { animation: up .5s var(--ease-out); }
.lightbox.closing { animation: fadeOut .2s ease forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
.lb-figure { width: min(1240px, 92vw); }
.lb-media { background: #151515; box-shadow: 10px 10px 0 var(--am); }
.lb-media img { width: 100%; max-height: 74vh; object-fit: contain; transition: opacity .25s ease; }
.lb-media img.swap { opacity: 0; }
.lb-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-top: 26px; }
.lb-tag { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--am-hi); }
.lb-cap h3 { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; margin: 8px 0 6px; }
.lb-cap p { color: #b9b6ae; max-width: 46em; font-size: 15px; }
.lb-count { font: 500 11px/1 var(--mono); color: #8a877f; white-space: nowrap; }
.lb-btn {
  position: fixed; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  background: #f2f0eb; color: #111; font-size: 16px; box-shadow: 4px 4px 0 var(--am);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.lb-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--am); }
.lb-close { top: 20px; right: 24px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-nav[hidden], .lb-count[hidden], .lb-thumbs[hidden] { display: none; }
.lb-thumbs { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.lb-thumb {
  flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; background: #151515;
  opacity: .45; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .2s, outline-color .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb[aria-current="true"] { opacity: 1; outline-color: var(--am); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  padding: 14px 18px; background: #111; color: #f2f0eb; box-shadow: 4px 4px 0 var(--am);
  font: 500 12px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 16px);
  transition: opacity .25s ease, transform .4s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Block wipe canvas ---------- */
.wipe { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; pointer-events: none; display: none; }
.wipe.on { display: block; }

/* ---------- Reveal on scroll ---------- */
.reveal, .card { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in, .card.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .card { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-column: span 6; }
  .card.wide .card-media { aspect-ratio: 16 / 10; }
  .how { grid-template-columns: 1fr; }
  .how-left { position: static; }
}
@media (max-width: 780px) {
  .nav { grid-template-columns: 1fr auto; height: 64px; }
  .links { display: none; }
}
@media (max-width: 640px) {
  .card, .card.wide, .grid > .card:only-child { grid-column: 1 / -1; }
  .grid > .card:only-child .card-media { aspect-ratio: 16 / 10; }
  .perks { grid-template-columns: 1fr; }
  .perk h3 { margin-top: 28px; }
  .step { grid-template-columns: 44px 1fr; }
  .lb-nav { top: auto; bottom: 24px; margin-top: 0; }
  .lb-cap { padding-bottom: 90px; }
  .footer { justify-content: center; text-align: center; }
  .hero-cta { gap: 16px; }
}
@media (max-width: 420px) {
  .discord-btn span { display: none; }
  .discord-btn { width: 40px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal, .card, .hero-title .line > span { opacity: 1 !important; transform: none !important; }
}
