/* Soyjak Coin — strict B&W brutalist theme */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --border: 4px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --font-display: "Press Start 2P", monospace;
  --font-body: "Space Mono", "Courier New", monospace;
  --header-h: 72px;
  --marquee-h: 36px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--marquee-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}

/* Marquee */
.marquee {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--marquee-h);
  background: var(--black);
  color: var(--white);
  border-bottom: var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.marquee__track span {
  padding-right: 2rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header */
.header {
  position: fixed;
  top: var(--marquee-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--white);
  border-bottom: var(--border);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.header__brand:hover {
  background: transparent;
  color: inherit;
}

.header__logo {
  border: 3px solid var(--black);
  background: var(--white);
}

.header__name {
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.55rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--white);
  border: 3px solid var(--black);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--black);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  padding: 1rem 1.25rem;
  border: var(--border);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--black);
  background: var(--black);
  color: var(--white);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn--outline {
  background: var(--white);
}

.btn--small {
  font-size: 0.5rem;
  padding: 0.6rem 1rem;
  margin-top: 0.75rem;
}

/* Layout */
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  border-bottom: var(--border);
}

.section--alt a:hover {
  background: var(--white);
  color: var(--black);
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  opacity: 0.7;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section__intro {
  margin-bottom: 2.5rem;
  max-width: 42ch;
  font-size: 1.05rem;
}

.chain-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  border: 3px solid var(--black);
  margin-bottom: 1rem;
  background: var(--black);
  color: var(--white);
}

.step strong {
  font-weight: 700;
}

.section--alt .section__intro {
  opacity: 0.9;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + var(--marquee-h) + 3rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: min(1100px, 92vw);
  margin: 0 auto 3rem;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem;
  border: 3px solid var(--black);
  display: inline-block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.hero__ticker {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--black);
  color: var(--white);
}

