:root {
  --bg: #0b0907;
  --bg-2: #120e0a;
  --panel: #16110c;
  --ink: #f4ead6;
  --muted: #b5a48a;
  --gold: #d4af37;
  --gold-2: #f3d56a;
  --gold-3: #8b6914;
  --horn: #c9a06a;
  --ape: #9a6b3e;
  --line: rgba(212, 175, 55, 0.28);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --display: "Big Shoulders Display", "Oswald", sans-serif;
  --ui: "Oswald", sans-serif;
  --tight: "Teko", "Oswald", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0907;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#8b6914, #d4af37);
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(154, 107, 62, 0.22), transparent 55%),
    radial-gradient(circle at 18% 12%, rgba(212, 175, 55, 0.08), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(80, 55, 20, 0.25), transparent 30%),
    linear-gradient(180deg, #14100c 0%, #0b0907 42%, #080705 100%);
}

.dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(4) infinite;
}

.haze {
  position: absolute;
  inset: auto 0 0;
  height: 38vh;
  background: linear-gradient(180deg, transparent, rgba(28, 20, 12, 0.7) 50%, rgba(10, 8, 6, 0.92));
}

.rays {
  position: absolute;
  inset: -20% 10% auto;
  height: 70vh;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 46px,
      rgba(243, 213, 106, 0.035) 46px 48px
    );
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  animation: ray-drift 18s linear infinite;
}

