/* Tangent: marketing site. Tokens mirror apps/mobile/src/theme/tokens.ts. */

:root {
  --bg: #f7f5f3;
  --surface: #ffffff;
  --quiet: #f1ece8;
  --ink: #1d1a18;
  --ink-soft: #3f3a36;
  --muted: #6e6762;
  --line: #e3ddd8;
  --accent: #b9253a;
  --accent-text: #b9253a;
  --accent-deep: #8f1c2d;
  --circle-base: #e9e2dd;
  --shadow: 0 30px 60px -30px rgba(70, 30, 20, 0.28), 0 8px 20px -10px rgba(70, 30, 20, 0.12);

  /* the dark chapters (manifesto, twelve) stay dark in both themes */
  --night: #141110;
  --night-ink: #f5f0ec;
  --night-muted: #a69d96;

  --d-intent: #f27ba8;
  --d-personality: #2bb3a3;
  --d-values: #f26b5b;
  --d-lifestyle: #6cc070;
  --d-communication: #4fa3f7;
  --d-intellectual: #f5a623;
  --d-prompt: #9b7bea;
  --d-humour: #ffcc4d;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1a18;
    --quiet: #2a2522;
    --ink: #f5f0ec;
    --ink-soft: #dad2cc;
    --muted: #a69d96;
    --line: #3a332f;
    --accent: #d63a52;
    --accent-text: #f2788a;
    --accent-deep: #b42e44;
    --circle-base: #3a332f;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
    --night: #0c0a09;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Clip (not hide): no scroll container, so sticky scenes keep working, and
   the hero's glow can't widen the page on phones. */
main {
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
}

em {
  font-style: italic;
  color: var(--accent-text);
  font-variation-settings: 'SOFT' 100;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #2a7fd8;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ------------------------------------------------------------------ type */

.display,
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings:
    'SOFT' 50,
    'opsz' 144;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(46px, 7.2vw, 104px);
}

.title {
  font-size: clamp(38px, 5.4vw, 76px);
}

.kicker,
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-text);
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 28px 0 0;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-sub {
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 32em;
  margin: 24px 0 0;
}

/* ------------------------------------------------------------------- mark */

/* The ring draws itself, then the heart arrives and touches it. */
.soon-ring,
.fm-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6.8;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  stroke-linecap: round;
  transform: rotate(-45deg);
  transform-origin: 52px 66px;
}

.soon-heart,
.fm-heart {
  fill: var(--accent);
  opacity: 0;
  transform: translate(60px, -60px);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heart-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  transition:
    background 0.4s,
    box-shadow 0.4s,
    padding 0.4s var(--ease),
    transform 0.5s var(--ease);
}

.nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.nav.hide {
  transform: translateY(-110%);
}

/* Hidden over the coming-soon screen, which has its own mark. */
.nav.away {
  transform: translateY(-110%);
  pointer-events: none;
}

/* Keyboard users always see where they are: the nav slides back in when it
   gets focus, even while it's tucked away. */
.nav:focus-within {
  transform: none;
  pointer-events: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.is-registered .nav-cta {
  display: none;
}

.nav.on-dark {
  --ink: var(--night-ink);
  --ink-soft: #dad2cc;
}

.nav.on-dark.scrolled {
  background: rgba(20, 17, 16, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: block;
  margin-right: auto;
}

.logo {
  height: 34px;
  width: auto;
  overflow: visible;
}

.logo-ink {
  fill: var(--ink);
}

.logo-ink-stroke {
  stroke: var(--ink);
}

.logo-heart {
  fill: var(--accent);
}

.logo-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 62px;
  letter-spacing: -0.8px;
  font-variation-settings: 'opsz' 72;
  fill: var(--ink);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s;
}

.pill-accent {
  background: var(--accent);
  color: #fff;
}

.pill-accent:hover {
  background: var(--accent-deep);
}

/* ------------------------------------------------------------ coming soon */

/* The first screen is the coming-soon page: centred mark, line and sign-up. */
.soon {
  position: relative;
  min-height: 100svh;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* A soft warm light behind it, across the full width. */
.soon::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      700px circle at 50% 30%,
      color-mix(in srgb, var(--accent) 9%, transparent),
      transparent 65%
    ),
    radial-gradient(
      500px circle at 85% 90%,
      color-mix(in srgb, var(--accent) 5%, transparent),
      transparent 60%
    );
}

.soon-mark {
  width: 96px;
  height: 96px;
  overflow: visible;
}

.soon-ring {
  animation: draw 1s var(--ease) 0.2s forwards;
}

