/* ==========================================================================
   $YK — LONG LIVE THE KING
   Modern tribute: near-black canvas, warm gold→coral glow, chunky display type.
   ========================================================================== */

:root {
  --ink:        #08070b;   /* page background          */
  --ink-2:      #100e16;   /* raised surfaces          */
  --ink-3:      #17141f;   /* borders / hairlines      */
  --gold:       #ffc857;   /* primary warm accent      */
  --coral:      #ff6b4a;   /* secondary accent         */
  --violet:     #7c5cff;   /* cool counterweight       */
  --white:      #f7f4ef;
  --dim:        #9d97a8;

  --font-display: "Anton", system-ui, sans-serif;
  --font-body:    "Sora", system-ui, sans-serif;
  --font-script:  "Caveat", cursive;

  --grad-warm: linear-gradient(105deg, var(--gold) 0%, var(--coral) 60%, #ff9a8b 100%);
  --glow-gold: 0 0 40px rgba(255, 200, 87, .28);
  --radius:    18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   ATMOSPHERE — drifting glow orbs + film grain
   ========================================================================== */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.orb--gold   { width: 46vw; height: 46vw; top: -12vw;  left: -8vw;  background: rgba(255, 200, 87, .45);  animation: drift-a 24s ease-in-out infinite; }
.orb--coral  { width: 38vw; height: 38vw; top: 38vh;   right: -10vw; background: rgba(255, 107, 74, .35); animation: drift-b 30s ease-in-out infinite; }
.orb--violet { width: 42vw; height: 42vw; bottom: -14vw; left: 22vw; background: rgba(124, 92, 255, .28); animation: drift-c 36s ease-in-out infinite; }

@keyframes drift-a { 50% { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate(-7vw, -8vh) scale(1.18); } }
@keyframes drift-c { 50% { transform: translate(5vw, -6vh) scale(.9); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1) var(--d, 0s),
              transform .8s cubic-bezier(.2,.7,.3,1) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .marquee__track, .hero__title--glow,
  .hero__portrait, .hero__portrait-crown, .candle__flame { animation: none !important; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3.5rem);
  background: rgba(8, 7, 11, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-3);
}
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: var(--white);
  text-decoration: none;
}
.nav__brand img { width: 30px; }
.nav__links { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; }
.nav__links a {
  color: var(--dim);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  transition: color .25s;
}
.nav__links a:hover { color: var(--gold); }

/* X / Twitter follow pill in the nav */
.nav__x {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .8rem;
  border: 1px solid var(--ink-3);
  border-radius: 100px;
  color: var(--white) !important;
  background: rgba(255, 255, 255, .03);
  transition: border-color .25s, color .25s, background .25s;
}
.nav__x:hover { border-color: var(--gold); color: var(--gold) !important; background: rgba(255, 200, 87, .07); }
.nav__x svg { flex-shrink: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(4rem, 13vh, 9rem) 1.5rem clamp(3rem, 8vh, 5rem);
}
/* hero portrait — the King, first thing you see */
.hero__portrait {
  position: relative;
  width: clamp(190px, 26vw, 290px);
  aspect-ratio: 1;
  margin: 0 auto 2.2rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--grad-warm);
  box-shadow: 0 0 70px rgba(255, 160, 80, .45), 0 24px 60px rgba(0, 0, 0, .65);
  animation: halo 5.5s ease-in-out infinite;
}
/* round window that crops the square photo in on his face */
.hero__portrait-clip {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--ink-2);
}
.hero__portrait-clip img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transform-origin: center 42%;
}
.hero__portrait-crown {
  position: absolute;
  top: -22%; left: 50%;
  width: 34%; height: auto;
  transform: translateX(-50%) rotate(-14deg);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6));
  border: none !important;
  animation: crown-bob 4.5s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { box-shadow: 0 0 70px rgba(255, 160, 80, .45), 0 24px 60px rgba(0, 0, 0, .65); }
  50%      { box-shadow: 0 0 100px rgba(255, 160, 80, .62), 0 24px 60px rgba(0, 0, 0, .65); }
}
@keyframes crown-bob {
  0%, 100% { transform: translateX(-50%) rotate(-14deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(-10deg) translateY(-7px); }
}

.hero__eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .42em; text-indent: .42em;
  color: var(--dim);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: .84;
  letter-spacing: -.01em;
  margin: 1.2rem 0 .4rem;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title--glow {
  background: var(--grad-warm);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 46px rgba(255, 160, 80, .35));
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 50% { background-position: 100% center; } }

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: var(--gold);
  transform: rotate(-2.5deg);
  margin-bottom: 1.8rem;
}
.hero__tagline { color: var(--dim); max-width: 46ch; margin: 0 auto 2.4rem; }
.hero__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border-radius: 100px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn--sm { font-size: .68rem; padding: .7rem 1.3rem; }
.btn--solid {
  background: var(--grad-warm);
  color: #1a0f06;
  box-shadow: var(--glow-gold);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 0 55px rgba(255, 160, 80, .5); }
.btn--ghost {
  border: 1px solid var(--ink-3);
  color: var(--white);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
  background: rgba(255, 200, 87, .035);
  padding: .85rem 0;
}
.marquee__track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: slide 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .18em;
  color: var(--gold);
  opacity: .85;
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.wrap {
  position: relative; z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7rem) 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 2.4rem;
}
.section-title__num {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--coral);
  vertical-align: middle;
  margin-right: .9rem;
  padding: .3rem .7rem;
  border: 1px solid var(--ink-3);
  border-radius: 100px;
}
.section-sub { color: var(--dim); margin: -1.6rem 0 2.4rem; }

