@font-face {
  font-family: "Source Han Sans SC";
  src: url("./assets/fonts/NotoSansSC-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7eff8;
  --text: #26336b;
  --deep: #331452;
  --muted: #736581;
  --card: #fff;
  --border: #d9d3de;
  --pink: #e052b1;
  --blue: #355caa;
  --orange: #f97a1f;
  --rose: #e44479;
  --purple: #663399;
  --green: #32a645;
  --scale: 1;
  font-family: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #f7eff8 url("./assets/content-background.png") center / cover no-repeat;
  color: var(--text);
}

button {
  font: inherit;
}

.deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #f7eff8 url("./assets/content-background.png") center / cover no-repeat;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 720ms cubic-bezier(.16, 1, .3, 1), visibility 720ms;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

.slide.leaving {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.deck[data-direction="next"] .slide {
  transform: translateY(100%);
}

.deck[data-direction="next"] .slide.leaving {
  transform: translateY(-100%);
}

.deck[data-direction="prev"] .slide {
  transform: translateY(-100%);
}

.deck[data-direction="prev"] .slide.leaving {
  transform: translateY(100%);
}

.deck[data-direction="next"] .slide.active,
.deck[data-direction="prev"] .slide.active {
  transform: translateY(0);
}

.slide.active .corner-logo,
.slide.active .slide-head,
.slide.active .person-chip,
.slide.active .note-bar,
.slide.active .profile-left,
.slide.active .quiz-panel,
.slide.active .ending-copy {
  animation: contentRise 780ms cubic-bezier(.16, 1, .3, 1) both;
}

.slide.active .corner-logo { animation-delay: 80ms; }
.slide.active .cover-inner {
  animation: coverRise 780ms 130ms cubic-bezier(.16, 1, .3, 1) both;
}
.slide.active .slide-head { animation-delay: 100ms; }
.slide.active .person-chip:nth-child(1) { animation-delay: 160ms; }
.slide.active .person-chip:nth-child(2) { animation-delay: 220ms; }
.slide.active .person-chip:nth-child(3) { animation-delay: 280ms; }
.slide.active .person-chip:nth-child(4) { animation-delay: 340ms; }
.slide.active .person-chip:nth-child(5) { animation-delay: 400ms; }
.slide.active .note-bar { animation-delay: 460ms; }
.slide.active .profile-left { animation-delay: 120ms; }
.slide.active .quiz-panel { animation-delay: 240ms; }

@keyframes contentRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coverRise {
  from {
    opacity: 0;
    transform: translateY(calc(-2vh + 28px));
  }
  to {
    opacity: 1;
    transform: translateY(-2vh);
  }
}

.cover,
.content {
  background-image: url("./assets/content-background.png");
  background-size: cover;
  background-position: center;
}

.cover {
  place-items: center;
  background-image: url("./assets/cover-sunrise-gradient.png");
}

.corner-logo {
  position: absolute;
  top: clamp(32px, 4vw, calc(70px * var(--scale)));
  right: clamp(40px, 5vw, calc(88px * var(--scale)));
  width: clamp(150px, 14vw, calc(250px * var(--scale)));
  height: auto;
}

.cover-inner {
  text-align: center;
  transform: translateY(-2vh);
}

.outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28em 0.95em;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: clamp(24px, 2.6vw, calc(38px * var(--scale)));
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.cover h1 {
  margin-top: clamp(34px, 5vh, calc(64px * var(--scale)));
  color: var(--text);
  font-size: clamp(58px, 7vw, calc(112px * var(--scale)));
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(255, 255, 255, .72);
}

.cover p {
  margin-top: clamp(22px, 3vh, calc(36px * var(--scale)));
  color: var(--text);
  font-size: clamp(20px, 1.8vw, calc(30px * var(--scale)));
  font-weight: 700;
}

.content {
  padding: clamp(70px, 8vh, calc(120px * var(--scale))) clamp(120px, 14vw, calc(250px * var(--scale))) clamp(120px, 14vh, calc(200px * var(--scale)));
}

.slide-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 1.8vw, calc(28px * var(--scale)));
}

.slide-head > span {
  width: 7px;
  height: 42px;
  border-radius: 99px;
  margin-top: 10px;
  background: var(--blue);
}

.slide-head h2 {
  color: var(--deep);
  font-size: clamp(42px, 4.5vw, calc(72px * var(--scale)));
  font-weight: 900;
  line-height: 1.1;
}

.slide-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, calc(28px * var(--scale)));
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 1.7vw, calc(34px * var(--scale)));
  margin-top: clamp(70px, 10vh, calc(110px * var(--scale)));
}

.overview {
  padding-top: clamp(92px, 10vh, calc(145px * var(--scale)));
}

.overview .people-grid {
  margin-top: clamp(34px, 4.5vh, calc(58px * var(--scale)));
}

.person-chip {
  min-height: clamp(220px, 24vh, calc(330px * var(--scale)));
  padding: clamp(28px, 2.4vw, calc(44px * var(--scale)));
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78));
  box-shadow: 0 12px 30px rgba(31, 35, 41, .07);
}

.person-chip strong {
  display: block;
  color: var(--deep);
  font-size: clamp(28px, 2.5vw, calc(44px * var(--scale)));
  line-height: 1.15;
}

.person-chip span,
.person-chip em {
  display: block;
  margin-top: 18px;
  font-style: normal;
  line-height: 1.45;
}