.soon-heart {
  animation: heart-in 0.9s var(--spring) 0.7s forwards;
}

.soon-word {
  margin: 20px 0 40px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
  line-height: 1;
}

.soon .eyebrow {
  margin: 0 0 28px;
}

.soon .display {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.04;
}

.soon .lede {
  margin: 28px auto 0;
  max-width: 32em;
  font-size: clamp(17px, 1.6vw, 20px);
  text-wrap: pretty;
}

.soon > div {
  width: 100%;
}

/* Words rise in once the mark settles, as on the coming-soon page. */
.soon-rise {
  opacity: 0;
  transform: translateY(14px);
  animation: soon-rise 0.9s var(--ease) forwards;
  animation-delay: var(--rise-d, 0s);
}

@keyframes soon-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* The way into the rest of the site: a clear label and a round arrow. */
.soon-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.soon-more-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 12px 24px -16px rgba(70, 30, 20, 0.35);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}

.soon-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 2.4s var(--ease) 2.6s 3;
}

.soon-more:hover .soon-more-arrow {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  color: #fff;
}

@keyframes nudge {
  0%,
  60%,
  100% {
    transform: none;
  }
  30% {
    transform: translateY(4px);
  }
}

/* Laptops with short screens: tighter spacing so the way down shows without scrolling. */
@media (max-height: 860px) and (min-width: 621px) {
  .soon {
    padding: 40px 16px 24px;
  }

  .soon-mark {
    width: 72px;
    height: 72px;
  }

  .soon-word {
    margin: 14px 0 26px;
  }

  .soon .eyebrow {
    margin-bottom: 20px;
  }

  .soon .lede {
    margin-top: 20px;
  }

  .soon .interest {
    margin-top: 28px;
  }

  .soon-more {
    margin-top: 24px;
  }
}

/* ------------------------------------------------------------- sign-up form */

.interest {
  width: 100%;
  max-width: 520px;
  margin: 40px auto 0;
}

.field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 40px -24px rgba(70, 30, 20, 0.25);
  transition: box-shadow 0.25s var(--ease);
}

