/* Sifu Waifu — sifuwaifu.xyz
   Palette and metrics taken verbatim from the Claude Design handoff
   (Sifu Waifu.dc.html). Breakpoints mirror the prototype's JS ones:
   narrow < 1060px, tight < 760px. */

:root {
  --cream: #FBF3EE;
  --cream-2: #FFF7F4;
  --ink: #17110F;
  --pink: #E0446B;
  --pink-deep: #B0455F;
  --pink-soft: #F9C6D2;
  --pink-mid: #F6A8B9;
  --seal: #C0243F;
  --ok-fg: #216E5A;
  --err-fg: #A82F4F;
  --serif: 'Shippori Mincho B1', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--cream); }
body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--ink); }
input, select, textarea, button { font-family: inherit; }
::selection { background: var(--pink-soft); color: var(--ink); }
img { display: block; }

@keyframes sw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 17, 15, 0.1);
}
.site-head__in {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  cursor: pointer; margin-right: auto; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; white-space: nowrap; }
.brand__face { font-family: var(--mono); font-size: 12px; color: var(--pink); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav__link {
  cursor: pointer; padding: 0 0 3px; border: 0; border-bottom: 2px solid transparent;
  background: none; font-size: 14px; font-weight: 500; color: var(--ink);
}
.nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--pink); }
.nav .nav__cta {
  cursor: pointer; background: var(--ink); color: var(--cream);
  padding: 10px 20px; border-radius: 999px; font-weight: 700;
  letter-spacing: 0.02em; border: none; font-size: 14px;
}
.nav .nav__cta:hover { background: var(--pink); color: var(--cream); }

/* ---------- buttons ---------- */

.btn {
  cursor: pointer; border: none; border-radius: 999px;
  font-weight: 700; font-size: 15px; display: inline-block; text-align: center;
}
.btn--pink {
  background: var(--pink); color: #fff; padding: 16px 30px;
  box-shadow: 0 10px 30px -12px rgba(224, 68, 107, 0.8);
}
.btn--pink:hover { background: var(--ink); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(23, 17, 15, 0.22); padding: 16px 30px; font-weight: 600;
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(23, 17, 15, 0.04); }
.btn--sm { padding: 14px 26px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }
.hero__dots {
  position: absolute; inset: 0; opacity: 0.9; pointer-events: none;
  background-image: radial-gradient(circle at 50% 100%, transparent 60%, rgba(240, 88, 122, 0.14) 61%, transparent 63%);
  background-size: 46px 46px;
}
.hero__glow {
  position: absolute; right: -140px; top: -120px; width: 620px; height: 620px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224, 68, 107, 0.22) 0%, rgba(224, 68, 107, 0.1) 45%, transparent 70%);
}
.hero__in {
  max-width: var(--wrap); margin: 0 auto; padding: 76px 28px 84px;
  position: relative; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 660px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--pink-deep);
}
.eyebrow__rule { width: 34px; height: 1px; background: var(--pink); display: block; }
.hero__title {
  font-family: var(--serif); font-weight: 800; font-size: 68px; line-height: 1.04;
  margin: 0; letter-spacing: -0.01em; text-wrap: balance;
}
.hero__title em { color: var(--pink); font-style: normal; }
.hero__lede { font-size: 17px; line-height: 1.75; margin: 0; max-width: 44ch; color: rgba(23, 17, 15, 0.78); }

.wl-pill {
  cursor: pointer; align-self: flex-start; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(224, 68, 107, 0.35);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.wl-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); display: block; }
