/* wikicards.co teaser: page layout on top of the WikiCards design system (wikicards.css). */
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
/* clip rather than hide: a clipped box can't be scrolled sideways when focus moves inside it */
.site { min-height: 100vh; overflow: clip; }
.site .rays { top: -120px; opacity: .8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
main { position: relative; z-index: 2; }
.site .h-display em { padding-right: .04em; }

/* nav */
.site-nav { position: relative; z-index: 5; max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav .logo { text-decoration: none; }
.site-nav__chip { text-decoration: none; color: var(--text); }

/* hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 48px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__chip { height: 32px; padding: 0 14px; gap: 10px; }
.hero__chip .mono { font-size: 11px; letter-spacing: .2em; color: var(--gold-2); text-transform: uppercase; }
.hero__sep { width: 1px; height: 12px; background: var(--line-2); }
.hero__title { margin-top: 28px; font-size: clamp(40px, 10.4vw, calc(104px * var(--ds))); }
.hero__lede { margin-top: 22px; max-width: 640px; }

/* waitlist form */
.join { position: relative; margin: 34px auto 0; width: 100%; max-width: 560px; }
.join__row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 70px -34px rgba(237,201,119,.45); transition: border-color .2s, box-shadow .2s; }
.join__row:focus-within { border-color: rgba(237,201,119,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 4px rgba(237,201,119,.12), 0 24px 70px -34px rgba(237,201,119,.55); }
.join__input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border: 0; background: none; color: var(--text); font: 500 16px/1 var(--sans); outline: none; }
.join__input::placeholder { color: var(--text-3); }
.join__btn { flex: none; height: 50px; }
.join__btn[disabled] { opacity: .7; cursor: progress; }
.join__hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.join__note { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.join__count:not(:empty)::before { content: " · "; }
.join__count { color: var(--text-2); }
.join__msg { margin: 8px 0 0; min-height: 20px; font-size: 14px; color: var(--text-2); }
.join__msg.is-error { color: var(--down); }
.join__done { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 22px 22px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(237,201,119,.1), rgba(237,201,119,.03)); border: 1px solid rgba(237,201,119,.3); }
.join.is-done .join__row, .join.is-done .join__note { display: none; }
.join.is-done .join__done { display: flex; }
.join__done-title { font-family: var(--serif); font-weight: 600; font-size: calc(30px * var(--ds)); letter-spacing: -.02em; line-height: 1.1; }
.join__done-title .num { color: var(--gold-2); }
.join__share { display: flex; gap: 8px; width: 100%; }
.join__share input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); color: var(--text-2); font: 500 13px/1 var(--mono); }
.join__share .btn { height: 44px; }
.join__done p { margin: 0; font-size: 13px; color: var(--text-2); }

/* hero fan of cards */
.fan { position: relative; width: 100%; max-width: 1180px; height: 560px; margin-top: 64px; pointer-events: none; }
.fan__inner { position: absolute; left: 50%; top: 0; height: 560px; transform-origin: 50% 0; }
.fan__card { position: absolute; top: 0; transform-origin: 50% 110%; pointer-events: auto; }
.fan::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -2px; height: 190px; background: linear-gradient(180deg, rgba(9,9,11,0), var(--bg) 82%); pointer-events: none; z-index: 8; }

