/* ═══════════════════════════════════════════════════════
   $MEOWSK — palette sampled from the mascot renders
   ═══════════════════════════════════════════════════════ */

:root {
  --black:      #000000;
  --ink:        #050705;
  --panel:      #0b0f0a;
  --panel-2:    #10160e;
  --line:       rgba(124, 255, 79, 0.14);
  --line-soft:  rgba(255, 255, 255, 0.07);

  --green:      #7cff4f;   /* core neon from the eyes */
  --green-hot:  #a6ff70;   /* highlight */
  --green-deep: #3ecc16;   /* shadowed glow */
  --green-dim:  rgba(124, 255, 79, 0.55);

  --white:      #f4f7f2;   /* the shell white */
  --grey:       #9aa694;
  --grey-dim:   #66705f;

  --font:       'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell:      min(1180px, 100% - 3rem);
  --r:          16px;
  --ease:       cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

/* height:auto is required alongside the intrinsic width/height attributes
   on the <img> tags — without it the attribute height wins and stretches. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: #000; }

/* ── Ambient background layers ───────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,255,79,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,255,79,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.scanlines {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(
    to bottom, transparent 0 3px, rgba(0,0,0,.34) 3px 4px
  );
}

/* Clipping container for the glow blobs. A plain overflow:hidden on a
   normal block element is universally supported and has none of the
   root-element edge cases that overflow-x:clip on <html> hits on Android
   Chrome. The blobs can bleed off-edge freely inside this. */
.glow-wrap {
  position: absolute; top: 0; left: 0; right: 0; height: 1800px;
  overflow: hidden; pointer-events: none; z-index: 0;
}

.glow {
  position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(120px);
}
/* Positioned within .glow-wrap, so these are anchored near the hero and
   the black stays black further down the page. */
.glow-a {
  width: 760px; height: 760px; top: -240px; right: -160px;
  background: radial-gradient(circle, rgba(124,255,79,.17), transparent 62%);
}
.glow-b {
  width: 640px; height: 640px; top: 780px; left: -180px;
  background: radial-gradient(circle, rgba(62,204,22,.11), transparent 62%);
}

main, .nav, .footer { position: relative; z-index: 3; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; padding: .85rem 1.6rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), color .22s var(--ease);
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: .6rem 1.15rem; font-size: .86rem; }

.btn-primary {
  background: var(--green); color: #04120a;
  box-shadow: 0 0 0 1px rgba(124,255,79,.5), 0 8px 34px rgba(124,255,79,.32);
}
.btn-primary:hover {
  background: var(--green-hot); transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(166,255,112,.6), 0 14px 48px rgba(124,255,79,.5);
}

.btn-ghost {
  background: rgba(124,255,79,.05); color: var(--white);
  border-color: rgba(124,255,79,.3);
}
.btn-ghost:hover {
  background: rgba(124,255,79,.12); border-color: var(--green);
  color: var(--green-hot); transform: translateY(-2px);
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.05rem max(1.5rem, calc((100% - var(--shell)) / 2));
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(3, 6, 3, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: .7rem; padding-bottom: .7rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 20px rgba(124,255,79,.35);
}
.brand-text {
  font-weight: 700; font-size: 1.18rem; letter-spacing: .12em;
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links > a:not(.btn) {
  font-size: .93rem; font-weight: 500; color: var(--grey);
  transition: color .2s var(--ease); position: relative;
}
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--green); transition: width .25s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--white); }
.nav-links > a:not(.btn):hover::after { width: 100%; }

/* Top-bar socials — always visible, never collapsed into the menu. */
.nav-socials { display: flex; align-items: center; gap: .55rem; }