.wl-pill__label { letter-spacing: 0.14em; text-transform: uppercase; color: rgba(23, 17, 15, 0.6); }
.wl-pill__time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wl-pill__go { background: var(--ink); color: var(--cream); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.wl-pill:hover .wl-pill__go { background: var(--pink); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 2px; }

.stats {
  display: flex; gap: 36px; padding-top: 16px; margin-top: 6px;
  border-top: 1px solid rgba(23, 17, 15, 0.12); font-family: var(--mono);
}
.stats__n { font-size: 26px; font-weight: 700; }
.stats__k { font-size: 11px; letter-spacing: 0.14em; color: rgba(23, 17, 15, 0.5); text-transform: uppercase; }

.hero__artwrap { width: 100%; }
.hero__art { position: relative; width: 480px; max-width: 100%; height: 480px; margin: 0 auto; }
.hero__disc {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 360px; height: 360px; border-radius: 50%; background: var(--pink-mid); opacity: 0.85;
}
.hero__ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 424px; height: 424px; border-radius: 50%; border: 1px dashed rgba(23, 17, 15, 0.18);
}
.card-a { position: absolute; left: 0; top: 24px; width: 216px; transform: rotate(-8deg); }
.card-a > div {
  border-radius: 18px; overflow: hidden; border: 4px solid var(--cream);
  box-shadow: 0 30px 50px -24px rgba(23, 17, 15, 0.45);
  animation: sw-float 7s ease-in-out infinite;
}
.card-b { position: absolute; right: 0; top: 0; width: 196px; transform: rotate(7deg); }
.card-b > div {
  border-radius: 18px; overflow: hidden; border: 4px solid var(--cream);
  box-shadow: 0 26px 44px -22px rgba(23, 17, 15, 0.4);
  animation: sw-float 8.5s ease-in-out infinite;
}
.card-c {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-2deg);
  width: 246px; border-radius: 20px; overflow: hidden; border: 5px solid var(--cream);
  box-shadow: 0 40px 60px -26px rgba(23, 17, 15, 0.5);
}
.card-a img, .card-b img, .card-c img { width: 100%; height: auto; }
.hero__seal {
  position: absolute; left: 2px; bottom: 92px; width: 58px; height: 58px;
  border-radius: 10px; background: var(--seal); color: #FFE9EE;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  transform: rotate(-8deg); box-shadow: 0 14px 24px -12px rgba(192, 36, 63, 0.7);
}
.hero__vtext {
  position: absolute; right: 4px; bottom: 40px;
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.3em;
  color: rgba(23, 17, 15, 0.55); writing-mode: vertical-rl;
}

/* ---------- marquee ---------- */

.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 16px 0; }
.marquee__track {
  display: flex; width: 200%; animation: sw-marquee 34s linear infinite;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
}
.marquee__half { display: flex; gap: 34px; width: 50%; flex-shrink: 0; }
.marquee__half i { color: var(--pink); font-style: normal; }

/* ---------- feature rows ---------- */

.rows { max-width: var(--wrap); margin: 0 auto; padding: 96px 28px 40px; display: flex; flex-direction: column; gap: 96px; }
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.row--flip { grid-template-columns: 1fr 1.15fr; }
.row__shot {
  border-radius: 24px; overflow: hidden; border: 1px solid rgba(23, 17, 15, 0.1);
  box-shadow: 0 40px 70px -34px rgba(23, 17, 15, 0.4); position: relative;
}
.row__shot img { width: 100%; height: auto; }
.row__tag {
  position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px;
  background: rgba(251, 243, 238, 0.92); padding: 6px 12px; border-radius: 999px;
}
.row__copy { display: flex; flex-direction: column; gap: 14px; }
.row__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink); }
.row__copy h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.15; margin: 0; }
.row__copy p { margin: 0; font-size: 16px; line-height: 1.75; color: rgba(23, 17, 15, 0.75); }
.row__copy .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- dojo / team ---------- */

.dojo { background: var(--cream-2); border-top: 1px solid rgba(23, 17, 15, 0.08); border-bottom: 1px solid rgba(23, 17, 15, 0.08); }
.dojo__in { max-width: var(--wrap); margin: 0 auto; padding: 90px 28px; }
.dojo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.dojo__head h2 { font-family: var(--serif); font-weight: 700; font-size: 40px; margin: 0; }
.dojo__note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(23, 17, 15, 0.5); }
.dojo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { color: var(--ink); display: flex; flex-direction: column; gap: 16px; }
.member:hover { color: var(--ink); }
.member__shot {
  aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(23, 17, 15, 0.12); background: var(--pink-soft);
}
.member__shot img { width: 100%; height: 100%; object-fit: cover; }
.member:hover .member__shot { border-color: var(--pink); }
.member__name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.member__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-top: 4px; }
.member p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: rgba(23, 17, 15, 0.7); }

/* ---------- closing CTA ---------- */

