:root {
  --sky: #5aa3d4;
  --sky-deep: #3d86b6;
  --sky-ink: #24587a;
  --cream: #f3e6c6;
  --cream-hot: #fff4dc;
  --ivory: #fbf6ea;
  --navy: #1c3850;
  --ink: #162433;
  --crimson: #c41e3a;
  --crimson-deep: #8e1026;
  --hound: #1f1f1f;
  --suit: #2a2a2a;
  --line: rgba(243, 230, 198, 0.28);
  --shadow: 0 28px 70px rgba(16, 36, 54, 0.28);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --hound-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%231f1f1f' d='M0 0h14v14H0zm14 14h14v14H14z'/%3E%3Cpath fill='%231f1f1f' d='M14 0c0 7.7 6.3 14 14 14v-7c-3.9 0-7-3.1-7-7H14zM0 14c0 7.7 6.3 14 14 14v-7c-3.9 0-7-3.1-7-7H0z'/%3E%3Cpath fill='%23f3e6c6' d='M14 14c0-7.7-6.3-14-14-14v7c3.9 0 7 3.1 7 7h7zm14 14c0-7.7-6.3-14-14-14v7c3.9 0 7 3.1 7 7h7z'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--cream);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(255, 246, 226, 0.2), transparent 55%),
    radial-gradient(900px 600px at 110% 8%, rgba(196, 30, 58, 0.12), transparent 50%),
    linear-gradient(180deg, #6bb0db 0%, var(--sky) 28%, #4e97c8 72%, #3e87b7 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 20%),
    rgba(255, 244, 220, 0.14),
    transparent 42%
  );
  mix-blend-mode: soft-light;
}

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

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

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

::-webkit-scrollbar-track {
  background: #3d86b6;
}

::-webkit-scrollbar-thumb {
  background: var(--cream);
  border: 2px solid #3d86b6;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grain,
.vignette,
.halo {
  position: absolute;
  inset: 0;
}

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

.vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(18, 38, 56, 0.28) 100%);
}

.halo {
  border: 1px solid rgba(243, 230, 198, 0.16);
  border-radius: 50%;
  width: min(72vw, 760px);
  height: min(72vw, 760px);
  top: 8%;
  left: 6%;
  animation: halo-drift 22s ease-in-out infinite;
}

.halo-b {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  top: auto;
  bottom: 8%;
  left: auto;
  right: -6%;
  animation-duration: 28s;
  animation-direction: reverse;
}

.halo-c {
  width: min(30vw, 280px);
  height: min(30vw, 280px);
  top: 42%;
  left: 58%;
  animation-duration: 16s;
}

.corner {
  position: absolute;
  width: 132px;
  height: 132px;
  background-image: var(--hound-tile);
  background-size: 18px 18px;
  opacity: 0.88;
  animation: hound-creep 18s linear infinite;
}

.corner-tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-tr {
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner-bl {
  bottom: 0;
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.corner-br {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.masthead,
main,
footer {
  position: relative;
  z-index: 1;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(42, 107, 148, 0.42);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 0.4s ease, padding 0.4s ease;
}

.masthead.tight {
  padding-block: 10px;
  background: rgba(28, 72, 104, 0.78);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.25);
}

.wordmark em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.wordmark small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  opacity: 0.72;
}

.lane {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
}

.lane a {
  position: relative;
  opacity: 0.86;
}

.lane a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.35s ease;
}

.lane a:hover {
  opacity: 1;
}