.hero__lead {
  font-size: 1.1rem;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__frame {
  border: var(--border);
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.hero__img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero__caption {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.9rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.stat {
  border: var(--border);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.45rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.stat__value {
  font-size: 1rem;
  font-weight: 700;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about__lead {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about__text p {
  margin-bottom: 1rem;
}

.about__list {
  list-style: none;
  margin-top: 1.5rem;
}

.about__list li {
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--white);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.about__list li::before {
  content: "▸ ";
}

.card {
  border: var(--border);
  padding: 1.5rem;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
}

.section--alt .card {
  border-color: var(--white);
  box-shadow: 6px 6px 0 var(--white);
}

.card--sticker {
  transform: rotate(3deg);
  text-align: center;
}

.card__img {
  margin: 0 auto 1rem;
  border: 3px solid var(--black);
}

.card__quote {
  font-style: italic;
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.step__title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.step p {
  font-size: 0.95rem;
}

.contract-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contract-box__label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  margin-bottom: 0.75rem;
}

.contract-box__addr {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  font-weight: 700;
  word-break: break-all;
  padding: 1rem;
  border: 3px dashed var(--black);
  background: var(--white);
}

.contract-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.contract-box__actions .btn--outline {
  text-decoration: none;
}

.contract-box__warn {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Wiktionary / Dictionary */
.wiki {
  padding: 0;
  overflow: hidden;
}

.wiki__masthead {
  padding: 1.5rem 1.75rem;
  border-bottom: var(--border);
  background: var(--black);
  color: var(--white);
}

.wiki__masthead a:hover {
  background: var(--white);
  color: var(--black);
}

.wiki__source {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.wiki__lemma {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.wiki__lang {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.wiki__layout {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 0;
}

.wiki__body {
  padding: 1.5rem 1.75rem;
}

.wiki__block {
  margin-bottom: 1.75rem;
}

.wiki__block:last-child {
  margin-bottom: 0;
}

.wiki__heading {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--black);
}

.wiki__grammar {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}

.wiki__ipa {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.wiki__list {
  margin-left: 1.25rem;
}

.wiki__list--plain {
  list-style: none;
  margin-left: 0;
}

.wiki__defs {
  margin-left: 1.35rem;
}

.wiki__defs li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.wiki__defs li:last-child {
  margin-bottom: 0;
}

.wiki__tag {
  font-size: 0.8rem;
  opacity: 0.75;
}

.wiki__figure {
  border-left: var(--border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--white);
}

.wiki__figure-frame {
  border: var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.wiki__figure figcaption {
  font-size: 0.9rem;
  text-align: center;
}

.wiki__footer {
  padding: 1.25rem 1.75rem;
  border-top: var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
}

.btn--wiki {
  font-size: 0.5rem;
}

.wiki__license {
  font-size: 0.75rem;
  opacity: 0.8;
  max-width: 36ch;
}

/* Tokenomics — bento board */
.tok-board {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas:
    "brand supply tax"
    "brand liq   safe";
  gap: 1rem;
}

.tok-tile {
  padding: 1.35rem 1.25rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.tok-tile--brand {
  grid-area: brand;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  min-height: 100%;
}

.tok-tile--supply { grid-area: supply; }
.tok-tile--tax { grid-area: tax; }
.tok-tile--liq { grid-area: liq; }
.tok-tile--safe { grid-area: safe; }

.tok-tile__logo {
  flex-shrink: 0;
  border: 3px solid var(--white);
  width: 120px;
  height: auto;
}

.tok-tile__chain {
  font-family: var(--font-display);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.65rem;
}

.tok-tile__name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.tok-tile__ticker {
  font-size: 1.35rem;
  font-weight: 700;
}

.tok-tile__label {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.tok-tile__mega {
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 2.2vw, 0.85rem);
  line-height: 1.6;
  font-weight: 700;
  flex: 1;
  display: flex;
  align-items: center;
}

.tok-tile__hint {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: auto;
}

.tok-tax {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.tok-tax__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--white);
  font-size: 0.9rem;
}

.tok-tax__row:last-child {
  border-bottom: none;
}

.tok-tax__val {
  font-family: var(--font-display);
  font-size: 1rem;
}

.tok-dl {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.tok-dl__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid var(--white);
}

.tok-dl__row:last-child {
  border-bottom: none;
}

.tok-dl dt {
  font-size: 0.85rem;
  opacity: 0.85;
}

.tok-dl dd {
  font-weight: 700;
  font-size: 0.95rem;
}

.tok-tile__statement {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  line-height: 1.55;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Footer */
.footer {
  border-top: var(--border);
  padding: 3rem 1.5rem;
  background: var(--white);
}

.footer__inner {
  text-align: center;
}

.footer__logo {
  margin: 0 auto 1rem;
  border: var(--border);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 0.65rem;
  margin-bottom: 1rem;
}

.footer__legal {
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer__nav a {
  font-family: var(--font-display);
  font-size: 0.5rem;
  text-decoration: none;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .wiki__layout {
    grid-template-columns: 1fr;
  }

  .wiki__figure {
    border-left: none;
    border-top: var(--border);
  }

  .tok-board {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "supply tax"
      "liq safe";
  }

  .tok-tile--brand {
    flex-direction: column;
    text-align: center;
  }

  .tok-tile__logo {
    margin: 0 auto;
  }

  .hero__visual {
    order: -1;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile only */
@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --marquee-h: 28px;
    --shadow: 4px 4px 0 var(--black);
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 0.9rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 2.75rem 1rem;
  }

  .marquee__track {
    font-size: 0.42rem;
  }

  .header {
    padding: 0 0.85rem;
  }

  .header__brand {
    font-size: 0.55rem;
    gap: 0.5rem;
  }

  .header__logo {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--marquee-h) + var(--header-h));
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: var(--border);
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 0.48rem;
    padding: 0.65rem 0.25rem;
    display: block;
  }

  .btn {
    font-size: 0.48rem;
    padding: 0.85rem 1rem;
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn--small {
    font-size: 0.42rem;
    padding: 0.75rem 0.65rem;
    margin-top: 0;
    width: 100%;
  }

  .section__header {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .section__num {
    font-size: 0.5rem;
  }

  .section__title {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .section__intro {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .chain-badge {
    font-size: 0.42rem;
    padding: 0.4rem 0.6rem;
    line-height: 1.5;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + var(--marquee-h) + 1.5rem);
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero__grid {
    width: 100%;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero__visual {
    order: -1;
  }

  .hero__tag {
    font-size: 0.38rem;
    padding: 0.4rem 0.5rem;
    line-height: 1.6;
  }

  .hero__title {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .hero__ticker {
    font-size: 0.75em;
    margin-top: 0.35rem;
  }

  .hero__lead {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero__frame {
    padding: 0.85rem;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero__img {
    max-width: 100%;
  }

  .hero__caption {
    font-size: 0.8rem;
    margin-top: 0.65rem;
  }

  .hero__stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .stat {
    padding: 0.75rem 0.5rem;
    box-shadow: var(--shadow);
  }

  .stat__label {
    font-size: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .stat__value {
    font-size: 0.7rem;
    word-break: break-word;
  }

  /* About */
  .about__grid {
    gap: 1.5rem;
  }

  .about__lead {
    font-size: 1rem;
  }

  .about__list li {
    font-size: 0.45rem;
    line-height: 1.6;
  }

  .card {
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .card--sticker {
    transform: none;
  }

  .card__img {
    max-width: 140px;
  }

  /* Dictionary */
  .wiki__masthead,
  .wiki__body,
  .wiki__footer {
    padding: 1rem;
  }

  .wiki__source {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .wiki__lemma {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .wiki__lang {
    font-size: 0.45rem;
  }

  .wiki__heading {
    font-size: 0.5rem;
  }

  .wiki__grammar,
  .wiki__defs li,
  .wiki__tag {
    font-size: 0.82rem;
  }

  .wiki__figure {
    padding: 1rem;
  }

  .wiki__figure-frame {
    padding: 0.65rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .wiki__footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn--wiki {
    width: 100%;
  }

  .wiki__license {
    max-width: none;
    font-size: 0.7rem;
  }

  /* Tokenomics */
  .tok-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "supply"
      "tax"
      "liq"
      "safe";
    gap: 0.65rem;
  }

  .tok-tile {
    padding: 1rem;
    min-height: auto;
  }

  .tok-tile--brand {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .tok-tile__logo {
    width: 90px;
    margin: 0 auto;
  }

  .tok-tile__name {
    font-size: 0.55rem;
  }

  .tok-tile__ticker {
    font-size: 1rem;
  }

  .tok-tile__mega {
    font-size: 0.48rem;
    line-height: 1.7;
    word-break: break-word;
  }

  .tok-tile__statement {
    font-size: 0.55rem;
  }

  .tok-tax__val {
    font-size: 0.75rem;
  }

  .tok-dl dt,
  .tok-dl dd {
    font-size: 0.8rem;
  }

  /* How to buy */
  .steps {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .step__num {
    font-size: 0.9rem;
  }

  .step__title {
    font-size: 0.52rem;
    line-height: 1.5;
  }

  .step p {
    font-size: 0.85rem;
  }

  .contract-box {
    max-width: none;
    padding: 1rem !important;
  }

  .contract-box__label {
    font-size: 0.45rem;
    line-height: 1.6;
  }

  .contract-box__addr {
    font-size: 0.62rem;
    padding: 0.75rem 0.5rem;
    line-height: 1.5;
  }

  .contract-box__actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.65rem;
  }

  .contract-box__warn {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem;
  }

  .footer__logo {
    width: 48px;
    height: 48px;
  }

  .footer__brand {
    font-size: 0.52rem;
    line-height: 1.6;
  }

  .footer__legal {
    font-size: 0.78rem;
    padding: 0 0.25rem;
  }

  .footer__nav {
    gap: 0.5rem 0.75rem;
  }

  .footer__nav a {
    font-size: 0.42rem;
    padding: 0.35rem 0.25rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .header__name {
    display: none;
  }

  .hero__title {
    font-size: 0.85rem;
  }

  .stat__value {
    font-size: 0.6rem;
  }

  .contract-box__addr {
    font-size: 0.55rem;
  }
}

/* Scroll effects */
.scroll-progress {
  position: fixed;
  top: var(--marquee-h);
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--white);
  z-index: 201;
  transform-origin: left center;
  transform: scaleX(0);
  border-bottom: 2px solid var(--black);
  pointer-events: none;
}

.header.is-scrolled {
  box-shadow: 0 6px 0 var(--black);
}

.nav a.is-active,
.footer__nav a.is-active {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
}

.reveal {
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--up {
  transform: translateY(36px);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.88);
}

.reveal--pop {
  transform: translateY(24px) scale(0.95);
}

.hero__frame {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

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

  .scroll-progress {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__frame {
    transition: none;
  }
}