.nav-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green);
  border: 1px solid rgba(124, 255, 79, .38);
  background: rgba(124, 255, 79, .07);
  box-shadow: 0 0 14px rgba(124, 255, 79, .28),
              inset 0 0 10px rgba(124, 255, 79, .10);
  transition: color .22s var(--ease), background .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease),
              transform .22s var(--ease);
}
.nav-socials a svg {
  filter: drop-shadow(0 0 5px rgba(124, 255, 79, .75));
  transition: filter .22s var(--ease);
}
.nav-socials a:hover {
  color: #04120a;
  background: var(--green);
  border-color: var(--green-hot);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(124, 255, 79, .75),
              0 0 46px rgba(124, 255, 79, .40);
}
.nav-socials a:hover svg { filter: none; }

/* Links not yet configured are dimmed by script.js; kill the glow too so
   they read as genuinely inactive rather than just slightly faded. */
.nav-socials a[aria-disabled="true"] {
  box-shadow: none; border-color: var(--line-soft); color: var(--grey-dim);
}
.nav-socials a[aria-disabled="true"] svg { filter: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  width: var(--shell); margin: 0 auto;
  min-height: 100svh; padding: 8.5rem 0 4rem;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 3rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em;
  color: var(--green); text-transform: uppercase;
  border: 1px solid var(--line); background: rgba(124,255,79,.05);
  padding: .45rem 1rem; border-radius: 100px; margin-bottom: 1.7rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

h1 { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.6rem; }

.ticker-line {
  position: relative;
  font-size: clamp(3.4rem, 8.5vw, 6.6rem);
  font-weight: 700; line-height: .95; letter-spacing: -.03em;
  color: var(--green);
  text-shadow:
    0 0 14px rgba(124,255,79,.55),
    0 0 46px rgba(124,255,79,.32),
    0 0 96px rgba(62,204,22,.22);
  animation: flicker 7s infinite;
}
@keyframes flicker {
  0%, 94%, 100% { opacity: 1; }
  95% { opacity: .72; }
  96% { opacity: 1; }
  97% { opacity: .82; }
}

.sub-line {
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em;
  color: var(--white);
}
.sub-line em {
  font-style: normal; color: var(--grey);
}

.lede {
  font-size: 1.08rem; color: var(--grey);
  max-width: 34rem; margin-bottom: 2rem;
}
.lede strong { color: var(--green); font-weight: 600; }

/* Contract address */
.ca {
  display: flex; align-items: center; gap: .75rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem .5rem .5rem 1.1rem;
  max-width: 100%; width: fit-content; margin-bottom: 2rem;
}
.ca-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em;
  color: var(--green); font-weight: 700;
}
.ca code {
  font-family: var(--mono); font-size: .84rem; color: var(--white);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(42vw, 22rem);
}
.ca-copy {
  font-family: var(--font); font-weight: 700; font-size: .78rem;
  background: rgba(124,255,79,.13); color: var(--green);
  border: 1px solid rgba(124,255,79,.28); border-radius: 100px;
  padding: .45rem 1rem; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ca-copy:hover { background: var(--green); color: #04120a; }
.ca-copy.done { background: var(--green); color: #04120a; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.socials { display: flex; gap: .7rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
  color: var(--grey);
  transition: all .22s var(--ease);
}
.socials a:hover {
  color: var(--green); border-color: var(--green);
  background: rgba(124,255,79,.1); transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(124,255,79,.22);
}

/* Hero art */
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  position: relative; z-index: 2; width: 100%; max-width: 520px;
  /* The render sits on solid black — screen blending drops that
     square out so the mascot floats on the glow instead of in a box.
     The backdrop is near-black rather than pure, so contrast crushes
     the remainder and the mask feathers the last of the frame edge. */
  mix-blend-mode: screen;
  filter: contrast(1.08) brightness(1.02);
  mask-image: radial-gradient(ellipse at center, #000 68%, transparent 94%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 68%, transparent 94%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero-art-glow {
  position: absolute; z-index: 1; width: 74%; aspect-ratio: 1;
  border-radius: 50%; filter: blur(70px);
  background: radial-gradient(circle, rgba(124,255,79,.35), transparent 68%);
}
.hero-art-ring {
  position: absolute; z-index: 1; width: 88%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(124,255,79,.18);
  box-shadow: inset 0 0 80px rgba(124,255,79,.07);
  animation: spin 26s linear infinite;
}
.hero-art-ring::before {
  content: ''; position: absolute; top: -4px; left: 50%; margin-left: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 16px var(--green);
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1px solid var(--line);
  border-radius: 100px; display: grid; justify-items: center; padding-top: 7px;
}
.scroll-hint span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--green);
  animation: scrolldot 1.9s infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(15px); }
}

