/* kPurr on Elysium — Anakin-inspired structure, teal/cyan from the source artwork. */
:root {
  --ink: #06141c;
  --ink-2: #0a1c26;
  --panel: #102833;
  --panel-2: #14303d;
  --line: rgba(94, 231, 255, 0.18);
  --cyan: #5ee7ff;
  --cyan-2: #9af3ff;
  --aqua: #3ad5c8;
  --gold: #e8c89a;
  --paper: #e8fbff;
  --muted: #9ec9d6;
  --dark: #06141c;
  --radius: 8px;
  --nav-h: 76px;
  --font: "Poppins", system-ui, sans-serif;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--ink); color: var(--paper); overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 1.04rem;
  line-height: 1.65;
  background:
    radial-gradient(700px 380px at 80% 8%, rgba(94, 231, 255, 0.12), transparent 60%),
    radial-gradient(560px 360px at 10% 90%, rgba(58, 213, 200, 0.08), transparent 62%),
    var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
button { font: inherit; }
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 80;
  background: var(--cyan); color: var(--dark); padding: 0.55rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 20, 28, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--paper);
  font-weight: 800; font-style: italic; letter-spacing: 0.06em;
}
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.brand em { font-style: italic; color: var(--cyan); font-size: 0.86em; }
.menu {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--paper);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu span { display: block; width: 18px; height: 1.5px; background: var(--paper); }
.menu-panel { display: flex; align-items: center; gap: 1.05rem; flex-wrap: wrap; }
.menu-panel a { text-decoration: none; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-style: italic; }
.menu-panel a:hover, .menu-panel a:focus-visible { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.2rem;
  border-radius: 6px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-weight: 800; font-style: italic;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem;
  transform: skewX(-6deg);
}
.btn span { display: inline-block; transform: skewX(6deg); }
.btn-cyan,
a.btn-cyan:link,
a.btn-cyan:visited,
a.btn-cyan:hover,
a.btn-cyan:active,
a.btn-cyan:focus,
.menu-panel a.btn-cyan,
.menu-panel .btn-cyan {
  background: var(--cyan);
  color: var(--dark);
  box-shadow: 0 0 18px #5ee7ff66;
}
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn.is-soon, span.btn-cyan.is-soon {
  cursor: not-allowed; opacity: 0.82;
  background: var(--cyan); color: var(--dark);
}
@media (hover: hover) and (pointer: fine) {
  .btn-cyan:hover, a.btn-cyan:hover { background: var(--cyan-2); color: var(--dark); }
  .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.hero { position: relative; z-index: 1; padding: 1.6rem 0 2rem; }
.hero-art {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  background: #041018;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px #5ee7ff22, var(--shadow);
}
.hero-art img {
  width: 100%; height: auto;
  aspect-ratio: 1200 / 1198;
  object-fit: contain;
  background: #0a2a38;
}
.hero-art figcaption,
.visual-frame figcaption,
.gallery-item span,
.lightbox figcaption {
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.72rem; font-weight: 700; font-style: italic;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero-copy { container-type: inline-size; min-width: 0; }
.badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; font-style: italic;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(94, 231, 255, 0.35);
  border-radius: 999px; padding: 0.35rem 0.75rem; margin: 0 0 1rem;
}
.hero h1 {
  font-weight: 900; font-style: italic;
  font-size: clamp(3.6rem, 22cqi, 8.2rem);
  line-height: 0.86; letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
  text-shadow: 0 0 28px #5ee7ff66;
}
.kicker {
  font-weight: 800; font-style: italic; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 0.9rem; font-size: 0.86rem;
}
.lede { max-width: 52ch; color: var(--paper); margin: 0 0 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.1rem; }
.hero-note {
  font-size: 0.72rem; font-weight: 700; font-style: italic;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

.section { position: relative; z-index: 1; padding: 4.2rem 0; border-top: 1px solid var(--line); }
.section h2 {
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 0.95; letter-spacing: 0.03em; margin: 0 0 0.9rem;
}
.section h2 em { color: var(--cyan); font-style: italic; }
.eyebrow {
  font-size: 0.74rem; font-weight: 800; font-style: italic;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin: 0 0 0.7rem;
}
.section-note { color: var(--muted); max-width: 62ch; margin: 0 0 1.8rem; }

.about-grid { display: grid; gap: 1.6rem; }
.quote {
  margin: 0 0 1.2rem; padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.quote p {
  font-weight: 900; font-style: italic; font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em; margin: 0 0 0.5rem; text-shadow: 0 0 18px #5ee7ff55;
}
.quote cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }
.note-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.35rem; box-shadow: var(--shadow);
  transform: skewX(-2deg);
}
.note-card > * { transform: skewX(2deg); }

.visual-frame {
  margin: 0;
  background: #041018;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.visual-frame img {
  width: 100%; height: auto;
  aspect-ratio: 1200 / 1198;
  object-fit: contain;
  background: #0a2a38;
}
.visual-frame figcaption a { color: var(--cyan); word-break: break-all; }
.visual-frame code { font-size: 0.85em; color: var(--gold); }

.x-embed {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
  min-height: 420px;
}
blockquote.twitter-tweet {
  width: min(550px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  background: #15202b;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--paper);
  box-shadow: var(--shadow);
}
blockquote.twitter-tweet p {
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
  text-shadow: 0 0 18px #5ee7ff55;
}
blockquote.twitter-tweet a { color: var(--cyan); }
.embed-fallback {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 0;
}
.x-embed iframe {
  max-width: 100%;
}

.gallery-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #041018;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0a2a38;
}
.gallery-item span {
  display: block;
  background: #041018;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 28px #5ee7ff33, var(--shadow);
  transform: translateY(-2px);
}
.gallery-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.lightbox {
  width: min(720px, calc(100% - 1.5rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #041018;
  color: var(--paper);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(4, 16, 24, 0.86);
  backdrop-filter: blur(10px);
}
.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #0a2a38;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(6, 20, 28, 0.88);
  color: var(--paper);
  font: 700 0.72rem/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: italic;
  cursor: pointer;
}
.lightbox-close { top: 0.7rem; right: 0.7rem; }
.lightbox-prev { left: 0.7rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.7rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.55rem;
    transform: none;
  }
  .lightbox figcaption { padding-bottom: 3.1rem; }
}
.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem; margin-bottom: 1.2rem;
}
.stat, .ca-box {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.stat.skew { transform: skewX(-2deg); }
.stat.skew > * { transform: skewX(2deg); }
.stat span, .ca-box span {
  display: block; font-size: 0.72rem; font-weight: 800; font-style: italic;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.stat strong {
  display: block;
  font-style: italic; font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: 0.03em;
}
.stat p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.95rem; }
.ca-box { display: grid; gap: 0.7rem; justify-items: start; }
.ca-box code {
  color: var(--cyan); font-size: 1.15rem; font-weight: 700;
  overflow-wrap: anywhere;
}

.chain-credit {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  margin-top: 0.4rem; color: var(--muted);
}
.chain-credit img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); }

