:root {
  --paper: #fbf3e6;
  --ink: #2b1a12;
  --brand: #ff3d6e;
  --display: clamp(96px, 22vw, 360px);
  --title: clamp(48px, 8vw, 135px);
  --body: 17px;
  --step-1: 20px;
  --step-2: 24px;
  --small: 14px;
  --gutter: clamp(16px, 4vw, 64px);
  --radius-badge: 50%;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 500ms;
  --font-display: "Bricolage Grotesque", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-hand: "Caveat", cursive;
}

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

html {
  background: var(--paper);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--gutter) 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.topbar-link {
  font-size: var(--small);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.topbar-link:hover,
.topbar-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -58%);
  font-family: var(--font-display);
  font-size: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--brand);
  white-space: nowrap;
}

.fruit {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(34vw, 56vh);
  transform: translate(-50%, -50%);
}

.fruit svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sticker {
  position: absolute;
  display: grid;
  place-content: center;
  width: clamp(96px, 9.5vw, 144px);
  aspect-ratio: 1;
  border-radius: var(--radius-badge);
  text-align: center;
  padding: 12px;
}

.sticker-big {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-size: clamp(29px, 2.6vw, 40px);
  line-height: 0.9;
}

.sticker-small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sticker--brand {
  background: var(--brand);
  color: var(--ink);
  left: 16%;
  top: 22%;
  rotate: -10deg;
}

.sticker--ink {
  background: var(--ink);
  color: var(--paper);
  right: 15%;
  bottom: 18%;
  rotate: 8deg;
}

.sticker--ring {
  right: 22%;
  top: 16%;
  padding: 0;
  color: var(--ink);
}

.sticker--ring svg {
  width: 100%;
  animation: spin 18s linear infinite;
}

.sticker--ring text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: currentColor;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.note {
  position: absolute;
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.note--left {
  left: 12%;
  bottom: 22%;
  rotate: -4deg;
}

.note--right {
  right: 9%;
  top: 44%;
  max-width: 11ch;
  rotate: 5deg;
}

.arrow {
  display: block;
  width: 96px;
  margin: 6px 0 0 48px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.lede {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  margin: 0;
  max-width: 30ch;
  font-size: var(--step-1);
  line-height: 1.4;
}

.closing {
  display: grid;
  gap: 32px;
  justify-items: start;
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--title);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
  line-height: 0.85;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.body-copy {
  margin: 0;
  max-width: 44ch;
}

.cta {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), rotate var(--dur) var(--ease);
}

.cta:hover,
.cta:focus-visible {
  background: var(--ink);
  color: var(--paper);
  rotate: -2deg;
}

.footer {
  padding: 24px var(--gutter) 40px;
  font-size: var(--small);
}

.footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .fruit {
    width: 64vw;
    top: 50%;
  }

  .wordmark {
    transform: translate(-50%, -140%);
  }

  .sticker--brand {
    left: 6%;
    top: auto;
    bottom: 24%;
  }

  .sticker--ink {
    right: 6%;
    bottom: 24%;
  }

  .sticker--ring {
    right: 6%;
    top: 14%;
  }

  .note--left {
    left: 6%;
    bottom: auto;
    top: 16%;
  }

  .note--left .arrow {
    display: none;
  }

  .note--right {
    display: none;
  }

  .lede {
    font-size: var(--body);
    right: var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticker--ring svg {
    animation: none;
  }

  .cta,
  .topbar-link {
    transition: none;
  }
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.scene.is-ready {
  opacity: 1;
}

.wordmark {
  z-index: 0;
}

.sticker,
.note,
.lede {
  z-index: 2;
}

.fruit-fallback {
  display: none;
}

.stage.no-3d .fruit-fallback {
  display: block;
}

.stage.no-3d .scene {
  display: none;
}

.stage.is-3d .sticker,
.stage.is-3d .note {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
}

.stage.is-3d .sticker {
  rotate: none;
}

.stage.is-3d .note--left {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.stage.is-3d .note--left .arrow {
  margin: 0 0 6px 64px;
  transform: scaleY(-1);
}

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

@media (max-width: 767px) {
  .wordmark {
    top: 17%;
    transform: translate(-50%, 0);
  }
}
