/* VAMU marketing site. One stylesheet for every page.
   The look comes from the app's design system: true black, Fredoka for
   display, Roboto for interface text, mint for the chosen state, the Hub
   tile colours and the app's 3D icons. No inline styles (strict CSP). */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/Fredoka-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/Roboto-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* The app's own colours */
  --bg: #000;
  --surface: #0b0c0f;
  --surface-2: #121317;
  --surface-3: #1b1c21;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f9f9fa;
  --ink-2: #c4c7d2;
  --ink-3: #9da0ae;
  --mint: #b3f3bc;
  --mint-ink: #14321f;
  --crimson: #d41e46;
  --teal: #3de3ce;
  --violet: #7c5cff;
  --glass: linear-gradient(160deg, #2c3932 0%, #18201b 55%, #111612 100%);
  --event: linear-gradient(180deg, #2400a0 0%, #4c018b 32%, #690b5b 64%, #3a1523 100%);

  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.3, 1.25, 0.5, 1);
  --pop: cubic-bezier(0.34, 1.7, 0.6, 1);

  --gutter: clamp(20px, 4vw, 40px);
}

/* Real springs where the browser supports linear() easing. */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.02, 0.074, 0.149, 0.237, 0.331, 0.426, 0.518, 0.605, 0.683, 0.753, 0.814, 0.866, 0.909, 0.944, 0.972, 0.994, 1.01, 1.021, 1.029, 1.033, 1.035, 1.035, 1.034, 1.032, 1.029, 1.025, 1.022, 1.019, 1.016, 1.013, 1.01, 1.008, 1.006, 1.004, 1.003, 1.001, 1.001, 1, 0.999, 1);
    --pop: linear(0, 0.05, 0.177, 0.348, 0.536, 0.717, 0.877, 1.006, 1.1, 1.159, 1.187, 1.19, 1.175, 1.146, 1.112, 1.076, 1.042, 1.014, 0.991, 0.976, 0.967, 0.963, 0.964, 0.968, 0.974, 0.981, 0.988, 0.994, 0.999, 1.003, 1.005, 1.007, 1.007, 1.007, 1.006, 1.004, 1.003, 1.002, 1.001, 1, 1);
  }
}

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

* {
  margin: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
}