.steps {
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.steps li {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; transform: skewX(-2deg);
}
.steps li > * { transform: skewX(2deg); }
.steps b { color: var(--cyan); font-style: italic; letter-spacing: 0.12em; }
.steps h3 { margin: 0.3rem 0 0.4rem; font-style: italic; text-transform: uppercase; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

.community p { max-width: 62ch; color: var(--paper); }

.foot {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3rem; color: var(--muted);
}
.foot-grid { display: grid; gap: 1.2rem; }
.foot img { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; }
.foot a { color: var(--cyan); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.fine { font-size: 0.85rem; }

@media (min-width: 700px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-art { width: min(560px, calc(100% - 2rem)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 2.5rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding-top: 2.4rem;
  }
  .hero-art { width: 100%; margin: 0; }
  .hero-copy.wrap { width: 100%; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.6rem; align-items: start; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .token .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu { display: flex; }
  .menu-panel {
    display: none;
    position: absolute; top: calc(100% + 0.4rem); right: 0; left: 0;
    flex-direction: column; align-items: stretch;
    padding: 0.9rem;
    background: rgba(10, 28, 38, 0.96);
    border: 1px solid var(--line); border-radius: 12px;
  }
  .nav.open .menu-panel { display: flex; }
  .menu-panel a, .menu-panel .btn { padding: 0.55rem 0.4rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero { padding-top: 1rem; }
  .hero-art { width: min(280px, 46vw); margin: 0 auto 1rem; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-loader, .page-loader-fill { transition: none; }
  .gallery-item { transition: none; }
}

/* keep section labels clear of the sticky header */
html{scroll-padding-top:96px}
section[id]{scroll-margin-top:96px}