.field:focus-within {
  box-shadow:
    0 0 0 2px var(--accent),
    0 20px 40px -24px rgba(70, 30, 20, 0.25);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.field input::placeholder {
  color: var(--muted);
}

.field-btn {
  flex: none;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s var(--spring),
    background 0.2s;
}

.field-btn:hover {
  background: var(--accent-deep);
}

.field-btn:active {
  transform: scale(0.96);
}

.field-btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

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

.fine {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.fine a {
  color: inherit;
}

.fine[data-kind='error'] {
  color: var(--accent-text);
  font-weight: 500;
}

.fine[data-kind='ok'] {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

/* Signed up (here or in the other form): the field folds away. */
.interest.done .field {
  display: none;
}

.interest.done .fine {
  margin-top: 0;
  animation: soon-rise 0.6s var(--ease);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Phones: the button sits under the field. */
@media (max-width: 520px) {
  .field {
    flex-direction: column;
    border-radius: 28px;
  }

  .field input {
    padding: 14px 16px;
  }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-glow {
  position: absolute;
  inset: -20% -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      600px circle at var(--mx, 70%) var(--my, 40%),
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 60%
    ),
    radial-gradient(
      500px circle at 85% 20%,
      color-mix(in srgb, var(--d-intellectual) 9%, transparent),
      transparent 70%
    ),
    radial-gradient(
      600px circle at 70% 90%,
      color-mix(in srgb, var(--d-prompt) 8%, transparent),
      transparent 70%
    );
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: pulse 2.2s 3;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* stage: the one card in focus, in front of an evening over London */
.hero-stage {
  position: relative;
  height: min(720px, 86svh);
  display: grid;
  place-items: center;
}

/* The sun goes down behind the rooftops once, as the page opens, then
   nothing moves. The opposite of a feed. */
.dusk {
  --sky: #fbd9c2;
  --sun-core: #fff3e6;
  --sun-rim: #f8be9a;
  --sun-glow: rgba(248, 178, 138, 0.45);
  --city-far: #e8d3ca;
  --city-near: #dfc4ba;
  position: absolute;
  inset: 0 -16%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 40% at 76% 62%,
    color-mix(in srgb, var(--sky) 80%, transparent),
    transparent 72%
  );
  -webkit-mask-image:
    linear-gradient(to top, transparent 14%, #000 30%),
    radial-gradient(ellipse 58% 70% at 50% 58%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to top, transparent 14%, #000 30%),
    radial-gradient(ellipse 58% 70% at 50% 58%, #000 62%, transparent 100%);
  mask-composite: intersect;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.dusk.in {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .dusk {
    --sky: #5a2a24;
    --sun-core: #f7c09c;
    --sun-rim: #d8694f;
    --sun-glow: rgba(216, 105, 79, 0.3);
    --city-far: #2b211e;
    --city-near: #221a18;
  }
}

.dusk-sun {
  position: absolute;
  left: 66%;
  bottom: 30%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--sun-core) 20%, var(--sun-rim));
  box-shadow: 0 0 90px 30px var(--sun-glow);
  transform: translateY(-22%);
  transition: transform 6s var(--ease);
}

.dusk.in .dusk-sun {
  transform: none;
}

.dusk-city {
  position: absolute;
  left: 0;
  bottom: 14%;
  width: 100%;
  height: auto;
}

.dusk-city .far {
  fill: var(--city-far);
}

.dusk-city .eye {
  fill: none;
  stroke: var(--city-far);
  stroke-width: 3;
}

.dusk-city .near {
  fill: var(--city-near);
}

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 48px;
  padding: 10px;
  background: #0f0d0c;
  box-shadow:
    0 0 0 1.5px #3a332f inset,
    0 60px 100px -40px rgba(60, 20, 10, 0.55),
    0 20px 40px -20px rgba(60, 20, 10, 0.35);
}

.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 86px;
  height: 25px;
  border-radius: 20px;
  background: #0f0d0c;
  z-index: 3;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 39px;
  background: #f7f5f3;
  color: #1d1a18;
  overflow: hidden;
  padding: 58px 14px 14px;
  --ink: #1d1a18;
  --ink-soft: #3f3a36;
  --muted: #6e6762;
  --line: #e3ddd8;
  --accent: #b9253a;
  --accent-text: #b9253a;
  --circle-base: #e9e2dd;
  --quiet: #f1ece8;
  --surface: #fff;
}

.phone-hero {
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  z-index: 2;
}

.feed-card {
  height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -14px rgba(70, 30, 20, 0.25);
}

.photo {
  position: relative;
  overflow: hidden;
  flex: none;
}

/* Example profiles are drawn headshots, never photos of real people. Each
   card keeps its own sky colour behind a soft halo. */
.photo-a {
  height: 54%;
  background: linear-gradient(180deg, #fbd9c4 0%, #f2ab9b 50%, #cf7f8f 100%);
}

.photo-b {
  height: 100%;
  background: linear-gradient(180deg, #bfe0e8 0%, #9cc7d6 50%, #6f9fb8 100%);
}

/* A soft shade under the name so it reads on any picture. */
.photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(20, 12, 10, 0.5));
}

.photo .photo-meta {
  z-index: 1;
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pt-isla {
  --skin: #eec3a5;
  --shade: #d9a182;
  --hair: #3a2420;
  --lip: #b04a50;
  --blush: #e98c86;
  --top: #c2343d;
}

.pt-theo {
  --skin: #8a5a3c;
  --shade: #6f4429;
  --hair: #1d1412;
  --lip: #3d1d14;
  --blush: transparent;
  --top: #2f4a6b;
}

.pt-maya {
  --skin: #c48a62;
  --shade: #a96f4a;
  --hair: #2a1a14;
  --lip: #8e3b36;
  --blush: #d9786a;
  --top: #2f5d50;
}

.pt-halo {
  fill: #fff;
  opacity: 0.3;
}

.pt-skin {
  fill: var(--skin);
}

.pt-shade {
  fill: var(--shade);
}

.pt-hair {
  fill: var(--hair);
}

.pt-beard {
  fill: var(--hair);
  opacity: 0.8;
}

.pt-top {
  fill: var(--top);
}

.pt-line {
  fill: none;
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 2;
}

.pt-scarf {
  fill: #f2e2cf;
}

.pt-collar {
  fill: #f4efe8;
}

.pt-gold {
  fill: none;
  stroke: #e0b13e;
  stroke-width: 2.6;
}

.pt-brow {
  fill: none;
  stroke: var(--hair);
  stroke-linecap: round;
}

.pt-eye {
  fill: #241815;
}

.pt-nose {
  fill: none;
  stroke: var(--shade);
  stroke-width: 3;
  stroke-linecap: round;
}

.pt-mouth {
  fill: none;
  stroke: var(--lip);
  stroke-width: 3.6;
  stroke-linecap: round;
}

.pt-blush {
  fill: var(--blush);
  opacity: 0.35;
}

.photo-meta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.photo-meta b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
}

.photo-meta span {
  font-size: 13px;
  opacity: 0.92;
}

.feed-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 12px;
}

.act {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.act-pass {
  background: var(--quiet);
  color: var(--muted);
}

.act-like {
  background: var(--accent);
  animation: beat 2.4s var(--spring) 2;
}

.act-like svg {
  width: 22px;
  fill: #fff;
}

@keyframes beat {
  0%,
  70%,
  100% {
    transform: scale(1);
  }
  78% {
    transform: scale(1.14);
  }
  86% {
    transform: scale(0.96);
  }
}

.float-note {
  position: absolute;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.note-1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  left: -6%;
  top: 22%;
}

.note-2 {
  right: -6%;
  bottom: 6%;
  animation-delay: -3s;
}

/* ---------------------------------------------------------------- marquee */

.marquee {
  --edge: clamp(32px, 9vw, 140px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  /* Words fade out at the edges instead of being sliced off. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--edge),
    #000 calc(100% - var(--edge)),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--edge),
    #000 calc(100% - var(--edge)),
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.marquee span {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 0 28px;
  white-space: nowrap;
}

.marquee i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}

/* ---------------------------------------------------------- dark chapters */

.chapter-dark {
  background: var(--night);
  color: var(--night-ink);
  --ink: var(--night-ink);
  --muted: var(--night-muted);
  --accent-text: #f2788a;
  position: relative;
}

.sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

/* An ordinary section now: the paragraph reads in one go. */
.manifesto .sticky {
  position: relative;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  max-width: calc(1100px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 160px var(--gutter);
}

.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.9vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 50;
  margin: 0;
  text-wrap: pretty;
}

.manifesto-punch {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0.7em 0 0;
}

.twelve {
  height: 240vh;
}

.twelve-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.twelve-captions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
}

.cap.on {
  opacity: 1;
  transform: none;
}

.cap .big {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 40px var(--night);
}

.cap .small {
  color: var(--night-muted);
  font-size: 18px;
  max-width: 30em;
}

/* ------------------------------------------------------- what we stand for */

.aims {
  padding: 160px 0 20px;
}

/* One line through three stops, drawn as it comes into view, ending at the heart. */
.aims-path {
  list-style: none;
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  position: relative;
}

.aims-path::before,
.aims-path::after {
  content: '';
  position: absolute;
  top: 10px;
  left: calc(var(--gutter) + 10px);
  right: var(--gutter);
  height: 2px;
  margin-top: -1px;
  background: var(--line);
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}

.aims-path::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s linear 0.1s;
}

.aims-path.in::after {
  transform: none;
}

.aim-stop {
  position: relative;
  z-index: 1;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line);
  transition:
    background 0.4s,
    box-shadow 0.4s;
  transition-delay: var(--d, 0s);
}

.aims-path.in .aim-stop {
  background: var(--accent);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Stops drawn as shapes (the chat bubble and the heart) instead of a dot. */
.aim-icon,
.aims-path.in .aim-icon {
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.aim-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--line);
  transform: scale(0.85);
  transition:
    fill 0.4s,
    transform 0.7s var(--spring);
  transition-delay: var(--d, 0s);
}

.aims-path.in .aim-icon svg {
  fill: var(--accent);
  transform: none;
}

/* The same faint glow as the dot's, following the shape (6px either way). */
.aim-glow {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.4s;
  transition-delay: var(--d, 0s);
}

.aims-path.in .aim-glow {
  opacity: 0.14;
}

.aim-bubble {
  width: 24px;
  height: 22px;
  margin: 1.5px 0 -3.5px -2px;
}

.aim-bubble .aim-glow {
  stroke-width: 12;
}

.aim-heart {
  width: 26px;
  height: 26px;
  margin: -3px 0 -3px -3px;
}

.aim-heart .aim-glow {
  stroke-width: 8.3;
}

.aim-when {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-text);
}

.aim h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  text-wrap: balance;
}

.aim p:last-child {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ how it works */

.how {
  padding: 160px 0 80px;
}

.how-grid {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.how-phone-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
}

.phone-how {
  width: 290px;
}

.screen {
  position: absolute;
  inset: 58px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.5s var(--ease),
    transform 0.7s var(--ease);
  pointer-events: none;
}

.screen.on {
  opacity: 1;
  transform: none;
}

.scr-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  margin: 0;
}

.scr-q {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin: 2px 0 8px;
}

.scr-bar {
  margin-top: auto;
  height: 6px;
  border-radius: 6px;
  background: var(--quiet);
  overflow: hidden;
}

.scr-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}