::selection {
  background: var(--mint);
  color: var(--mint-ink);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 500;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mint {
  color: var(--mint);
}

/* ---------- Type ---------- */

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sub {
  max-width: 600px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.sub strong {
  color: var(--ink);
  font-weight: 500;
}

.head {
  max-width: 760px;
}

.head .h2 {
  margin-top: 18px;
}

.head.center {
  margin-inline: auto;
  text-align: center;
}

.head.center .sub {
  margin-inline: auto;
  text-wrap: balance;
}

/* The app's tinted tags. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tag-mint {
  background: rgba(179, 243, 188, 0.12);
  color: var(--mint);
}

.tag-violet {
  background: rgba(124, 92, 255, 0.16);
  color: #b9a8ff;
}

.tag-plain {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
}

.live {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0; transform: scale(3); }
}

/* ---------- Buttons and pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--spring), background-color 0.2s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.96);
  transition-duration: 0.12s;
}

.btn-mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.btn-mint:hover {
  background: #c8f8cf;
  box-shadow: 0 12px 32px -12px rgba(179, 243, 188, 0.6);
}

.btn-dark {
  background: var(--surface-3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-dark:hover {
  background: #24252b;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.pill svg {
  width: 15px;
  height: 15px;
}

.pill-mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.pill-dark {
  background: #26272b;
  color: var(--ink);
}

.pill-wine {
  background: rgba(40, 4, 22, 0.55);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.pill-xs {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
}

.cta-row.center {
  justify-content: center;
}

/* ---------- Avatars ---------- */

.av {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.av-mint { background: var(--mint); color: var(--mint-ink); }
.av-violet { background: #c4b5fd; color: #2e1065; }
.av-rose { background: #fda4af; color: #4c0519; }
.av-blue { background: #93c5fd; color: #172554; }
.av-glass { background: rgba(255, 255, 255, 0.2); color: #fff; }

.avatars {
  display: inline-flex;
}

.avatars .av + .av {
  margin-left: -8px;
  box-shadow: 0 0 0 2px #0e0f12;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  animation: fade 0.8s var(--ease-out) backwards;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

@keyframes fade {
  from { opacity: 0; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: auto;
  height: 25px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.nav > .btn {
  justify-self: end;
}

/* ---------- Hero ---------- */

.hero {
  --mx: 0;
  --my: 0;
  --sp: 0;
  position: relative;
  padding-top: clamp(118px, 15vh, 160px);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 780px) minmax(0, 1fr);
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.hero-copy > .tag {
  animation: reveal 0.9s var(--spring) 0.1s backwards;
}

.hero-title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.3vw, 5.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
}

/* Each line rises out of its own mask. The padding keeps descenders. */
.ln {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.12em;
  margin: -0.04em -0.06em -0.12em;
  white-space: nowrap;
}

.ln > span {
  display: inline-block;
  animation: line-up 1.1s var(--spring) backwards;
}

.ln:nth-child(1) > span { animation-delay: 0.18s; }
.ln:nth-child(2) > span { animation-delay: 0.3s; }

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

.lede {
  max-width: 600px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.45vw, 19.5px);
  line-height: 1.6;
  text-wrap: pretty;
  animation: reveal 1s var(--spring) 0.44s backwards;
}

.hero .waitlist {
  width: 100%;
  margin-top: 36px;
  animation: reveal 1s var(--spring) 0.54s backwards;
}

/* The app isn't in the stores yet, so plain words, not store badges. */
.platforms {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.hero-copy .platforms {
  animation: reveal 1s var(--spring) 0.62s backwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(36px); }
}

/* 3D objects live in the gutters beside the copy, so they never cover it.
   .fl moves with the pointer and the scroll, .fl-pop pops in once, and the
   image bobs. Three layers, so the transforms never fight. */
.gutter {
  position: relative;
}

.fl {
  --d: 1;
  --r: 0deg;
  --t: 7s;
  position: absolute;
  width: min(var(--w), 86%);
  opacity: calc(1 - var(--sp) * 1.4);
  transform: translate3d(calc(var(--mx) * var(--d) * -40px), calc(var(--my) * var(--d) * -30px - var(--sp) * var(--d) * 280px), 0);
  transition: transform 0.9s var(--ease-out);
}

.fl-pop {
  display: block;
  animation: pop-in 1.15s var(--pop) var(--delay, 0.4s) backwards;
}

.fl img {
  width: 100%;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.6));
  animation: bob var(--t) ease-in-out infinite alternate;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.35) rotate(-20deg); }
}

@keyframes bob {
  from { transform: translateY(-9px) rotate(calc(var(--r) - 3deg)); }
  to { transform: translateY(9px) rotate(calc(var(--r) + 3deg)); }
}

.fl-calendar { --w: 150px; --d: 1.2; --r: -8deg; --t: 7s; --delay: 0.36s; top: 0; right: 6%; }
.fl-coffee { --w: 98px; --d: 0.7; --r: 10deg; --t: 8.6s; --delay: 0.52s; top: 40%; left: 2%; }
.fl-envelope { --w: 124px; --d: 1; --r: -6deg; --t: 6.4s; --delay: 0.68s; top: 72%; right: 12%; }
.fl-vote { --w: 140px; --d: 1.1; --r: 8deg; --t: 7.6s; --delay: 0.44s; top: 3%; left: 6%; }
.fl-popper { --w: 148px; --d: 0.8; --r: -10deg; --t: 6.8s; --delay: 0.6s; top: 40%; right: 0; }
.fl-pin { --w: 112px; --d: 1.3; --r: 6deg; --t: 8s; --delay: 0.76s; top: 74%; left: 12%; }

/* ---------- Deck of app cards under the hero ---------- */

/* .deck rises in once, .deck-tilt follows the pointer, and each card
   fans out with the scroll (JS sets --dp from 0 to 1). */
.deck {
  --dp: 1;
  --spread: 250px;
  --cw: 320px;
  --ch: 468px;
  position: relative;
  height: calc(var(--ch) + 70px);
  margin-top: clamp(56px, 8vh, 84px);
  perspective: 1600px;
  animation: deck-in 1.3s var(--spring) 0.6s backwards;
}

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

.deck-tilt {
  position: absolute;
  inset: 0;
  transform: rotateX(calc(var(--my) * -6deg)) rotateY(calc(var(--mx) * 8deg));
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
}

.dcard {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: var(--cw);
  height: var(--ch);
  margin-left: calc(var(--cw) / -2);
  padding: 20px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.6s var(--ease-out);
}

.dcard-event {
  z-index: 3;
  padding: 0;
  background: linear-gradient(180deg, #1d0c2e 52%, #12071c);
  transform: translate3d(0, calc((1 - var(--dp)) * 26px), 0) scale(calc(0.95 + var(--dp) * 0.05));
}

.dcard-vibe {
  z-index: 2;
  background: var(--glass);
  transform: translate3d(calc(-70px - var(--spread) * var(--dp)), calc(42px - var(--dp) * 12px), 0) rotate(calc(-10deg + var(--dp) * 4deg));
}

.dcard-space {
  z-index: 1;
  background: linear-gradient(170deg, #17191e, #0c0d10);
  transform: translate3d(calc(70px + var(--spread) * var(--dp)), calc(42px - var(--dp) * 12px), 0) rotate(calc(10deg - var(--dp) * 4deg));
}

.dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.share {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.share svg {
  width: 16px;
}

.dc-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 66px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
}

.dc-title {
  margin-top: 14px;
  max-width: 76%;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.04;
}

.dc-sub {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

.dc-meta {
  margin-top: auto;
  color: var(--ink-3);
  font-size: 13px;
}

.dc-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 11px;
  border-radius: 18px;
  background: rgba(5, 8, 6, 0.55);
  font-size: 14px;
  font-weight: 700;
}

.time img {
  width: 54px;
  height: 40px;
  object-fit: contain;
}

.time.on {
  background: rgba(179, 243, 188, 0.16);
  color: var(--mint);
}

.voters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.voters .avatars .av + .av {
  box-shadow: 0 0 0 2px #1f2923;
}

/* Event photo, shared by the hero card, Explore and the Space, fading into
   the card below it so the text on top stays readable. */
.cover,
.ex-card,
.sp-cover {
  position: relative;
  flex: none;
  overflow: hidden;
  isolation: isolate;
}

.cover-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover::after,
.sp-cover::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, #1d0c2e 94%);
}

.cover {
  height: 52%;
}

.datechip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 52px;
  padding: 6px 0 7px;
  border-radius: 16px;
  background: rgba(14, 6, 26, 0.62);
  color: var(--mint);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.datechip b {
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.cover .share {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: rgba(14, 6, 26, 0.5);
}

.ev-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 4px 18px 18px;
}

.ev-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
}

.ev-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

.ev-meta svg {
  width: 15px;
  color: var(--mint);
}

.ev-meta i {
  width: 3px;
  height: 3px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

.ev-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.going {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.going .av {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.going .avatars .av + .av {
  margin-left: -7px;
  box-shadow: 0 0 0 2px #14081f;
}

.icon-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
}

.icon-btn svg {
  width: 17px;
}

.dcard-space .tag {
  align-self: flex-start;
  height: 26px;
  font-size: 12px;
}

.dcard-space .dc-title {
  margin-top: 16px;
}

.todo {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.todo li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  font-size: 14.5px;
  font-weight: 500;
}

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

.todo small {
  color: var(--ink-3);
  font-size: 12px;
}

.todo i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.6s var(--pop);
}

.todo li.done i {
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314321f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: none;
}

.todo li.done span {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.dc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.dc-foot .avatars .av + .av {
  box-shadow: 0 0 0 2px #121317;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(96px, 12vw, 168px) 0 0;
}

/* Reveal on scroll. JS adds .in; without JS everything is visible. These
   are animations, not transitions, so hover transitions stay instant. */
@media (scripting: enabled) {
  [data-reveal]:not(.in),
  [data-reveal-group]:not(.in) > * {
    opacity: 0;
  }

  [data-reveal].in,
  [data-reveal-group].in > * {
    animation: reveal 1.05s var(--spring) backwards;
    animation-delay: calc(var(--i, 0) * 85ms);
  }
}

/* ---------- Features: Hub tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.tile {
  --c1: #12305e;
  --c2: #0c1d3a;
  --accent: #5b9bff;
  --edge: rgba(59, 130, 246, 0.32);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 288px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--c1) 0%, var(--c2) 52%, #050506 100%);
  box-shadow: inset 0 0 0 1px var(--edge);
  overflow: hidden;
  transition: transform 0.7s var(--spring), box-shadow 0.4s;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--accent), 0 30px 60px -30px var(--edge);
}

.tile-plum { --c1: #3d1e60; --c2: #26133c; --accent: #bd8cff; --edge: rgba(168, 85, 247, 0.32); }
.tile-rose { --c1: #5a1628; --c2: #370c17; --accent: #ff5a78; --edge: rgba(244, 63, 94, 0.32); }
.tile-teal { --c1: #014c46; --c2: #012f2b; --accent: #1fd6c6; --edge: rgba(0, 204, 188, 0.32); }
.tile-olive { --c1: #5a4815; --c2: #382c0c; --accent: #ffcd4a; --edge: rgba(255, 200, 55, 0.28); }
.tile-orange { --c1: #5c2c02; --c2: #381b01; --accent: #ff8a1f; --edge: rgba(255, 122, 0, 0.32); }

.tile-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 104px;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.8s var(--pop);
}

.tile:hover .tile-icon {
  transform: translateY(-6px) rotate(-9deg) scale(1.1);
}

.tiles.in .tile-icon {
  animation: pop-in 1.1s var(--pop) backwards;
  animation-delay: calc(var(--i, 0) * 85ms + 0.25s);
}

.tile-num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tile h3 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.tile-sub {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tile p {
  margin-top: auto;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- How it works: cards stack as the steps scroll by ---------- */

.story {
  --row: max(78vh, 560px);
  --card-h: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 112px);
  margin-top: 24px;
}

.story-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 460px;
  min-height: var(--row);
  transition: opacity 0.6s var(--ease-out);
}

.story-copy.s1 { grid-row: 1; }
.story-copy.s2 { grid-row: 2; }
.story-copy.s3 { grid-row: 3; }

.story[data-active] .story-copy {
  opacity: 0.25;
}

.story[data-active="0"] .s1,
.story[data-active="1"] .s2,
.story[data-active="2"] .s3 {
  opacity: 1;
}

.story-copy img {
  width: 92px;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5));
}

.step-n {
  margin-top: 26px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.02;
}

.story-copy p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}

/* Every card shares the grid area of all three rows, so each can stay
   stuck while the next one slides up over it. */
.story-card {
  --k: 0;
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: start;
  justify-self: end;
  position: sticky;
  top: calc(50vh - var(--card-h) / 2 + var(--k) * 22px);
  width: min(100%, 400px);
  margin-top: calc(var(--k) * var(--row) + (var(--row) - var(--card-h)) / 2);
  transform-origin: 50% 0;
  transition: transform 0.8s var(--spring), filter 0.6s var(--ease-out);
}

.story-card.c2 { --k: 1; }
.story-card.c3 { --k: 2; }

.story[data-active="1"] .c1,
.story[data-active="2"] .c1,
.story[data-active="2"] .c2 {
  transform: scale(0.92) translateY(-16px);
  filter: brightness(0.42);
}

.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--card-h);
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(170deg, #17191e, #0b0c0f);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scard-glass {
  background: var(--glass);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Step 1, Explore: city and categories, then the app's stack of event cards. */
.scard-explore {
  gap: 12px;
  padding: 20px;
}

.ex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ex-head > b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.loc svg {
  width: 15px;
  color: var(--mint);
}

.cats {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.cats span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px 0 7px;
  border-radius: 999px;
  background: #1f2126;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

.cats img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cats .on {
  background: var(--mint);
  color: var(--mint-ink);
}

/* The app's Explore deck: the cards behind sit a
   little higher, smaller and darker. Drag the top card, or use the buttons,
   and it flies off while the next one comes forward. JS sets --dx/--dy on
   the dragged card and --pull (0..1) on the deck; without JS it is a still
   stack. */
.ex-deck {
  --pull: 0;
  position: relative;
  flex: 1;
  min-height: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ex-card {
  --dx: 0;
  --dy: 0;
  position: absolute;
  inset: 24px 0 0;
  border-radius: 24px;
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 0;
  transition: transform 0.6s var(--spring), filter 0.5s, opacity 0.4s;
}

.ex-card img {
  pointer-events: none;
}

.ex-card[data-depth="0"] {
  z-index: 4;
  transform-origin: 50% 85%;
  transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(calc(var(--dx) * 0.05deg));
  cursor: grab;
}

.ex-card[data-depth="1"] {
  z-index: 3;
  filter: brightness(calc(0.62 + 0.38 * var(--pull)));
  transform: translateY(calc(-12px * (1 - var(--pull)))) scale(calc(0.97 + 0.03 * var(--pull)));
}

.ex-card[data-depth="2"],
.ex-card[data-depth="3"] {
  filter: brightness(calc(0.42 + 0.2 * var(--pull)));
  transform: translateY(calc(-24px + 12px * var(--pull))) scale(calc(0.94 + 0.03 * var(--pull)));
}

.ex-card[data-depth="2"] { z-index: 2; }

/* The fourth card waits unseen behind the third and fades in as it moves up. */
.ex-card[data-depth="3"] {
  z-index: 1;
  opacity: var(--pull);
  filter: brightness(0.42);
  transform: translateY(-24px) scale(0.94);
}

.ex-deck.dragging .ex-card {
  transition: none;
}

.ex-deck.dragging .ex-card[data-depth="0"] {
  cursor: grabbing;
}

.ex-card.out {
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.45s 0.05s;
}

.ex-card.reset {
  transition: none;
}

.ex-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 18, 0.94) 75%);
}