/* ── Marquee ─────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124,255,79,.06), rgba(124,255,79,.02));
  overflow: hidden; padding: .95rem 0; margin: 2rem 0 6rem;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  animation: slide 26s linear infinite;
}
.marquee-track span {
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  letter-spacing: .2em; color: var(--white); white-space: nowrap;
}
.marquee-track b { color: var(--green); font-size: .7rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Section furniture ───────────────────────────────── */
section:not(.hero) { width: var(--shell); margin: 0 auto; padding: 5rem 0; }

.section-head { max-width: 44rem; margin: 0 auto 3.4rem; text-align: center; }

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.08; margin-bottom: .8rem;
}
.section-title em {
  font-style: normal; color: var(--green);
  text-shadow: 0 0 26px rgba(124,255,79,.45);
}
.section-sub { color: var(--grey); font-size: 1.04rem; }

/* ── Lore ────────────────────────────────────────────── */
.lore {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.lore-art img {
  border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 60px rgba(124,255,79,.13);
}
.lore-copy .section-title { text-align: left; }
.lore-copy p { color: var(--grey); margin-bottom: 1.1rem; }
.lore-kicker {
  color: var(--white) !important; font-weight: 600; font-size: 1.1rem;
  border-left: 2px solid var(--green); padding-left: 1.1rem; margin-top: 1.6rem;
}

/* ── Cards (Laws) ────────────────────────────────────── */
.law-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 2.1rem 1.7rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,255,79,.12), transparent 62%);
  transition: opacity .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(124,255,79,.4);
  box-shadow: 0 20px 54px rgba(0,0,0,.6), 0 0 40px rgba(124,255,79,.12);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-num {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700;
  color: rgba(124,255,79,.22); line-height: 1; margin-bottom: 1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .65rem; letter-spacing: -.01em; }
.card p { color: var(--grey); font-size: .96rem; }

/* ── Tokenomics ──────────────────────────────────────── */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem; margin-bottom: 2rem;
}
.stat {
  text-align: center; padding: 2rem 1rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stat:hover { border-color: rgba(124,255,79,.4); transform: translateY(-4px); }
.stat-val {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem); color: var(--green);
  text-shadow: 0 0 22px rgba(124,255,79,.4); margin-bottom: .4rem;
}
.stat-key {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey-dim);
}

.fairness {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.fair-item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--grey);
  border: 1px solid var(--line); background: rgba(124,255,79,.04);
  border-radius: 100px; padding: .55rem 1.1rem;
}
.tick { color: var(--green); font-weight: 700; }

/* ── Steps ───────────────────────────────────────────── */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-bottom: 3.2rem;
}
.step {
  position: relative; padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: rgba(124,255,79,.4); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  background: rgba(124,255,79,.12); color: var(--green);
  border: 1px solid rgba(124,255,79,.35);
  box-shadow: 0 0 22px rgba(124,255,79,.2);
}
.step h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.step p { color: var(--grey); font-size: .93rem; }
.step a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.buy-cta { text-align: center; }
.warn {
  margin-top: 1.4rem; font-size: .87rem; color: var(--grey-dim);
  max-width: 40rem; margin-inline: auto;
}

/* ── Meowdmap ────────────────────────────────────────── */
.phases {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.phase {
  padding: 2rem 1.6rem; border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-top: 2px solid rgba(124,255,79,.4);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.phase:hover { transform: translateY(-6px); border-top-color: var(--green); }
.phase-tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green); margin-bottom: .8rem;
}
.phase h3 { font-size: 1.22rem; margin-bottom: .6rem; letter-spacing: -.01em; }
.phase p { color: var(--grey); font-size: .95rem; }