.scr-foot {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.mini-card {
  height: 210px;
  min-height: 140px; /* room for a headshot when the screen is short */
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 24px -14px rgba(70, 30, 20, 0.3);
}

.mini-card-body {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mini-card-body b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
}

.mini-card-body span {
  font-size: 12px;
}

.mini-card-body em {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.prompt-card {
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 0 0 1px var(--line);
}

.prompt-ans {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  margin: 6px 0 12px;
}

.comment-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.bubble {
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 82%;
}

.bubble.them {
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  border-bottom-left-radius: 6px;
}

.bubble.me {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.screen.on .bubble,
.screen.on .starter {
  animation: rise 0.6s var(--ease) both;
}

.screen.on .bubble.me {
  animation-delay: 0.35s;
}

.screen.on .starter {
  animation-delay: 0.6s;
}

.screen.on .starter + .starter {
  animation-delay: 0.75s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

.starters-k {
  margin-top: auto;
}

.starter {
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff6d9;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 25vh 0;
}

.step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transform: translateX(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease);
}

.step.on {
  opacity: 1;
  transform: none;
}

.step-n {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.step > h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}

/* Direct children only: the phone copies on small screens live inside .step too. */
.step > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 30em;
}

.step > .aside {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.step-screen {
  display: none;
}

/* ---------------------------------------------------------------- reasons */

/* One neutral style, as in the app: a quiet pill with a small red heart. */
.why {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 16px 8px;
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reasons li {
  align-self: flex-start;
  font-size: 12.5px;
  line-height: 1.3;
  padding: 7px 12px 7px 28px;
  border-radius: 999px;
  background: var(--quiet);
  color: var(--ink-soft);
  position: relative;
}

.reasons li::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  background: var(--accent);
  clip-path: path('M4.5 8.6 0.7 4.8A2.2 2.2 0 0 1 4.5 1.6 2.2 2.2 0 0 1 8.3 4.8Z');
}

.screen .reasons {
  padding: 0;
}

/* ---------------------------------------------------- dealbreaker screens */

.scr-q {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin: 2px 0 6px;
}

.scr-label {
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0 0;
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opt {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.opt.on {
  background: #f6eee9;
  box-shadow: 0 0 0 1.5px var(--accent);
  font-weight: 600;
}

.screen.on .opt.on {
  animation: rise 0.5s var(--spring) both;
}

.screen.on .opts .opt.on:nth-child(2) {
  animation-delay: 0.12s;
}

.seg {
  display: flex;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--quiet);
  padding: 3px;
}

.seg span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 999px;
  color: var(--muted);
}

.seg .on {
  background: var(--accent);
  color: #fff;
}

.pool-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  margin: auto 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.pool-hint i {
  width: 34px;
  height: 6px;
  border-radius: 6px;
  flex: none;
  background: linear-gradient(90deg, var(--accent) 70%, var(--quiet) 70%);
}

/* ------------------------------------------------------------------ musts */

.musts {
  padding: 120px 0;
  background: linear-gradient(var(--bg), var(--surface) 25%, var(--surface) 75%, var(--bg));
}

.musts-grid {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.musts .title {
  font-size: clamp(34px, 4.2vw, 60px);
}

.must-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.try-it {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-text);
}

.try-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.must-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 14px;
  margin: 0 -14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 18px;
  text-align: left;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    color 0.4s,
    background 0.3s;
}

.must-list button:hover {
  background: var(--bg);
}

.must-list button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.must-list button.on {
  color: var(--ink);
}

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 26px;
  background: var(--line);
  position: relative;
  flex: none;
  transition: background 0.35s;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s var(--spring);
}

.on > .toggle {
  background: var(--accent);
}

.on > .toggle::after {
  transform: translateX(18px);
}

.musts-count {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.musts-count b {
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.pool {
  background: var(--bg);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 0 0 1px var(--line);
}

.pool-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.band {
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.4s var(--spring);
}

.band.bump {
  transform: scale(1.12);
}

.pool-line {
  font-size: 15px;
  color: var(--ink-soft);
}

.pool svg {
  width: 100%;
  overflow: visible;
}

.pool-dot {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.6s var(--spring),
    opacity 0.5s,
    fill 0.5s;
}

.pool-dot.out {
  transform: scale(0.35);
  opacity: 0.25;
  fill: var(--line);
}

.pool-mutual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s,
    transform 0.5s var(--spring);
}

.musts.has-must .pool-mutual {
  opacity: 1;
  transform: none;
}

.pool-mutual i {
  width: 22px;
  height: 12px;
  flex: none;
  background:
    radial-gradient(circle at 6px 6px, var(--accent) 5px, transparent 5.5px),
    radial-gradient(circle at 16px 6px, var(--muted) 5px, transparent 5.5px);
}

/* ---------------------------------------------------------------- prefers */

.prefers {
  padding: 140px 0 160px;
}

.prefers .title {
  max-width: 17em;
}

.topics {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}

.topics-label {
  font-weight: 600;
  margin: 0 0 14px;
}

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

.topics li {
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.3s;
}

.topics li:hover {
  box-shadow: 0 0 0 1.5px var(--accent);
}

.topics li.private::after,
.lock {
  content: '';
  display: inline-block;
  width: 10px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -1px;
  background: var(--muted);
  clip-path: path('M2 5V3.5a3 3 0 0 1 6 0V5h1.2v7H0.8V5ZM3.4 5h3.2V3.5a1.6 1.6 0 0 0-3.2 0Z');
}

.lock {
  margin: 0 6px 0 0;
}

.topics-note {
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 44em;
}

.prefers-grid {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.reason-demo {
  display: flex;
  justify-content: center;
}

.feed-card-demo {
  width: min(340px, 100%);
  height: auto;
  padding-bottom: 22px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  --ink-soft: #3f3a36;
  --quiet: #f1ece8;
  --muted: #6e6762;
  --accent: #b9253a;
  color: #1d1a18;
}

.photo-c {
  height: 300px;
  background: linear-gradient(180deg, #ffd9a8 0%, #f6b37f 45%, #d9805f 100%);
}

.reason-demo .reasons li {
  opacity: 0;
  transform: translateX(-14px) scale(0.96);
  transition:
    opacity 0.6s var(--ease),
    transform 0.7s var(--spring);
  transition-delay: calc(0.5s + var(--i) * 0.18s);
}

.reason-demo.in .reasons li {
  opacity: 1;
  transform: none;
}

.prefer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prefer-list li {
  background: var(--surface);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease),
    box-shadow 0.4s;
}

.prefer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c);
}

.prefer-list li:hover {
  box-shadow: 0 0 0 1.5px var(--c);
}

.prefer-list b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.prefer-list span {
  color: var(--muted);
}

.pnum s {
  text-decoration-thickness: 4px;
  text-decoration-color: var(--accent);
}

/* ------------------------------------------------------------- principles */

.principles {
  background: var(--quiet);
}

.principles .sticky {
  position: relative;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 140px;
}

.principles-head {
  padding: 0 var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  width: 100%;
}

/* Five cards: three over two, the second row centred. */
.track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.track .pcard {
  grid-column: span 2;
}

.track .pcard:nth-child(4) {
  grid-column: 2 / span 2;
}

.track .pcard:nth-child(5) {
  grid-column: 4 / span 2;
}

.pcard {
  min-height: 320px;
  background: var(--surface);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.pcard::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -80px;
  top: -80px;
  background: var(--c);
  opacity: 0.16;
}

/* Deepened with ink in light mode so every numeral clears 3:1 on white. */
.pnum {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--c) 72%, #1d1a18);
}