.ex-card .datechip {
  top: 14px;
  left: 14px;
}

.friends {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px 0 4px;
  border-radius: 999px;
  background: rgba(14, 6, 26, 0.62);
  font-size: 12px;
  font-weight: 500;
}

.friends .av {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.friends .avatars .av + .av {
  margin-left: -7px;
  box-shadow: 0 0 0 2px #1a0d2a;
}

/* While dragging, the card says what letting go will do. */
.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
}

.stamp.yes {
  background: var(--mint);
  color: var(--mint-ink);
  opacity: clamp(0, calc(var(--dx) / 90), 1);
}

.stamp.no {
  background: rgba(14, 6, 26, 0.78);
  color: #fff;
  opacity: clamp(0, calc(var(--dx) / -90), 1);
}

.ex-info {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 18px;
  z-index: 1;
  display: grid;
  line-height: 1.3;
}

.ex-info b {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
}

.ex-info small {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.ex-actions {
  display: flex;
  gap: 8px;
}

.ex-actions > span {
  cursor: pointer;
  transition: transform 0.4s var(--pop), background-color 0.2s, color 0.2s;
}

.ex-actions > span:active {
  transform: scale(0.9);
  transition-duration: 0.1s;
}

.ex-actions .pill {
  flex: 1;
}

.icon-btn.on {
  background: rgba(179, 243, 188, 0.16);
  color: var(--mint);
}

.icon-btn.on svg {
  fill: currentColor;
}

/* Step 2, Vibe Check: each night's calendar stands on a bar that grows
   with its votes. No boxes around the columns, just the bars. */
.vc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vc-icon {
  flex: none;
  width: 48px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}

.vc-t {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.vc-t b {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.vc-t small {
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
}

.live-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 11px 0 10px;
  border-radius: 999px;
  background: rgba(212, 30, 70, 0.18);
  color: #ff8aa2;
  font-size: 12px;
  font-weight: 500;
}

.live-pill .live,
.live-pill .live::after {
  width: 7px;
  height: 7px;
  background: #ff5a78;
}

.days {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  margin-top: 14px;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
}

.day img {
  position: relative;
  z-index: 1;
  width: 62px;
  margin-bottom: -12px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5));
}

