/* =========================================================
   SWORDOG — styles
   Palette inspired by the hero art: dusk sky, molten gold,
   silver armor, leather cape, ember sparks.
   ========================================================= */
:root {
  --bg: #120d12;
  --bg-2: #1a1420;
  --bg-3: #231b28;
  --sky: #8d8bb4;
  --sky-deep: #2a2540;
  --ink: #fff3dc;
  --muted: #c4b29c;
  --dim: #8a7a6c;
  --gold: #f5c35b;
  --gold-2: #ffe3a1;
  --gold-3: #fff7e2;
  --gold-deep: #c98b2b;
  --ember: #ff9a3c;
  --leather: #5a3b2a;
  --silver: #d9d4cc;
  --up: #f5c35b;
  --down: #e0644d;
  --line: rgba(255, 211, 107, .16);
  --glass: rgba(35, 27, 40, .55);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gold-grad: linear-gradient(180deg, #fff7e2 0%, #ffe3a1 30%, #f5c35b 55%, #c98b2b 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #1a1218; }

/* noise grain overlay for painterly texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- typography ---------- */
.h2 {
  font-family: var(--serif); font-weight: 800; line-height: 1.05; letter-spacing: .01em;
  font-size: clamp(36px, 6vw, 76px); margin: 0 0 24px;
}
.h2--xl { font-size: clamp(44px, 9vw, 130px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 195, 91, .18), 0 0 16px var(--gold);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 195, 91, 0), 0 0 22px var(--gold); } }