.cta-sec { max-width: var(--wrap); margin: 0 auto; padding: 96px 28px 110px; }
.cta {
  background: var(--ink); border-radius: 28px; padding: 66px 56px; color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta__glow {
  position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 68, 107, 0.55), transparent 70%);
}
.cta__copy { position: relative; }
.cta__copy h2 { font-family: var(--serif); font-size: 38px; margin: 0 0 12px; }
.cta__copy p { margin: 0; font-size: 16px; color: rgba(251, 243, 238, 0.72); max-width: 48ch; }
.cta__btn { position: relative; background: var(--pink); color: #fff; padding: 18px 36px; font-size: 16px; }
.cta__btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- whitelist page ---------- */

.wl { max-width: 900px; margin: 0 auto; padding: 70px 28px 110px; }
.wl__head { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.wl__head h1 { font-family: var(--serif); font-weight: 800; font-size: 52px; margin: 0; line-height: 1.1; }
.wl__head p { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.7; color: rgba(23, 17, 15, 0.72); }
.wl__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-deep); }

.deadline {
  margin: 40px 0 44px; background: var(--cream-2); border: 1px solid rgba(224, 68, 107, 0.3);
  border-radius: 20px; padding: 26px 30px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.deadline__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(23, 17, 15, 0.55); }