.fill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: var(--h);
  padding-top: 20px;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  overflow: hidden;
  transition: height 1.2s var(--spring);
}

.f1 { --h: 30%; }
.f2 { --h: 46%; }
.f5 { --h: 74%; }

.fill b {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.day.win .fill {
  background: linear-gradient(180deg, var(--mint), rgba(179, 243, 188, 0.62));
  box-shadow: 0 20px 44px -18px rgba(179, 243, 188, 0.6);
  color: var(--mint-ink);
}

.lead {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.6s var(--pop) 1s, opacity 0.3s 1s;
}

.scard-vote .voters {
  margin-top: 18px;
}

.scard-vote .voters .avatars .av + .av {
  box-shadow: 0 0 0 2px #141a16;
}

.vc-cta {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  font-size: 15px;
}

/* Step 3, the Space: the event's cover on top, the plan underneath. */
.scard-space {
  padding: 0;
  background: #111215;
}

.sp-cover {
  height: 188px;
}

.sp-cover::after {
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent, #111215 96%);
}

/* The cover is wide and short here: keep the tower and the sky in frame. */
.sp-cover .cover-photo {
  object-position: 50% 24%;
}

.going-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 12.5px;
  font-weight: 500;
}

.going-tag svg {
  width: 14px;
}

.sp-cover > .avatars {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 1;
  padding: 3px;
  border-radius: 999px;
  background: rgba(14, 6, 26, 0.62);
}