/* section intro */
.section-intro { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.section-intro .h-display, .tear__title, .final .h-display { font-size: clamp(34px, 7vw, calc(72px * var(--ds))); }

/* tear demo */
.tear { max-width: 1240px; margin: 90px auto 0; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: 24px; }
.tear__copy { display: flex; flex-direction: column; gap: 18px; }
.tear__lede { font-size: 17px; }
.tear__fine { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.55; }
.tear__stage { position: relative; height: 720px; }
.td { position: absolute; inset: 0; --glow-rgb: 255 210 116; }
.td .pk2-pos { top: 50%; }
.td__card { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 10; }
.td__mv { position: absolute; left: 0; top: 0; will-change: transform, opacity; opacity: 0; }
.td__mv .wc { position: absolute; }
.td__halo { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 5; opacity: 0; transform: scale(.6);
  background: radial-gradient(closest-side, rgb(var(--glow-rgb) / .5), rgb(var(--glow-rgb) / .14) 55%, rgb(var(--glow-rgb) / 0)); transition: opacity .9s ease, transform 1.2s var(--ease); }
.td.is-revealed .td__halo { opacity: 1; transform: scale(1); }
.td__fx { position: absolute; left: 50%; top: 50%; pointer-events: none; z-index: 40; }
.td__hint { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; z-index: 30; transition: opacity .4s; }
.td.is-started .td__hint { opacity: 0; pointer-events: none; }
.td__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .7s var(--ease); pointer-events: none; }
.td.is-captioned .td__caption { opacity: 1; transform: none; pointer-events: auto; }
.td__name { font-family: var(--serif); font-weight: var(--dw); letter-spacing: var(--dls); font-size: calc(32px * var(--ds)); line-height: 1.05; text-align: center; }
.td__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.td__sound { position: absolute; top: 6px; right: 6px; z-index: 35; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: color .2s, background .2s, border-color .2s; }
.td__sound:hover { color: var(--text); background: rgba(255,255,255,.08); }
.td__sound:focus-visible { outline: 2px solid rgba(237,201,119,.7); outline-offset: 3px; }
.td__sound svg { width: 18px; height: 18px; }
.td__sound .off, .td__sound[aria-pressed="false"] .on { display: none; }
.td__sound[aria-pressed="false"] .off { display: inline; }
.td.glow--mythic .pk2__seam, .td.glow--mythic .pk2__spark { animation: hue-cycle 2.2s linear infinite; }
.td.glow--mythic .pk2__glowin { animation: hue-cycle-b3 2.2s linear infinite; }

/* tiers */
.tiers { max-width: 1240px; margin: 120px auto 0; padding: 0 24px; }
.tiers__row { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tier__card { position: relative; height: 300px; width: 214px; }
.tier__name { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tier__copies { font-family: var(--serif); font-size: calc(26px * var(--ds)); line-height: 1; }
.tier__copies small { font-family: var(--sans); font-size: 13px; color: var(--text-2); }

/* how it works */
.how { max-width: 1240px; margin: 120px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how__item { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.how__n { font-size: 11px; letter-spacing: .2em; color: var(--gold-2); }
.how__item h3 { margin: 0; font-family: var(--serif); font-weight: var(--dw); letter-spacing: var(--dls); font-size: calc(30px * var(--ds)); line-height: 1.05; }
.how__item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* final call */
.final { max-width: 760px; margin: 130px auto 0; padding: 0 24px; text-align: center; }

/* footer */
.site-foot { position: relative; z-index: 2; max-width: 760px; margin: 120px auto 0; padding: 40px 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border-top: 1px solid var(--line); }
.site-foot .logo { text-decoration: none; margin-bottom: 6px; }
.site-foot p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }

@media (max-width: 1020px) {
  .tiers__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 24px 18px; margin: 48px -24px 0; scrollbar-width: none; }
  .tiers__row::-webkit-scrollbar { display: none; }
  .tier { flex: none; scroll-snap-align: center; }
}
@media (max-width: 900px) {
  .tear { grid-template-columns: 1fr; text-align: center; margin-top: 70px; }
  .tear__copy { align-items: center; }
  .tear__stage { height: 640px; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav { padding: 16px; }
  .site-nav__chip span { font-size: 12px; }
  .hero { padding: 28px 16px 0; }
  .hero__chip { font-size: 12px; }
  .join__row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .join__input { width: 100%; height: 48px; text-align: center; }
  .join__btn { width: 100%; justify-content: center; }
  .fan { margin-top: 44px; }
  .tear, .tiers, .how, .final { padding-left: 16px; padding-right: 16px; }
  .tear__stage { height: 600px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* cards keep their own alignment inside centered sections */
.site .wc { text-align: left; }