/* split text */
[data-split] .w { display: inline-block; white-space: nowrap; }
[data-split] .c { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .c > span {
  display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; filter: blur(6px);
  transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--ci) * 28ms);
}
[data-split].in .c > span { transform: none; opacity: 1; filter: none; }
.h2 [data-split], .h2[data-split] .c > span {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* reveal */
[data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-reveal="left"] { transform: translateX(-60px) rotate(-2deg); }
[data-reveal="scale"] { transform: scale(.85) rotate(-20deg); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 15px; letter-spacing: .04em;
  text-transform: uppercase; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--gold {
  color: #2a1a0c; background: var(--gold-grad);
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 10px 30px -8px rgba(245, 170, 60, .7), 0 0 40px -10px var(--gold);
}
.btn--gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.6s 2s infinite;
}
.btn--gold:hover { box-shadow: 0 0 0 1px rgba(255, 240, 200, .7) inset, 0 16px 40px -8px rgba(245, 170, 60, .9), 0 0 70px -6px var(--gold); }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.btn--ghost {
  color: var(--gold-2); border: 1px solid rgba(255, 211, 107, .45);
  background: rgba(20, 14, 20, .35); backdrop-filter: blur(8px);
}
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn--ghost:hover { color: #2a1a0c; }
.btn--ghost:hover::before { transform: scaleY(1); }
.is-soon { opacity: .9; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: .3s var(--ease);
}
.icon-btn svg { width: 17px; height: 17px; fill: var(--gold-2); }
.icon-btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.icon-btn:hover svg { fill: #2a1a0c; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  pointer-events: all;
}
.loader__half {
  position: absolute; inset: -2px;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(245, 170, 60, .28), transparent 70%),
    linear-gradient(180deg, #2a2540 0%, #3a2c3a 45%, #1a1218 100%);
  transition: transform 1.2s var(--ease-io);
}
.loader__half--a { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); }
.loader__half--b { clip-path: polygon(0 62%, 100% 38%, 100% 100%, 0 100%); }
.loader__rays {
  position: absolute; width: 180vmax; height: 180vmax; left: 50%; top: 50%; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .09) 0 6deg, transparent 6deg 18deg);
  mask: radial-gradient(circle, #000 0, transparent 45%); -webkit-mask: radial-gradient(circle, #000 0, transparent 45%);
  animation: spin 40s linear infinite; transition: opacity .6s;
}
@keyframes spin { to { rotate: 360deg; } }
.loader__embers { position: absolute; inset: 0; }
.loader__embers i {
  position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: #ffd27a; box-shadow: 0 0 10px 2px rgba(255, 190, 80, .9);
  animation: rise var(--t) linear var(--dl) infinite; opacity: 0;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--x), -105vh); opacity: 0; }
}
.loader__core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; transition: opacity .5s, transform .8s var(--ease); }
.loader__sword {
  width: 70px; height: 210px; overflow: visible;
  filter: drop-shadow(0 0 18px rgba(255, 200, 90, .8)) drop-shadow(0 0 40px rgba(255, 160, 50, .5));
  animation: hover 3s ease-in-out infinite;
}
@keyframes hover { 50% { transform: translateY(-8px); } }
.loader__outline path, .loader__outline circle {
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 6vw, 54px); letter-spacing: .3em; padding-left: .3em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 190, 80, .5));
}
.loader__bar { width: min(280px, 70vw); height: 3px; background: rgba(255, 211, 107, .15); border-radius: 3px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); box-shadow: 0 0 12px var(--gold); transition: width .25s linear; }
.loader__meta { width: min(280px, 70vw); display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.loader__meta #loaderPct { color: var(--gold); font-variant-numeric: tabular-nums; }
.loader__flash {
  position: absolute; left: -10%; right: -10%; top: 50%; height: 4px; z-index: 3;
  background: linear-gradient(90deg, transparent, #fff, #ffe3a1, #fff, transparent);
  box-shadow: 0 0 30px 10px rgba(255, 220, 140, .8);
  transform: rotate(-13deg) scaleX(0); transition: transform .45s var(--ease-io);
}
.loader.is-cut .loader__flash { transform: rotate(-13deg) scaleX(1); }
.loader.is-done .loader__core { opacity: 0; transform: scale(1.3); }
.loader.is-done .loader__rays, .loader.is-done .loader__embers { opacity: 0; }
.loader.is-done .loader__flash { opacity: 0; transition: opacity .4s .1s; }
.loader.is-done .loader__half--a { transform: translate(-6%, -100%) rotate(-4deg); }
.loader.is-done .loader__half--b { transform: translate(6%, 100%) rotate(-4deg); }
.loader.is-gone { display: none; }

/* ---------- cursor & fx ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
.cursor { position: fixed; inset: 0; z-index: 99; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--gold-3);
  box-shadow: 0 0 10px 2px var(--gold), 0 0 24px 6px rgba(255, 160, 50, .45);
}
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(255, 211, 107, .6);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring {
  width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(245, 195, 91, .12); border-color: var(--gold);
}
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; }
.scroll-progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; translate: -50% 30px; opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #2a1a0c;
  background: var(--gold-grad); box-shadow: 0 10px 40px -10px rgba(255, 170, 60, .9);
  transition: .5s var(--ease);
}
.toast.show { translate: -50% 0; opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 70; width: min(1240px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: background .5s, border-color .5s, translate .6s var(--ease), backdrop-filter .5s;
}
.nav.is-scrolled { background: rgba(22, 16, 22, .62); border-color: var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.nav.is-hidden { translate: -50% -130%; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 900; letter-spacing: .14em; font-size: 18px; }
.nav__logo img { filter: drop-shadow(0 0 8px rgba(255, 190, 80, .6)); }
.nav__logo span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .4s var(--ease); box-shadow: 0 0 8px var(--gold);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-2); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--gold-2); transition: .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { top: 20px; rotate: 45deg; }
.menu-open .burger span:last-child { top: 20px; rotate: -45deg; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(245, 170, 60, .18), transparent), rgba(18, 13, 18, .96);
  clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--gold-2); }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(50% 60% at 70% 45%, rgba(255, 190, 90, .35), transparent 70%),
    linear-gradient(180deg, #2a2540 0%, #3b2e3e 38%, #2a1d22 70%, var(--bg) 100%);
  padding: 120px 0 90px;
}
.hero__bg {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(60vw, 1000px);
  mask-image: radial-gradient(75% 70% at 60% 50%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 60% 50%, #000 45%, transparent 100%);
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%;
  transform: scale(1.12); transition: transform 2.4s var(--ease), filter 2s var(--ease);
  filter: saturate(1.1) brightness(.6) blur(8px);
}
body:not(.is-loading) .hero__bg img { transform: scale(1.04); filter: saturate(1.1) brightness(1) blur(0); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 20, 30, .85) 0%, rgba(26, 20, 30, .4) 40%, transparent 65%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__rays {
  position: absolute; right: 18%; top: 38%; width: 160vmax; height: 160vmax; translate: 50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 225, 150, .07) 0 4deg, transparent 4deg 14deg);
  mask: radial-gradient(circle, #000 0, transparent 40%); -webkit-mask: radial-gradient(circle, #000 0, transparent 40%);
  animation: spin 90s linear infinite; mix-blend-mode: screen;
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; z-index: 2; }
.hero__title {
  margin: 0 0 10px; font-family: var(--serif); font-weight: 900; line-height: .9; letter-spacing: .02em;
  font-size: clamp(56px, 9.2vw, 150px); margin-left: -.04em;
  filter: drop-shadow(0 0 30px rgba(255, 180, 70, .45)) drop-shadow(0 6px 0 rgba(90, 50, 20, .6));
}
.hero__title .c > span {
  background: linear-gradient(100deg, #c98b2b 0%, #ffe3a1 20%, #fff7e2 28%, #f5c35b 40%, #c98b2b 60%, #ffe3a1 80%, #f5c35b 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldflow 6s linear infinite;
  transition-duration: 1.4s; transition-delay: calc(.35s + var(--ci) * 70ms);
}
@keyframes goldflow { to { background-position: -250% 0; } }
.hero__lead { max-width: 520px; font-size: clamp(16px, 1.6vw, 19px); color: #e9dcc6; margin: 0 0 28px; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.hero-in { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d); }
body.is-ready .hero-in { opacity: 1; transform: none; }
body.is-ready .hero__title [data-split] { }

.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-bottom: 26px;
  padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(20, 14, 20, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ca__label { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--gold); }
.ca__value { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca__copy { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 195, 91, .14); color: var(--gold-2); transition: .3s; }
.ca__copy svg { width: 18px; height: 18px; }
.ca__copy:hover { background: var(--gold); color: #2a1a0c; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__mini { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero__mini li { display: flex; flex-direction: column; }
.hero__mini b { font-family: var(--serif); font-size: 24px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.hero__mini span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3;
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255, 211, 107, .5);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquees { position: relative; z-index: 3; height: clamp(120px, 14vw, 170px); margin-top: -40px; overflow: hidden; }
.marquee {
  position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: 16px 0;
  background: var(--gold-grad); box-shadow: 0 0 60px -10px rgba(255, 170, 60, .7);
  translate: 0 -50%; rotate: -3deg;
}
.marquee--alt { rotate: 3deg; background: #1d1520; border-block: 1px solid rgba(255, 211, 107, .35); box-shadow: none; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; will-change: transform; }
.marquee span { font-family: var(--serif); font-weight: 900; font-size: clamp(20px, 3vw, 34px); color: #2a1a0c; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.marquee--alt span { color: transparent; -webkit-text-stroke: 1px rgba(255, 211, 107, .75); }
.marquee i { font-style: normal; color: #7a4b2a; font-size: 24px; }
.marquee--alt i { color: var(--gold); }
/* CSS fallback when GSAP is unavailable */
html:not(.gsap-on) .marquee__track { animation: marquee 32s linear infinite; }
html:not(.gsap-on) .marquee--alt .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; overflow-x: clip; }
html, body { overflow-x: clip; }
.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section__sub { color: var(--muted); margin: 0; }
.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 40% at 50% 0%, rgba(245, 170, 60, .08), transparent 70%);
}

