:root {
  --ink: #172033;
  --night: #13223f;
  --cream: #fff3d7;
  --sky: #72c7e7;
  --sun: #ffd166;
  --coral: #ef5d4c;
  --green: #3fbf8f;
  --purple: #5b5dd8;
  --blue: #2b7de1;
  --ground: #2e3149;
  --progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--sky);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hud {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 243, 215, 0.86);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(23, 32, 51, 0.22);
  transform: translateX(-50%);
}

.logo {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.progress {
  height: 16px;
  padding: 3px;
  background: #ffffff;
  border: 2px solid var(--ink);
}

.progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--green));
  transition: width 180ms linear;
}

.quick-nav {
  display: flex;
  gap: 8px;
}

.quick-nav a {
  padding: 6px 8px;
  border: 2px solid transparent;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-nav a:hover,
.quick-nav a.is-active {
  background: var(--sun);
  border-color: var(--ink);
}

.world {
  position: fixed;
  inset: 0;
  width: 600vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  touch-action: none;
  background:
    linear-gradient(#8bd9f4 0 58%, #7ec66f 58% 72%, #4b8f56 72% 100%);
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  overflow: hidden;
  padding: 92px clamp(28px, 6vw, 92px) 150px;
}

.scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 124px;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.34) 0 70px, transparent 70px 110px);
  opacity: 0.6;
}

