:root {
  --paper: #f5f0e7;
  --ink: #171513;
  --muted: #6c665f;
  --line: rgba(23, 21, 19, 0.18);
  --accent: #6e97bd;
  --accent-deep: #153a5d;
  --accent-soft: #c9dded;
  --accent-wash: #e4edf4;
  --orange: #ff5546;
  --yellow: #f4d658;
  --shadow: 0 24px 60px rgba(44, 38, 31, 0.14);
  --display: "Arial Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow-x: clip;
}

body[data-color="black"] {
  --accent: #252525;
  --accent-deep: #0e0e0e;
  --accent-soft: #b7b5b0;
  --accent-wash: #e1ded7;
}

body[data-color="pink"] {
  --accent: #deb6c8;
  --accent-deep: #873e61;
  --accent-soft: #efd4df;
  --accent-wash: #f7e7ed;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  overflow: hidden;
  color: #fff8ec;
  background: var(--orange);
  transition: clip-path 1s cubic-bezier(0.8, 0, 0.2, 1), visibility 1s;
  clip-path: inset(0);
}

.intro.is-open {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}

.intro__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  background: var(--yellow);
}

.intro::before {
  width: 22vw;
  max-width: 112px;
  top: 0;
  bottom: 0;
  left: 64%;
  transform: translateX(-50%);
}

.intro::after {
  height: 17vw;
  max-height: 92px;
  left: 0;
  right: 0;
  top: 19%;
}

.intro__stamp,
.intro__to,
.intro__content,
.intro__hint,
.intro__number {
  position: relative;
  z-index: 2;
}

.intro__stamp {
  justify-self: end;
  align-self: start;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.intro__to {
  position: absolute;
  top: 22%;
  left: 8%;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(22px, 7vw, 36px);
  font-style: italic;
  transform: rotate(-5deg);
}

.intro__number {
  position: absolute;
  top: 3%;
  left: -7%;
  color: rgba(255, 248, 236, 0.13);
  font-family: var(--display);
  font-size: min(85vw, 430px);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.12em;
}

.intro__content {
  align-self: end;
  padding-bottom: 74px;
}

.intro__eyebrow {
  margin: 0 0 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 600px;
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(52px, 15vw, 105px);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.intro h1 em {
  font-family: Georgia, serif;
  font-size: 0.9em;
  font-weight: 400;
  text-transform: none;
}

.unwrap-button,
.choice-button,
.share-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0 13px 0 21px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: #fff8ec;
  box-shadow: 0 5px 0 rgba(23, 21, 19, 0.9);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.unwrap-button:active,
.choice-button:active,
.share-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(23, 21, 19, 0.9);
}

.unwrap-button svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  color: #fff8ec;
  border-radius: 50%;
  background: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.intro__hint {
  position: absolute;
  right: 22px;
  bottom: max(17px, env(safe-area-inset-bottom));
  left: 22px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.page {
  opacity: 0;
  transition: opacity 0.5s 0.35s ease;
}

.page.is-visible {
  opacity: 1;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
}

.topbar__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  text-decoration: none;
}

.topbar__mark span {
  position: absolute;
  opacity: 0;
}

.topbar p,
.topbar__date {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__date {
  justify-self: end;
}

.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 18px 62px;
}

.kicker,
.mini-label,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 85, 70, 0.15);
}

.hero__copy h2,
.walk-section h2,
.numbers h2,
.final-choice h2,
.choice-dialog h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero__copy h2 {
  font-size: clamp(58px, 16vw, 110px);
}

.hero__copy h2 em,
.walk-section h2 em,
.numbers h2 em,
.final-choice h2 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
  text-transform: none;
}

.hero__lead {
  max-width: 480px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: clamp(17px, 4.5vw, 21px);
  line-height: 1.45;
}

.hero__prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 35px;
}

.hero__prompt-line {
  width: 48px;
  height: 1px;
  background: var(--ink);
}

.hero__prompt p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-stage {
  position: relative;
  height: min(102vw, 440px);
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--accent-wash);
  transition: background-color 450ms ease;
}

.product-stage::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 21, 19, 0.18);
  border-radius: 50%;
}

.product-stage__halo {
  position: absolute;
  right: -12%;
  bottom: -35%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: background-color 450ms ease;
}