/* legend */
.legend__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.legend__art { position: relative; }
.frame {
  position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 1px rgba(255, 211, 107, .35), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(255, 170, 60, .6);
  transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); }
.frame__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 240, 200, .35), transparent 45%); mix-blend-mode: overlay; }
.legend__badge {
  position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(18, 13, 18, .85); border: 1px solid var(--line); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.legend__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.legend__badge text { font-family: var(--serif); font-size: 15px; font-weight: 800; letter-spacing: .14em; fill: var(--gold-2); }
.legend__badge > span { font-size: 40px; color: var(--gold); filter: drop-shadow(0 0 10px var(--gold)); }
.legend__text p { color: var(--muted); }
.legend__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.feat {
  padding: 20px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass);
  display: flex; flex-direction: column; gap: 4px; transition: border-color .4s, transform .4s var(--ease);
}
.feat:hover { border-color: rgba(255, 211, 107, .55); transform: translateY(-6px); }
.feat__ico { font-size: 26px; }
.feat b { font-family: var(--serif); color: var(--gold-2); font-size: 17px; }
.feat small { color: var(--dim); font-size: 13px; line-height: 1.4; }

/* market */
.market { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  position: relative; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass);
  display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.stat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 220, 140, .08) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1s var(--ease); }
.stat:hover::after { transform: translateX(100%); }
.stat span { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.stat b { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 23px); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat em { font-style: normal; font-size: 13px; font-weight: 700; }
.chg.up, .buys { color: var(--up); font-style: normal; }
.chg.down, .sells { color: var(--down); font-style: normal; }
.flash-up { animation: flashUp 1s; } .flash-down { animation: flashDown 1s; }
@keyframes flashUp { 0% { color: #fff; text-shadow: 0 0 16px var(--up); } }
@keyframes flashDown { 0% { color: #fff; text-shadow: 0 0 16px var(--down); } }

.chart-card {
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(35, 27, 40, .8), rgba(22, 16, 22, .9));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 100px -50px rgba(255, 170, 60, .5);
}
.chart-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chart-card__pair { display: flex; align-items: center; gap: 10px; }
.chart-card__pair b { font-family: var(--serif); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.live.on { color: var(--up); } .live.on i { background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 1.6s infinite; }
.tf { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.tf button { padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); transition: .3s; }
.tf button:hover { color: var(--gold-2); }
.tf button.active { background: var(--gold); color: #2a1a0c; }
.chart-wrap { position: relative; height: clamp(340px, 50vw, 520px); }
.chart { position: absolute; inset: 0; }
.chart-legend { position: absolute; left: 16px; top: 12px; z-index: 3; font-size: 12px; color: var(--muted); pointer-events: none; font-variant-numeric: tabular-nums; }
.chart-legend b { color: var(--ink); font-weight: 700; }
.chart-overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; padding: 20px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(18, 13, 18, .55), rgba(18, 13, 18, .82));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .6s;
}
.chart-overlay > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-overlay__ico { font-size: 44px; color: var(--gold); filter: drop-shadow(0 0 16px var(--gold)); animation: hover 3s ease-in-out infinite; }
.chart-overlay b { font-family: var(--serif); font-size: clamp(20px, 3vw, 30px); color: var(--gold-2); }
.chart-overlay small { color: var(--muted); }
.chart-overlay.hidden { opacity: 0; pointer-events: none; }
.chart-card__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.chart-card__links { display: flex; gap: 18px; }
.chart-card__links a { color: var(--gold-2); font-weight: 700; }

/* tokenomics */
.tok__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.tok__donut { position: relative; width: min(460px, 100%); margin-inline: auto; aspect-ratio: 1; }
.tok__donut svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 30px rgba(255, 170, 60, .35)); }
.tok__donut .seg { fill: none; stroke-width: 22; stroke-linecap: butt; transition: stroke-dashoffset 1.8s var(--ease), stroke-width .4s var(--ease); cursor: pointer; }
.tok__donut .seg:hover, .tok__donut .seg.hl { stroke-width: 30; }
.tok__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.tok__center small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.tok__center b { font-family: var(--serif); font-size: clamp(20px, 3.2vw, 32px); color: var(--gold-2); }
.tok__center span { font-size: 13px; color: var(--muted); }
.tok__legend { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.tok__legend li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass);
  transition: border-color .3s, transform .4s var(--ease);
}
.tok__legend li:hover, .tok__legend li.hl { border-color: rgba(255, 211, 107, .6); transform: translateX(8px); }
.tok__legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: 0 0 10px currentColor; }
.tok__legend span { flex: 1; color: var(--muted); }
.tok__legend b { font-family: var(--serif); color: var(--gold-2); }
.tok__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tcard { padding: 16px 12px; border-radius: 14px; text-align: center; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(245, 195, 91, .1), transparent); }
.tcard span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.tcard b { font-family: var(--serif); color: var(--gold-2); font-size: 18px; }