.scene--start {
  background:
    radial-gradient(circle at 78% 20%, #ffe08a 0 70px, transparent 72px),
    linear-gradient(#86d9fa 0 58%, #83cc72 58% 73%, #3d7c55 73%);
}

.scene--stage {
  background:
    linear-gradient(180deg, #222653 0 56%, #4a3268 56% 72%, #222033 72%);
  color: var(--cream);
}

.scene--story {
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 209, 102, .75) 0 72px, transparent 74px),
    linear-gradient(180deg, #99def2 0 60%, #e6c065 60% 72%, #c78047 72%);
}

.scene--copy {
  background:
    linear-gradient(180deg, #f0ba75 0 55%, #d77b58 55% 72%, #78445b 72%);
}

.scene--coach {
  background:
    linear-gradient(180deg, #b8e5e2 0 56%, #7ad0a2 56% 72%, #3c8b64 72%);
}

.scene--contact {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 209, 102, .85) 0 92px, transparent 94px),
    linear-gradient(180deg, #182648 0 58%, #32294f 58% 72%, #171a2b 72%);
  color: var(--cream);
}

.speech,
.scene-card {
  position: relative;
  z-index: 4;
  width: min(560px, 88vw);
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(23, 32, 51, 0.28);
  color: var(--ink);
}

.speech--hero {
  margin-top: clamp(0px, 4vh, 42px);
}

.speech::after {
  content: "";
  position: absolute;
  left: 62px;
  bottom: -24px;
  width: 38px;
  height: 38px;
  background: var(--cream);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(45deg);
}

.kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 14px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  line-height: 0.88;
}

h1 {
  font-size: clamp(4.3rem, 10vw, 7.8rem);
}

h2 {
  font-size: clamp(2.7rem, 5.4vw, 4.85rem);
}

p {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.48;
}

.journey-hint {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 2px dashed rgba(23, 32, 51, 0.55);
  border-radius: 999px;
}

.journey-hint p {
  max-width: 300px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.hint-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(23, 32, 51, 0.22);
  transform: translateY(-1px);
}

.hint-arrow:hover,
.hint-arrow:focus-visible {
  background: #ffffff;
  transform: translate(-1px, -2px);
}

.hint-arrow--next {
  animation: nudge-right 1.6s ease-in-out infinite;
}

.badge-list li,
.type-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  background: #ffffff;
  border: 2px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sign {
  position: absolute;
  z-index: 2;
  right: 8vw;
  bottom: 230px;
  padding: 16px 18px;
  background: var(--sun);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(23, 32, 51, 0.18);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 800;
  transform: rotate(3deg);
}

.sign::after {
  content: "";
  position: absolute;
  left: 46%;
  top: 100%;
  width: 12px;
  height: 96px;
  background: var(--ink);
}

.skyline {
  position: absolute;
  left: 40vw;
  right: 0;
  bottom: 28%;
  height: 250px;
  opacity: 0.72;
}

.skyline span {
  position: absolute;
  bottom: 0;
  width: 120px;
  background: rgba(23, 32, 51, 0.2);
  border: 3px solid rgba(23, 32, 51, 0.18);
}

.skyline span:nth-child(1) { left: 4%; height: 42%; }
.skyline span:nth-child(2) { left: 20%; height: 70%; }
.skyline span:nth-child(3) { left: 38%; height: 54%; }
.skyline span:nth-child(4) { left: 58%; height: 84%; }

.scene--stage .scene-card {
  width: min(680px, 88vw);
  margin-left: auto;
  margin-top: clamp(0px, 4vh, 40px);
  background: #fdf4da;
}

.spotlight {
  position: absolute;
  top: 0;
  width: 34vw;
  height: 68vh;
  background: linear-gradient(rgba(255, 243, 215, .46), rgba(255, 243, 215, 0));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.7;
}

.spotlight--one { left: 6vw; transform: rotate(-10deg); }
.spotlight--two { right: 18vw; transform: rotate(12deg); }

.audience {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 124px;
  height: 118px;
  overflow: hidden;
}

.audience span {
  position: absolute;
  left: -4vw;
  right: -4vw;
  height: 78px;
  background:
    radial-gradient(circle at 4% 42%, #0f1428 0 15px, transparent 16px),
    radial-gradient(circle at 11% 55%, #0f1428 0 19px, transparent 20px),
    radial-gradient(circle at 19% 40%, #0f1428 0 16px, transparent 17px),
    radial-gradient(circle at 28% 56%, #0f1428 0 21px, transparent 22px),
    radial-gradient(circle at 38% 45%, #0f1428 0 17px, transparent 18px),
    radial-gradient(circle at 49% 58%, #0f1428 0 22px, transparent 23px),
    radial-gradient(circle at 59% 40%, #0f1428 0 16px, transparent 17px),
    radial-gradient(circle at 69% 56%, #0f1428 0 20px, transparent 21px),
    radial-gradient(circle at 80% 43%, #0f1428 0 17px, transparent 18px),
    radial-gradient(circle at 91% 54%, #0f1428 0 19px, transparent 20px);
  opacity: 0.92;
}

.audience span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 44px;
  background: #0f1428;
  border-top: 4px solid rgba(255, 243, 215, 0.12);
}

.audience span:nth-child(1) {
  bottom: 0;
}

.audience span:nth-child(2) {
  bottom: 30px;
  transform: translateX(4vw) scale(.92);
  opacity: 0.68;
}

.audience span:nth-child(3) {
  bottom: 58px;
  transform: translateX(-2vw) scale(.82);
  opacity: 0.44;
}

.bio-stack {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.bio-stack div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  background: #ffffff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 32, 51, 0.16);
}

.bio-stack span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bio-stack strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.stage-lights {
  position: absolute;
  left: 8vw;
  bottom: 156px;
  display: flex;
  gap: 20px;
}

.stage-lights i {
  width: 76px;
  height: 54px;
  background: var(--sun);
  border: 4px solid var(--ink);
  border-radius: 50% 50% 10px 10px;
  animation: blink 2.8s infinite;
}

.stage-lights i:nth-child(2) { animation-delay: .4s; }
.stage-lights i:nth-child(3) { animation-delay: .8s; }

.scene--story .scene-card {
  margin-top: clamp(34px, 9vh, 72px);
}

.scene-card--light {
  background: #ffffff;
}

.floating-cards span {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 150px;
  height: 92px;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(23, 32, 51, 0.16);
  font-weight: 900;
  text-transform: uppercase;
  animation: float 4s ease-in-out infinite;
}

.floating-cards span:nth-child(1) { right: 30vw; top: 14vh; }
.floating-cards span:nth-child(2) { right: 13vw; top: 24vh; animation-delay: .35s; }
.floating-cards span:nth-child(3) { right: 24vw; top: 39vh; animation-delay: .7s; }
.floating-cards span:nth-child(4) { right: 8vw; top: 52vh; animation-delay: 1.05s; }
.floating-cards span:nth-child(5) { right: 20vw; top: 66vh; animation-delay: 1.4s; }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.scene--copy .scene-card {
  margin-left: auto;
  margin-top: clamp(34px, 9vh, 72px);
}

.desk {
  position: absolute;
  left: 7vw;
  bottom: 162px;
  width: min(460px, 38vw);
  height: 250px;
  background: #8f5142;
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 32, 51, 0.22);
}

.desk::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28px;
  height: 42px;
  background: #2d2f43;
  border: 4px solid var(--ink);
}

.paper {
  position: absolute;
  width: 148px;
  height: 108px;
  background: #fffdf4;
  border: 4px solid var(--ink);
}

.paper--one { left: 34px; top: 28px; transform: rotate(-6deg); }
.paper--two { right: 38px; top: 48px; transform: rotate(5deg); }

.keyboard {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 160px;
  height: 54px;
  background: repeating-linear-gradient(90deg, #fff 0 12px, #ccd8e0 12px 16px);
  border: 4px solid var(--ink);
  transform: translateX(-50%);
}

.type-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.message-board {
  position: absolute;
  right: 5vw;
  top: 150px;
  width: min(420px, 34vw);
  height: 330px;
  padding: 24px;
  background: #fffdf4;
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 32, 51, 0.22);
}

.message-board::after {
  content: "↓";
  position: absolute;
  left: 50%;
  top: 47%;
  color: var(--coral);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.messy-notes {
  position: relative;
  height: 128px;
}

.messy-notes span {
  position: absolute;
  display: inline-flex;
  max-width: 136px;
  padding: 7px 9px;
  background: #fff1a8;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 32, 51, 0.14);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.messy-notes span:nth-child(1) { left: 0; top: 4px; transform: rotate(-5deg); }
.messy-notes span:nth-child(2) { right: 0; top: 14px; transform: rotate(4deg); }
.messy-notes span:nth-child(3) { left: 50%; top: 76px; transform: translateX(-50%) rotate(-2deg); }

.clear-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 14px;
  background: #dff9f1;
  border: 4px solid var(--ink);
}

.clear-line small {
  display: block;
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.clear-line strong {
  display: block;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 1.42rem;
  line-height: 1;
}

.scene--coach .scene-card {
  width: min(680px, 88vw);
  margin-top: clamp(0px, 1.5vh, 12px);
}

.coaching-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.coaching-list li {
  position: relative;
  padding: 8px 12px 8px 34px;
  background: #edf9f4;
  border: 3px solid var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.18;
}

.coaching-list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--green);
  font-weight: 900;
}

.scene--contact .scene-card {
  margin: clamp(28px, 8vh, 66px) auto 0;
  text-align: center;
}

.scene-card--final {
  background: var(--cream);
  padding: clamp(20px, 2.5vw, 28px);
}

.scene-card--final h2 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 26px;
  padding: 0 22px;
  background: var(--coral);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(23, 32, 51, 0.22);
  color: #ffffff;
  font-weight: 900;
}

.big-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(23, 32, 51, 0.22);
}

.final-spotlight {
  position: absolute;
  left: 50%;
  bottom: 124px;
  width: 420px;
  height: 66vh;
  background: linear-gradient(rgba(255, 243, 215, .54), rgba(255, 243, 215, 0));
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.ground {
  position: fixed;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: 0;
  height: 126px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 44px, transparent 44px 88px),
    var(--ground);
  border-top: 6px solid var(--ink);
}

.track {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--sun) 0 54px, transparent 54px 82px);
}

.avatar {
  --x: 8vw;
  position: absolute;
  left: var(--x);
  bottom: 54px;
  width: 72px;
  height: 108px;
  transform: translateX(-50%);
  transition: left 120ms linear;
}

.avatar.is-walking .avatar__leg,
.avatar.is-walking .avatar__arm {
  animation-duration: 360ms;
}

.avatar__head {
  position: absolute;
  left: 16px;
  top: 0;
  width: 40px;
  height: 40px;
  background: #f5b78b;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.avatar__head::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -10px;
  width: 32px;
  height: 16px;
  background: var(--ink);
  border-radius: 18px 18px 6px 6px;
}

.avatar__body {
  position: absolute;
  left: 18px;
  top: 38px;
  width: 36px;
  height: 42px;
  background: var(--coral);
  border: 4px solid var(--ink);
  border-radius: 12px 12px 8px 8px;
}

.avatar__arm,
.avatar__leg {
  position: absolute;
  width: 10px;
  background: var(--ink);
  transform-origin: top center;
}

.avatar__arm {
  top: 45px;
  height: 36px;
  animation: swing 900ms ease-in-out infinite;
}

.avatar__arm--left { left: 12px; }
.avatar__arm--right { right: 12px; animation-delay: 450ms; }

.avatar__leg {
  top: 76px;
  height: 38px;
  animation: step 900ms ease-in-out infinite;
}

.avatar__leg--left { left: 25px; }
.avatar__leg--right { right: 25px; animation-delay: 450ms; }

.avatar__mic {
  position: absolute;
  right: 0;
  top: 39px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.avatar__mic::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 5px;
  height: 34px;
  background: var(--ink);
  transform: rotate(-18deg);
  transform-origin: top;
}

.mobile-story {
  display: none;
}

@keyframes swing {
  0%, 100% { transform: rotate(22deg); }
  50% { transform: rotate(-18deg); }
}

@keyframes step {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(18deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes blink {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

@keyframes nudge-right {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translate(4px, -1px); }
}

@media (max-width: 820px) {
  .hud {
    grid-template-columns: 1fr;
    gap: 8px;
    top: 10px;
    width: calc(100% - 20px);
  }

  .quick-nav {
    justify-content: space-between;
  }

  .quick-nav a {
    font-size: 0.7rem;
    padding-inline: 5px;
  }

  .scene {
    padding: 148px 20px 150px;
  }

  .speech,
  .scene-card {
    width: min(520px, calc(100vw - 40px));
  }

  .journey-hint {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    border-radius: 24px;
  }

  .journey-hint p {
    max-width: none;
    font-size: 0.82rem;
  }

  .sign,
  .audience,
  .floating-cards,
  .desk,
  .message-board,
  .stage-lights {
    display: none;
  }

  .scene--stage .scene-card,
  .scene--copy .scene-card,
  .scene--coach .scene-card {
    margin-left: 0;
  }

  .bio-stack div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .avatar {
    width: 60px;
    transform: translateX(-50%) scale(.88);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