.product-stage__label {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 17px;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-stage__label strong {
  font-size: 13px;
}

.product-stage__scribble {
  position: absolute;
  z-index: 4;
  top: 18%;
  right: 4%;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  transform: rotate(8deg);
}

.product-stage__scribble::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 28px;
  top: 19px;
  left: -22px;
  border-bottom: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(30deg);
}

.product-images {
  position: absolute;
  z-index: 2;
  inset: 5% 1% 0;
  mix-blend-mode: multiply;
}

.product-images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translateY(15px) rotate(-2deg) scale(0.94);
  transition: opacity 380ms ease, transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-images img.is-active {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

.product-stage__count {
  position: absolute;
  z-index: 3;
  right: 17px;
  bottom: 15px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.color-panel {
  padding: 24px 0 0;
}

.color-panel__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.color-panel h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 30px;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.color-personality {
  max-width: 100px;
  margin: 0 0 4px;
  color: var(--accent-deep);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  text-align: right;
  transition: color 300ms ease;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.color-option {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 13px 8px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.color-option.is-active {
  border-color: var(--ink);
  background: #fffaf2;
  transform: translateY(-3px);
}

.swatch {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(23, 21, 19, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.swatch--black { background: #252525; }
.swatch--blue { background: #7398b9; }
.swatch--pink { background: #e9cbd7; }

.color-option strong,
.color-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-option strong {
  font-size: 11px;
}

.color-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.color-option__check {
  position: absolute;
  top: 4px;
  right: 5px;
  opacity: 0;
  font-size: 9px;
}

.color-option.is-active .color-option__check {
  opacity: 1;
}

.choice-button {
  min-height: 58px;
  margin-top: 18px;
  color: #fff;
  background: var(--accent-deep);
  box-shadow: 0 5px 0 var(--ink);
  transition: color 300ms ease, background-color 300ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.choice-button__arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
}

.ticker {
  overflow: hidden;
  padding: 13px 0 11px;
  color: #fff8ec;
  border-block: 1px solid var(--ink);
  background: var(--ink);
  transform: rotate(-1.5deg) scale(1.02);
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker 22s linear infinite;
}

.ticker span {
  padding: 0 22px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ticker i {
  color: var(--yellow);
  font-size: 9px;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.walk-section,
.numbers,
.final-choice {
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 18px;
}

.walk-section__intro h2,
.numbers h2,
.final-choice h2 {
  font-size: clamp(52px, 14vw, 96px);
}

.walk-section__intro > p:last-child,
.final-choice__layout > div > p {
  max-width: 500px;
  margin: 24px 0 38px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}

.route-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  color: #fff8ec;
  background: var(--accent-deep);
  transition: background-color 400ms ease;
}

.route-card::before {
  content: "44";
  position: absolute;
  right: -15px;
  bottom: -47px;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--display);
  font-size: 250px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
}

.route-card__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-card__path path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-dasharray: 7 8;
}

.route-point {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
}

.route-point > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  border: 2px solid #fff8ec;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 9px;
  font-weight: 900;
}

.route-point strong,
.route-point small {
  display: block;
}

.route-point strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.route-point small {
  margin-top: 2px;
  color: rgba(255, 248, 236, 0.65);
  font-family: Georgia, serif;
  font-size: 11px;
}

.route-point--one { top: 47px; left: 28px; }
.route-point--two { top: 190px; right: 25px; }
.route-point--three { top: 326px; left: 31px; }

.route-card__finish {
  position: absolute;
  right: 33px;
  bottom: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--orange);
  border-radius: 50%;
  background: #fff8ec;
  font-size: 19px;
  transform: rotate(7deg);
}

.numbers {
  max-width: none;
  color: #fff8ec;
  background: #191715;
}

.numbers__header,
.number-grid,
.numbers__note {
  max-width: 1204px;
  margin-inline: auto;
}

.numbers .section-number {
  color: rgba(255, 248, 236, 0.6);
}

.numbers h2 em {
  color: var(--yellow);
}

.number-grid {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  background: rgba(255, 248, 236, 0.24);
}

.number-card {
  min-height: 200px;
  padding: 25px;
  background: #191715;
}

.number-card > strong {
  font-family: var(--display);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.number-card > span {
  margin-left: 8px;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.number-card p {
  max-width: 270px;
  margin: 44px 0 0;
  color: rgba(255, 248, 236, 0.7);
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
}

.number-card--accent {
  color: var(--ink);
  background: var(--yellow);
}

.number-card--accent > span,
.number-card--accent p {
  color: var(--ink);
}

.number-card--words {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 22px;
}

.number-card--words svg {
  flex: 0 0 52px;
  width: 52px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
}

.number-card--words p {
  margin: 0;
  color: #fff8ec;
  font-size: 15px;
}

.numbers__note {
  margin-top: 16px;
  color: rgba(255, 248, 236, 0.5);
  font-size: 10px;
  text-align: right;
}

.final-choice {
  padding-bottom: 45px;
}

.choice-button--final {
  max-width: 400px;
  background: var(--ink);
}

.final-choice__signoff {
  display: flex;
  margin-top: 95px;
  padding-top: 28px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-choice__signoff > span {
  color: var(--orange);
  font-size: 20px;
}

.final-choice__signoff p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
}

footer {
  display: flex;
  padding: 26px 18px max(26px, env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 248, 236, 0.7);
  background: var(--orange);
  font-size: 10px;
}

footer a {
  color: #fff8ec;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

footer p {
  margin: 0;
}

.choice-dialog {
  width: calc(100% - 28px);
  max-width: 450px;
  margin: auto auto max(14px, env(safe-area-inset-bottom));
  padding: 32px 24px 24px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: #fffaf2;
  box-shadow: var(--shadow);
}

.choice-dialog[open] {
  animation: dialog-in 0.4s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.choice-dialog::backdrop {
  background: rgba(20, 18, 16, 0.65);
  backdrop-filter: blur(5px);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(40px); }
}

.choice-dialog__close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.choice-dialog__swatch {
  width: 50px;
  height: 50px;
  margin: 28px 0 22px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  background: #7398b9;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.35), 8px 8px 0 var(--yellow);
}

.choice-dialog h2 {
  font-size: 42px;
}

.choice-dialog h2 span {
  color: var(--accent-deep);
}

.choice-dialog > p:not(.mini-label) {
  margin: 20px 0 25px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.45;
}

.share-button {
  min-height: 56px;
  color: #fff;
  background: var(--accent-deep);
  box-shadow: 0 5px 0 var(--ink);
}

.dialog-secondary {
  display: block;
  margin: 20px auto 0;
  padding: 4px;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 11px;
  cursor: pointer;
}

.choice-dialog__confetti span {
  position: absolute;
  top: -15px;
  width: 8px;
  height: 16px;
  opacity: 0;
  animation: confetti-fall 1.25s ease-out forwards;
}

@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(-20px) rotate(0); }
  100% { opacity: 0; transform: translateY(390px) rotate(580deg); }
}

@media (min-width: 720px) {
  .intro {
    padding: 38px 5vw;
  }

  .intro::before {
    left: 70%;
  }

  .intro::after {
    top: 24%;
    height: 90px;
  }

  .intro__to {
    top: 25%;
  }

  .intro__content {
    width: min(620px, 60vw);
    padding-bottom: 45px;
  }

  .intro__hint {
    left: auto;
    right: 5vw;
    bottom: 38px;
    text-align: right;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
    gap: 7vw;
    padding: 82px 28px 95px;
    align-items: center;
  }

  .hero__copy {
    padding-bottom: 90px;
  }

  .hero__copy h2 {
    font-size: clamp(68px, 7vw, 106px);
  }

  .product-stage {
    height: 520px;
  }

  .walk-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8vw;
    padding: 140px 28px;
    align-items: center;
  }

  .route-card {
    height: 570px;
  }

  .route-point--one { top: 60px; left: 45px; }
  .route-point--two { top: 230px; right: 45px; }
  .route-point--three { top: 395px; left: 55px; }

  .numbers {
    padding: 120px 28px;
  }

  .number-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-card {
    min-height: 280px;
    padding: 34px;
  }

  .number-card--large {
    grid-row: span 2;
  }

  .number-card--large > strong {
    font-size: 150px;
  }

  .number-card--words {
    grid-column: 2;
    min-height: 180px;
  }

  .final-choice {
    padding: 130px 28px 60px;
  }

  .final-choice__layout {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 9vw;
    align-items: end;
  }

  footer {
    padding-inline: max(28px, calc((100vw - 1184px) / 2));
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1040px) {
  .number-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .number-card--large {
    grid-row: span 2;
  }

  .number-card--words {
    grid-column: 2 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