/* how */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(35, 27, 40, .9), rgba(22, 16, 22, .6)); overflow: hidden;
  transform-style: preserve-3d; transition: border-color .4s;
}
.step::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(245, 195, 91, .18), transparent 50%); opacity: 0; transition: opacity .4s; }
.step:hover { border-color: rgba(255, 211, 107, .5); }
.step:hover::before { opacity: 1; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%;
  font-family: var(--serif); font-weight: 900; font-size: 22px; color: #2a1a0c; background: var(--gold-grad);
  box-shadow: 0 0 30px -4px var(--gold);
}
.step h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; color: var(--gold-2); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.how__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }

/* roadmap */
/* mobile / default: vertical timeline */
.road { position: relative; }
.road__track { position: relative; display: flex; flex-direction: column; gap: 44px; }
.road__line { position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 211, 107, .12); }
.road__line span { display: block; width: 100%; height: 100%; background: var(--gold-grad); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px var(--gold); }
.phase { position: relative; padding-left: 64px; }
.phase__node {
  position: absolute; left: 26px; top: 0; translate: -50% 0; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid rgba(255, 211, 107, .35);
  font-family: var(--serif); font-weight: 900; color: var(--dim); box-shadow: 0 0 0 8px var(--bg);
  transition: border-color .5s, color .5s, box-shadow .5s, transform .6s var(--ease);
}
.phase.is-active .phase__node { border-color: var(--gold); color: var(--gold-2); box-shadow: 0 0 0 8px var(--bg), 0 0 34px -2px var(--gold); transform: scale(1.12); }
.phase--end { padding-bottom: 10px; }
.phase__end { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.phase__end b { font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.phase__end small { color: var(--muted); }
.phase__end-sword { width: 34px; height: 100px; background: url("../img/sword.svg") center / contain no-repeat; filter: drop-shadow(0 0 16px var(--gold)); animation: hover 3s ease-in-out infinite; margin-bottom: 8px; }

/* desktop: horizontal pinned campaign */
@media (min-width: 900px) {
  .roadmap { height: 100vh; min-height: 620px; display: flex; align-items: center; padding: 70px 0 20px; overflow: hidden; }
  .roadmap .section__head { margin-bottom: clamp(10px, 2.5vh, 40px); }
  .roadmap .h2 { font-size: clamp(34px, 7vh, 72px); margin-bottom: 0; }
  .roadmap .phase__body { padding: 16px 20px 20px; }
  .roadmap .phase__body h3 { margin-bottom: 8px; font-size: clamp(20px, 3vh, 28px); }
  .roadmap .phase__body li { font-size: 14px; }
  .road__track { flex-direction: row; align-items: flex-start; gap: 46px; width: max-content; padding: 0 8vw 0 0; }
  .road__line { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 2px; margin: 0; }
  .road__line span { transform-origin: left; transform: scaleX(0); }
  .phase { width: clamp(280px, 42vh, 420px); padding: 72px 0 0; }
  .phase__node { left: 30px; }
  .phase--end { width: 360px; align-self: center; padding-top: 80px; }
  .phase__card img { aspect-ratio: 16 / 9; }
}
.phase__card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(35, 27, 40, .9), rgba(22, 16, 22, .8));
  transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s;
}
.phase__card:hover { border-color: rgba(255, 211, 107, .55); box-shadow: 0 0 80px -30px rgba(255, 170, 60, .7); }
.phase__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.phase__card:hover img { transform: scale(1.06); }
.phase__body { padding: 24px 26px 28px; }
.phase__body small { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.phase__body h3 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); margin: 4px 0 12px; }
.phase__body ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.phase__body li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.phase__body li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 2px; }

