/* capes.pro - the coming-soon page (templates/soon.html). Stands alone. */
:root {
  --bg: #050505;
  --text: #fff;
  --muted: rgba(255, 255, 255, .58);
  --primary: #7DF241;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .44, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.soon { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; }

/* the sky: a lime wash from the top, and a slow pixel grid */
.soon-sky { position: absolute; inset: 0; pointer-events: none; }
.soon-sky::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(125, 242, 65, .16), transparent 70%);
}
.soon-sky::after {
  content: ''; position: absolute; inset: -32px;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000, transparent 75%);
  animation: grid-pan 14s linear infinite;
}
@keyframes grid-pan { to { transform: translate(32px, 32px); } }

/* the words */
.soon-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  padding: 13vh 1.5rem 0; text-align: center;
}
.soon-copy > * { animation: rise .9s var(--ease) both; }
.soon-copy > :nth-child(2) { animation-delay: .08s; }
.soon-copy > :nth-child(3) { animation-delay: .16s; }
.soon-copy > :nth-child(4) { animation-delay: .24s; }
.soon-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.soon-brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.9rem; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(2, 10px); grid-auto-rows: 10px; gap: 2px; }
.brand-mark i { border-radius: 2px; background: var(--primary); }
.brand-mark i:nth-child(2) { opacity: .55; }
.brand-mark i:nth-child(3) { opacity: .3; }
.brand-mark i:nth-child(4) { opacity: .8; }
.brand-tld { color: var(--primary); }

.soon-pill {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 2.5rem; padding: .45rem .9rem;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .8); font-family: 'Silkscreen', ui-monospace, monospace; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.soon-dot { width: 7px; height: 7px; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.soon h1 {
  max-width: 15ch; margin: 1.25rem 0 0; font-size: clamp(2.3rem, 6.2vw, 4.1rem); line-height: 1.04;
  font-weight: 700; letter-spacing: -.04em;
}
.soon h1 .accent { color: var(--primary); }
.soon-copy p { max-width: 30rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.soon-btn {
  margin-top: 1.75rem; padding: .8rem 1.4rem; border-radius: 999px; background: var(--primary); color: #061000;
  font-weight: 700; text-decoration: none; transition: transform .4s var(--spring), background .2s;
}
.soon-btn:hover { background: #98F766; transform: translateY(-2px); }

/* the capes, standing in a row along the bottom edge on a pixel floor */
.soon-lineup {
  position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: .25rem;
  width: 100%; max-width: 1040px; margin: auto auto 0; padding: 3rem 1rem 0; list-style: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.soon-lineup::before {
  content: ''; position: absolute; left: -15%; right: -15%; bottom: 0; height: 200px; z-index: -1;
  background:
    linear-gradient(rgba(125, 242, 65, .1) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(125, 242, 65, .1) 1px, transparent 1px) 0 0 / 40px 40px;
  transform: perspective(480px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 50% 100%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 90% at 50% 100%, #000 25%, transparent 75%);
}
.soon-player {
  position: relative; display: flex; flex-direction: column; align-items: center; flex: 1 1 0; max-width: 240px; min-width: 0;
  animation: stand-up 1.1s var(--spring) both; animation-delay: calc(.45s + var(--i) * .12s);
}
@keyframes stand-up { from { opacity: 0; transform: translateY(70px); } }
.soon-player::before {                               /* each cape's own colour, pooled at its feet */
  content: ''; position: absolute; left: 50%; bottom: 34px; width: 170px; height: 40px; margin-left: -85px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #7DF241) 50%, transparent), transparent);
  filter: blur(6px); opacity: .75;
}
.mc-stage--soon {
  position: relative; display: grid; place-items: center; width: 100%; height: 330px; overflow: hidden;
}
.mc-stage--soon canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s var(--ease); }
.mc-stage--soon.is-live canvas { opacity: 1; }
.soon-name {
  position: relative; padding-bottom: 1.4rem; color: rgba(255, 255, 255, .55);
  font-family: 'Silkscreen', ui-monospace, monospace; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}

/* the still cape, until the player has drawn (and for good without WebGL) */
.cape-flat {
  --s: 9px;
  display: block; width: calc(var(--s) * 10); height: calc(var(--s) * 16);
  background: var(--tex) calc(var(--s) * -1) calc(var(--s) * -1) / calc(var(--s) * 64) calc(var(--s) * 32) no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 2px;
}
.mc-stage.is-live > .mc-fallback { display: none; }

@media (max-width: 760px) {
  .soon-copy { padding-top: 10vh; }
  .soon-lineup { gap: 0; padding-inline: 0; }
  .mc-stage--soon { height: 230px; }
  .soon-player::before { width: 110px; margin-left: -55px; bottom: 30px; }
  .cape-flat { --s: 6px; }
}
@media (max-width: 420px) {
  .soon-player:nth-child(n + 4) { display: none; }   /* three across on a phone */
}
@media (prefers-reduced-motion: reduce) {
  .soon-sky::after, .soon-dot, .soon-copy > *, .soon-player { animation: none; }
}
