:root {
  --ink: #081018;
  --ink-2: #121c2b;
  --panel: rgba(12, 20, 32, 0.72);
  --cream: #f6efe4;
  --mist: #9aafc4;
  --gold: #e7b15a;
  --gold-2: #f8e7c4;
  --ember: #ff8a3c;
  --line: rgba(231, 177, 90, 0.38);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --serif: "Cinzel", "Palatino Linotype", serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --scroll: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 70% 18%, rgba(255, 138, 60, 0.28), transparent 60%),
    radial-gradient(900px 500px at 20% 0%, rgba(90, 130, 180, 0.25), transparent 55%),
    linear-gradient(180deg, #1c3348 0%, #3a4e68 18%, #c47a45 42%, #e7a15a 58%, #1a2433 78%, #070d14 100%);
  pointer-events: none;
}
.sun {
  position: absolute;
  left: 62%;
  top: 34%;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4d2 0%, #ffd27a 28%, #ff8a3c 58%, transparent 72%);
  filter: blur(1px);
  animation: sunPulse 7s ease-in-out infinite;
}
.rays {
  position: absolute;
  left: 62%;
  top: 28%;
  width: 640px;
  height: 640px;
  margin-left: -320px;
  background: conic-gradient(from 180deg, transparent 0 40%, rgba(255, 220, 160, 0.16) 46%, transparent 52%, rgba(255, 220, 160, 0.1) 60%, transparent 70%);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 48s linear infinite;
}
.cloud {
  position: absolute;
  height: 70px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 236, 214, 0.35), rgba(255, 236, 214, 0.05));
  filter: blur(8px);
}
.cloud-a { width: 280px; top: 12%; left: -10%; animation: drift 46s linear infinite; }
.cloud-b { width: 360px; top: 22%; left: 20%; animation: drift 62s linear infinite reverse; opacity: 0.7; }
.cloud-c { width: 220px; top: 8%; left: 55%; animation: drift 54s linear infinite; opacity: 0.55; }
.ridges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 48vh;
}
.ridge-far { fill: #243246; transform: translateY(calc(var(--scroll) * -0.03 * 1px)); }
.ridge-mid { fill: #172433; transform: translateY(calc(var(--scroll) * -0.06 * 1px)); }
.ridge-near { fill: #0c1522; transform: translateY(calc(var(--scroll) * -0.1 * 1px)); }
.mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 24, 0.2) 30%, var(--ink) 92%);
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
#embers {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glow-follow {
  position: fixed;
  z-index: 2;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 177, 90, 0.16), transparent 68%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #070d14;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.veil.is-done { opacity: 0; visibility: hidden; }
.veil-blade {
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #fff6d8, var(--gold), transparent);
  box-shadow: 0 0 24px var(--gold);
  animation: drawBlade 0.9s ease forwards;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 6vw;
  background: linear-gradient(180deg, rgba(8, 16, 24, 0.82), rgba(8, 16, 24, 0.38) 70%, transparent);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 22px rgba(231, 177, 90, 0.45);
}
.nav nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
}
.nav nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  position: relative;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav nav a:hover,
.nav nav a.is-on { color: var(--gold-2); }
.nav nav a:hover::after,
.nav nav a.is-on::after { transform: scaleX(1); }
.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.nav-x img { width: 14px; height: 14px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  position: relative;
}
.nav-toggle span:not(.sr) {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--gold-2);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