@media (prefers-color-scheme: dark) {
  .pnum {
    color: var(--c);
    filter: saturate(1.1) brightness(0.85);
  }
}

.pcard h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: auto 0 12px;
}

.pcard p {
  margin: 0;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- safety */

.safety {
  padding: 160px 0;
}

.safety-grid {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  background-clip: content-box;
}

.safety-grid article {
  background: var(--bg);
  padding: 40px 34px;
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease),
    background 0.4s;
}

.safety-grid article:hover {
  background: var(--surface);
}

.safety-grid svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0s) + 0.3s);
}

.safety-grid article.in svg {
  stroke-dashoffset: 0;
}

.safety-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 22px 0 10px;
}

.safety-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ------------------------------------------------------------------- name */

.name {
  padding: 0 0 80px;
}

.name-grid {
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.name-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 14px 14px 40px;
  box-shadow: var(--shadow);
}

.name-art {
  height: 270px;
  border-radius: 20px;
  background-color: var(--bg);
  overflow: hidden;
}

/* Graph paper behind the geometry. */
.name-art-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

.name-art svg {
  width: 100%;
  height: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 24px 0;
  overflow: visible;
}

.name-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 30px 26px 10px;
  text-wrap: balance;
}

.name-card p {
  margin: 0 26px;
  color: var(--muted);
  max-width: 30em;
  text-wrap: pretty;
}

