@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,680&family=Outfit:wght@430;560;650&display=swap");

:root {
  --ink: #1c140f;
  --paper: #fff6ec;
  --muted: #5c5148;
  --line: rgba(28, 20, 15, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Trebuchet MS", sans-serif;
  --measure: 40rem;
  --wide: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 2.7rem;
  width: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 560;
}

.pill:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.topbar .pill {
  color: #e8d008;
  border-color: rgba(232, 208, 8, 0.85);
}

.topbar .pill:hover {
  background: #e8d008;
  color: #111;
  border-color: #e8d008;
}

.site-header .brand {
  background: #14110e;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.topbar,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar {
  position: fixed;
  z-index: 5;
  top: 0.85rem;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  transform: translateX(-50%);
  gap: 0.85rem;
  padding: 0.32rem 0.4rem 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.88);
  color: #fff6ec;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home {
  background: #000;
}

.reel {
  display: none;
}

.scene {
  --p: 0;
  --o: 1;
  min-height: 100vh;
}

.scene-frame {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

html.is-parallax .reel {
  display: block;
  height: 300vh;
}

html.is-parallax .scene {
  --o: 0;
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100vh;
  min-height: 0;
  opacity: var(--o);
  visibility: hidden;
  pointer-events: none;
}

html.is-parallax .scene-copy,
html.is-parallax .phone {
  opacity: var(--copy, 1);
}

html.is-parallax .scene.is-live {
  visibility: visible;
}

html.is-parallax .scene.is-front {
  pointer-events: auto;
}

html.is-parallax .scene-hello {
  --o: 1;
  z-index: 1;
  visibility: visible;
}

html.is-parallax .scene-frame::after {
  display: none;
}

html.is-parallax .scene-keys {
  z-index: 2;
}

html.is-parallax .scene-bye {
  z-index: 3;
}

.scene-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 42vh;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--next, transparent));
  opacity: calc(max(0, var(--p) - 0.28) / 0.72);
}

.scene-bye .scene-frame::after {
  display: none;
}

.scene-copy {
  position: relative;
  z-index: 1;
  width: min(46rem, calc(100% - 8vw));
  margin: 0 0 12vh 6vw;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.legal h1,
.legal h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.045em;
}

.scene h1,
.scene h2 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 9.2rem);
  line-height: 0.86;
}

.deck {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  transform: translate3d(calc((var(--p) - 0.5) * var(--x)), calc((var(--p) - 0.35) * var(--y)), 0)
    rotate(calc((var(--p) - 0.5) * var(--spin, 16deg)))
    scale(calc(0.9 + var(--p) * 0.22));
  pointer-events: none;
}

.blob-a {
  --x: 14vw;
  --y: -22vh;
  --spin: -14deg;
  width: 58vw;
  height: 58vw;
  right: -8vw;
  top: -10vh;
}

.blob-b {
  --x: -16vw;
  --y: 26vh;
  --spin: 18deg;
  width: 38vw;
  height: 38vw;
  left: -8vw;
  bottom: -6vh;
}

.phone {
  position: absolute;
  z-index: 1;
  top: 14vh;
  right: 8vw;
  width: min(17rem, 28vw);
  padding: 0.7rem;
  border-radius: 2.2rem;
  background: #000;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.28);
  transform: translate3d(0, calc(var(--p) * -2vh), 0) rotate(calc(-8deg + var(--p) * 5deg));
}

.phone-screen {
  padding: 1.15rem 1rem 0.85rem;
  border-radius: 1.6rem;
  background: #fff8d0;
  color: #111;
}

.phone-kicker,
.phone-tag,
.phone-row {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-balance {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.phone-balance small {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.phone-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #ffe15a;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(28, 20, 15, 0.12);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 560;
}

.scene-hello .scene-copy {
  width: min(38rem, 52vw);
}

.scene-hello {
  --next: #e8d008;
  background: #000;
  color: #f6f1c8;
}

.scene-hello h1,
.scene-hello .kicker,
.scene-bye h2,
.scene-bye .kicker {
  color: #e8d008;
}

.scene-hello .blob-a {
  background: radial-gradient(circle, #f8f028 0%, #e8d008 46%, transparent 70%);
}

.scene-hello .blob-b {
  background: radial-gradient(circle, rgba(232, 208, 8, 0.55), transparent 68%);
}

.scene-keys {
  --next: #000;
  background: #e8d008;
  color: #111;
}

.scene-keys .blob-a {
  background: radial-gradient(circle, #fff6a3, transparent 68%);
}

.scene-keys .blob-b {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
}

.scene-sample {
  background: #ffe15a;
  color: #2a2108;
}

.scene-sample .blob-a {
  background: radial-gradient(circle, #fff, transparent 68%);
}

.scene-sample .blob-b {
  background: radial-gradient(circle, #ff9d42, transparent 70%);
}

.scene-lock {
  background: #6d5cff;
  color: #f7f3ff;
}

.scene-lock .blob-a {
  background: radial-gradient(circle, #ffb7e4, transparent 68%);
}

.scene-lock .blob-b {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
}

.scene-bye {
  background: #000;
  color: #f6f1c8;
}

.scene-bye .blob-a {
  background: radial-gradient(circle, #f8f028, #e8d008 50%, transparent 72%);
}

.scene-bye .blob-b {
  background: radial-gradient(circle, rgba(232, 208, 8, 0.4), transparent 70%);
}

.pill-big {
  margin-top: 1.4rem;
  padding: 0.75rem 1.15rem;
  background: #e8d008;
  color: #111;
  border-color: #e8d008;
}

.pill-big:hover {
  background: transparent;
  color: #e8d008;
  border-color: #e8d008;
}

.fine {
  display: flex;
  gap: 1rem;
  margin: 1.2rem 0 0;
}

.fine a {
  text-decoration: none;
}

.fine a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-header,
.site-footer,
.legal {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header > a {
  text-decoration: none;
}

.legal {
  max-width: var(--measure);
  padding: 3.5rem 0 2rem;
}

.legal h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 0.95;
  margin: 0 0 0.6rem;
}

.legal h2 {
  margin: 2rem 0 0.35rem;
  font-size: 1.7rem;
}

.legal p,
.legal li,
.updated,
.note,
.site-footer {
  color: var(--muted);
}

.legal a {
  color: #8a6f00;
}

.note {
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.1rem;
}

.legal li + li {
  margin-top: 0.55rem;
}

.contact-link {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.contact-link:hover {
  background: #e8d008;
  color: #111;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reel {
    display: none;
  }

  .scene,
  html.is-parallax .scene {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .scene-frame {
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .blob,
  .scene-copy,
  .phone,
  html.is-parallax .scene {
    transform: none;
  }

  .scene-frame::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0.55rem;
  }

  .scene-copy {
    width: calc(100% - 2rem);
    margin: 0 0 7vh 1rem;
  }

  .scene-hello .scene-frame {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .phone {
    position: relative;
    top: auto;
    right: auto;
    width: min(15.5rem, 72vw);
    margin: 0 0 1.4rem 1rem;
    transform: rotate(-6deg);
  }

  .scene-hello .scene-copy {
    width: calc(100% - 2rem);
  }

  .scene h1,
  .scene h2 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .site-header,
  .site-footer,
  .legal {
    width: min(var(--wide), calc(100% - 1.5rem));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
