@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #f8eeee;
  --dim: rgba(248, 238, 238, .76);
  --line: rgba(255, 255, 255, .16);
  --r: 10px;
  --pad: clamp(1rem, 4vw, 3rem);
  --maxw: 68rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: #120a0a;
}

body {
  margin: 0;
  background: #140b0b;
  color: var(--paper);
  font-family: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -30% -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 40% at 16% 20%, rgba(255, 0, 0, .55), rgba(255, 0, 0, 0) 62%),
    radial-gradient(42% 44% at 80% 28%, rgba(255, 20, 147, .5), rgba(255, 20, 147, 0) 60%),
    radial-gradient(48% 46% at 52% 88%, rgba(255, 0, 0, .3), rgba(255, 20, 147, 0) 66%);
  filter: blur(72px) saturate(1.35);
  animation: drift 11s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.12); }
}

.frame {
  position: relative;
  z-index: 1;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mast {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 11, 11, .55);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--paper);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--pink), var(--red));
  box-shadow: 0 0 18px rgba(255, 20, 147, .8);
}

.finder {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.finder:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 20, 147, .18);
}

.finder-in {
  width: clamp(4.5rem, 24vw, 11rem);
  min-height: 40px;
  padding: 0 .8rem;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: .95rem;
}

.finder-in::placeholder { color: rgba(248, 238, 238, .55); }
.finder-in:focus { outline: none; }

.finder-btn {
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
  background: rgba(22, 12, 12, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail-list {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: .55rem var(--pad);
  list-style: none;
}

.rail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(248, 238, 238, .86);
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.rail-list a:hover,
.rail-list a[aria-current] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(100deg, rgba(255, 0, 0, .88), rgba(255, 20, 147, .88));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
  min-height: 100svh;
  padding: clamp(1rem, 3vw, 2rem) var(--pad) clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 42vh;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #1c0f12;
  isolation: isolate;
}

.aura {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(40% 40% at 30% 30%, var(--red), transparent 60%),
    radial-gradient(45% 45% at 70% 62%, var(--pink), transparent 62%),
    conic-gradient(from 210deg, rgba(255, 20, 147, .7), rgba(255, 0, 0, .65), rgba(255, 20, 147, .7));
  filter: blur(30px) saturate(1.4);
  mix-blend-mode: screen;
  animation: morph 10s ease-in-out infinite alternate;
}

@keyframes morph {
  from { transform: rotate(0deg) scale(1); border-radius: 42% 58% 55% 45%; }
  to { transform: rotate(16deg) scale(1.22); border-radius: 58% 42% 44% 56%; }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  mix-blend-mode: screen;
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 1.1rem;
  text-align: right;
  padding-block: clamp(1rem, 4vw, 2rem);
}

.hero-h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  background: linear-gradient(200deg, #ffffff 28%, var(--pink) 68%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0;
  max-width: 34ch;
  color: var(--dim);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.78;
}

.hero-tag {
  position: absolute;
  left: calc(var(--pad) + 1rem);
  bottom: clamp(2rem, 6vw, 4rem);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(20, 11, 11, .55);
  backdrop-filter: blur(10px);
  font-size: .85rem;
  letter-spacing: .14em;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .35; transform: scale(.78); }
}

.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.doc > section {
  padding-block: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.doc > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.doc small {
  display: block;
  margin-bottom: .5rem;
  color: var(--pink);
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.doc h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.doc h3 {
  margin: 1.8rem 0 .6rem;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.doc p,
.doc li { color: var(--dim); line-height: 1.85; }

.doc p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.doc ul,
.doc ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.doc li { margin-bottom: .4rem; }

.doc strong { color: #fff; }

.doc a {
  color: #ffa8cf;
  text-underline-offset: 3px;
}

.doc figure { margin: 1.5rem 0; }

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

.doc blockquote {
  margin: 1.4rem 0;
  padding: .2rem 1.1rem;
  border-left: 3px solid var(--pink);
  color: var(--dim);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.doc th,
.doc td {
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  text-align: left;
}

.foot {
  padding: clamp(2rem, 6vw, 4rem) var(--pad) 1.5rem;
  border-top: 1px solid var(--line);
  background: radial-gradient(62% 100% at 50% 0%, rgba(255, 20, 147, .16), transparent 72%);
}

.foot-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: var(--pink);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.cta-h {
  margin: 0 0 1.6rem;
  font-size: clamp(1.9rem, 6.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-size: .92rem;
  text-decoration: none;
  transition: border-color .25s ease, color .25s ease;
}

.cta-links a:hover {
  border-color: var(--pink);
  color: #fff;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 2.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: rgba(248, 238, 238, .6);
  font-size: .85rem;
}

.foot-bar p { margin: 0; }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
}

.reveal .doc > section,
.reveal .foot section,
.reveal .hero-tag {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal .doc > section.in,
.reveal .foot section.in,
.reveal .hero-tag.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 94svh;
    gap: .9rem;
    padding-bottom: 2.5rem;
  }

  .hero-copy {
    order: 1;
    justify-items: start;
    text-align: left;
    padding-block: 1.5rem 0;
  }

  .hero-desc { max-width: 46ch; }

  .hero-art {
    order: 2;
    min-height: 40vh;
  }

  .hero-tag {
    position: static;
    order: 3;
    justify-self: start;
    letter-spacing: .1em;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .finder-in { width: 4.6rem; }

  .rail-list a { font-size: .88rem; }

  .cta-links a { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body::before,
  .aura,
  .tag-dot { animation: none; }

  .reveal .doc > section,
  .reveal .foot section,
  .reveal .hero-tag {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