.person-chip span {
  color: var(--deep);
  font-size: clamp(16px, 1.18vw, calc(22px * var(--scale)));
  font-weight: 700;
  line-height: 1.34;
}

.person-chip em {
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, calc(20px * var(--scale)));
  line-height: 1.42;
}

.blue { border-top: 5px solid #5083fb; }
.orange { border-top: 5px solid var(--orange); }
.pink { border-top: 5px solid var(--pink); }
.purple { border-top: 5px solid var(--purple); }
.green { border-top: 5px solid var(--green); }

.note-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(50px, 8vh, calc(90px * var(--scale)));
  padding: clamp(22px, 2vw, calc(34px * var(--scale))) clamp(30px, 3vw, calc(52px * var(--scale)));
  border: 2px solid rgba(249, 122, 31, .32);
  border-radius: 16px;
  background: rgba(255, 255, 255, .4);
}

.note-bar span {
  color: var(--orange);
  font-weight: 800;
  font-size: clamp(16px, 1.2vw, calc(22px * var(--scale)));
}

.note-bar strong {
  color: var(--deep);
  font-size: clamp(20px, 1.8vw, calc(30px * var(--scale)));
}

.profile {
  grid-template-columns: minmax(420px, 0.82fr) minmax(660px, 1.18fr);
  gap: clamp(70px, 7vw, calc(130px * var(--scale)));
  align-items: center;
}

.profile-left {
  padding-bottom: 1vh;
}

.eyebrow {
  display: inline-flex;
  color: var(--pink);
  font-size: clamp(18px, 1.3vw, calc(24px * var(--scale)));
  font-weight: 900;
  letter-spacing: 0;
}

.profile-left h2 {
  margin-top: 18px;
  color: var(--pink);
  font-size: clamp(76px, 7.8vw, calc(134px * var(--scale)));
  line-height: 1;
  font-weight: 900;
}

dl {
  display: grid;
  gap: 0;
  margin: clamp(30px, 4vh, calc(58px * var(--scale))) 0 0;
}

.identity-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(31, 35, 41, .05);
}

.identity-list div {
  display: grid;
  grid-template-columns: minmax(62px, .22fr) 1fr;
  gap: clamp(16px, 1.4vw, calc(26px * var(--scale)));
  align-items: baseline;
  padding: clamp(15px, 1.35vw, calc(23px * var(--scale))) clamp(22px, 2vw, calc(34px * var(--scale)));
  border-bottom: 1px solid rgba(217, 211, 222, .72);
}

.identity-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, calc(20px * var(--scale)));
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--deep);
  font-size: clamp(20px, 1.45vw, calc(27px * var(--scale)));
  font-weight: 800;
  line-height: 1.35;
}

.quiz-panel {
  align-self: center;
  padding-top: clamp(10px, 2vh, 28px);
}

.quiz-panel h3 {
  color: var(--deep);
  font-size: clamp(38px, 3.3vw, calc(60px * var(--scale)));
  font-weight: 900;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2vw, calc(36px * var(--scale)));
  margin-top: clamp(32px, 4vh, calc(56px * var(--scale)));
}

.quiz-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(182px, 20vh, calc(274px * var(--scale)));
  padding: clamp(28px, 2.35vw, calc(42px * var(--scale)));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  color: var(--deep);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(31, 35, 41, .06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quiz-card:hover,
.quiz-card.selected {
  transform: translateY(-4px);
  border-color: rgba(224, 82, 177, .55);
  background: rgba(254, 240, 248, .92);
  box-shadow: 0 14px 34px rgba(224, 82, 177, .15);
}

.quiz-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 3vw, calc(52px * var(--scale)));
  height: clamp(38px, 3vw, calc(52px * var(--scale)));
  border-radius: 50%;
  background: rgba(224, 82, 177, .1);
  color: var(--pink);
  font-size: clamp(16px, 1.25vw, calc(22px * var(--scale)));
  line-height: 1;
}

.quiz-card span {
  display: block;
  margin-top: 22px;
  font-size: clamp(25px, 2.05vw, calc(38px * var(--scale)));
  font-weight: 900;
  line-height: 1.28;
}

.ending {
  place-items: center;
  background-image: linear-gradient(rgba(38, 51, 107, .42), rgba(38, 51, 107, .42)), url("./assets/ending-background.png");
  background-size: cover;
  background-position: center;
}

.ending-copy {
  max-width: min(1100px, 78vw);
  text-align: center;
}

.ending-copy span {
  color: var(--pink);
  font-size: clamp(20px, 1.5vw, calc(28px * var(--scale)));
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ending-copy h2 {
  margin-top: 28px;
  color: #fff;
  font-size: clamp(54px, 6vw, calc(106px * var(--scale)));
  line-height: 1.12;
  font-weight: 900;
}

.ending-copy p {
  margin-top: 44px;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(28px, 2.5vw, calc(46px * var(--scale)));
  font-weight: 800;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: clamp(20px, 3vh, 46px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(720px, 72vw);
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 30px rgba(31, 35, 41, .09);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.nav-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.dot.active {
  background: var(--pink);
  transform: scale(1.35);
}

.counter {
  min-width: 72px;
  color: #ad8fc8;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 900px) {
  .content {
    padding: 52px 28px 110px;
  }

  .people-grid,
  .profile,
  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .slide {
    overflow: auto;
  }

  body {
    overflow: auto;
  }
}