/* join */
.join { overflow: hidden; text-align: center; min-height: 90vh; display: flex; align-items: center; }
.join__bg { position: absolute; inset: -15% 0; }
.join__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.join__shade { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(18, 13, 18, .35), rgba(18, 13, 18, .9)), linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.join__inner { position: relative; z-index: 2; }
.join__inner > p { font-size: clamp(17px, 2vw, 22px); color: #f1e3cb; margin: 0 0 36px; text-shadow: 0 2px 20px #000; }
.join .h2 { filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .8)); }
.join__socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700;
  background: rgba(18, 13, 18, .6); border: 1px solid rgba(255, 211, 107, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .4s, color .4s, border-color .4s;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { background: var(--gold); color: #2a1a0c; border-color: var(--gold); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: #0d090d; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer__disc { max-width: 680px; margin: 0; font-size: 13px; color: var(--dim); }
.footer__copy { margin: 0; font-size: 13px; color: var(--muted); }

/* =========================================================
   MOTION LAYER (GSAP-driven). When GSAP is present, html gets
   .gsap-on and JS owns the initial states of animated elements.
   ========================================================= */
.gsap-on [data-reveal], .gsap-on .hero-in { opacity: 1; transform: none; transition: none; }
.gsap-on [data-split] .c > span { opacity: 1; transform: none; filter: none; transition: none; }
.gsap-on .hero__bg img { transition: none; transform: none; filter: none; }
.gsap-on [data-split] .c { perspective: 700px; }
.gsap-on .tilt { transition: transform .6s var(--ease), border-color .4s, box-shadow .4s; }

/* hover text roll for links & buttons */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; height: 1.25em; }
.roll > span { display: block; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; }
a:hover .roll > span, button:hover .roll > span, .btn:hover .roll > span { transform: translateY(-100%); }

/* word-by-word lighting paragraph */
.lead-words { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--ink) !important; }
.lead-words .wd { display: inline-block; }
.gsap-on .lead-words .wd { opacity: .16; }
.join [data-split] .c { overflow: visible; }
.gsap-on .phase__card img { transition: none; }
.gsap-on .phase__card:hover img { transform: none; }