/* The tangent: the ring draws from the point it touches, the line meets it
   there, and the heart lands on that point. */
.na-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6.8;
  stroke-linecap: round;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  transform: rotate(-45deg);
  transform-origin: 64px 72px;
}

.na-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 121;
  stroke-dashoffset: 121;
}

.na-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 9px;
  fill: var(--muted);
  opacity: 0;
}

.na-heart {
  fill: var(--accent);
  opacity: 0;
  transform: translate(40px, -40px);
}

.na-touch {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.name-card.in .na-ring {
  animation: draw 1s var(--ease) 0.3s forwards;
}

.name-card.in .na-line {
  animation: draw 0.9s var(--ease) 1.1s forwards;
}

.name-card.in .na-heart {
  animation: heart-in 0.9s var(--spring) 1.7s forwards;
}

.name-card.in .na-touch {
  animation: touch 1.6s var(--ease) 2.2s;
}

.name-card.in .na-label {
  animation: name-fade 0.8s var(--ease) 2.3s forwards;
}

/* The chat: a line that wanders off and loops its way to the reply. */
.na-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 194;
  stroke-dashoffset: 194;
}

.na-bubble {
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
}

.na-bubble-1 rect {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.6;
}

.na-bubble-1 circle {
  fill: var(--ink);
}