/* ---- tribute prose ------------------------------------------------------ */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.3rem; color: #cfc9d6; }
.prose__lead {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 400;
  color: var(--white) !important;
  line-height: 1.5;
}
.prose__close {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .06em;
  color: var(--gold) !important;
  margin-top: 2.2rem;
}

/* ---- the man ------------------------------------------------------------ */
.king-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.4rem; align-items: start; }

.king-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.king-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(255, 107, 74, .16) 100%);
  pointer-events: none;
}
.king-photo:hover { transform: translateY(-6px); }
.king-photo img { display: block; width: 100%; }
.king-photo figcaption {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--gold);
  text-align: center;
  padding: .7rem;
  position: relative; z-index: 1;
}

.king-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 2rem;
}
.king-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .02em;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.king-card__alias { color: var(--dim); font-size: .95rem; margin: .2rem 0 1.2rem; }
.king-card p { color: #cfc9d6; margin-bottom: 1rem; font-size: .98rem; }
.king-card__links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

.pullquote {
  margin-top: 3rem;
  text-align: center;
  padding: 2.4rem 1.5rem;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
}
.pullquote p {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1.45;
}
.pullquote cite { display: block; margin-top: 1rem; font-size: .85rem; color: var(--dim); font-style: normal; letter-spacing: .1em; }

/* ---- video -------------------------------------------------------------- */
.video-frame {
  display: flex;
  justify-content: center;
  padding: 1.6rem;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  min-height: 260px;
}
.video-frame .tiktok-embed { margin: 0 auto !important; max-width: 605px; min-width: 280px; }

/* ---- candles ------------------------------------------------------------ */
.candle-wall {
  display: flex; flex-wrap: wrap; gap: 1.05rem;
  justify-content: center; align-items: flex-end;
  min-height: 130px;
  padding: 2.2rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 160, 60, .1), transparent 70%),
    var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .3s;
}
.candle-wall:hover, .candle-wall:focus-visible { border-color: rgba(255, 200, 87, .4); outline: none; }
.candle { width: 16px; display: flex; flex-direction: column; align-items: center; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(0) translateY(8px); } to { transform: scale(1) translateY(0); } }
.candle__flame {
  width: 9px; height: 15px;
  background: radial-gradient(ellipse at 50% 80%, #fff3cf 0%, var(--gold) 45%, var(--coral) 72%, transparent 80%);
  border-radius: 50% 50% 35% 35%;
  filter: drop-shadow(0 0 7px rgba(255, 160, 60, .85));
  animation: flicker 1.7s ease-in-out infinite;
}
.candle:nth-child(3n) .candle__flame { animation-delay: .45s; }
.candle:nth-child(5n) .candle__flame { animation-delay: .9s; }
@keyframes flicker {
  0%, 100% { transform: scaleY(1) translateX(0); opacity: 1; }
  32%      { transform: scaleY(.85) translateX(-.5px); opacity: .9; }
  64%      { transform: scaleY(1.1) translateX(.5px); }
}
.candle__body { width: 7px; height: 24px; border-radius: 2px; background: linear-gradient(180deg, #efe7d8, #b9ac97); }
.candles__count { text-align: center; margin-top: 1.4rem; color: var(--dim); font-size: .9rem; letter-spacing: .06em; }
.candles__count span { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); }

/* ---- token -------------------------------------------------------------- */
.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.token-stat {
  text-align: center;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 2rem 1.1rem;
  transition: transform .3s ease, border-color .3s ease;
}
.token-stat:hover { transform: translateY(-4px); border-color: rgba(255, 200, 87, .35); }
.token-stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.token-stat__label { margin-top: .6rem; font-size: .78rem; letter-spacing: .1em; color: var(--dim); line-height: 1.6; }

.contract {
  text-align: center;
  border: 1px dashed var(--ink-3);
  border-radius: var(--radius);
  padding: 1.7rem;
  background: rgba(255, 255, 255, .015);
}
.contract__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em; text-indent: .3em;
  color: var(--dim);
  margin-bottom: .9rem;
}

/* click-to-copy address pill */
.contract__ca {
  display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  font: inherit;
  background: rgba(255, 200, 87, .06);
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.contract__ca:hover, .contract__ca:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 200, 87, .1);
  outline: none;
}
.contract__addr {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(.72rem, 2.1vw, .9rem);
  color: var(--gold);
  word-break: break-all;
  text-align: left;
}
.contract__copy {
  flex-shrink: 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
  background: var(--grad-warm);
  border-radius: 100px;
  padding: .34rem .8rem;
}
.contract__ca.is-copied .contract__copy { background: #4ade80; }

.contract__actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.3rem; }
.contract small { display: block; margin-top: 1.2rem; color: var(--dim); font-size: .85rem; line-height: 1.7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative; z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  border-top: 1px solid var(--ink-3);
}
.footer__crown { width: 46px; opacity: .9; }
.footer__long {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  letter-spacing: .18em; text-indent: .18em;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: .8rem 0 1.8rem;
}
.footer__links { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.footer small { color: var(--dim); font-size: .8rem; line-height: 1.9; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 820px) {
  .king-grid { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .nav { position: relative; }
  .nav__links { gap: 1.1rem; }
}
