:root {
  --ink: #f7f5ef;
  --muted: #aaa9b1;
  --bg: #080a13;
  --panel: #111420;
  --panel-light: #171b2a;
  --red: #fa3e43;
  --red-light: #ff686c;
  --blue: #5b78ff;
  --gold: #f0b94d;
  --line: rgba(247, 245, 239, 0.14);
  --line-strong: rgba(247, 245, 239, 0.25);
  --header-height: 88px;
  --page-gutter: clamp(20px, 5vw, 72px);
  --content-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 73% 11%, rgba(91, 120, 255, 0.08), transparent 26%),
    radial-gradient(circle at 10% 37%, rgba(250, 62, 67, 0.05), transparent 24%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, min-height 0.25s ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  border-bottom-color: var(--line);
  background: rgba(8, 10, 19, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-name {
  font: 800 21px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.09em;
}

.brand-name > span {
  color: var(--red);
}

.brand small {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  margin-right: 16px;
}

.nav-links a {
  position: relative;
  padding: 14px 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 1px;
  background: var(--red);
  transition: right 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  right: 0;
}

.nav-secondary,
.nav-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-secondary:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.nav-cta {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.nav-cta:hover {
  border-color: var(--red-light);
  background: var(--red-light);
}

.menu-toggle {
  display: none;
}

.hero {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: max(760px, 100svh);
  margin: 0 auto;
  padding-top: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 5;
  padding: 72px 0 120px;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-line {
  width: 38px;
  height: 1px;
  background: var(--red);
}

h1 {
  max-width: 700px;
  margin: 28px 0 26px;
  font-size: clamp(76px, 8.3vw, 128px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.035em;
}

h1 span {
  color: var(--ink);
}

h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-text {
  max-width: 455px;
  margin-bottom: 0;
  color: #b9b7be;
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 36px 0 58px;
  flex-wrap: wrap;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  min-width: 192px;
  justify-content: space-between;
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 36px rgba(250, 62, 67, 0.18);
}

.button-primary:hover {
  background: var(--red-light);
}

.button-primary small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.button-ghost {
  border-color: var(--line-strong);
  color: #ceccd1;
}

.button-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-meta {
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 18px 8px 0;
}

.hero-meta li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-meta strong {
  color: var(--red);
  font: 700 10px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
}

.hero-meta span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-art {
  align-self: stretch;
  position: relative;
  z-index: 2;
  min-height: 660px;
  isolation: isolate;
  --art-w: calc(100% - 28px); /* shared by the img and the motion .hero-cut overlay */
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: calc(100% - 42px);
  aspect-ratio: 16 / 9;
  left: 54%;
  top: 52%;
  border: 1px solid rgba(91, 120, 255, 0.48);
  transform: translate(-50%, -50%) rotate(3deg);
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  z-index: 3;
  width: var(--art-w);
  max-width: 720px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.52);
}

.hero-art-label {
  position: absolute;
  z-index: 7;
  left: 5%;
  bottom: 25%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-left: 2px solid var(--red);
  background: rgba(8, 10, 19, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-art-label span {
  font: 800 13px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.09em;
}

.hero-art-label small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.vertical-label {
  position: absolute;
  z-index: 7;
  right: -2px;
  bottom: 23%;
  margin: 0;
  writing-mode: vertical-rl;
  color: rgba(247, 245, 239, 0.46);
  font-size: 8px;
  letter-spacing: 0.34em;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.14;
  pointer-events: none;
}

.glow-one {
  width: 170px;
  height: 170px;
  top: 13%;
  left: -3%;
  background: var(--red);
}

.glow-two {
  width: 250px;
  height: 250px;
  right: 16%;
  bottom: 5%;
  background: var(--blue);
}

.scroll-cue {
  position: absolute;
  z-index: 8;
  left: 0;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 36px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  50%, 100% { transform: translateX(100%); }
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.ticker-track {
  width: max-content;
  min-width: 200%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  padding: 0 28px;
  animation: ticker 26s linear infinite;
}

.ticker span {
  color: var(--muted);
  font: 700 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ticker i {
  width: 5px;
  height: 5px;
  display: block;
  background: var(--red);
  transform: rotate(45deg);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 144px 0;
}

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

.section-kicker span {
  min-width: 32px;
  color: var(--muted);
}

.section h2,
.final-cta h2 {
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.028em;
}

.section h2 span,
.final-cta h2 span {
  color: var(--red);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(64px, 10vw, 124px);
  padding-top: 34px;
}

.story-grid h2 {
  margin: 0;
}

.story-copy {
  max-width: 430px;
  padding-top: 12px;
}

.story-copy p,
.community-copy > p,
.section-heading-row > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.story-copy .lead {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.story-copy p + p {
  margin-top: 22px;
}

.text-link {
  position: relative;
  display: inline-flex;
  margin-top: 20px;
  padding-bottom: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--red);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: scaleX(0.55);
}

.gameplay {
  padding-top: 28px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 20px 0 50px;
}

.section-heading-row h2 {
  margin: 0;
}

.section-heading-row > p {
  max-width: 300px;
  margin: 0 0 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  --accent: var(--red);
  min-height: 450px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--panel);
  transition: transform 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
}

.feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0e17;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.04);
}

.feature-content {
  min-height: 246px;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
}

.card-blue {
  --accent: var(--blue);
}

.card-gold {
  --accent: var(--gold);
}

.card-index {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-rule {
  width: 100%;
  height: 1px;
  margin-top: 21px;
  background: var(--line);
}

.feature-card h3 {
  margin: 34px 0 17px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.015em;
}

.feature-card p {
  max-width: 230px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.rewards {
  padding-top: 10px;
}

.rewards-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(52px, 9vw, 120px);
  align-items: end;
  margin-bottom: 52px;
}

.rewards-heading h2 {
  margin: 20px 0 0;
}

.rewards-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.badge-card {
  min-width: 0;
  margin: 0;
  padding: 14px 12px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.badge-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}

.badge-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.badge-card figcaption {
  margin-top: 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.community {
  display: grid;
  grid-template-columns: minmax(390px, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(70px, 10vw, 130px);
  align-items: center;
  padding-top: 120px;
}

.community-art {
  width: 100%;
  max-width: 530px;
  aspect-ratio: 16 / 11;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  transform: rotate(-2deg);
}

.community-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-art figcaption {
  position: absolute;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-left: 2px solid var(--red);
  background: rgba(8, 10, 19, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: rotate(2deg);
}

.community-art figcaption span {
  font: 800 14px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
}

.community-art figcaption small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.community-copy h2 {
  margin: 22px 0 26px;
}

.community-copy > p {
  max-width: 390px;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button-simple {
  justify-content: center;
}

.community-actions .text-link {
  margin-top: 0;
}

.final-cta {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: 290px;
  margin: 10px auto 88px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  position: relative;
  overflow: hidden;
  background: var(--red);
}

.final-cta > * {
  position: relative;
  z-index: 2;
}

.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.final-cta h2 {
  max-width: 720px;
  margin: 18px 0 0;
  color: #fff;
}

.final-cta h2 span {
  color: #191019;
}

.button-light {
  min-width: 194px;
  border-color: #fff;
  color: #11131d;
  background: #fff;
  white-space: nowrap;
}

.button-light:hover {
  border-color: #11131d;
  background: #11131d;
  color: #fff;
}

.site-footer {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  min-height: 88px;
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--red);
}

.mobile-play {
  display: none;
}

@media (max-width: 1060px) {
  .nav-links {
    gap: 20px;
    margin-right: 4px;
  }

  .nav-secondary {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .hero-art {
    --art-w: calc(100% - 24px);
  }

  .final-cta {
    padding-inline: 48px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  body {
    padding-bottom: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header,
  .site-header.is-scrolled {
    min-height: var(--header-height);
    border-bottom-color: var(--line);
    background: rgba(8, 10, 19, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .header-inner {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 19px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    height: calc(100svh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    padding: 26px var(--page-gutter) 32px;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    display: grid;
    gap: 0;
    margin: 0 0 10px;
  }

  .nav-links a {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font: 700 24px/1 "Barlow Condensed", sans-serif;
    letter-spacing: 0.04em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-secondary,
  .nav-cta {
    min-height: 52px;
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero-copy {
    padding: 34px 0 0;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(82px, 16vw, 116px);
  }

  .hero-art {
    width: min(700px, 100%);
    min-height: 430px;
    margin: 24px auto 0;
  }

  .hero-art img {
    top: 50%;
  }

  .hero-art::before {
    width: calc(100% - 34px);
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 110px 0;
  }

  .story-grid,
  .community {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .story-grid {
    padding-top: 28px;
  }

  .story-copy {
    max-width: 580px;
    padding-top: 0;
  }

  .gameplay {
    padding-top: 10px;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row > p {
    max-width: 420px;
    margin-top: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-content {
    min-height: 232px;
  }

  .rewards-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .rewards-heading > p {
    max-width: 560px;
  }

  .badge-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .community {
    padding-top: 100px;
  }

  .community-art {
    width: min(100%, 530px);
    margin: 0 auto;
  }

  .community-copy {
    max-width: 640px;
  }

  .final-cta {
    min-height: 330px;
    padding: 48px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-play {
    display: none;
  }
}

@media (max-width: 600px) {
  .brand small {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 30px);
  }

  h1 {
    margin-top: 24px;
    font-size: clamp(68px, 20vw, 94px);
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    margin-bottom: 44px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .button-primary {
    justify-content: center;
  }

  .button-primary small {
    display: none;
  }

  .hero-meta li {
    padding-right: 10px;
  }

  .hero-meta li + li {
    padding-left: 10px;
  }

  .hero-meta span {
    font-size: 7px;
  }

  .hero-art {
    --art-w: calc(100% - 16px);
    min-height: 230px;
    margin-top: 20px;
  }

  .hero-art img {
    top: 50%;
  }

  .hero-art::before {
    width: calc(100% - 24px);
  }

  .hero-art-label {
    left: 4%;
    bottom: 12%;
  }

  .vertical-label {
    display: none;
  }

  .ticker-track {
    min-width: 330%;
  }

  .section {
    padding: 72px 0;
  }

  .section h2,
  .final-cta h2 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .story-grid {
    gap: 32px;
  }

  .story-copy .lead {
    font-size: 16px;
  }

  .section-heading-row {
    margin-bottom: 38px;
  }

  .feature-content {
    min-height: 200px;
    padding: 20px;
  }

  .feature-card h3 {
    margin-top: 28px;
    font-size: 38px;
  }

  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .badge-card {
    padding: 10px 9px 13px;
  }

  .badge-card figcaption {
    font-size: 9px;
  }

  .community {
    gap: 42px;
    padding-top: 64px;
  }

  .community-art {
    width: 86vw;
  }

  .community-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-actions .button {
    width: 100%;
  }

  .community-actions .text-link {
    align-self: flex-start;
  }

  .final-cta {
    width: calc(100% - 24px);
    min-height: 310px;
    margin-bottom: 68px;
    padding: 34px 24px;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 34px;
  }

  .site-footer p,
  .footer-links {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* =====================================================================
   MOTION: "Iai" (draw, cut, settle). Vanilla CSS; JS lives in script.js "Motion".
   Gate: every hidden or pre-animation state needs BOTH
     html.motion   (inline <head> script; removed by its 2.5s failsafe, by the
                    Pause-motion toggle and by any Motion JS error)
     AND @media (prefers-reduced-motion: no-preference).
   The hero intro also needs html.intro (first view per tab session). Its art
   track also waits for html.art-ready (image decoded + on screen).
   Ownership: one writer per property per element.
     .hero-art img, .hero-cut    transform = base centring (unchanged) | scale = intro landing
     .hero-art::before           transform = base + chiburi keyframe (same function list)
     .h1-line > span             transform = line rise
     hero rises (.hero-text, .hero-actions .button, .hero-meta li, .scroll-cue)
                                 opacity + translate = rise | transform = existing hover + press
     .button-primary/.button-light/.nav-cta ::before = blade (hover, focus, one-time hero glint)
     .button-ghost/.nav-secondary ::before           = cut-fill
     .hero-meta::before = meta rule | .card-rule::after = hover draw
     .feature-media img          scale = reveal zoom | transform = existing hover zoom
     .badge-card img             scale/rotate/filter = unlock | .badge-card transform = existing hover
     .community-art              transform = reveal (its "to" repeats the base rotate(-2deg))
     svg.cta-mark text           stroke-dash* = OP draw (replaced the old .final-cta::after text)
     .ticker-track animation     script.js ticker controller ONLY (never CSS play-state)
     Deliberately unused: .site-header::after, .feature-card::before/::after, .hero-art::after
   ===================================================================== */

/* ---------- 0. Tokens + shared keyframes ---------- */
:root {
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);    /* expo-out: rises, landings, settles */
  --ease-strike: cubic-bezier(0.55, 0, 0.1, 1);    /* snap: the blade, heading cuts, unrolls */
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);     /* symmetric: strokes, sweeps, cut halves */
  --ease-withdraw: cubic-bezier(0.7, 0, 0.84, 0);  /* exits: hover-out, menu close */
  --ease-chiburi: cubic-bezier(0.34, 1.56, 0.64, 1); /* ~10% overshoot: hero frame ONLY */
  --ease-unlock: cubic-bezier(0.34, 1.32, 0.64, 1);  /* ~3% overshoot: badge unlock ONLY */
  --dur-press: 90ms;
  --dur-quick: 220ms;
  --dur-hover: 380ms;
  --dur-rise: 480ms;
  --dur-cut: 640ms;
  --dur-settle: 900ms;
}

@keyframes m-fade { from { opacity: 0; } }
@keyframes m-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes m-wipe-r { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-wipe-d { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* page opened in a background tab: hold the hero intro until it is looked at */
  html.intro-wait .hero *,
  html.intro-wait .hero *::before,
  html.intro-wait .hero *::after { animation-play-state: paused !important; }
}

@media print {
  [data-m], [data-m] img { opacity: 1 !important; filter: none !important; scale: none !important; rotate: none !important; animation: none !important; }
  .cta-mark text { stroke-dasharray: none !important; animation: none !important; }
  .hero-cut { display: none !important; }
}

/* ---------- 1. Hero type track: headline lines rise out of hard masks ---------- */
.h1-line,
.h1-line > span { display: inline-block; } /* static: reproduces the original wrap points */

@media (prefers-reduced-motion: no-preference) {
  /* negative insets never clip glyph overshoot; tuned for h1 line-height .78 */
  html.motion.intro .h1-line { clip-path: inset(-0.3em -0.3em -0.1em -0.3em); }
  html.motion.intro .h1-line > span { animation: m-line-rise 640ms var(--ease-settle) backwards; }
  html.motion.intro .h1-line:nth-of-type(2) > span { animation-delay: 60ms; }
  html.motion.intro .h1-line:nth-of-type(3) > span { animation-delay: 120ms; }
  html.motion.intro .hero-copy .eyebrow { animation: m-wipe-r 560ms var(--ease-settle) 40ms backwards; }
}
@keyframes m-line-rise { from { transform: translateY(115%); } }

/* ---------- 2. Signature: the cut + chiburi settle (art track, waits for .art-ready) ---------- */
.hero-cut { display: none; width: var(--art-w); }  /* --art-w (base .hero-art) also sizes the img: they can never drift */

@media (prefers-reduced-motion: no-preference) {
  html.motion.intro .hero-cut {
    display: block;
    position: absolute;
    z-index: 4;                                      /* above img (3), below labels (7) */
    left: 50%;
    top: 50%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  /* transform-origin 0 0: the individual `scale` is applied about the layout box origin,
     which after translate(-50%,-50%) is the visual centre (default origin drifts -16px/-9px) */
  html.motion.intro :is(.hero-art img, .hero-cut) {
    transform-origin: 0 0;
    animation: m-art-land 1100ms var(--ease-settle) 170ms backwards;
  }
  .cut-mask { position: absolute; inset: 0; overflow: hidden; }
  .cut-half {
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
      rgba(9, 11, 21, 0.8);                          /* 80% navy "shoji": the art reads through */
    animation: 630ms linear 170ms both;              /* both: halves stay off-box afterwards */
  }
  /* Cut line (-8%, 88%) -> (108%, 8%) of the 16:9 box: crosses x=0 at 82.5%, x=100% at 13.5%.
     0.1% overlap hides the anti-aliased seam. Recompute if the art ratio changes. */
  .cut-a { clip-path: polygon(0 0, 100% 0, 100% 13.6%, 0 82.6%); animation-name: m-cut-a; }
  .cut-b { clip-path: polygon(0 82.4%, 100% 13.4%, 100% 100%, 0 100%); animation-name: m-cut-b; }
  .cut-blade {
    position: absolute;
    left: -8%;
    top: 88%;
    width: 124.4%;                                   /* = 1.244W, the cut length */
    height: 0;
    transform-origin: 0 0;
    transform: rotate(-21.2deg);                     /* atan(0.45W / 1.16W) */
  }
  .cut-blade i {
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(250, 62, 67, 0), rgba(250, 62, 67, 0.9) 72%, #fff 96%);
    box-shadow: 0 0 16px 1px rgba(250, 62, 67, 0.55); /* the ONLY glowing blade on the page */
    transform-origin: 0 50%;
    animation: m-blade 400ms linear both;
  }

  /* chiburi: frame swings 0 -> 3deg, label plate wipes out of its red tick, vertical label unrolls */
  html.motion.intro .hero-art::before {
    animation:
      m-fade 240ms linear 480ms backwards,
      m-chiburi 1000ms var(--ease-chiburi) 480ms backwards;
  }
  html.motion.intro .hero-art-label { animation: m-label-in 560ms var(--ease-settle) 640ms backwards; }
  html.motion.intro .vertical-label { animation: m-wipe-d 720ms var(--ease-settle) 760ms backwards; }

  /* hold the whole art track at its from-state until html.art-ready.
     Specificity (0,4,2) must beat every art-track animation shorthand above. Keep together. */
  html.motion.intro:not(.art-ready) :is(.hero-art img, .hero-cut, .cut-half, .cut-blade i, .hero-art-label, .vertical-label),
  html.motion.intro:not(.art-ready) .hero-art::before { animation-play-state: paused; }
}
@media (max-width: 820px) {
  .cut-blade { left: -2%; top: 83.86%; width: 111.5%; } /* same line, shorter overshoot: no overflow 600-820px */
}
@keyframes m-art-land { from { scale: 1.045; } }
@keyframes m-blade {
  0% { transform: translateX(0) scaleX(0); animation-timing-function: cubic-bezier(0.55, 0, 0.1, 1); }
  44% { transform: translateX(0) scaleX(1); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  100% { transform: translateX(100%) scaleX(0); }
}
@keyframes m-cut-a {
  0% { transform: translate(0, 0); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  12% { transform: translate(-1px, -3px); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { transform: translate(102%, -71%); }
}
@keyframes m-cut-b {
  0% { transform: translate(0, 0); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  12% { transform: translate(1px, 3px); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { transform: translate(-102%, 71%); }
}
@keyframes m-chiburi {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(0.985); }
  to { transform: translate(-50%, -50%) rotate(3deg) scale(1); } /* = base rule; update both together */
}
@keyframes m-label-in {
  0% { clip-path: inset(100% calc(100% - 2px) 0 0); }
  30% { clip-path: inset(0 calc(100% - 2px) 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ---------- 3. Hero supporting cascade ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* :where() keeps this at (0,2,1) so the per-element delays below win */
  html.motion.intro :where(.hero-text, .hero-actions .button, .hero-meta li, .scroll-cue) {
    animation: m-rise 440ms var(--ease-settle) backwards;
  }
  html.motion.intro .hero-text { animation-delay: 160ms; }
  html.motion.intro .hero-actions .button:nth-child(1) { animation-delay: 200ms; }
  html.motion.intro .hero-actions .button:nth-child(2) { animation-delay: 260ms; }
  html.motion.intro .hero-meta { position: relative; border-top-color: transparent; }
  html.motion.intro .hero-meta::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: var(--line);
    transform-origin: 0 50%;
    animation: m-draw-x 800ms var(--ease-settle) 360ms backwards;
  }
  html.motion.intro .hero-meta li:nth-child(1) { animation-delay: 420ms; }
  html.motion.intro .hero-meta li:nth-child(2) { animation-delay: 480ms; }
  html.motion.intro .hero-meta li:nth-child(3) { animation-delay: 540ms; }
  html.motion.intro .scroll-cue { animation-duration: 600ms; animation-delay: 900ms; }
  html.motion.intro .scroll-cue span::after { animation-delay: 1500ms; } /* 2 sweeps start after it lands */
  html.motion.intro .hero-glow { animation: m-glow-in 1400ms var(--ease-settle) 300ms backwards; }
  /* one-time glint on the primary CTA ~100ms after the art opens (class added/removed by script.js) */
  html.motion.intro .hero-actions .button-primary.is-glinting::before { animation: m-btn-blade 560ms var(--ease-draw) backwards; }
}
@keyframes m-glow-in { from { opacity: 0; scale: 0.45; } }

/* ---------- 4. Iai buttons: blade, cut-fill, press ---------- */
.button-primary,
.button-light,
.nav-cta,
.button-ghost,
.nav-secondary { position: relative; isolation: isolate; overflow: hidden; } /* own outline + box-shadow are never clipped by own overflow */
.button-primary::before,
.button-light::before,
.nav-cta::before {
  content: "";
  position: absolute;
  z-index: -1;                                        /* above the fill, below the label */
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--blade, rgba(255, 255, 255, 0.38)) 55%, transparent);
  transform: translateX(-110%) skewX(-20deg);
  pointer-events: none;
}
.button-light { --blade: rgba(250, 62, 67, 0.7); }
.button-ghost::before,
.nav-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 245, 239, 0.08);             /* ghost stays quieter than the red primary */
  clip-path: polygon(-14% 0, 0 0, -14% 100%, -14% 100%);
  transition: clip-path var(--dur-quick) var(--ease-withdraw);
  pointer-events: none;
}
.nav-secondary::before { background: var(--blue); }
.button-ghost:focus-visible::before,
.nav-secondary:focus-visible::before {
  clip-path: polygon(-14% 0, 114% 0, 100% 100%, -14% 100%);
  transition: clip-path 460ms var(--ease-settle);
}
@media (hover: hover) and (pointer: fine) {
  .button-ghost:hover::before,
  .nav-secondary:hover::before {
    clip-path: polygon(-14% 0, 114% 0, 100% 100%, -14% 100%);
    transition: clip-path 460ms var(--ease-settle);
  }
  .nav-secondary:hover { background: transparent; }  /* the blue now arrives as the cut-fill */
}
.button:active,
.nav-cta:active,
.nav-secondary:active { transform: translateY(0) scale(0.975); transition-duration: var(--dur-press); }
@keyframes m-btn-blade {
  from { transform: translateX(-110%) skewX(-20deg); }
  to { transform: translateX(290%) skewX(-20deg); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) :is(.button-primary, .button-light, .nav-cta):focus-visible::before {
    animation: m-btn-blade 520ms var(--ease-draw) both;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) :is(.button-primary, .button-light, .nav-cta):hover::before {
    animation: m-btn-blade 520ms var(--ease-draw) both;
  }
}
@media (forced-colors: active) {
  .button-primary::before,
  .button-light::before,
  .nav-cta::before,
  .button-ghost::before,
  .nav-secondary::before { display: none; }
}

/* ---------- 5. Section reveals: heading cut + quiet rise (one IntersectionObserver) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* opacity ONLY: Chromium's IO applies a target's own clip-path, so clipped targets never intersect */
  html.motion :is([data-m="kicker"], [data-m="cut"], [data-m="copy"], [data-m="card"], [data-m="frame"]):not(.is-in):not(.is-shown) { opacity: 0; }
  html.motion [data-m]:not(.is-in):not(.is-shown):focus-within { opacity: 1; } /* a focused link is never invisible */
  html.motion [data-m].is-in:focus-within { animation: none; }                /* ...nor mid-entrance (Tab can land as it starts) */
  html.motion [data-m="kicker"].is-in { animation: m-rise 440ms var(--ease-settle) var(--d, 0ms) backwards; }
  html.motion [data-m="cut"].is-in { animation: m-cut var(--dur-cut) var(--ease-strike) var(--d, 0ms) backwards; }
  html.motion [data-m="copy"].is-in { animation: m-rise var(--dur-rise) var(--ease-settle) var(--d, 0ms) backwards; }
  html.motion [data-m="frame"].is-in { animation: m-frame var(--dur-settle) var(--ease-settle) var(--d, 0ms) backwards; }
}
/* hard 18%-leaning edge, top corner first; +-25% vertical overshoot keeps .86 line-height caps unclipped */
@keyframes m-cut {
  from { clip-path: polygon(-30% -25%, -8% -25%, -26% 125%, -30% 125%); }
  to { clip-path: polygon(-30% -25%, 138% -25%, 120% 125%, -30% 125%); }
}
/* community art settles into its resting angle (same idea as the hero chiburi, no overshoot) */
@keyframes m-frame {
  from { opacity: 0; transform: translateY(28px) rotate(-5deg); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg); } /* = base .community-art rotate(-2deg) */
}

/* ---------- 6. Feature cards: shell, unroll + counter-zoom, content; CSS-only hover draw ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-m="card"].is-in { animation: m-fade 280ms linear var(--d, 0ms) backwards; }
  html.motion [data-m="card"].is-in .feature-media { animation: m-unroll var(--dur-cut) var(--ease-strike) calc(var(--d, 0ms) + 60ms) backwards; }
  html.motion [data-m="card"].is-in .feature-media img { animation: m-zoom var(--dur-settle) var(--ease-settle) calc(var(--d, 0ms) + 60ms) backwards; }
  html.motion [data-m="card"].is-in .feature-content { animation: m-rise var(--dur-rise) var(--ease-settle) calc(var(--d, 0ms) + 180ms) backwards; }
}
@keyframes m-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-zoom { from { scale: 1.1; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-rule { position: relative; }
  .card-rule::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--dur-quick) var(--ease-withdraw);
  }
  .feature-card:hover .card-rule::after { transform: scaleX(1); transition: transform 560ms var(--ease-settle) 60ms; }
  .card-index { transition: translate var(--dur-hover) var(--ease-settle); }
  .feature-card:hover .card-index { translate: 6px 0; }
}

/* ---------- 7. Badges: realm unlock ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* locked seals: dim, grey, shrunk, turned (art is a transparent circle, so rotation is clean) */
  html.motion [data-m="badge"]:not(.is-in):not(.is-shown) img { filter: grayscale(1) brightness(0.45); scale: 0.86; rotate: -14deg; }
  html.motion [data-m="badge"].is-in { animation: m-ping 900ms var(--ease-settle) calc(var(--d, 0ms) + 320ms) backwards; }
  html.motion [data-m="badge"].is-in img { animation: m-unlock 720ms var(--ease-unlock) calc(var(--d, 0ms) + 80ms) backwards; }
}
@keyframes m-unlock { from { filter: grayscale(1) brightness(0.45); scale: 0.86; rotate: -14deg; } }
@keyframes m-ping {
  0%, 100% { border-color: var(--line); }
  22% { border-color: var(--red); }
}

/* ---------- 8. Final CTA: the giant OP draws its own outline ---------- */
.final-cta > .cta-mark {                              /* (0,2,0) beats `.final-cta > *` */
  position: absolute;
  z-index: 0;
  right: 18%;
  top: 49%;
  width: 260.6px;                                     /* = advance width of "OP" at 900/270px (measured, 3 engines) */
  height: 270px;
  overflow: visible;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta-mark text {
  font: 900 270px/1 "Barlow Condensed", sans-serif;
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1px;
}
@media (max-width: 820px) { .final-cta > .cta-mark { right: -5%; } }
@media (forced-colors: active) { .cta-mark { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.motion .cta-mark:not(.is-in):not(.is-shown) text { stroke-dasharray: 1500; stroke-dashoffset: 1500; }
  html.motion .cta-mark.is-in text { animation: m-stroke 1400ms var(--ease-draw) var(--d, 0ms) backwards; }
}
/* dasharray lives only inside the keyframes: the resting outline is always a solid stroke */
@keyframes m-stroke {
  from { stroke-dasharray: 1500; stroke-dashoffset: 1500; stroke: rgba(255, 255, 255, 0.5); }
  70% { stroke: rgba(255, 255, 255, 0.28); }
  to { stroke-dasharray: 1500; stroke-dashoffset: 0; stroke: rgba(255, 255, 255, 0.15); }
}

/* ---------- 9. Mobile menu: curtain cut, staggered rise, two-step hamburger ---------- */
@media (max-width: 820px) {
  /* active-section diamond (the ticker's motif): state indicator, all motion preferences */
  .nav-links a::before {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--red);
    rotate: 45deg;
    scale: 0;
    transition: scale var(--dur-hover) var(--ease-settle);
  }
  .nav-links a.is-active::before { scale: 1; }

  /* no JS: the drawer cannot open, so show the Discord CTA in the header row instead */
  html:not(.js) .menu-toggle,
  html:not(.js) .nav-links,
  html:not(.js) .nav-secondary { display: none; }
  html:not(.js) .nav {
    position: static;
    height: auto;
    max-height: none;
    padding: 0;
    display: flex;
    overflow: visible;
    border: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    clip-path: none;
  }
  html:not(.js) .nav .nav-cta { min-height: 44px; opacity: 1; translate: none; }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .menu-toggle > span:not(.sr-only) {
    transition: rotate 140ms var(--ease-draw), translate 160ms var(--ease-draw) 120ms; /* closing: un-rotate, then part */
  }
  .menu-toggle[aria-expanded="true"] > span:not(.sr-only) {
    transform: none;
    transition: translate 160ms var(--ease-draw), rotate 260ms var(--ease-settle) 140ms; /* opening: meet, then cross */
  }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { translate: 0 4px; rotate: 45deg; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { translate: 0 -4px; rotate: -45deg; }

  .nav {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 260ms var(--ease-withdraw), visibility 0s linear 260ms; /* visibility delay == close duration */
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); transition: clip-path 520ms var(--ease-settle), visibility 0s; }

  .nav-links a { border-bottom: 0; }
  .nav-links a::after {
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 160ms ease;
  }
  .menu-open .nav-links a::after { transform: scaleX(1); transition: transform 640ms var(--ease-settle) calc(var(--d) + 60ms); }

  .nav-links a,
  .nav .nav-cta,
  .nav .nav-secondary {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 120ms ease, translate 0s linear 260ms;
  }
  .menu-open .nav-links a,
  .menu-open .nav .nav-cta,
  .menu-open .nav .nav-secondary {
    opacity: 1;
    translate: 0 0;
    transition: opacity 360ms ease var(--d), translate 520ms var(--ease-settle) var(--d);
  }
  .nav-links a:nth-child(1) { --d: 90ms; }
  .nav-links a:nth-child(2) { --d: 135ms; }
  .nav-links a:nth-child(3) { --d: 180ms; }
  .nav .nav-cta { --d: 240ms; }
  .nav .nav-secondary { --d: 280ms; }
}

/* ---------- 10. Obedient loops: finite scroll cue, ticker (JS), Pause-motion toggle ---------- */
.scroll-cue span::after { animation: scroll-line 2.4s var(--ease-draw) 2; } /* was infinite: rests after 4.8s */
.scroll-cue { transition: opacity var(--dur-hover) ease, translate var(--dur-hover) var(--ease-settle); }
.scroll-cue:is(:hover, :focus-visible) span::after { animation: scroll-line 1.4s var(--ease-draw) infinite; } /* user-initiated */
.site-header.is-scrolled ~ main .scroll-cue:not(:focus-visible) { opacity: 0; translate: 0 10px; pointer-events: none; }
html.motion-paused .scroll-cue span::after,
html.motion-paused .ticker-track { animation-play-state: paused; } /* ticker: CSS fallback only; JS owns it */

.footer-links { flex-wrap: wrap; row-gap: 12px; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -16px 0;                                    /* 44px tap target without growing the row */
  padding: 16px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.motion-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--red);
  transition: background-color 0.15s ease-out;
}
.motion-toggle[aria-pressed="true"]::before { background: var(--red); }
.motion-toggle:hover { color: var(--red); }
/* ===================== end MOTION ===================== */


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-toggle { display: none; } /* nothing auto-plays under reduce, so no control */
}