.na-bubble-2 rect {
  fill: var(--accent);
}

.na-bubble-2 circle {
  fill: #fff;
}

.name-card.in .na-bubble-1 {
  animation: name-pop 0.7s var(--spring) 0.4s forwards;
}

.name-card.in .na-path {
  animation: draw 2s cubic-bezier(0.45, 0, 0.25, 1) 0.8s forwards;
}

.name-card.in .na-bubble-2 {
  animation: name-pop 0.7s var(--spring) 2.6s forwards;
}

/* The reply is still being typed. */
.name-card.in .na-bubble-2 circle {
  animation: typing 1.5s ease-in-out 3.2s 3;
}

.name-card.in .na-bubble-2 circle:nth-of-type(2) {
  animation-delay: 3.4s;
}

.name-card.in .na-bubble-2 circle:nth-of-type(3) {
  animation-delay: 3.6s;
}

@keyframes name-fade {
  to {
    opacity: 1;
  }
}

@keyframes name-pop {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes touch {
  0% {
    opacity: 0.8;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 1;
  }
  30% {
    opacity: 0.35;
  }
}

/* ----------------------------------------------------------------- london */

.london {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 160px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.london-map svg {
  width: 100%;
  overflow: visible;
}

.map-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
}

.map-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.london.in .map-pulse {
  animation: ripple 4s var(--ease) 3;
}

.london.in .map-pulse:nth-of-type(2) {
  animation-delay: 1.3s;
}

.london.in .map-pulse:nth-of-type(3) {
  animation-delay: 2.6s;
}

@keyframes ripple {
  0% {
    opacity: 0.6;
    transform: scale(0.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.map-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.7s var(--spring);
}

.london.in .map-dot {
  transform: scale(1);
}

.map-dot.b {
  fill: var(--accent);
}

.map-dot.n {
  fill: color-mix(in srgb, var(--accent) 55%, var(--bg));
}

.map-dot.t {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.map-thames {
  fill: none;
  stroke: color-mix(in srgb, var(--d-communication) 45%, var(--bg));
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.4s var(--ease) 0.2s;
}

.london.in .map-thames {
  stroke-dashoffset: 0;
}

.map-label {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  fill: var(--muted);
}

/* ------------------------------------------------------------------ final */

.final {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    120% 90% at 50% 110%,
    #d63a52 0%,
    var(--accent-deep) 35%,
    #2a0d13 75%,
    #140708 100%
  );
  color: #fff;
  padding: 180px var(--gutter);
  text-align: center;
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, 0.82);
}

.final em {
  color: #ffc2cb;
}

.final-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-mark svg {
  width: 110px;
  margin-bottom: 40px;
  overflow: visible;
}

.final .fm-ring {
  stroke: #fff;
}

.final .fm-heart {
  fill: #ff6b80;
}

.final.in .fm-ring {
  animation: draw 1.1s var(--ease) forwards;
}

.final.in .fm-heart {
  animation: heart-in 0.9s var(--spring) 0.6s forwards;
}

.final-title {
  font-size: clamp(44px, 7vw, 100px);
}

.final .lede {
  margin-inline: auto;
}

.final .interest {
  margin-top: 44px;
}

.final .field {
  --surface: #fff;
  --ink: #1d1a18;
  --muted: #6e6762;
  --line: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

.final .field:focus-within {
  box-shadow:
    0 0 0 2px #fff,
    0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

.final .fine {
  color: rgba(255, 255, 255, 0.9);
}

.final .fine[data-kind='ok'] {
  color: #fff;
}

.final .fine[data-kind='error'] {
  color: #ffdfe4;
}

/* ----------------------------------------------------------------- footer */

.footer {
  background: #140708;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px var(--gutter) 40px;
  font-size: 15px;
}

.footer-top,
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-line {
  font-family: var(--serif);
  font-size: 28px;
  color: #fff;
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

/* ---------------------------------------------------------------- privacy */

.legal-page .nav {
  position: sticky;
  top: 0;
}

.legal {
  max-width: calc(700px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 72px var(--gutter) 120px;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings:
    'SOFT' 50,
    'opsz' 144;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal .legal-intro {
  margin-top: 32px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink);
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 56px 0 0;
}

.legal p,
.legal ul {
  margin: 14px 0 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.legal ul {
  padding-left: 1.2em;
}

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

.legal a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- responsive */

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

  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: left;
  }

  .hero-stage {
    height: 620px;
  }

  .note-1 {
    left: 0;
  }

  .note-2 {
    right: 0;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-phone-wrap {
    display: none;
  }

  .steps {
    padding: 20px 0 0;
  }

  .step {
    min-height: 0;
    padding: 40px 0;
    opacity: 1;
    transform: none;
  }

  .step-screen {
    display: block;
    margin-top: 28px;
  }

  .step-screen .phone {
    width: 250px;
    margin: 0 auto;
  }

  .step-screen .screen {
    opacity: 1;
    transform: none;
  }

  /* The smaller phone: tighter type and spacing so every screen fits. */
  .step-screen .screen {
    gap: 8px;
  }

  .step-screen .scr-q {
    font-size: 17px;
  }

  .step-screen .prompt-ans {
    font-size: 15px;
    margin: 4px 0 10px;
  }

  .prefers-grid,
  .london {
    grid-template-columns: 1fr;
  }

  .musts {
    padding: 72px 0;
  }

  .musts-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .musts .title {
    font-size: 30px;
  }

  .must-list {
    margin-top: 16px;
    gap: 2px;
  }

  .must-list button {
    font-size: 15px;
  }

  .toggle {
    transform: scale(0.85);
  }

  .musts-count {
    margin-top: 10px;
  }

  .pool {
    padding: 18px;
  }

  .pool-top {
    margin-bottom: 8px;
  }

  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .track .pcard,
  .track .pcard:nth-child(4) {
    grid-column: auto;
  }

  .track .pcard:nth-child(5) {
    grid-column: 1 / -1;
  }

  .aims-path {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 56px;
    padding-left: calc(var(--gutter) + 44px);
  }

  .aims-path::before,
  .aims-path::after {
    top: 10px;
    bottom: 0;
    left: calc(var(--gutter) + 10px);
    right: auto;
    width: 2px;
    height: auto;
    margin: 0 0 0 -1px;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent);
    mask-image: linear-gradient(to bottom, #000 85%, transparent);
  }

  .aims-path::after {
    transform: scaleY(0);
    transform-origin: center top;
  }

  .aim {
    position: relative;
  }

  .aim-stop {
    position: absolute;
    left: -44px;
    top: 0;
  }

  .aim-bubble {
    margin: 1.5px 0 0 -2px;
  }

  .aim-heart {
    margin: -3px 0 0 -3px;
  }

  .aim-when {
    margin-top: 0;
  }
}

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

  .nav {
    gap: 12px;
  }

  .logo {
    height: 28px;
  }

  .nav-cta {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-stage {
    height: 560px;
  }

  .phone-hero {
    width: 250px;
  }

  .float-note {
    font-size: 12px;
  }

  .note-1 {
    font-size: 14px;
    top: 8%;
  }

  .note-2 {
    bottom: 6%;
  }

  .safety-grid,
  .name-grid {
    grid-template-columns: 1fr;
  }

  .track {
    grid-template-columns: 1fr;
  }

  .track .pcard:nth-child(5) {
    grid-column: auto;
  }

  .name-art {
    height: 230px;
  }

  .name-card h3,
  .name-card p {
    margin-left: 14px;
    margin-right: 14px;
  }

  .pcard {
    min-height: 340px;
    padding: 28px;
  }
}

/* ---------------------------------------------------------- reduced motion */

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

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