/* floating decorations */
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco--star { color: var(--gold); font-size: 34px; text-shadow: 0 0 18px var(--gold), 0 0 40px rgba(255, 160, 50, .6); animation: twinkle 3.4s ease-in-out infinite; }
.deco--star.sm { font-size: 20px; animation-delay: -1.4s; }
.deco--sword { width: 34px; height: 102px; background: url("../img/sword.svg") center / contain no-repeat; filter: drop-shadow(0 0 14px rgba(255, 190, 80, .8)); opacity: .75; rotate: -24deg; animation: bob 6s ease-in-out infinite; }
.deco--sword.r { rotate: 28deg; animation-delay: -2s; }
@keyframes twinkle { 50% { opacity: .35; scale: .7; rotate: 45deg; } }
@keyframes bob { 50% { translate: 0 -18px; } }
.section > .container { position: relative; z-index: 1; }

/* giant outlined words moving with scroll */
.bg-word {
  position: absolute; top: 50%; left: 0; z-index: 0; translate: 0 -50%; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 900; font-size: clamp(90px, 16vw, 260px); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 211, 107, .09); will-change: transform;
}
.bg-word--b { top: 40%; }

/* glowing seam between sections */
.seam { position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2; pointer-events: none; display: flex; justify-content: center; align-items: center; }
.seam::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 211, 107, .7) 50%, transparent); transform: scaleX(var(--s, 0)); box-shadow: 0 0 12px rgba(255, 190, 80, .6); }
.seam i { position: relative; width: 10px; height: 10px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 16px var(--gold); scale: var(--s, 0); }

/* how-to connector line */
.how .container { position: relative; }
.steps__line { position: absolute; left: 6%; right: 6%; height: 2px; margin-top: 58px; background: rgba(255, 211, 107, .1); z-index: 0; }
.steps__line span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--gold); }
.steps { position: relative; z-index: 1; }

/* animated glowing border on the chart card */
.chart-card { position: relative; isolation: isolate; }
.chart-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, rgba(255, 211, 107, .9) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: angle 6s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes angle { to { --ang: 360deg; } }

/* footer giant wordmark */
.footer { overflow: hidden; }
.footer__mega {
  margin-top: 30px; text-align: center; line-height: .78; overflow: hidden; padding-top: .05em;
  font-family: var(--serif); font-weight: 900; font-size: 15.5vw; letter-spacing: -.02em; white-space: nowrap; user-select: none;
}
.footer__mega .c { display: inline-block; overflow: hidden; vertical-align: top; }
.footer__mega .c > span {
  display: inline-block; background: linear-gradient(180deg, #ffe3a1 0%, #c98b2b 55%, rgba(201, 139, 43, 0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* without GSAP the horizontal roadmap simply scrolls sideways */
@media (min-width: 900px) { html:not(.gsap-on) .road { overflow-x: auto; padding-bottom: 20px; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__line { display: none; }
  .deco--sword { width: 24px; height: 72px; }
  .nav__links { display: none; }
  .burger { display: block; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { align-items: flex-end; padding-bottom: 80px; }
  .hero__bg { width: 100%; height: 72%; bottom: auto; mask-image: linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(26, 20, 30, .7) 45%, transparent 75%); }
  .hero__rays { right: 50%; top: 30%; }
  .hero__content { padding-top: 34vh; }
  .hero__title { font-size: clamp(48px, 14.5vw, 120px); }
  .legend__grid, .tok__grid { grid-template-columns: 1fr; }
  .legend__badge { right: 10px; bottom: -30px; width: 120px; height: 120px; }
  .legend__badge text { font-size: 18px; }
  .tok__cards { grid-template-columns: repeat(2, 1fr); }
  .nav__actions .icon-btn { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .legend__feats { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__mini { gap: 22px; }
  .phase__body ul { grid-template-columns: 1fr; }
  .nav .btn--sm span { font-size: 12px; }
  .nav { padding-left: 14px; }
  .nav__logo span { display: none; }
}

/* only when config.js → motion.respectReducedMotion = true */
@media (prefers-reduced-motion: reduce) {
  .reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