.deadline__v { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: 4px; }
.deadline__clock { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--pink); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(23, 17, 15, 0.55); }
.task {
  background: #fff; border: 1px solid rgba(23, 17, 15, 0.12); border-radius: 18px;
  padding: 20px 22px; display: flex; align-items: center; gap: 20px;
}
.task__mark {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 15px; font-weight: 700; flex-shrink: 0;
  background: rgba(23, 17, 15, 0.07); color: rgba(23, 17, 15, 0.6);
}
.task__body { flex: 1; min-width: 0; }
.task__title { font-weight: 700; font-size: 16px; }
.task__hint { font-size: 13px; color: rgba(23, 17, 15, 0.6); margin-top: 3px; }
.task__btn {
  cursor: pointer; flex-shrink: 0; min-width: 128px; text-align: center; padding: 12px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--ink); color: var(--cream); border: 1.5px solid var(--ink);
}
.task--opened .task__btn { background: #fff; color: var(--ink); border-color: rgba(23, 17, 15, 0.25); }
.task--checking .task__btn { background: rgba(23, 17, 15, 0.06); color: rgba(23, 17, 15, 0.5); border-color: transparent; cursor: default; }
.task--checking .task__hint { color: rgba(23, 17, 15, 0.5); }
.task--error .task__btn { background: #fff; color: var(--err-fg); border-color: rgba(224, 68, 107, 0.55); }
.task--error .task__mark { background: rgba(224, 68, 107, 0.12); color: var(--err-fg); }
.task--error .task__hint { color: var(--err-fg); }
.task--done .task__btn { background: rgba(63, 168, 140, 0.14); color: var(--ok-fg); border-color: rgba(63, 168, 140, 0.5); cursor: default; }
.task--done .task__mark { background: rgba(63, 168, 140, 0.16); color: var(--ok-fg); }
.task--done .task__hint { color: var(--ok-fg); }

.wl-form { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  padding: 15px 18px; border-radius: 14px; border: 1.5px solid rgba(23, 17, 15, 0.18);
  background: #fff; font-size: 15px; color: var(--ink); outline: none; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--pink); }
.form-error {
  background: rgba(224, 68, 107, 0.1); border: 1px solid rgba(224, 68, 107, 0.4);
  color: var(--err-fg); border-radius: 14px; padding: 14px 18px; font-size: 14px;
}
.form-ok {
  background: rgba(63, 168, 140, 0.12); border: 1px solid rgba(63, 168, 140, 0.45);
  color: var(--ok-fg); border-radius: 14px; padding: 16px 18px; font-size: 15px; font-weight: 600;
}
.submit {
  margin-top: 4px; cursor: pointer; border: none; background: var(--ink); color: var(--cream);
  padding: 18px 28px; border-radius: 999px; font-size: 16px; font-weight: 700;
}
.submit:hover { background: var(--pink); }
.submit[disabled] { cursor: default; opacity: 0.55; background: var(--ink); }
.wl-form__fine { margin: 0; font-size: 13px; color: rgba(23, 17, 15, 0.5); text-align: center; }

/* ---------- gallery ---------- */

.gal { max-width: var(--wrap); margin: 0 auto; padding: 70px 28px 110px; }
.gal__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.gal__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-deep); }
.gal__head h1 { font-family: var(--serif); font-weight: 800; font-size: 52px; margin: 10px 0 0; line-height: 1.05; }
.gal__stats { display: flex; gap: 30px; font-family: var(--mono); }
.gal__stats .stats__n { font-size: 24px; }
.gal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nft { background: #fff; border: 1px solid rgba(23, 17, 15, 0.12); border-radius: 18px; overflow: hidden; }
.nft:hover { border-color: var(--pink); }
.nft__shot { aspect-ratio: 1 / 1; background: var(--pink-soft); }
.nft__shot img { width: 100%; height: 100%; object-fit: cover; }
.nft__meta { padding: 14px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nft__name { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.nft__id { font-family: var(--mono); font-size: 11px; color: rgba(23, 17, 15, 0.45); }
.nft--sealed { border-color: rgba(23, 17, 15, 0.1); position: relative; }
.nft--sealed .nft__shot { overflow: hidden; position: relative; }
.nft--sealed .nft__shot img { filter: blur(18px) saturate(0.8); transform: scale(1.2); }
.nft__seal {
  position: absolute; inset: 0; background: rgba(251, 243, 238, 0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
}
.nft__seal-glyph { font-family: var(--serif); font-size: 26px; color: rgba(23, 17, 15, 0.65); }
.nft__seal-txt { font-size: 12px; line-height: 1.5; font-weight: 600; color: rgba(23, 17, 15, 0.7); }
.nft--sealed .nft__name { color: rgba(23, 17, 15, 0.4); }
.nft--sealed .nft__id { color: rgba(23, 17, 15, 0.35); }
.gal__foot { margin-top: 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gal__foot p { margin: 0; font-size: 15px; color: rgba(23, 17, 15, 0.6); }

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: rgba(251, 243, 238, 0.7); padding: 44px 28px; }
.site-foot__in {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px;
}
.site-foot__brand { font-family: var(--serif); font-size: 18px; color: var(--cream); }
.site-foot__brand i { color: var(--pink); font-family: var(--mono); font-size: 12px; font-style: normal; }
.site-foot__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.site-foot a { color: var(--cream); }
.site-foot a:hover { color: var(--pink); }

/* ---------- responsive (narrow < 1060, tight < 760) ---------- */

@media (max-width: 1059px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .hero__title { font-size: 54px; }
  .row, .row--flip { grid-template-columns: 1fr; gap: 36px; }
  .row--flip .row__copy { order: 2; }
  .row--flip .row__shot { order: 1; }
  .gal__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 759px) {
  .hero__title { font-size: 42px; }
  .hero__in { padding-top: 56px; padding-bottom: 60px; }
  .dojo__grid { grid-template-columns: 1fr; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
  .rows { padding-top: 72px; gap: 72px; }
  .cta { padding: 44px 30px; }
  .cta__copy h2 { font-size: 30px; }
  .wl__head h1 { font-size: 38px; }
  .gal__head h1 { font-size: 40px; }
  .deadline__clock { font-size: 24px; }
  .site-head__in { gap: 12px; padding: 12px 20px; }
  .brand { gap: 7px; }
  .brand__name { font-size: 18px; }
  .brand__face { font-size: 10px; }
  .nav { gap: 14px; font-size: 13px; }
  .nav .nav__cta { padding: 9px 15px; font-size: 13px; white-space: nowrap; }
  .nav__hide { display: none; }
  .hero__in, .rows, .dojo__in, .cta-sec, .wl, .gal { padding-left: 20px; padding-right: 20px; }
  .task { flex-wrap: wrap; gap: 14px; }
  .task__body { flex: 1 1 100%; order: 2; }
  .task__btn { order: 3; margin-left: auto; }
}

/* Keep the layered hero collage intact on small screens by scaling it as a
   unit — the prototype positions the three cards absolutely inside 480x480. */
@media (max-width: 559px) {
  .hero__artwrap { height: 340px; overflow: hidden; }
  .hero__art { transform: scale(0.7); transform-origin: top center; width: 480px; max-width: none; margin-left: calc((100% - 480px) / 2); }
}
@media (max-width: 419px) {
  .hero__artwrap { height: 268px; }
  .hero__art { transform: scale(0.55); }
  .stats { gap: 22px; }
  .stats__n { font-size: 22px; }
  .brand__face { display: none; }
  .nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .card-a > div, .card-b > div { animation: none; }
}