.lane a:hover::after {
  width: 100%;
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link,
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.text-cta {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(243, 230, 198, 0.4);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(22, 36, 51, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(22, 36, 51, 0.24);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

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

.ico,
.mark {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.ico {
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.mark {
  object-fit: contain;
}

.ico-x {
  -webkit-mask-image: url("../assets/icons/x.svg");
  mask-image: url("../assets/icons/x.svg");
}

.ico-dex {
  -webkit-mask-image: url("../assets/icons/dexscreener.svg");
  mask-image: url("../assets/icons/dexscreener.svg");
}

.ico-jup {
  -webkit-mask-image: url("../assets/icons/jupiter.svg");
  mask-image: url("../assets/icons/jupiter.svg");
}

.ico-sol {
  -webkit-mask-image: url("../assets/icons/solana.svg");
  mask-image: url("../assets/icons/solana.svg");
}

.hero {
  padding: 48px 28px 0;
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
}

.spine {
  position: absolute;
  top: 120px;
  right: 18px;
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.45;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  flex: 1;
}

.portrait {
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit,
.orbit-slow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(243, 230, 198, 0.45);
  animation: spin 28s linear infinite;
}

.orbit-slow {
  inset: -6%;
  border-style: solid;
  border-color: rgba(196, 30, 58, 0.28);
  animation-duration: 48s;
  animation-direction: reverse;
}

.cameo {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid var(--cream);
  box-shadow:
    0 0 0 12px rgba(31, 31, 31, 0.15),
    var(--shadow);
  animation: float-cameo 6.5s ease-in-out infinite;
}

.cameo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out 1.4s infinite;
}

.portrait figcaption {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  opacity: 0.82;
}

.kicker,
.dossier-label,
.monitor-bar,
.fine,
.symbol {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.74rem;
  color: var(--cream-hot);
}

.hero-copy h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero-copy h1 {
  font-size: clamp(4.6rem, 11vw, 8.4rem);
  text-shadow: 0 18px 40px rgba(20, 44, 66, 0.25);
}

.symbol {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ivory);
}

.lede {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.lede span {
  display: block;
}

.pill-short {
  display: none;
}

.body-line {
  max-width: 38ch;
  opacity: 0.88;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 28px 0 8px;
}

.ca-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(22, 36, 51, 0.22);
}

.ca-bar span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.ca-bar code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.copy-ca {
  padding: 6px 12px;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-ca:hover {
  background: var(--cream);
  color: var(--navy);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.facts div {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.64;
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.ticker {
  margin: 48px -28px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(28, 56, 80, 0.18);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

.ticker-track i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  display: inline-block;
}

.about,
.howtobuy,
.chart,
.joinus {
  padding: 96px 28px;
}

.section-rule {
  height: 8px;
  margin: 0 auto 56px;
  max-width: 1180px;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 3px / 100% 2px no-repeat,
    linear-gradient(var(--crimson), var(--crimson)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--cream), var(--cream)) 0 6px / 100% 2px no-repeat;
  transform-origin: left;
  animation: rule-draw 1.2s ease both;
}

.about-wrap,
.buy-wrap,
.chart-wrap,
.join-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 16ch;
}

.section-note {
  max-width: 46ch;
  opacity: 0.82;
}

.about-grid,
.join-grid {
  display: grid;
  gap: 28px;
  margin-top: 42px;
}

.about-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.essay p {
  font-size: 1.12rem;
  max-width: 46ch;
}

.essay p + p {
  margin-top: 18px;
}

.dossier {
  padding: 28px 26px;
  background: var(--ivory);
  color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.dossier::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background-image: var(--hound-tile);
  background-size: 12px 12px;
}

.dossier-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  color: var(--crimson);
}

.dossier ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dossier li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(28, 56, 80, 0.12);
}

.dossier li span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.62;
}

.dossier li strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.agenda {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.agenda li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
  background: var(--ivory);
  color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.agenda li::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--navy));
}

.agenda li:hover {
  transform: translateY(-6px);
}

.roman {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--crimson);
  line-height: 1;
}

.agenda h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.agenda p {
  margin: 0 0 14px;
  opacity: 0.88;
}

.agenda a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--crimson-deep);
  border-bottom: 1px solid rgba(196, 30, 58, 0.28);
}

.agenda a img {
  width: 18px;
  height: 18px;
}

.monitor {
  margin-top: 36px;
  background: var(--navy);
  border: 1px solid rgba(243, 230, 198, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.monitor-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.68rem;
  background: #142838;
}

.monitor iframe {
  display: block;
  width: 100%;
  height: min(74vh, 720px);
  border: 0;
  background: #0d1117;
}

.plaque {
  margin: 36px 0 0;
  position: relative;
  overflow: hidden;
  border: 10px solid var(--cream);
  box-shadow:
    0 0 0 6px rgba(196, 30, 58, 0.18),
    var(--shadow);
}

.plaque img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: plaque-drift 18s ease-in-out infinite;
}

.join-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.join-card {
  display: grid;
  gap: 8px;
  padding: 28px 24px 28px 36px;
  background: var(--ivory);
  color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background-image: var(--hound-tile);
  background-size: 10px 10px;
}

.join-card .ico,
.join-card .mark {
  width: 28px;
  height: 28px;
}

.join-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.join-card em {
  font-style: normal;
  opacity: 0.66;
}

.join-card:hover {
  transform: translateY(-8px);
}

.colophon {
  padding: 48px 28px 36px;
  background: var(--navy);
  color: var(--cream);
  border-top: 10px solid transparent;
  border-image: var(--hound-tile) 12 repeat;
}

.colo-top {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.colo-top img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.colo-top strong,
.colo-top p {
  font-family: var(--font-display);
}

.colo-top span,
.colo-top p {
  display: block;
}

.colo-top p {
  margin: 0;
  font-style: italic;
}

.colo-links {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  opacity: 0.8;
}

.fine {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.7rem;
  opacity: 0.55;
}

.rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}

.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }

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

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

@keyframes halo-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.06); }
}

@keyframes hound-creep {
  from { background-position: 0 0; }
  to { background-position: 28px 28px; }
}

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

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

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes plaque-drift {
  0%, 100% { transform: scale(1.02) translateX(0); }
  50% { transform: scale(1.06) translateX(-1.2%); }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .agenda,
  .join-grid,
  .colo-top {
    grid-template-columns: 1fr;
  }

  .lane {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 24px 22px;
    flex-direction: column;
    background: rgba(28, 56, 80, 0.96);
  }

  .lane.open {
    display: flex;
  }

  .menu-btn {
    display: flex;
  }

  .spine {
    display: none;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .ghost-link,
  .wordmark small,
  .pill-full {
    display: none;
  }

  .pill-short {
    display: inline;
  }

  .wordmark em {
    font-size: 1rem;
  }

  .wordmark img {
    width: 38px;
    height: 38px;
  }

  .colo-top p {
    grid-column: 1 / -1;
  }
}

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

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