/* Mish website, TEST version only. The home page, loaded after styles.css and future.css.
   New direction (owner, 23 Oct 2026): "keep the background a little more simple and static … the information
   interactive — swap that around". The background (future.css) never moves; everything that moves or answers you
   is part of the content. First the pieces kept from the live home page (the phone's screens, the mission
   pictures, the small app pictures in the tiles, the flip cards), then the new look. */

/* ---------- Mission ideas gliding past ---------- */

.ticker {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 8px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.track {
  display: flex;
  width: max-content;
  animation: marquee 110s linear infinite;
}

.track.reverse {
  animation-duration: 124s;
  animation-direction: reverse;
}

.track ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}

.track li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- 2. The statement that lights up as you scroll ---------- */

.statement {
  padding-top: 24px;
  padding-bottom: 56px;
}

.lit {
  max-width: 900px;
  margin: 0 auto;
  font-weight: 800;
  font-size: clamp(32px, 8.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lit span {
  display: inline-block;
}

.lit .hl {
  /* the colour fill reaches below the line, so tails like the g in "together" aren't cut off */
  margin-bottom: -0.2em;
  padding-bottom: 0.2em;
  background: linear-gradient(90deg, #B49DFF, #3CCBF4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: light) {
  .lit .hl {
    background-image: linear-gradient(90deg, #5A2FE0, #2A9FD0);
  }
}

/* ---------- How it works: the phone and its four screens ---------- */

.phone {
  grid-area: phone;
  position: relative;
  height: min(62vh, 540px);
  height: min(62svh, 540px);
  aspect-ratio: 9 / 19;
  padding: 2.4%;
  border-radius: 17% / 8%;
  background: #0E0D12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(58, 31, 184, 0.45);
}

/* The camera cut-out at the top */
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 3.6%;
  left: 36%;
  width: 28%;
  height: 3.2%;
  border-radius: 999px;
  background: #000000;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 15% / 7%;
  background: var(--page);
  container-type: size;
  text-align: left;
}

/* The four screens sit side by side; scrolling slides them along like a finger swipe */
.screens {
  display: flex;
  width: 400%;
  height: 100%;
}

.screen {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4cqw;
  width: 25%;
  height: 100%;
  padding: 20cqw 6cqw 7cqw;
}

/* Little pieces of the app, drawn to fit the phone */
.app-title {
  font-weight: 800;
  font-size: 9cqw;
  letter-spacing: -0.03em;
}

.app-card {
  padding: 5cqw;
  border: 1px solid var(--card-border);
  border-radius: 6cqw;
  background: var(--card);
  box-shadow: var(--shadow);
}

.app-kick {
  color: var(--text-2);
  font-weight: 700;
  font-size: 3.4cqw;
}

.app-h {
  margin-top: 2.6cqw;
  font-weight: 800;
  font-size: 5.4cqw;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.app-sub {
  margin-top: 1.4cqw;
  color: var(--text-2);
  font-weight: 600;
  font-size: 3.6cqw;
}

/* One facts line under the place, like the app's cards ("Free · About 1 hr · Walkable · Daylight") */
.app-facts {
  margin-top: 0.8cqw;
  overflow: hidden;
  color: var(--text-2);
  font-weight: 600;
  font-size: 3.2cqw;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4cqw;
}

.app-faces {
  display: flex;
  padding-left: 1.6cqw;
}

.app-faces i,
.app-face {
  display: grid;
  place-items: center;
  width: 8cqw;
  height: 8cqw;
  margin-left: -1.6cqw;
  border: 0.6cqw solid var(--card);
  border-radius: 2.6cqw;
  background: var(--face);
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
  font-size: 3.4cqw;
}

.app-btn {
  padding: 2.2cqw 4.6cqw;
  border-radius: 3.4cqw;
  background: var(--primary-fill);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 3.8cqw;
}

.app-btn.wide {
  display: block;
  margin-top: 4cqw;
  padding: 3.2cqw;
  text-align: center;
  font-size: 4.4cqw;
}

/* Screen 1: the Weekly card's two buttons (Accept mission and the dice), and a Bonus card */
.app-card > .app-faces {
  margin-top: 3cqw;
}

.app-row {
  gap: 2.4cqw;
}

.app-btn.grow {
  flex: 1;
  text-align: center;
}

.app-dice,
.app-ib {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 3.2cqw;
  background: var(--primary-soft);
  color: var(--primary);
}

.app-dice {
  width: 10cqw;
  height: 10cqw;
  border-radius: 999px;
}

.app-ib {
  width: 9cqw;
  height: 9cqw;
}

.app-dice svg,
.app-ib svg {
  width: 5.4cqw;
  height: 5.4cqw;
}

.app-label {
  margin-top: 1cqw;
  font-weight: 800;
  font-size: 4.8cqw;
}

.app-bonus {
  display: flex;
  align-items: center;
  gap: 3cqw;
}

.app-bonus .app-h {
  margin-top: 0;
  font-size: 4.6cqw;
}

/* Screen 2: a little map with the pin pinging */
.app-map {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 6cqw;
  background:
    linear-gradient(112deg, transparent 44%, var(--map-road) 44% 49%, transparent 49%),
    linear-gradient(18deg, transparent 62%, var(--map-road) 62% 65.5%, transparent 65.5%),
    linear-gradient(80deg, transparent 20%, var(--map-road) 20% 22.5%, transparent 22.5%),
    radial-gradient(circle at 78% 18%, var(--map-green) 0 22%, transparent 22.5%),
    radial-gradient(circle at 12% 88%, var(--map-green) 0 18%, transparent 18.5%),
    var(--map-bg);
}

.app-map .ring {
  top: 58%;
  width: 34cqw;
  height: 11cqw;
  margin: -5.5cqw 0 0 -17cqw;
  border-width: 0.6cqw;
}

.app-map .map-pin {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 40cqw;
  margin-left: -20cqw;
  translate: 0 -73.5%;
  animation: bob 3.3s ease-in-out infinite;
}

.here {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  font-weight: 800;
  font-size: 5.4cqw;
}

.here svg {
  width: 5.4cqw;
  height: 5.4cqw;
  color: var(--primary);
}

/* Screen 3: the photo post with a drawn sunrise */
.post-head {
  display: flex;
  align-items: center;
  gap: 3cqw;
}

.post-head .app-face {
  width: 10cqw;
  height: 10cqw;
  margin: 0;
  border: 0;
  font-size: 4.4cqw;
}

.post-head .app-h {
  margin: 0;
  font-size: 4.4cqw;
}

.post-head .app-sub {
  margin: 0;
  font-size: 3.2cqw;
}

.post-photo {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4cqw;
  background: linear-gradient(180deg, #2A1A6E 0%, #6D3BFF 32%, #E27DB8 60%, #FFB978 80%, #FFE2A8 100%);
}

.sun {
  position: absolute;
  bottom: 20%;
  left: 50%;
  width: 30cqw;
  height: 30cqw;
  margin-left: -15cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF7DE 0 38%, #FFD68A 55%, rgba(255, 214, 138, 0) 71%);
}

.hill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  background: #1C1336;
  clip-path: polygon(0 58%, 16% 34%, 30% 44%, 52% 6%, 70% 36%, 86% 24%, 100% 42%, 100% 100%, 0 100%);
}

.post-actions {
  display: flex;
  gap: 3.4cqw;
  color: var(--text);
}

.post-actions svg {
  width: 6cqw;
  height: 6cqw;
}

.post-actions .liked {
  color: var(--primary);
  fill: var(--primary);
}

.post-actions span {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  font-weight: 700;
  font-size: 3.8cqw;
}

.vcheck {
  width: 4cqw;
  height: 4cqw;
  margin-left: 0.4cqw;
  color: var(--primary);
  vertical-align: -0.5cqw;
}

.post-line {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  font-size: 3.5cqw;
  line-height: 1.3;
}

.post-line b {
  font-weight: 800;
}

.post-line em {
  color: var(--text-2);
  font-style: normal;
  font-weight: 600;
}

.app-ib.sm {
  width: 7cqw;
  height: 7cqw;
  border-radius: 2.4cqw;
}

.app-ib.sm svg {
  width: 4.2cqw;
  height: 4.2cqw;
}

/* Screen 4: the crew page, its streak and this round's circles (green tick = went, grey = missed, dashed = to come) */
/* The crew page's numbers, and the Previous missions row under the round */
.app-stats {
  display: flex;
  gap: 4cqw;
  margin-top: -2cqw;
  color: var(--text-2);
  font-weight: 600;
  font-size: 3.2cqw;
}

.app-stats b {
  color: var(--text);
  font-weight: 800;
}

.app-prev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.6cqw 5cqw;
  font-weight: 800;
  font-size: 3.8cqw;
}

.app-prev svg {
  width: 4cqw;
  height: 4cqw;
  color: var(--text-2);
}

.app-lv {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  color: var(--primary);
  font-weight: 800;
  font-size: 3.4cqw;
}

.app-lv .bar {
  flex: 1;
  height: 2.6cqw;
  margin: 0;
}

.app-lv .bar i {
  width: 62%;
}

.app-tabs {
  display: flex;
  gap: 4.4cqw;
  border-bottom: 0.4cqw solid var(--line);
  color: var(--text-2);
  font-weight: 700;
  font-size: 3.6cqw;
}

.app-tabs span {
  padding-bottom: 2cqw;
}

.app-tabs .on {
  color: var(--text);
  box-shadow: inset 0 -0.6cqw 0 var(--primary);
}

.rounds {
  display: grid;
  gap: 3.6cqw;
}

/* The app's round tracker, credit only: who went this week, and stamps that fill left to right */
.round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.6cqw;
}

.round-label {
  flex: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 3.2cqw;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.round-head small {
  overflow: hidden;
  color: var(--text-2);
  font-weight: 600;
  font-size: 3cqw;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rm {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
}

.rm .app-face {
  flex: none;
  margin: 0;
  border: 0;
}

.rm p {
  display: grid;
  flex: 1;
  min-width: 0;
}

.rm b {
  font-weight: 800;
  font-size: 3.8cqw;
}

.rm small {
  color: var(--primary);
  font-weight: 600;
  font-size: 3cqw;
}

.rc {
  display: flex;
  flex: none;
  gap: 1cqw;
}

.rc i {
  display: grid;
  place-items: center;
  width: 4.6cqw;
  height: 4.6cqw;
  border: 0.5cqw solid var(--line);
  border-radius: 50%;
}

.rc .went {
  border: 0;
  background: var(--primary-fill);
}

.rc .went::after {
  content: "✓";
  color: #FFFFFF;
  font-style: normal;
  font-weight: 800;
  font-size: 2.8cqw;
  line-height: 1;
}


/* How it works: a glow behind the phone and big step numbers */
.phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 77, 255, 0.5), rgba(60, 203, 244, 0.16) 58%, rgba(60, 203, 244, 0) 100%);
  opacity: var(--glow);
  pointer-events: none;
}

.step-num {
  display: block;
  margin-bottom: 6px;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
}

/* ---------- Mission cards: each card's little scene, drawn in code ---------- */

/* Each card's little scene, drawn in code */
.art {
  position: relative;
  height: 128px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 16px;
}

.art span {
  position: absolute;
}

.art.sunrise {
  background: linear-gradient(180deg, #2A1A6E 0%, #6D3BFF 34%, #E27DB8 62%, #FFB978 84%, #FFE2A8 100%);
}

.art .sunball {
  bottom: 16%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin-left: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF7DE 0 36%, #FFD68A 54%, rgba(255, 214, 138, 0) 71%);
}

.art .hills {
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: #1C1336;
  clip-path: polygon(0 62%, 16% 34%, 30% 48%, 52% 8%, 70% 40%, 86% 24%, 100% 44%, 100% 100%, 0 100%);
}

.art.market {
  background: linear-gradient(180deg, #0E0B2A 0%, #23175E 60%, #3A1FB8 100%);
}

.art .bulbs {
  top: 14px;
  right: -10px;
  left: -10px;
  height: 22px;
  background: radial-gradient(circle, #FFE6A8 0 3px, rgba(255, 214, 138, 0.4) 4px, rgba(255, 214, 138, 0) 9px) 0 0 / 26px 22px repeat-x;
}

.art .bulbs.b2 {
  top: 34px;
  background-position: 13px 0;
  opacity: 0.75;
}

.art .awning {
  right: 0;
  bottom: 34%;
  left: 0;
  height: 20px;
  background: repeating-linear-gradient(90deg, #FF7AB8 0 16px, #FFF1D6 16px 32px);
}

.art .awning::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 8px;
  background: radial-gradient(circle at 8px 0, #FF7AB8 0 7.5px, transparent 8px) 0 0 / 32px 8px repeat-x,
    radial-gradient(circle at 24px 0, #FFF1D6 0 7.5px, transparent 8px) 0 0 / 32px 8px repeat-x;
}

.art .stalls {
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: radial-gradient(ellipse at 20% 40%, rgba(255, 200, 120, 0.7), transparent 30%),
    radial-gradient(ellipse at 62% 50%, rgba(255, 200, 120, 0.55), transparent 28%),
    #160F33;
}

.art.farmers {
  background: linear-gradient(180deg, #9ED8FF 0%, #CDEBFF 52%, #FFF1D6 100%);
}

.art .morning {
  top: 14px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF7DE 0 40%, #FFD68A 62%, rgba(255, 214, 138, 0) 72%);
}

.art .tent {
  bottom: 42%;
  left: 10%;
  width: 80%;
  height: 22px;
  background: repeating-linear-gradient(90deg, #2FAE6B 0 16px, #F4FFF2 16px 32px);
}

.art .tent::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 8px;
  background: radial-gradient(circle at 8px 0, #2FAE6B 0 7.5px, transparent 8px) 0 0 / 32px 8px repeat-x,
    radial-gradient(circle at 24px 0, #F4FFF2 0 7.5px, transparent 8px) 0 0 / 32px 8px repeat-x;
}

.art .crates {
  bottom: 10%;
  left: 14%;
  width: 72%;
  height: 26%;
  border-radius: 6px;
  background: radial-gradient(circle, #FF5A5A 0 6px, transparent 6.5px) 4px 2px / 22px 14px,
    radial-gradient(circle, #FFA53B 0 6px, transparent 6.5px) 15px 9px / 22px 14px,
    linear-gradient(#B9783F, #9A5F2E);
}

.art.popup {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(255, 90, 180, 0.45), rgba(255, 90, 180, 0) 60%),
    repeating-linear-gradient(0deg, #1B1230 0 15px, #140C26 15px 16px);
}

.art .neon {
  position: relative;
  padding: 4px 14px;
  border: 2px solid #FFB3DD;
  border-radius: 12px;
  color: #FFE7F4;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px #FF5AB4, 0 0 14px #FF5AB4, 0 0 28px #FF2E9A;
  box-shadow: 0 0 12px #FF5AB4, inset 0 0 12px rgba(255, 90, 180, 0.6);
  animation: flicker 6s linear infinite;
}

.mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.streak {
  font-size: 14px;
  font-weight: 800;
}

.mission h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.place {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.place svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.mission-facts {
  margin-top: 4px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
}

.mission-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.faces {
  display: flex;
  padding-left: 6px;
}

/* People without a photo: a soft violet square with a violet initial, like the app */
.faces span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border: 2px solid var(--card);
  border-radius: 10px;
  background: var(--face);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.done {
  color: var(--primary);
}

/* ---------- Made for crews: the small pictures of the app in each tile ---------- */

.rsvp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.rsvp span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
}

.rsvp .in {
  border-color: var(--primary);
  background: var(--primary-fill);
  color: #FFFFFF;
  animation: breathe 2.6s ease-in-out infinite;
}

.rsvp .maybe {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Story rings: a turning rainbow of the brand colours for new stories, a faint line once watched */
@property --turn {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.stories {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.stories span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 3px;
  border-radius: 17px;
  background: conic-gradient(from var(--turn), #3A1FB8, #7B4DFF, #3CCBF4, #7B4DFF, #3A1FB8);
  animation: turn 5s linear infinite;
}

.stories span:nth-child(2) {
  animation-delay: -1.6s;
}

.stories span:nth-child(3) {
  animation-delay: -3.2s;
}

.stories span.seen {
  background: var(--line);
  animation: none;
}

.stories b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid var(--card);
  border-radius: 14px;
  background: var(--face);
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
}

.level {
  margin-top: 16px;
}

.level-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
}

.level-top b {
  color: var(--text);
}

/* Ten small pills filling violet to sky, like the app's level bar */
.bar {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--primary-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 10' preserveAspectRatio='none'%3E%3Crect width='19' height='10' rx='5'/%3E%3C/svg%3E") 0 0 / 10% 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 10' preserveAspectRatio='none'%3E%3Crect width='19' height='10' rx='5'/%3E%3C/svg%3E") 0 0 / 10% 100% repeat-x;
}

.bar i {
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-fill), #3CCBF4);
}

.level-top .lv {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.level-top .lv span {
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* LV on the left of the bar, the XP under it (what your own page shows when you open it) */
.ta-level .level {
  justify-self: center;
  width: min(100%, 250px);
}

.ta-level .level-top {
  align-items: center;
  gap: 10px;
}

.ta-level .bar {
  flex: 1;
  margin-top: 0;
}

.ta-level .xp {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 12px;
}

/* Each tile opens with a small picture of that part of the app (owner, 22 Oct 2026: the plain tiles looked bare) */
.tile {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 22px;
}

.tile h3,
.tile p {
  padding: 0 10px;
}

.tile-art {
  position: relative;
  display: grid;
  place-content: center;
  gap: 8px;
  height: 180px;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(123, 77, 255, 0.16), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(60, 203, 244, 0.12), transparent 60%),
    var(--inset);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.ta-text {
  display: grid;
  min-width: 0;
}

/* One line each, cut short with … on narrow phones */
.ta-text > b,
.ta-text > small,
.ta-faces small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ta-text b,
.ta-mini b,
.ta-plan b {
  font-size: 14px;
}

.tile-art small {
  color: var(--text-2);
  font-weight: 600;
  font-size: 12px;
}

/* Meetups: an event card with a Going button, another one tucked behind */
.ta-stack {
  place-items: center;
}

.ta-stack > * {
  grid-area: 1 / 1;
}

.ta-event {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 420px);
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 28px -18px rgba(14, 12, 20, 0.45);
}

.ta-back {
  translate: 0 -36px;
  scale: 0.9;
  opacity: 0.5;
}

.ta-front {
  translate: 0 16px;
}

.ta-cover {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2A1A6E 0%, #6D3BFF 40%, #E27DB8 72%, #FFB978 100%);
}

.ta-c2 {
  background: linear-gradient(160deg, #0E3B52 0%, #3CCBF4 60%, #B49DFF 100%);
}

.ta-cover {
  position: relative;
}

.ta-answer {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--primary-fill);
  color: #FFFFFF;
  font-style: normal;
  font-weight: 800;
  font-size: 9px;
  line-height: 1.4;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s ease, scale 0.25s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.ta-front.going .ta-answer {
  opacity: 1;
  scale: 1;
}

.ta-faces {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.ta-faces em,
.ta-bubble em {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--face);
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
  font-size: 10px;
}

.ta-faces em + em {
  margin-left: -7px;
}

.ta-faces small {
  margin-left: 8px;
}

.ta-btn {
  flex: none;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-fill);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
}

/* Explore: Best match / Closest and a short list with distances */
.ta-list,
.ta-chat,
.ta-level {
  place-content: center stretch;
}

.ta-list {
  gap: 6px;
}

.ta-sort {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  font-weight: 700;
  font-size: 12px;
}

.ta-sort b {
  color: var(--text);
}

.ta-sort svg {
  width: 12px;
  height: 12px;
}

.ta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--card);
  font-weight: 700;
}

.ta-row small {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.ta-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6D3BFF;
}

.ta-d2 {
  background: #3CCBF4;
}

.ta-d3 {
  background: #E27DB8;
}

/* Plan it: a message, then the plan card with In / Maybe / Out */
.ta-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 12px 7px 7px;
  border-radius: 16px 16px 16px 4px;
  background: var(--card);
  font-weight: 700;
}

.ta-plan {
  display: grid;
  justify-self: end;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 16px;
  background: var(--card);
}

.ta-plan .rsvp {
  margin-top: 8px;
}

.ta-plan .rsvp span {
  padding: 4px 10px;
  font-size: 12px;
}

.tile-art .stories {
  justify-content: center;
  margin-top: 0;
}

/* Bonus Missions: the week's two cards, each with Accept and its own dice (the crew's 2 re-rolls, on either card) */
.ta-bonus {
  grid-template-columns: minmax(0, 1fr);
  place-content: center stretch;
  gap: 6px;
}

.crew-grid .ta-bonus {
  padding: 10px;
}

.ta-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--card);
}

.ta-ib {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
}

.ta-mini b,
.ta-mini small {
  grid-column: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ta-mini b {
  font-size: 13px;
  line-height: 1.2;
}

.ta-mini small {
  font-size: 11.5px;
  line-height: 1.25;
}

.ta-ib svg {
  width: 17px;
  height: 17px;
}

.ta-acts {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.ta-accept {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 5px 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  background: var(--primary-fill);
  color: #FFFFFF;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
}

.ta-dice {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.ta-dice svg,
.ta-route svg {
  width: 16px;
  height: 16px;
}

/* Local perks: the app's loyalty card (the business, "Collect stamps for", the reward, stamps ticking green) */
.ta-loyal {
  display: grid;
  gap: 1px;
  width: min(100%, 250px);
  padding: 12px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.08) 0 42%, transparent 43%),
    linear-gradient(135deg, var(--primary-fill), #3B1F8F);
  color: #FFFFFF;
  box-shadow: 0 18px 32px -18px rgba(58, 31, 184, 0.9);
}

.tl-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tl-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.tl-logo svg {
  width: 15px;
  height: 15px;
}

.ta-loyal b {
  font-size: 14px;
}

.ta-loyal .tl-reward {
  font-size: 16px;
}

.ta-loyal small {
  color: rgba(255, 255, 255, 0.8);
}

.ta-stamps {
  display: flex;
  gap: 6px;
  margin: 8px 0 4px;
}

.ta-stamps i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 30%;
  font-style: normal;
}

.ta-stamps .on {
  border: 0;
  background: #2FB37A;
}

.ta-stamps .on::after {
  content: "✓";
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

/* Points and levels: points landing on the level bar */
.ta-plus {
  justify-self: end;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-fill);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
}

.ta-level .level {
  margin-top: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
}

/* Travel groups: home, and the town some of the crew are in */
.ta-travel {
  grid-auto-flow: column;
  align-items: center;
  gap: 0;
}

.ta-town {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  font-weight: 800;
}

.ta-on {
  background: var(--primary-fill);
  color: #FFFFFF;
}

.ta-route {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  border-top: 2px dashed color-mix(in srgb, var(--primary) 55%, transparent);
  color: var(--primary);
}

.ta-route svg {
  position: absolute;
  top: -10px;
  padding: 1px;
  background: transparent;
}

/* ---------- Four tiles in a row are narrow: the small pictures tighten up to fit ---------- */

.crew-grid .tile-art {
  padding: 14px;
}

.crew-grid .ta-event {
  gap: 10px;
  padding: 8px 10px 8px 8px;
}

.crew-grid .ta-cover {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.crew-grid .ta-btn {
  padding: 7px 12px;
  font-size: 12px;
}

.crew-grid .ta-row {
  gap: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  white-space: nowrap;
}

.crew-grid .ta-row small {
  white-space: nowrap;
}

.ta-name {
  display: grid;
  min-width: 0;
}

.ta-name em {
  overflow: hidden;
  color: var(--text-2);
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  text-overflow: ellipsis;
}

.crew-grid .stories {
  gap: 8px;
}

.crew-grid .stories span {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.crew-grid .stories b {
  border-radius: 12px;
}

.crew-grid .ta-route {
  width: 40px;
}

.crew-grid .ta-town {
  padding: 7px 12px;
  font-size: 12.5px;
}

.crew-grid .tile-art:not(.ta-bonus):not(.ta-travel) {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: center;
}

.crew-grid .ta-list,
.crew-grid .ta-chat,
.crew-grid .ta-level {
  justify-items: stretch;
}

.crew-grid .ta-bubble {
  justify-self: start;
}

.crew-grid .ta-plan,
.crew-grid .ta-plus {
  justify-self: end;
}

.crew-grid .ta-sort {
  justify-self: center;
}

.crew-grid .ta-faces {
  overflow: hidden;
}



.crew-grid .ta-mini b,
.crew-grid .ta-mini small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.crew-grid .ta-mini b {
  font-size: 13px;
}

.crew-grid .ta-mini small {
  font-size: 11.5px;
}

.crew-grid .ta-stamps {
  gap: 5px;
}

.crew-grid .ta-stamps i {
  width: 18px;
  height: 18px;
}

.crew-grid .level-top {
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.crew-grid .ta-chat {
  gap: 6px;
}

.crew-grid .ta-plan .rsvp {
  flex-wrap: nowrap;
  gap: 4px;
}

.crew-grid .ta-plan .rsvp span {
  padding: 3px 8px;
  font-size: 11.5px;
  white-space: nowrap;
}

/* ---------- Flip cards: tap a mission for its back ---------- */

.mission {
  cursor: pointer;
}

.mission > .flip-inner {
  margin: 0;
}

.flip-front > :not(.art) {
  margin-right: 8px;
  margin-left: 8px;
}

.flip-inner {
  position: relative;
  transition: transform 0.75s cubic-bezier(0.2, 0.85, 0.25, 1);
  transform-style: preserve-3d;
}

.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-back {
  position: absolute;
  inset: -10px -10px -16px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(60, 203, 244, 0.45), transparent 60%),
    var(--brand);
  color: #FFFFFF;
  text-align: center;
  transform: rotateY(180deg);
}

.flip-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/topo.svg") 0 0 / 520px repeat;
  opacity: 0.18;
  filter: brightness(3);
}

.fb-tag {
  position: relative;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fb-pts {
  position: relative;
  margin-top: 8px;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fb-unit {
  position: relative;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
}

.flip-back ul {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.flip-back li {
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(14, 12, 20, 0.22);
  font-weight: 700;
  font-size: 13px;
}

.mission:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* ---------- Motion used by the pieces above ---------- */

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

@keyframes light-up {
  from {
    opacity: 0.28;
  }
  to {
    opacity: 1;
  }
}

@keyframes fill-up {
  from {
    width: 6%;
  }
}

@keyframes turn {
  to {
    --turn: 360deg;
  }
}

@keyframes flicker {
  0%,
  18%,
  22%,
  61%,
  65%,
  100% {
    opacity: 1;
  }
  20%,
  63% {
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track,
  .rsvp .in,
  .stories span,
  .art .neon,
  .map-pin {
    animation: none;
  }
}

/* ====================================== The new look ====================================== */

/* ---------- Shared pieces ---------- */

.section {
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(56px, 9vh, 96px);
}

/* Phones: less empty space between sections (owner, 24 Oct 2026: "a big gap between travel groups and you chose
   what people see") */
@media (max-width: 599px) {
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.section-title {
  margin-bottom: clamp(28px, 5vh, 48px);
  text-align: center;
  font-weight: 800;
  font-size: clamp(36px, 8.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* The colours of the four missions near you (the finder and its map) */
.c1 {
  --c: #FF8FC7;
}

.c2 {
  --c: #B49DFF;
}

.c3 {
  --c: #7FE3FF;
}

.c4 {
  --c: #FFC48A;
}

@media (prefers-color-scheme: light) {
  .c1 {
    --c: #D63F8C;
  }

  .c2 {
    --c: #6D3BFF;
  }

  .c3 {
    --c: #2A9FD0;
  }

  .c4 {
    --c: #E07A2E;
  }
}

/* ---------- 1. Hero: the words, and the missions near you ---------- */

.hero {
  padding: clamp(28px, 7vh, 80px) 0 clamp(8px, 2vh, 20px);
}

.hero-inner {
  display: grid;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.headline {
  margin-top: 22px;
  font-weight: 800;
  font-size: clamp(44px, 5.3vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

/* Each line slides up out of its own slot when the page opens */
.headline .ln {
  display: block;
  overflow: hidden;
  margin: 0 -0.08em -0.14em;
  padding: 0 0.08em 0.14em;
}

.headline .ln > span {
  display: inline-block;
}

@media (max-width: 699px) {
  .hero .kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

.hero .subline {
  max-width: 40ch;
  margin-top: 22px;
  color: var(--text-2);
  font-weight: 600;
  font-size: clamp(16px, 4.3vw, 20px);
  line-height: 1.5;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
    gap: 56px;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }
}

/* Computers: the headline catches a soft light wherever the pointer is (future.js moves it) */
@media (hover: hover) and (pointer: fine) {
  .headline .ln > span {
    margin: 0 -0.04em -0.16em;
    padding: 0 0.04em 0.16em; /* room for letter tails inside the light */
    background: radial-gradient(170px circle at var(--lx, -999px) var(--ly, -999px), #EEE7FF 0%, #C2AEFF 38%, var(--text) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---------- Missions near you: the pin pings once, and what it finds appears on the map and in the list ---------- */

.finder {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--glass-line);
  border-radius: 30px;
  background: var(--glass-solid);
  box-shadow: inset 0 1px 0 var(--glass-top), 0 40px 90px -46px rgba(91, 52, 255, 0.7);
}

.finder-map {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 62%), var(--inset);
}

.finder-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/topo.svg") 0 0 / 420px repeat;
  opacity: 0.16;
}

.range,
.fping,
.finder-pin {
  position: absolute;
  top: 60%;
  left: 50%;
}

.range {
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 50%;
  translate: -50% -50%;
}

.range.r1 {
  width: 96px;
  height: 96px;
}

.range.r2 {
  width: 200px;
  height: 200px;
}

.range.r3 {
  width: 320px;
  height: 320px;
}

.fping {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
}

.finder.scanning .fping {
  animation: scan 1.4s cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
}

.finder-pin {
  width: 64px;
  translate: -50% -92%;
  filter: drop-shadow(0 10px 14px rgba(58, 31, 184, 0.55));
}

.fdot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 0 14px var(--c);
  transition: scale 0.4s cubic-bezier(0.2, 1.6, 0.4, 1), box-shadow 0.25s ease;
}

.fdot.c1 {
  top: 47%;
  left: 60%;
}

.fdot.c2 {
  top: 26%;
  left: 31%;
}

.fdot.c3 {
  top: 80%;
  left: 77%;
}

.fdot.c4 {
  top: 86%;
  left: 15%;
}

/* Before the search (and while searching again) the map and list are empty (future.js adds .ready, so without it
   everything simply shows) */
.finder.ready:not(.found) .fdot {
  scale: 0;
}

.finder.found .fdot.c1 {
  transition-delay: 0.15s;
}

.finder.found .fdot.c2 {
  transition-delay: 0.4s;
}

.finder.found .fdot.c3 {
  transition-delay: 0.6s;
}

.finder.found .fdot.c4 {
  transition-delay: 0.8s;
}

.finder .fdot.hot {
  scale: 1.6;
  transition-delay: 0s;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 0 22px var(--c);
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 8px;
}

.finder-head b {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.finder-scan {
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.finder-scan:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.finder-scan:active {
  transform: scale(0.96);
}

.finder-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frow {
  border-radius: 16px;
  transition: opacity 0.4s ease, translate 0.45s var(--ease-out), background-color 0.25s ease;
}

.finder.ready:not(.found) .frow {
  opacity: 0;
  translate: 0 8px;
}

.finder.found .frow.c1 {
  transition-delay: 0.15s, 0.15s, 0s;
}

.finder.found .frow.c2 {
  transition-delay: 0.4s, 0.4s, 0s;
}

.finder.found .frow.c3 {
  transition-delay: 0.6s, 0.6s, 0s;
}

.finder.found .frow.c4 {
  transition-delay: 0.8s, 0.8s, 0s;
}

.frow.hot,
.frow.open {
  background: color-mix(in srgb, var(--c) 12%, transparent);
}

.frow-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}

.frow-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.fmark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.frow-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frow-km {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

.frow-btn::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 0;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  rotate: 45deg;
  transition: rotate 0.25s ease, margin 0.25s ease;
}

.frow.open .frow-btn::after {
  margin-top: 3px;
  rotate: -135deg;
}

.frow-more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 0;
  margin: 0;
  padding: 0 12px 0 33px;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}

.frow.open .frow-more {
  max-height: 90px;
  padding-bottom: 12px;
}

.frow-more span {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- Mission ideas gliding past (one slow row) ---------- */

.hero .ticker {
  margin-top: clamp(28px, 4.5vh, 48px);
  padding: 4px 0;
}

.hero .track {
  animation-duration: 190s;
}

.hero .ticker:hover .track {
  animation-play-state: paused;
}

.hero .track li {
  padding: 9px 16px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-top);
  font-size: 14px;
}

.track li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-fill);
}

@media (max-width: 599px) {
  .hero .track li {
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* ---------- The statement ---------- */

.statement {
  padding-top: clamp(40px, 7vh, 72px);
  padding-bottom: clamp(24px, 4vh, 40px);
}

.lit {
  max-width: 1040px;
  font-size: clamp(32px, 7vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
}

/* ---------- 2. How it works: the phone stays on screen while you scroll through the steps ----------
   (owner, 23 Oct 2026: on phones the steps sat too far below the phone). The section is tall; the stage (the steps
   and the phone) sticks under the top bar while you scroll through it, and future.js picks the step from how far
   you've scrolled. Tapping a step (or a dot, or the phone) scrolls to it. */

.how {
  padding-bottom: clamp(24px, 4vh, 40px);
}

.how-track {
  --travel: 170svh; /* how much scrolling moves through the four steps */
  height: calc(100vh - 60px + 170vh);
  height: calc(100svh - 60px + var(--travel));
}

.how-grid {
  position: sticky;
  top: 60px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  max-width: 1040px;
  height: calc(100vh - 60px);
  height: calc(100svh - 60px);
  margin: 0 auto;
}

.how .phone {
  grid-area: auto;
  height: min(64vh, 560px);
  height: min(64svh, 560px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(180, 157, 255, 0.16), 0 60px 120px -40px rgba(91, 52, 255, 0.7);
  touch-action: pan-y;
}

.how .phone .aura {
  position: absolute;
  z-index: 4;
  inset: -9px;
  padding: 1.5px;
  border-radius: 19% / 9%;
  background: conic-gradient(from 200deg, transparent 0 62%, #7B4DFF 76%, #3CCBF4 86%, transparent 96%);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.how .screens {
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Phones: the phone on top, the step it's showing underneath (one at a time), and four dots */
@media (max-width: 899px) {
  .how-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .how .phone {
    order: -1;
    flex: none;
    height: min(50vh, 440px);
    height: min(50svh, 440px);
  }

  .stepper {
    display: grid;
  }

  .stepper li {
    grid-area: 1 / 1;
    opacity: 0;
    translate: 0 10px;
    pointer-events: none;
    transition: opacity 0.35s ease, translate 0.45s var(--ease-out);
  }

  .stepper li.on {
    opacity: 1;
    translate: 0 0;
    pointer-events: auto;
  }

  .step-btn {
    padding: 14px 16px;
  }

  .step-title {
    font-size: 19px;
  }

  .step-text {
    font-size: 14.5px;
  }
}

.how-dots {
  display: flex;
  gap: 8px;
}

.how-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.35s var(--ease-out), background-color 0.35s ease;
}

.how-dots button[aria-current="step"] {
  width: 26px;
  background: var(--primary-fill);
}

.how-dots button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .how-dots {
    display: none;
  }
}

.stepper {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-btn:hover {
  background: color-mix(in srgb, var(--glass) 60%, transparent);
}

.step-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.step-btn .step-num {
  grid-row: span 2;
  margin: 0;
  padding-top: 5px;
  font-size: 14px;
}

.step-title {
  color: var(--text);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.step-text {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.step-btn[aria-pressed="true"] {
  border-color: var(--glass-line);
  background: var(--glass-solid);
  box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shadow);
}

.step-btn[aria-pressed="true"] .step-title,
.step-btn[aria-pressed="true"] .step-text {
  opacity: 1;
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 72px;
  }

  .how .phone {
    height: min(72vh, 640px);
    height: min(72svh, 640px);
  }
}

/* ---------- 3. Example missions: four glass cards (tap one to flip it) ---------- */

.missions {
  display: grid;
  gap: 18px;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  perspective: 1100px;
}

@media (min-width: 700px) {
  .missions {
    grid-template-columns: repeat(2, minmax(0, 300px));
    justify-content: center;
    gap: 22px;
    max-width: none;
  }
}

@media (min-width: 1240px) {
  .missions {
    grid-template-columns: repeat(4, minmax(0, 290px));
  }
}

.mission {
  --mx: 50%;
  --my: -600px;
  position: relative;
  padding: 10px 10px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--spot), transparent 65%), var(--glass-solid);
  box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shadow);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s ease, rotate 0.6s var(--ease-out);
}

.mission > :not(.art) {
  margin-left: 8px;
  margin-right: 8px;
}

.mission .tag,
.mission .streak {
  white-space: nowrap;
}

@media (hover: hover) {
  .mission:hover {
    z-index: 2;
    translate: 0 -10px;
    box-shadow: inset 0 1px 0 var(--glass-top), 0 44px 80px -40px rgba(109, 59, 255, 0.8);
  }
}

/* ---------- 4. Made for crews: eight tiles, and every little picture can be tried ---------- */

.wrap.crews {
  max-width: 1290px;
}

.crew-grid {
  display: grid;
  gap: 18px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  perspective: 1100px;
}

@media (min-width: 640px) {
  .crew-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1140px) {
  .crew-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tile {
  --mx: 50%;
  --my: -600px;
  position: relative;
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--spot), transparent 65%), var(--glass-solid);
  box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shadow);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s ease, rotate 0.6s var(--ease-out);
}

@media (hover: hover) {
  .tile:hover {
    translate: 0 -6px;
    box-shadow: inset 0 1px 0 var(--glass-top), 0 44px 80px -40px rgba(109, 59, 255, 0.8);
  }
}

.tile h3 {
  margin-top: 18px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.tile p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
}

.tile-art {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(123, 77, 255, 0.2), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(60, 203, 244, 0.14), transparent 60%),
    var(--inset);
  box-shadow: inset 0 0 0 1px var(--glass-line);
  -webkit-user-select: none;
  user-select: none;
}

/* The parts you can tap */
.tap {
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.tap:active {
  transform: scale(0.94);
}

.ta-btn.on {
  background: var(--done-bg);
  color: var(--done-text);
}

.ta-row {
  transition: transform 0.45s var(--ease-out);
}

.rsvp span:nth-child(1) {
  --answer: var(--done-text);
}

.rsvp span:nth-child(2) {
  --answer: var(--text-2);
}

.rsvp span:nth-child(3) {
  --answer: #E5484D;
}

.rsvp .mine {
  border-color: transparent;
  background: color-mix(in srgb, var(--answer) 16%, transparent);
  color: var(--answer);
}

.rsvp span:not(.mine) {
  border-color: var(--line);
  background: none;
  color: var(--text-2);
  animation: none;
}

.stories span {
  transition: background 0.3s ease;
}

.ta-mini {
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.ta-mini.rolling {
  opacity: 0;
  transform: rotateX(80deg);
}

.ta-bonus.rolled-out .ta-dice,
.ta-mini.accepted .ta-dice,
.ta-mini.done .ta-acts {
  display: none;
}

.ta-stamps i {
  transition: background-color 0.25s ease, transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.ta-stamps .pop {
  transform: scale(1.3);
}

.bar i {
  transition: width 0.7s var(--ease-out);
}

.ta-plus.bump {
  animation: bump 0.4s ease;
}

.ta-route svg {
  transition: translate 1.1s cubic-bezier(0.5, 0, 0.3, 1);
}

.ta-travel.flying .ta-route svg {
  translate: 26px 0;
}

/* ---------- 5. Privacy: flip the switches and see what changes ---------- */

.night {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 64px);
  border-radius: 34px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(123, 77, 255, 0.34), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(60, 203, 244, 0.14), transparent 70%),
    #0B0915;
  box-shadow: 0 50px 100px -50px rgba(14, 12, 20, 0.7);
  color: #FFFFFF;
  text-align: center;
}

.night .kicker {
  margin-bottom: 20px;
  border-color: rgba(180, 157, 255, 0.4);
  background: rgba(180, 157, 255, 0.1);
  color: #CFC3FF;
}

.night h2 {
  font-weight: 800;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.night .stop {
  color: #B49DFF;
}

.demo {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: clamp(30px, 5vh, 48px) auto 0;
  text-align: left;
}

@media (min-width: 760px) {
  .demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
  }
}

.demo-switches {
  display: grid;
  gap: 10px;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.switch:hover {
  background: rgba(255, 255, 255, 0.08);
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-ui {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.25s ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: translate 0.25s var(--ease-out);
}

.sw-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sw-text b {
  font-weight: 700;
  font-size: 15px;
}

.sw-text small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  font-size: 13px;
}

.switch input:checked ~ .sw-text .sw-off,
.switch input:not(:checked) ~ .sw-text .sw-on {
  display: none;
}

.switch input:checked ~ .switch-ui {
  background: #7C4DFF;
}

.switch input:checked ~ .switch-ui::after {
  translate: 18px 0;
}

.switch input:focus-visible ~ .switch-ui {
  outline: 2px solid #B49DFF;
  outline-offset: 3px;
}

.demo-view {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.dv-post,
.dv-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #16121F;
}

.dv-post b,
.dv-note b {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
}

.dv-post small,
.dv-note small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  font-size: 13px;
}

.dv-face,
.dv-app {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-style: normal;
}

.dv-face {
  background: #2F235A;
  color: #CFC3FF;
  font-weight: 800;
}

.dv-check {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  color: #B49DFF;
  vertical-align: -2px;
}

.dv-place em {
  color: #FFFFFF;
  font-style: normal;
  font-weight: 700;
}

.dv-app {
  background: var(--brand);
}

/* The place shows until you hide it; message text stays hidden until you show it */
.dv-place .dv-off,
.dv-note .dv-on,
.demo.hide-place .dv-place .dv-on,
.demo.show-text .dv-note .dv-off {
  display: none;
}

.demo.hide-place .dv-place .dv-off,
.demo.show-text .dv-note .dv-on {
  display: inline;
}

.dv-map {
  position: relative;
  height: 156px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(112deg, transparent 44%, #352D4F 44% 47%, transparent 47%),
    linear-gradient(18deg, transparent 63%, #262233 63% 65%, transparent 65%),
    linear-gradient(80deg, transparent 21%, #262233 21% 22.4%, transparent 22.4%),
    radial-gradient(circle at 86% 14%, #152720 0 19%, transparent 19.5%),
    radial-gradient(130% 62% at 0% 112%, #1E1A3D 0 40%, transparent 40.5%),
    #16131F;
}

/* Each pin stands on its point (the point is 40 px down a 42 px pin); crew pins have a name tag under them */
.dv-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  translate: -50% -40px;
}

.dv-pin svg {
  display: block;
  width: 32px;
  height: 42px;
}

.dv-m {
  top: 50px;
  left: 57%;
  translate: -50% -42px;
}

.dv-m svg {
  width: 33px;
  height: 44px;
}

.dv-s {
  top: 52px;
  left: 87%;
  translate: -50% -46px;
}

.dv-s svg {
  width: 43px;
  height: 50px;
}

.dv-jo {
  top: 64px;
  left: 20%;
}

.dv-sam {
  top: 122px;
  left: 75%;
}

.dv-me {
  top: 116px;
  left: 41%;
}

.dv-me svg.dv-cloak {
  width: 36px;
}

.dv-tag {
  height: 18px;
  max-width: 90px;
  margin-top: 1px;
  padding: 0 7px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 9px;
  background: #FFFFFF;
  color: #1F1A26;
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

/* You: in your cloak (a violet tag) until you take it off, then your own sky-blue pin and tag */
.dv-me .dv-tag {
  border-color: #FFFFFF;
  background: #7C3AED;
  color: #FFFFFF;
}

.dv-me .dv-open,
.demo.on-map .dv-me .dv-cloak {
  display: none;
}

.demo.on-map .dv-me .dv-open {
  display: block;
}

.demo.on-map .dv-me .dv-tag {
  background: #0EA5E9;
}

/* Whatever just changed glows for a moment */
.changed {
  animation: changed 0.7s ease;
}

.controls {
  display: grid;
  gap: 12px;
  margin: clamp(30px, 5vh, 48px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

@media (min-width: 760px) {
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.controls li {
  --mx: 50%;
  --my: -600px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(156, 120, 255, 0.18), transparent 65%), rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  line-height: 1.45;
}

.pi {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.55), rgba(60, 203, 244, 0.3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #E9E1FF;
}

.pi svg {
  width: 21px;
  height: 21px;
}

/* ---------- 6. The finish ---------- */

.finale {
  padding-bottom: clamp(40px, 8vh, 80px);
}

.finale-card {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 24px clamp(48px, 7vw, 84px);
  border-radius: 34px;
  background: radial-gradient(80% 70% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 70%), var(--brand);
  box-shadow: 0 50px 100px -50px rgba(58, 31, 184, 0.8);
  color: #FFFFFF;
  text-align: center;
  isolation: isolate;
}

/* Still rings, like the pin's ping */
.finale-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 118%, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 56px);
}

.finale-pin {
  width: 104px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 18px 24px rgba(14, 12, 20, 0.35));
}

.finale h2 {
  padding-bottom: 0.2em; /* the tail of the g stays clear of the line underneath */
  font-weight: 800;
  font-size: clamp(56px, 13vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.finale .stop {
  color: #FFFFFF;
}

.finale p {
  margin-top: clamp(10px, 1.6vw, 20px);
  font-weight: 700;
  font-size: clamp(17px, 4vw, 21px);
  opacity: 0.92;
}

.hold-wrap {
  position: relative;
  display: inline-block;
  margin-top: 30px;
}

/* Rings rushing out from the button when you check in */
.hold-wrap::before,
.hold-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.hold-wrap.burst::before {
  animation: burst 0.9s ease-out;
}

.hold-wrap.burst::after {
  animation: burst 0.9s 0.15s ease-out;
}

.hold-btn {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  min-width: 260px;
  height: 60px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #3A1FB8;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  box-shadow: 0 22px 44px -18px rgba(14, 12, 20, 0.6);
  transition: transform 0.2s ease, color 0.3s ease;
}

.hold-btn:active {
  transform: scale(0.97);
}

.hold-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
}

.hold-fill {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #E0D5FF, #B9EBFF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.hold-text {
  position: relative;
}

.hold-btn.holding .hold-fill {
  transform: scaleX(1);
  transition: transform 1.1s linear;
}

.hold-btn.done {
  color: #0F5A3C;
}

.hold-btn.done .hold-fill {
  transform: scaleX(1);
  background: linear-gradient(90deg, #C9F3DD, #B9EBFF);
}

/* +60 pops up beside the button (above it on phones) */
.reward {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
  opacity: 0;
  translate: -50% 0;
  pointer-events: none;
}

@media (min-width: 700px) {
  .reward {
    bottom: 12px;
    left: calc(100% + 18px);
    translate: 0 0;
  }
}

.reward.pop {
  animation: reward-up 2.2s var(--ease-out) both;
}

/* ---------- The giant "mish." at the bottom: a soft glow inside the letters ---------- */

.giant-wm .gg-1 {
  stop-color: #C9B6FF;
}

.giant-wm .gg-2 {
  stop-color: #3CCBF4;
  stop-opacity: 0.85;
}

.giant-wm .gg-3 {
  stop-color: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: light) {
  .giant-wm .gg-1 {
    stop-color: #6D3BFF;
  }

  .giant-wm .gg-2 {
    stop-color: #2A9FD0;
  }

  .giant-wm .gg-3 {
    stop-color: rgba(14, 12, 20, 0.2);
  }
}

/* ---------- Motion (all of it on the content itself; the background never moves) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero .kicker {
    animation: rise-in 0.9s var(--ease-out) both;
  }

  .headline .ln > span {
    animation: line-up 1.1s var(--ease-out) both;
  }

  .headline .ln + .ln > span {
    animation-delay: 0.1s;
  }

  .hero .subline {
    animation: rise-in 1s 0.3s var(--ease-out) both;
  }

  .finder,
  .hero .ticker {
    animation: rise-in 1s 0.45s var(--ease-out) both;
  }

  /* Scrolling effects (owner, 23 Oct 2026: "i would like some scrolling effects"). Each one is tied to how far
     you've scrolled, so it plays backwards when you scroll back up. Browsers that can't do this simply show
     everything in place. */
  @supports (animation-timeline: view()) {
    /* The top of the page gives way: the words drift up and fade a little, the finder moves a touch faster */
    .hero-copy {
      animation: copy-away linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 640px;
    }

    .finder {
      animation: rise-in 1s 0.45s var(--ease-out) both, finder-away linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0px 640px;
    }

    /* The statement lights up word by word */
    .lit span {
      animation: light-up linear both;
      animation-timeline: view();
      animation-range: cover 5% cover 35%;
    }

    /* The rest only on computers. On phones they redrew big parts of the page with every frame, and scrolling
       fast left blank boxes and a missing Privacy heading (owner's Samsung, 24 Oct 2026), so phones simply show
       everything in place. */
    @media (hover: hover) and (pointer: fine) {
      /* Section titles fill in from faint to solid, a soft violet edge sweeping through the letters */
      .section-title {
        background: linear-gradient(100deg, var(--text) 0 42%, #9C78FF 50%, color-mix(in srgb, var(--text) 22%, transparent) 58% 100%) 100% 0 / 260% 100% no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: rise linear both, title-fill linear both;
        animation-timeline: view(), view();
        animation-range: entry 0% entry 38%, entry 35% cover 45%;
      }

      .night h2 {
        background: linear-gradient(100deg, #FFFFFF 0 42%, #B49DFF 50%, rgba(255, 255, 255, 0.24) 58% 100%) 100% 0 / 260% 100% no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: rise linear both, title-fill linear both;
        animation-timeline: view(), view();
        animation-range: entry 0% entry 38%, entry 40% cover 48%;
      }

      .night .stop {
        color: #B49DFF;
      }

      .mission,
      .tile,
      .controls li,
      .demo,
      .stepper {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 38%;
      }

      /* The phone in How it works rises in */
      .how .phone {
        animation: phone-in linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 32%;
      }

      /* Mission cards are dealt out: stacked in the middle, then spread into their row (four in a row only) */
      @media (min-width: 1240px) {
        .mission {
          animation: deal linear both;
          animation-timeline: view();
          animation-range: entry 5% cover 42%;
        }

        .mission:nth-child(1) {
          --from: translateX(468px) rotate(-6deg);
        }

        .mission:nth-child(2) {
          --from: translateX(156px) rotate(-2deg);
        }

        .mission:nth-child(3) {
          --from: translateX(-156px) rotate(2deg);
        }

        .mission:nth-child(4) {
          --from: translateX(-468px) rotate(6deg);
        }
      }

      /* The Privacy card opens out as it arrives */
      .night {
        animation: open-up linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
      }

      .bar i {
        animation: fill-up linear both;
        animation-timeline: view();
        animation-range: entry 30% cover 50%;
      }

      /* The finish: the card grows in, then the pin drops onto it */
      .finale-card {
        animation: grow-in linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
      }

      .finale-pin {
        animation: pin-in linear both;
        animation-timeline: view();
        animation-range: entry 25% cover 42%;
      }

      /* The giant mish. rises into place at the very bottom */
      .giant {
        animation: rise-big linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 90%;
      }
    }
  }
}

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

@keyframes copy-away {
  to {
    opacity: 0.35;
    transform: translateY(-56px);
  }
}

@keyframes finder-away {
  to {
    translate: 0 -120px;
  }
}

@keyframes title-fill {
  to {
    background-position: 0 0;
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.94);
  }
}

@keyframes deal {
  from {
    opacity: 0;
    transform: var(--from, none) translateY(40px);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes open-up {
  from {
    opacity: 0.5;
    clip-path: inset(7% 6% round 60px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 round 34px);
  }
}

@keyframes grow-in {
  from {
    opacity: 0.4;
    transform: scale(0.9);
  }
}

@keyframes pin-in {
  from {
    opacity: 0;
    transform: translateY(-56px) scale(0.7);
  }
}

@keyframes rise-big {
  from {
    opacity: 0;
    transform: translateY(30%);
  }
}

@keyframes line-up {
  from {
    transform: translateY(108%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scan {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(16);
  }
}

@keyframes reward-up {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.6);
  }
  14% {
    opacity: 1;
    transform: translateY(0) scale(1.12);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1);
  }
}

@keyframes burst {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6, 2.4);
  }
}

@keyframes bump {
  40% {
    transform: scale(1.18);
  }
}

@keyframes changed {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 157, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(180, 157, 255, 0);
  }
}

/* ---------- Calm version for people who turn animations off on their phone ---------- */

@media (prefers-reduced-motion: reduce) {
  .finder .fping,
  .hold-wrap::before,
  .hold-wrap::after,
  .reward.pop,
  .changed {
    animation: none;
  }

  .fdot,
  .frow,
  .how .screens,
  .mission,
  .tile {
    transition: none;
  }
}