.spotlight {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.ground-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8%;
  height: 28vh;
  background: radial-gradient(ellipse at center, rgba(201, 160, 106, 0.18), transparent 70%);
  filter: blur(8px);
  animation: pulse-glow 5.5s ease-in-out infinite;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #070605;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.boot.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.08em;
  line-height: 0.85;
  background: linear-gradient(180deg, #f8e7a0 0%, #d4af37 42%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-stamp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.45));
}

.boot-bar {
  position: absolute;
  bottom: 14vh;
  width: min(320px, 70vw);
  height: 3px;
  background: #2a2116;
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  animation: load-bar 1.15s ease forwards;
}

.mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.mast.scrolled {
  background: rgba(11, 9, 7, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding: 0.7rem 2rem;
}

.mast-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
}

.mast-mark img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.mast-nav {
  display: flex;
  gap: 1.6rem;
}

.mast-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.mast-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.mast-nav a:hover {
  color: var(--gold-2);
}

.mast-nav a:hover::after {
  width: 100%;
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-chip,
.buy-chip,
.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.icon-chip {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(22, 17, 12, 0.7);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

::selection {
  background: #d4af37;
  color: #1a1206;
}

.icon-chip img,
.buy-chip img,
.btn-gold img,
.btn-ghost img,
.foot-icons img,
.corral-bar img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.icon-chip:hover,
.buy-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.buy-chip {
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #f0d56a, #b8891f);
  color: #1a1206;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.buy-chip img {
  filter: brightness(0);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-btn i {
  display: block;
  height: 2px;
  background: var(--gold);
}

.drawer {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  padding: 8.5rem 6vw 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-orbit {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  left: -12vmax;
  top: 8vh;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.18);
  animation: orbit 28s linear infinite;
  pointer-events: none;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: 4vw;
  align-items: center;
}

.medallion {
  position: relative;
  width: min(460px, 42vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.medallion-spin,
.medallion-spin.delay {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(201, 160, 106, 0.4);
  animation: spin 10s linear infinite;
}

.medallion-spin.delay {
  inset: -14%;
  animation-duration: 16s;
  animation-direction: reverse;
  border-top-color: rgba(243, 213, 106, 0.55);
  border-right-color: transparent;
}

.medallion-core {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 10px rgba(212, 175, 55, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  animation: charge-sway 4.8s ease-in-out infinite;
}

.medallion-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.medallion-sparks {
  position: absolute;
  inset: auto 8% -6%;
  height: 28%;
  background: radial-gradient(ellipse at center, rgba(201, 160, 106, 0.45), transparent 70%);
  filter: blur(10px);
  animation: dust-kick 2.4s ease-in-out infinite;
}

.hero-copy {
  max-width: 720px;
}

.kicker {
  font-family: var(--tight);
  font-size: 1.15rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.brand-title {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.78;
  font-size: clamp(4.6rem, 13vw, 9.4rem);
  letter-spacing: 0.02em;
}

.brand-title span {
  display: block;
  background: linear-gradient(180deg, #fff1b8 0%, #e3c25a 38%, #9a7018 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 8px 0 rgba(80, 50, 8, 0.28));
  animation: title-sheen 6s linear infinite;
}

.tagline {
  margin: 1.4rem 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 400;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.meta-pill {
  min-width: 140px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(22, 17, 12, 0.72);
  display: grid;
  gap: 0.15rem;
}

.meta-pill small {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.meta-pill strong {
  font-family: var(--tight);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.meta-pill.chain {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 0.55rem;
}

.meta-pill.chain img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(86%) sepia(38%) saturate(600%) hue-rotate(6deg);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(22, 17, 12, 0.8));
  margin-bottom: 1.3rem;
}

.ca-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

#caText {
  flex: 1;
  font-family: var(--tight);
  font-size: 1.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.ca-copy {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gold);
  color: #1a1206;
  background: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ca-copy:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-gold,
.btn-ghost {
  min-height: 50px;
  padding: 0 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  background: linear-gradient(180deg, #f4d56d, #b8871c);
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(184, 135, 28, 0.28);
}

.btn-gold img {
  filter: brightness(0);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(12, 10, 8, 0.45);
}

.btn-gold:hover,
.btn-ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.btn-gold.wide,
.btn-ghost.wide {
  min-width: 220px;
}

.plunge {
  margin-top: 3.5rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.plunge b {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: drop 1.4s ease-in-out infinite;
}

.about,
.howto,
.chart {
  padding: 7rem 6vw;
  position: relative;
}

.section-head {
  margin-bottom: 3rem;
}

.section-index {
  font-family: var(--tight);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 1.1rem;
}

.section-index.light {
  color: #f3d56a;
}

.section-head h2,
.join-inner h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: 0.04em;
}

.section-rule {
  margin-top: 0.7rem;
  color: var(--muted);
}

.about-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.story-card {
  padding: 1.6rem 1.4rem 1.8rem;
  background: linear-gradient(180deg, rgba(28, 22, 16, 0.9), rgba(14, 11, 8, 0.92));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  animation: scan 4.8s ease-in-out infinite;
}

.story-card h3 {
  font-family: var(--tight);
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
  color: var(--gold-2);
}

.story-card p,
.station p,
.join-inner p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.about-seal {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: rgba(16, 12, 9, 0.7);
}

.seal-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08);
}

.seal-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-seal blockquote {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.trail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trail-line {
  position: absolute;
  top: 78px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold-3) 0 14px,
    transparent 14px 26px
  );
  opacity: 0.55;
  animation: trail-move 8s linear infinite;
}

.station {
  position: relative;
  padding: 1.4rem 1.15rem 1.5rem;
  background: rgba(15, 12, 9, 0.86);
  border: 1px solid var(--line);
  text-align: center;
}

.brand-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.22);
  position: absolute;
  top: 8px;
  left: 12px;
}

.station-icon {
  width: 64px;
  height: 64px;
  margin: 0.2rem auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #3a2c16, #120e0a);
  position: relative;
  z-index: 1;
  animation: icon-float 3.6s ease-in-out infinite;
}

.station-icon img {
  width: 28px;
  height: 28px;
  filter: none;
}

.station-icon.sol img {
  filter: brightness(0) invert(86%) sepia(38%) saturate(600%) hue-rotate(6deg);
}

.station h3 {
  font-family: var(--tight);
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.station a {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  border-bottom: 1px solid transparent;
}

.station a:hover {
  border-bottom-color: var(--gold);
}

.corral {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(10, 8, 6, 0.7);
  padding: 1rem 1rem 1.1rem;
}

.iron {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold);
}

.iron.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.iron.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.iron.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.iron.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.corral-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-family: var(--tight);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.corral-bar a {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.85rem;
}

.chart-frame {
  height: min(720px, 78vh);
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: #0d0b09;
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.join {
  position: relative;
  padding: 4.5rem 6vw 5rem;
}

.join-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.join-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.join-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.2) 0%, rgba(8, 6, 4, 0.45) 45%, rgba(8, 6, 4, 0.78) 100%),
    radial-gradient(circle at 50% 40%, transparent 20%, rgba(8, 6, 4, 0.4) 80%);
}

.join-dust {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(90, 62, 28, 0.28));
  animation: dust-kick 3s ease-in-out infinite;
}

.join-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 1.2rem 1.5rem;
}

.join-inner h2 {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.join-inner p {
  color: #e8d8b4;
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
}

.join-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 6vw 2rem;
  border-top: 1px solid var(--line);
  background: #090806;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.foot-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.foot-brand strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 1.3rem;
}

.foot-brand small,
.foot-note {
  color: var(--muted);
}

.foot-icons {
  display: flex;
  gap: 0.7rem;
}

.foot-icons a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.foot-icons a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2) { animation-delay: 0.12s; }
.hero .reveal:nth-child(3) { animation-delay: 0.2s; }
.hero .reveal:nth-child(4) { animation-delay: 0.28s; }
.hero .reveal:nth-child(5) { animation-delay: 0.36s; }
.hero .reveal:nth-child(6) { animation-delay: 0.44s; }

.about-split .reveal:nth-child(2) { animation-delay: 0.12s; }
.about-split .reveal:nth-child(3) { animation-delay: 0.22s; }
.trail .reveal:nth-child(2) { animation-delay: 0.08s; }
.trail .reveal:nth-child(3) { animation-delay: 0.16s; }
.trail .reveal:nth-child(4) { animation-delay: 0.24s; }
.trail .reveal:nth-child(5) { animation-delay: 0.32s; }

@keyframes brand-stamp {
  0% { transform: scale(1.4) rotate(-4deg); opacity: 0; filter: blur(8px); }
  60% { transform: scale(0.96) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; filter: blur(0); }
}

@keyframes load-bar {
  to { width: 100%; }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

@keyframes ray-drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.45; transform: scaleX(1); }
  50% { opacity: 0.85; transform: scaleX(1.08); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes charge-sway {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(1.4deg) translateY(-6px); }
}

@keyframes dust-kick {
  0%, 100% { opacity: 0.35; transform: scaleX(0.9); }
  50% { opacity: 0.8; transform: scaleX(1.1); }
}

@keyframes title-sheen {
  0% { filter: drop-shadow(0 8px 0 rgba(80, 50, 8, 0.28)) brightness(1); }
  50% { filter: drop-shadow(0 8px 0 rgba(80, 50, 8, 0.28)) brightness(1.18); }
  100% { filter: drop-shadow(0 8px 0 rgba(80, 50, 8, 0.28)) brightness(1); }
}

@keyframes drop {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0.2; }
}

@keyframes scan {
  0%, 70% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes trail-move {
  from { background-position: 0 0; }
  to { background-position: 80px 0; }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .mast-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .drawer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 70px;
    right: 1rem;
    z-index: 39;
    padding: 1.1rem 1.3rem;
    background: rgba(12, 10, 8, 0.94);
    border: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .drawer.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .drawer a {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.85rem;
  }

  .hero-grid,
  .about-split,
  .trail,
  .about-seal {
    grid-template-columns: 1fr;
  }

  .medallion {
    width: min(340px, 78vw);
  }

  .trail-line {
    display: none;
  }

  .hero {
    padding-top: 7rem;
  }

  .join-stage {
    aspect-ratio: unset;
    display: block;
  }

  .join-banner {
    position: relative;
    aspect-ratio: 3 / 1;
    height: auto;
  }

  .join-veil,
  .join-dust {
    display: none;
  }

  .join-inner {
    padding: 1.6rem 0.4rem 0.4rem;
  }
}

@media (max-width: 640px) {
  .mast {
    padding: 0.8rem 1rem;
  }

  .buy-chip span {
    display: none;
  }

  .brand-title {
    font-size: 4.2rem;
  }

  .chart-frame {
    height: 520px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
