:root {
  --sky-0: #8ec8f2;
  --sky-1: #5aaee6;
  --sky-2: #2f86c8;
  --meadow: #6ec007;
  --meadow-deep: #3f8a12;
  --gold: #e8c547;
  --gold-hot: #f4de7a;
  --gold-ink: #8a6a12;
  --ink: #14181f;
  --ink-2: #1c2430;
  --paper: #f6f1df;
  --shirt: #111111;
  --line: rgba(20, 24, 31, 0.12);
  --display: "Bungee", sans-serif;
  --inline: "Bungee Inline", sans-serif;
  --serif: "Cinzel", serif;
  --body: "Sora", sans-serif;
  --facet: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 236, 150, 0.55), transparent 55%),
    linear-gradient(180deg, #9fd4f8 0%, #6bb6ea 28%, #8ec8f2 52%, #d7ef9a 86%, #6ec007 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* field + weather */
#polyfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sun {
  position: fixed;
  top: 7vh;
  right: 8vw;
  width: 140px;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, #fff8c8 0 36%, rgba(255, 220, 90, 0.55) 37% 52%, transparent 53%);
  filter: drop-shadow(0 0 40px rgba(255, 230, 120, 0.7));
  animation: sunPulse 6s ease-in-out infinite;
}
.sun::after {
  content: "";
  position: absolute;
  inset: -28px;
  background: conic-gradient(from 0deg, transparent, rgba(255, 236, 150, 0.35), transparent 18%, transparent 50%, rgba(255, 236, 150, 0.28), transparent 68%);
  clip-path: polygon(50% 0, 56% 38%, 100% 50%, 56% 62%, 50% 100%, 44% 62%, 0 50%, 44% 38%);
  animation: spin 28s linear infinite;
}
.cloud {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  height: 42px;
  background: #fff;
  opacity: 0.72;
  filter: drop-shadow(10px 8px 0 rgba(20, 24, 31, 0.06));
  clip-path: polygon(8% 60%, 18% 30%, 38% 22%, 52% 38%, 70% 18%, 88% 40%, 96% 70%, 78% 92%, 40% 88%, 12% 80%);
  animation: drift 42s linear infinite;
}
.c1 { top: 12vh; width: 180px; left: -12%; animation-duration: 48s; }
.c2 { top: 22vh; width: 120px; left: -18%; animation-duration: 36s; animation-delay: -12s; }
.c3 { top: 16vh; width: 150px; left: -8%; animation-duration: 54s; animation-delay: -22s; }

@keyframes sunPulse { 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(130vw); } }

/* loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: linear-gradient(180deg, #7ec4f2, #5aaee6);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold) 45%, #b88916);
  clip-path: polygon(50% 0, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  animation: spin 1.6s linear infinite;
  box-shadow: 0 16px 30px rgba(138, 106, 18, 0.25);
}
.loader-word {
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.loader-bar {
  width: 180px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  clip-path: var(--facet);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: load 1.1s ease-in-out infinite;
}
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.cursor-dot { width: 8px; height: 8px; background: var(--gold-ink); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 2px solid var(--gold-ink);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
body.touch .cursor-dot, body.touch .cursor-ring { display: none; }

/* nav */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  background: rgba(246, 241, 223, 0.72);
  backdrop-filter: blur(16px);
  clip-path: var(--facet);
  box-shadow: 8px 10px 0 rgba(20, 24, 31, 0.08);
  border: 1px solid rgba(255,255,255,0.5);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 46px; height: 46px; object-fit: contain; }
.nav-brand em {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.nav-brand strong { font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--ink);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }

/* buttons */
.facet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: var(--facet);
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 5px 6px 0 rgba(20, 24, 31, 0.16);
}
.facet-btn img { width: 18px; height: 18px; object-fit: contain; }
.facet-btn.gold { background: linear-gradient(135deg, var(--gold-hot), var(--gold) 50%, #c9a227); color: var(--ink); }
.facet-btn.ink { background: var(--ink); color: var(--paper); }
.facet-btn.ghost { background: rgba(246, 241, 223, 0.7); border-color: var(--ink); color: var(--ink); }
.facet-btn.ghost.light { background: rgba(20, 24, 31, 0.45); color: var(--gold-hot); border-color: var(--gold); }

/* Ink on gold/cream, gold on dark — keeps official marks readable */
.facet-btn.gold img,
.facet-btn.ghost img {
  filter: brightness(0);
}
.facet-btn.ink img,
.facet-btn.ghost.light img {
  filter: brightness(0) saturate(100%) invert(82%) sepia(38%) saturate(700%) hue-rotate(6deg) brightness(104%) contrast(94%);
}
.facet-btn.lg { padding: 14px 18px; }
.facet-btn:hover { transform: translate(-2px, -3px); box-shadow: 8px 10px 0 rgba(20, 24, 31, 0.16); }

/* type */
.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 12px;
}
h1, h2, h3 { line-height: 0.95; }
h2 { font-family: var(--display); font-size: clamp(34px, 6vw, 68px); }
h3 { font-family: var(--display); font-size: 28px; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head.light { color: #fff; }
.sec-head.light .eyebrow, .sec-head.light .sec-lead { color: rgba(255,255,255,0.82); }
.sec-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: #2a3340; }

/* hero */
.hero { position: relative; z-index: 2; padding: 150px 0 0; min-height: 100vh; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.title-low {
  display: block;
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 86px);
  color: #fff;
  text-shadow: 6px 7px 0 rgba(20, 24, 31, 0.18);
}
.title-gold {
  display: block;
  font-family: var(--inline);
  font-size: clamp(48px, 9vw, 102px);
  background: linear-gradient(180deg, #fff4b0 0%, var(--gold-hot) 28%, var(--gold) 55%, #b88916 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(5px 6px 0 rgba(138, 106, 18, 0.28));
  animation: foil 4.5s linear infinite;
  background-size: 140% 140%;
}
@keyframes foil { 50% { background-position: 100% 100%; } }
.symbol {
  margin: 10px 0 16px;
  font-family: var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
}
.tagline { font-size: 20px; line-height: 1.5; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }
.ca-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(246, 241, 223, 0.75);
  clip-path: var(--facet);
  border: 1px solid rgba(20, 24, 31, 0.08);
}
.ca-label { font-family: var(--serif); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); }
#caText { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  padding: 7px 10px;
  background: var(--ink);
  color: var(--paper);
  clip-path: var(--facet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  font-family: var(--serif);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.45);
  clip-path: var(--facet);
  font-size: 12px;
}

.hero-stage { position: relative; min-height: 520px; }
.island { position: relative; width: min(520px, 100%); margin: 0 auto; animation: bob 5s ease-in-out infinite; }
.island-glow {
  position: absolute;
  inset: 8% 12% 18%;
  background: radial-gradient(circle, rgba(255, 236, 150, 0.55), transparent 68%);
  filter: blur(8px);
}
.mascot {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 28px 24px rgba(20, 24, 31, 0.22));
  animation: sway 7s ease-in-out infinite;
}
.island-grass {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 70px;
  background: linear-gradient(180deg, #8ed63a, var(--meadow) 50%, var(--meadow-deep));
  clip-path: polygon(6% 40%, 18% 18%, 36% 28%, 52% 8%, 70% 24%, 88% 14%, 100% 42%, 92% 100%, 8% 100%, 0 48%);
  z-index: 1;
}
.island-rock {
  position: absolute;
  z-index: 3;
  background: #9aa3ad;
  clip-path: polygon(20% 0, 100% 30%, 70% 100%, 0 80%);
}
.r1 { width: 34px; height: 22px; left: 18%; bottom: 14%; }
.r2 { width: 24px; height: 16px; right: 22%; bottom: 16%; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes sway { 50% { transform: rotate(-1.4deg); } }

.ticker {
  margin-top: 48px;
  overflow: hidden;
  background: var(--ink);
  color: var(--gold);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 12px 0;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.about, .howto, .chart, .join { position: relative; z-index: 2; padding: 110px 0; }
.about { background: linear-gradient(180deg, rgba(246, 241, 223, 0.2), rgba(246, 241, 223, 0.55) 40%, rgba(246, 241, 223, 0.15)); }
.howto { background: linear-gradient(180deg, rgba(110, 192, 7, 0.08), rgba(246, 241, 223, 0.45)); }
.chart { background: linear-gradient(180deg, rgba(20, 24, 31, 0.04), rgba(20, 24, 31, 0.12)); }
.join {
  background:
    linear-gradient(180deg, transparent, rgba(20, 24, 31, 0.28) 18%, rgba(20, 24, 31, 0.55));
  padding-bottom: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.facet-card {
  position: relative;
  padding: 28px 24px 26px;
  background: rgba(246, 241, 223, 0.82);
  clip-path: var(--facet);
  box-shadow: 10px 12px 0 rgba(20, 24, 31, 0.08);
  border: 1px solid rgba(255,255,255,0.55);
  overflow: hidden;
  transition: transform 0.25s;
}
.facet-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold), transparent);
  opacity: 0.35;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.facet-card:hover { transform: translate(-4px, -6px); }
.gold-card { background: linear-gradient(160deg, #fff4b8, var(--gold) 70%, #c9a227); }
.card-no, .step-no {
  font-family: var(--serif);
  letter-spacing: 0.2em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.facet-card p, .step p { margin-top: 10px; line-height: 1.6; color: #2d3642; }
.facet-card h3 { margin-top: 8px; }

.about-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  padding: 32px;
  background: var(--ink);
  color: var(--paper);
  clip-path: var(--facet);
}
.about-panel .eyebrow { color: var(--gold); }
.about-panel p { line-height: 1.65; color: rgba(246, 241, 223, 0.82); margin: 10px 0 18px; }
.spec-list { list-style: none; display: grid; gap: 10px; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(232, 197, 71, 0.3); padding-bottom: 8px; }
.spec-list span { font-family: var(--serif); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.panel-stat { display: grid; gap: 12px; align-content: center; }
.stat {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  clip-path: var(--facet);
  border: 1px solid rgba(232, 197, 71, 0.25);
}
.stat b { display: block; font-family: var(--display); font-size: 34px; color: var(--gold); }
.stat span { font-size: 13px; color: rgba(246, 241, 223, 0.7); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  margin-bottom: 16px;
}
.step-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(82%) sepia(38%) saturate(700%) hue-rotate(6deg) brightness(104%) contrast(94%);
}
.step-icon span {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.step h3 { margin: 8px 0 8px; font-size: 22px; }

.chart-frame {
  position: relative;
  height: 620px;
  background: var(--ink-2);
  clip-path: var(--facet);
  box-shadow: 14px 16px 0 rgba(20, 24, 31, 0.18);
  overflow: hidden;
}
.chart-frame iframe { width: 100%; height: 100%; border: 0; }
.frame-corners::before, .frame-corners::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}
.frame-corners::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame-corners::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.chart-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.billboard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  clip-path: var(--facet);
  box-shadow: 16px 18px 0 rgba(20, 24, 31, 0.28);
}
.billboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.billboard figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 28px;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 31, 0.82));
  color: #fff;
}
.billboard h3 { font-size: clamp(26px, 4vw, 44px); margin: 4px 0 6px; }
.billboard p { max-width: 480px; }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.join-actions .facet-btn {
  padding: 10px 14px;
  gap: 10px;
}
.join-actions .facet-btn img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.foot {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 36px 0 22px;
}
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.foot .nav-brand strong { color: #fff; }
.foot-links { display: flex; gap: 10px; }
.foot-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(232, 197, 71, 0.12);
  color: var(--gold);
  clip-path: var(--facet);
}
.foot-links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(82%) sepia(38%) saturate(700%) hue-rotate(6deg) brightness(104%) contrast(94%);
}
.legal { text-align: center; margin-top: 22px; font-size: 12px; color: rgba(246, 241, 223, 0.5); }

/* motion */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(-0.4deg);
  animation: rise 0.8s ease forwards;
}
.delay { animation-delay: 0.12s; }
.delay2 { animation-delay: 0.22s; }
.delay3 { animation-delay: 0.32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .about-panel, .steps, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-stage { min-height: 380px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(246, 241, 223, 0.95);
    clip-path: var(--facet);
    flex-direction: column;
  }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .nav-end .facet-btn { display: none; }
  .chart-frame { height: 460px; }
}

@media (max-width: 640px) {
  .ca-box { grid-template-columns: 1fr; }
  .title-gold { font-size: 54px; }
  .billboard figcaption {
    position: static;
    padding: 20px 16px 8px;
    background: rgba(20, 24, 31, 0.88);
    color: #fff;
  }
}