.sp-cover .av {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
}

.sp-cover .avatars .av + .av {
  margin-left: -7px;
  box-shadow: 0 0 0 2px #1a0d2a;
}

.sp-title {
  position: absolute;
  right: 20px;
  bottom: 10px;
  left: 20px;
  z-index: 1;
  display: grid;
  line-height: 1.3;
}

.sp-title b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.sp-title small {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.sp-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 20px 20px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 40px;
  padding: 4px;
  border-radius: 999px;
  background: #1c1d22;
}

.tabs span {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}

.tabs i {
  font-style: normal;
  opacity: 0.65;
}

.tabs .on {
  background: var(--mint);
  color: var(--mint-ink);
}

.sp-body .todo {
  gap: 4px;
  margin-top: 14px;
}

.todo .av {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.av-falcon {
  background: linear-gradient(135deg, var(--violet), var(--crimson));
}

.av-falcon img {
  width: 11px;
}

.last {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: #1c1d22;
}

.last > span {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.35;
}

.last b {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
}

.last small {
  align-self: flex-start;
  color: var(--ink-3);
  font-size: 12px;
}

/* Votes fill and to-dos tick when their step comes into play. */
@media (scripting: enabled) {
  .story-card:not(.played) .fill {
    height: 22px;
  }

  .story-card:not(.played) .lead {
    opacity: 0;
    transform: scale(0.4);
  }

  .story-card:not(.played) .todo li.done i {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--line-2);
    transform: scale(0.8);
  }

  .story-card:not(.played) .todo li.done span {
    color: inherit;
    text-decoration-color: transparent;
  }

  .story-card .todo li:nth-child(2) i { transition-delay: 0.35s; }
  .story-card .todo li:nth-child(3) i { transition-delay: 0.7s; }
  .story-card .day:nth-child(2) .fill { transition-delay: 0.12s; }
  .story-card .day:nth-child(3) .fill { transition-delay: 0.24s; }
}