main { position: relative; z-index: 3; }
section { padding: 7rem 6vw; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.kicker {
  margin: 0 0 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
h1, h2, h3 { font-weight: 600; line-height: 0.92; }
h1 {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 8.4vw, 8.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(100deg, #fff8ea 10%, #f0c56e 38%, #fff6df 52%, #d4923f 72%, #fff8ea 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
h2, h3 { font-family: var(--display); }
h2 { margin: 0; font-size: clamp(2.4rem, 4.4vw, 4rem); color: var(--gold-2); line-height: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-2);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
  animation: blink 1.8s ease infinite;
}
.ticker {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  letter-spacing: 0.42em;
  color: var(--gold);
  font-size: 1rem;
}
.ticker.tight { letter-spacing: 0.18em; }
.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--cream);
}
.lede, .sub, .drop, .pillars p, .steps p, .fine, .disclaimer, .join-panel p {
  color: var(--mist);
}
.lede {
  max-width: 38rem;
  font-size: 1.08rem;
  color: #f7f1e6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.tagline { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding-top: 3.2rem;
  padding-bottom: 6rem;
}
.hero-copy, .hero-art, .about-grid > *, .steps > * { min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn img { width: 16px; height: 16px; object-fit: contain; }
.btn-gold {
  background: linear-gradient(180deg, #f3d7a1, #e7b15a 40%, #b7792e);
  color: #2a1a0a;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(231, 177, 90, 0.25);
}
.btn-gold::after, .banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 58%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
}
.btn-ghost {
  background: rgba(8, 16, 24, 0.35);
  border-color: var(--line);
  color: var(--gold-2);
}
.btn:hover { transform: translateY(-2px); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
  max-width: 460px;
}
.facts div {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
}
.facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts dd { margin: 0.2rem 0 0; font-family: var(--serif); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.aura {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 70, 0.55), rgba(255, 120, 40, 0.12) 42%, transparent 70%);
  filter: blur(8px);
  animation: sunPulse 5.5s ease-in-out infinite;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(231, 177, 90, 0.45);
}
.ring-a { width: 86%; aspect-ratio: 1; animation: spin 36s linear infinite; border-style: dashed; }
.ring-b { width: 68%; aspect-ratio: 1; animation: spin 22s linear infinite reverse; }
.knight {
  position: relative;
  width: min(460px, 78%);
  border-radius: 28px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  animation: floaty 6.5s ease-in-out infinite;
}
.art-caption {
  position: relative;
  margin: 0.8rem 0 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-2);
  background: rgba(8, 16, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 16, 24, 0.55);
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: ticker 28s linear infinite;
  font-family: var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-size: 0.78rem;
}
.marquee-track span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-1px);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.about-portrait {
  margin: 0;
  position: relative;
}
.about-portrait img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  animation: floaty 8s ease-in-out infinite;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 8% -6% auto auto;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.drop { font-size: 1.2rem; color: var(--cream); }
.pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.pillars li {
  padding: 1rem 1.1rem 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(231, 177, 90, 0.1), transparent 80%);
  transition: transform 0.35s ease, background 0.35s ease;
}
.pillars li:hover { transform: translateX(8px); background: linear-gradient(90deg, rgba(231, 177, 90, 0.18), transparent 85%); }
.pillars h3 { margin: 0 0 0.3rem; font-size: 1.15rem; color: var(--gold-2); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.steps li {
  padding: 1.3rem 1.15rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 32, 48, 0.85), rgba(8, 14, 22, 0.8));
  border: 1px solid rgba(231, 177, 90, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.12);
  min-height: 100%;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.steps li:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(231, 177, 90, 0.15);
}
.num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.steps h3 { margin: 0.4rem 0; font-size: 1.25rem; }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-2);
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}
.text-btn img { width: 16px; height: 16px; object-fit: contain; }
.contract {
  margin-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 24, 0.62);
}
.addr {
  margin: 0;
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--gold-2);
}
.fine { font-size: 0.92rem; }
.fine a { color: var(--gold-2); }

.chart-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 640px;
  background: #0b1018;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 40px rgba(231, 177, 90, 0.08);
}
.chart-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
  border: 2px solid var(--gold);
}
.c1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.c2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.c3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.c4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }

.banner {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 50px rgba(231, 177, 90, 0.12);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}
.join-panel {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background: rgba(8, 16, 24, 0.66);
  border: 1px solid var(--line);
}
.join-panel p { margin: 0.35rem 0 0; max-width: 36rem; }

.foot {
  position: relative;
  z-index: 3;
  padding: 2.5rem 6vw 3rem;
  border-top: 1px solid var(--line);
  background: rgba(7, 12, 18, 0.88);
}
.foot-brand { display: flex; gap: 0.9rem; align-items: center; }
.foot-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.foot-brand strong { display: block; font-family: var(--serif); letter-spacing: 0.08em; }
.foot-brand span, .copyline { color: var(--mist); font-size: 0.9rem; }
.disclaimer { max-width: 62rem; font-size: 0.86rem; }
.copyline { letter-spacing: 0.18em; text-transform: uppercase; }

.reveal { animation: rise 0.9s ease both; }

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(110vw); }
}
@keyframes drawBlade { to { height: 46vh; } }
@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
@keyframes ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero, .about-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(3.3rem, 16vw, 4.6rem); }
  .hero-art { min-height: 380px; order: -1; }
  .facts { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav nav, .nav-x { display: none; }
  .nav.is-open { flex-wrap: wrap; }
  .nav.is-open nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin: 0.4rem 0 0;
    padding: 0.9rem 0.2rem 0.2rem;
    gap: 0.85rem;
  }
  .nav.is-open .nav-x { display: inline-flex; order: 4; margin: 0.2rem 0 0.4rem; }
  .contract, .join-panel { flex-direction: column; align-items: flex-start; }
  .chart-frame, .chart-frame iframe { min-height: 520px; height: 520px; }
  section { padding: 5rem 5vw; }
}

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