/* ── Closer ──────────────────────────────────────────── */
.closer {
  position: relative; display: grid; place-items: center;
  text-align: center; padding: 4rem 0 6rem !important;
}
.closer-art {
  width: 100%; max-width: 760px; border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.8), 0 0 80px rgba(124,255,79,.16);
}
.closer-copy { margin-top: -3.5rem; position: relative; z-index: 4; }
.closer-copy h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1.8rem;
  text-shadow: 0 6px 40px rgba(0,0,0,.9);
}
.closer-copy em {
  font-style: normal; color: var(--green);
  text-shadow: 0 0 34px rgba(124,255,79,.5);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  width: var(--shell); margin: 0 auto; padding: 3rem 0 4rem;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.4rem; margin-bottom: 2.4rem;
}
.footer-socials { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-socials a {
  font-size: .92rem; color: var(--grey); transition: color .2s var(--ease);
}
.footer-socials a:hover { color: var(--green); }

.disclaimer {
  font-size: .82rem; line-height: 1.75; color: var(--grey-dim);
  max-width: 62rem; margin-bottom: 1.4rem;
}
.copyright { font-size: .82rem; color: var(--grey-dim); }

/* ── Reveal on scroll ────────────────────────────────────
   Content is visible by default. Only once JS confirms it is
   running does it get hidden for the animation — so a failed
   or blocked script can never leave the page blank. */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .law-grid, .stat-grid, .steps, .phases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --shell: min(1180px, 100% - 2.2rem); }

  .nav-links {
    position: fixed; inset: 0 0 auto; top: 0; padding: 6rem 2rem 2.5rem;
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    background: rgba(3, 6, 3, .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links > a:not(.btn) { font-size: 1.3rem; color: var(--white); }
  .nav-toggle { display: flex; z-index: 70; }

  /* .nav-links goes position:fixed here, so it leaves the flex flow —
     push the icons over to sit beside the hamburger. The header's 1.5rem
     gap is also too generous once only three items remain; at 375px the
     row totalled ~377px and pushed the icons off-screen. */
  .nav { gap: .6rem; }
  .nav-socials { margin-left: auto; margin-right: .2rem; gap: .38rem; }
  .nav-socials a { width: 34px; height: 34px; }

  /* Decorative bleed, scaled down so less of it is clipped away. */
  .glow-a { width: 420px; height: 420px; }
  .glow-b { width: 380px; height: 380px; }

  .hero {
    grid-template-columns: 1fr; text-align: center;
    padding-top: 7rem; gap: 2.5rem;
  }
  .hero-copy { order: 2; display: flex; flex-direction: column; align-items: center; }
  .hero-art { order: 1; }
  .hero-art img { max-width: 330px; }
  .lede { margin-inline: auto; }
  .hero-actions, .socials { justify-content: center; }
  .scroll-hint { display: none; }

  .lore { grid-template-columns: 1fr; gap: 2.2rem; }
  .lore-copy .section-title { text-align: center; }
  .lore-copy { text-align: center; }
  .lore-kicker { border-left: 0; border-top: 2px solid var(--green); padding: 1rem 0 0; }

  .closer-copy { margin-top: -2rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-text { font-size: .98rem; letter-spacing: .07em; }
  .nav-socials { gap: .3rem; }
  .nav-socials a { width: 32px; height: 32px; }
  section:not(.hero) { padding: 3.5rem 0; }
  .law-grid, .stat-grid, .steps, .phases { grid-template-columns: 1fr; }
  .ca { width: 100%; }
  .ca code { max-width: 100%; font-size: .76rem; }
  .btn, .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
  .marquee { margin-bottom: 3.5rem; }
}

/* Narrow Androids (360px) and iPhone SE (320px): the wordmark is the
   first thing to go — the logo still identifies the brand, and this is
   what keeps the header from overflowing at those widths. */
@media (max-width: 395px) {
  .brand-text { display: none; }
}

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