/* ---------- Falcon ---------- */

.falcon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.falcon-copy .h2 {
  margin-top: 18px;
}

.points {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.5;
}

.points img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.points b {
  color: var(--ink);
  font-weight: 500;
}

/* Falcon's chat: one surface, panes set apart by tone, never by lines. */
.chat {
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  background: linear-gradient(180deg, #131418, #0b0c0f);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 4px;
}

.chat-head b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.chat-head small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.chat-head .live {
  width: 6px;
  height: 6px;
}

.falcon-av {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet), var(--crimson));
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7);
}

.falcon-av img {
  width: 17px;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 560px;
  padding: 18px 20px 14px;
}

.msg {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 1.45;
}

.msg-me {
  align-self: flex-end;
  border-bottom-right-radius: 8px;
  background: var(--mint);
  color: var(--mint-ink);
}

.msg-ai {
  align-self: flex-start;
  border-bottom-left-radius: 8px;
  background: #1d1e23;
}

.typing {
  display: none;
}

.plan {
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: #18191e;
}

.plan-head {
  display: grid;
  margin-bottom: 8px;
  line-height: 1.3;
}

.plan-head b {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.plan-head span {
  color: var(--ink-3);
  font-size: 13px;
}

.stop {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.stop img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.stop b {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop small {
  color: var(--ink-3);
  font-size: 12.5px;
}

/* Booking actions: quiet mint, so four of them don't shout. */
.pill-soft {
  background: rgba(179, 243, 188, 0.13);
  color: var(--mint);
}

.plan-foot {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.plan-foot .pill {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.disclose {
  color: var(--ink-3);
  font-size: 12.5px;
}

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  margin: 0 16px 16px;
  padding: 0 7px 0 20px;
  border-radius: 999px;
  background: #1a1b20;
  color: var(--ink-3);
  font-size: 15px;
}

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

.send {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
}

.send svg {
  width: 18px;
}

/* The conversation plays once when it scrolls into view. */
@media (scripting: enabled) {
  .chat:not(.in) .chat-body > * {
    opacity: 0;
  }

  .chat.in .q1 { animation: msg-in 0.7s var(--spring) 0.2s backwards; }
  .chat.in .q3 { animation: msg-in 0.7s var(--spring) 1.9s backwards; }
  .chat.in .q4 { animation: msg-in 0.9s var(--spring) 2.35s backwards; }
  .chat.in .q5 { animation: fade 0.6s var(--ease-out) 3.4s backwards; }

  .chat.in .q4 .stop { animation: reveal 0.8s var(--spring) backwards; }
  .chat.in .q4 .stop:nth-child(2) { animation-delay: 2.55s; }
  .chat.in .q4 .stop:nth-child(3) { animation-delay: 2.67s; }
  .chat.in .q4 .stop:nth-child(4) { animation-delay: 2.79s; }
  .chat.in .q4 .stop:nth-child(5) { animation-delay: 2.91s; }

  .chat.in .typing {
    display: flex;
    align-self: flex-start;
    gap: 5px;
    overflow: hidden;
    padding: 15px 16px;
    border-radius: 20px;
    background: #1d1e23;
    animation: typing-life 1.25s var(--ease-out) 0.75s both;
  }

  .typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-3);
    animation: dot 1s ease-in-out infinite;
  }

  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
}

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

@keyframes typing-life {
  0% { opacity: 0; transform: scale(0.7); max-height: 0; padding-block: 0; }
  12% { opacity: 1; transform: none; max-height: 40px; padding-block: 15px; }
  82% { opacity: 1; max-height: 40px; padding-block: 15px; margin-block: 0; }
  100% { opacity: 0; max-height: 0; padding-block: 0; margin-block: -6px; }
}

@keyframes dot {
  0%, 60%, 100% { transform: none; opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Partners ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
  list-style: none;
}

/* The dashed path between the three steps draws itself in. */
.flow::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 17%;
  right: 17%;
  border-top: 2px dashed rgba(255, 255, 255, 0.16);
  transform-origin: 0 50%;
  transition: transform 1.6s var(--ease-out) 0.25s;
}

@media (scripting: enabled) {
  .flow:not(.in)::before {
    transform: scaleX(0);
  }
}

.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flow img {
  box-sizing: content-box;
  width: 76px;
  height: 76px;
  padding: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  object-fit: contain;
}

.flow h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.flow p {
  max-width: 270px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.verticals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
  list-style: none;
}

.verticals li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px;
  font-weight: 500;
}

.verticals img {
  width: 38px;
  height: 34px;
  object-fit: contain;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.values > div {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

.values h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
}

.values p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Trust ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.trust img {
  width: auto;
  height: 68px;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5));
}

.trust h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.trust p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.about-art img {
  width: min(100%, 420px);
  margin-inline: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6));
  animation: bob 7s ease-in-out infinite alternate;
}

.about-copy .h2 {
  margin-top: 18px;
}

.contact {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 14px;
  margin-top: 36px;
  padding: 18px 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s, transform 0.6s var(--spring);
}

.contact small {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact span {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.contact svg {
  width: 20px;
  color: var(--mint);
  transition: transform 0.6s var(--pop);
}

.contact:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--mint);
}

.contact:hover svg {
  transform: translate(3px, -3px);
}

/* ---------- Final CTA ---------- */

.final {
  padding: clamp(120px, 14vw, 180px) 0 clamp(96px, 11vw, 140px);
}

.final-card {
  position: relative;
  padding: clamp(64px, 8vw, 104px) clamp(24px, 5vw, 64px);
  border-radius: 40px;
  background: var(--event);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  text-align: center;
}

.final-card .h2 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
}

.final-card .sub {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: balance;
}

.final-card .waitlist {
  margin: 36px auto 0;
}

.final-card .waitlist-field {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.final-card .form-note,
.final-card .form-fallback {
  color: rgba(255, 255, 255, 0.7);
}

.final-card .platforms {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.final-icon {
  position: absolute;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.5));
  animation: bob 7s ease-in-out infinite alternate;
}

.fi-1 {
  --r: -12deg;
  top: -56px;
  left: clamp(12px, 5%, 72px);
  width: clamp(92px, 11vw, 150px);
}

.fi-2 {
  --r: 10deg;
  right: clamp(12px, 5%, 72px);
  bottom: -48px;
  width: clamp(84px, 10vw, 136px);
  animation-duration: 8.4s;
}

/* ---------- Waitlist form ---------- */

.waitlist {
  max-width: 520px;
}

.waitlist-field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.3s;
}

.waitlist-field:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 0 5px rgba(179, 243, 188, 0.12);
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.waitlist input::placeholder {
  color: var(--ink-3);
}

.waitlist .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist .btn {
  position: relative;
}

.waitlist.busy .btn {
  color: transparent;
}

.waitlist.busy .btn::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--mint-ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13.5px;
}

.form-note a,
.form-fallback a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.form-note a:hover,
.form-fallback a:hover {
  color: var(--ink);
}

.form-status {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.waitlist.done .waitlist-field,
.waitlist.done .form-note {
  display: none;
}

.waitlist.done .form-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(179, 243, 188, 0.12);
  box-shadow: inset 0 0 0 1px rgba(179, 243, 188, 0.4);
  animation: msg-in 0.7s var(--spring) backwards;
}

.waitlist.done .form-status::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314321f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.form-fallback {
  display: none;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.waitlist.error .form-fallback {
  display: block;
}

.waitlist.error .form-status {
  color: #ff8fa3;
}

/* ---------- Footer ---------- */

.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 15px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 500;
}

.footer ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  list-style: none;
}

.footer ul a {
  color: var(--ink-3);
  font-size: 15px;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--ink);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13.5px;
}

/* ---------- Legal and other text pages ---------- */

.doc {
  padding: 150px 0 110px;
}

.doc-head {
  max-width: 760px;
  margin-inline: auto;
}

.doc-head h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
}

.doc-meta {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 15px;
}

.prose {
  max-width: 760px;
  margin: 56px auto 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  margin: 56px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
}

.prose h3 {
  margin: 32px 0 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--mint);
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(179, 243, 188, 0.5);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--mint);
}

.prose .callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(179, 243, 188, 0.07);
  box-shadow: inset 0 0 0 1px rgba(179, 243, 188, 0.25);
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 120px 0;
  text-align: center;
}

.not-found img {
  width: 132px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.5));
  animation: bob 6s ease-in-out infinite alternate;
}

.not-found h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
}

.not-found .sub {
  margin-inline: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .deck {
    --spread: 200px;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  /* Too narrow for objects beside the copy: the deck carries the visual. */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gutter {
    display: none;
  }

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

  .falcon-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat {
    width: 100%;
    max-width: 540px;
  }

  .about-art img {
    width: min(70%, 320px);
  }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

/* One column: each step is followed by its own card, nothing sticks. */
@media (max-width: 900px) {
  .story {
    display: flex;
    flex-direction: column;
  }

  .story-copy {
    max-width: 560px;
    min-height: 0;
    margin-top: 72px;
  }

  .story[data-active] .story-copy {
    opacity: 1;
  }

  .story-card {
    position: relative;
    top: auto;
    align-self: flex-start;
    width: min(100%, 400px);
    margin-top: 32px;
    transform: none !important;
    filter: none !important;
  }

  .flow,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    gap: 40px;
  }

  .flow::before {
    top: 60px;
    bottom: 60px;
    left: 50%;
    right: auto;
    border-top: 0;
    border-left: 2px dashed rgba(255, 255, 255, 0.16);
    transform-origin: 50% 0;
  }

  .flow li {
    padding-bottom: 8px;
    background: var(--bg);
  }

  .values {
    gap: 24px;
    margin-top: 64px;
  }
}

@media (scripting: enabled) and (max-width: 900px) {
  .flow:not(.in)::before {
    transform: scaleY(0);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    height: 22px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10.4vw, 4rem);
  }

  .deck {
    --spread: 90px;
    --cw: 272px;
    --ch: 410px;
  }

  .dcard {
    padding: 18px;
    border-radius: 28px;
  }

  /* On a phone only a strip of each side card shows; dim it to depth. */
  .dcard-vibe,
  .dcard-space {
    filter: brightness(0.55);
  }

  .dc-title {
    font-size: 26px;
  }

  .dcard-event {
    padding: 0;
  }

  .cover {
    height: 46%;
  }

  .ev-body {
    padding: 2px 16px 16px;
  }

  .ev-title {
    font-size: 24px;
  }

  .ev-meta {
    font-size: 13px;
  }

  .ev-foot .icon-btn {
    display: none;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tile {
    min-height: 0;
  }

  .tile-icon {
    width: 88px;
  }

  .chat-body {
    min-height: 0;
    padding: 16px;
  }

  .msg {
    max-width: 90%;
  }

  .plan-foot {
    flex-wrap: wrap;
  }

  .trust {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .final-card {
    border-radius: 32px;
  }
}

@media (max-width: 480px) {
  .nav > .btn {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .waitlist-field {
    flex-direction: column;
    padding: 6px;
    border-radius: 28px;
  }

  .waitlist input[type="email"] {
    height: 50px;
  }

  .waitlist .btn {
    width: 100%;
  }

  .verticals li {
    height: 52px;
    font-size: 14.5px;
  }

  .contact span {
    font-size: 21px;
  }

  .scard:not(.scard-space) {
    padding: 18px;
  }

  /* The filter chips scroll in the app; fade the last one at the edge. */
  .cats {
    mask-image: linear-gradient(90deg, #000 86%, transparent);
  }

  .sp-body {
    padding: 12px 18px 18px;
  }

  .fill b {
    font-size: 36px;
  }
}

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

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