:root {
  --bg: #fcfcfc;
  --ink: #101010;
  --muted: #6f6f6f;
  --line: rgba(16, 16, 16, 0.14);
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html.framer-embed {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -ms-overflow-style: none;
}

body.framer-embed {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body::-webkit-scrollbar {
  display: none;
}

body.is-loading {
  overflow: hidden;
}

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

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

.page-shell {
  overflow: clip;
  background: var(--bg);
}

body.framer-embed .page-shell {
  height: 100%;
  overflow: hidden;
}

.loader-bubble {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    background 700ms var(--ease),
    opacity 700ms var(--ease),
    visibility 700ms var(--ease);
}

.loader-bubble__text {
  display: grid;
  place-items: center;
  min-width: clamp(180px, 28vw, 360px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 18%, #e0eef7 0 16%, transparent 34%),
    radial-gradient(circle at 82% 22%, #ecf8fa 0 18%, transparent 36%),
    radial-gradient(circle at 76% 84%, #e1d7cf 0 18%, transparent 38%),
    radial-gradient(circle at 24% 78%, #afbbc5 0 18%, transparent 40%),
    linear-gradient(135deg, #878785, #9da3a5 22%, #a1a9b1 42%, #bdcbd7 62%, #c8c1b7 78%, #b4aca3);
  background-size: 180% 180%, 170% 170%, 190% 190%, 160% 160%, 240% 240%;
  color: var(--white);
  font-family: "Arial Rounded MT Bold", "Avenir Next", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  font-size: clamp(62px, 11vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    inset 0 0 42px rgba(255, 255, 255, 0.18);
  transform: translate3d(0, 0, 0) scale(1);
  animation: bubbleGradient 5200ms ease-in-out infinite alternate;
  transition:
    border-radius 900ms var(--ease),
    box-shadow 900ms var(--ease),
    font-size 900ms var(--ease),
    transform 900ms var(--ease),
    min-width 900ms var(--ease);
  will-change: transform, font-size, background-position;
}

body.sequence-ready .loader-bubble {
  pointer-events: none;
  background: transparent;
}

body.mobile-sequence-ready .loader-bubble {
  opacity: 0;
  visibility: hidden;
}

body.sequence-ready .loader-bubble__text {
  position: fixed;
  left: clamp(210px, 24vw, 470px);
  top: calc(clamp(92px, 10vw, 132px) + 165px);
  min-width: clamp(231px, 15vw, 306px);
  border-radius: 999px;
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.18);
  font-size: clamp(28px, 2.15vw, 40px);
  transform: translate3d(-50%, -50%, 0) scale(1);
}

body.sequence-ready .loader-bubble__text::before,
body.sequence-ready .loader-bubble__text::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border: 2px solid rgba(175, 187, 197, 0.78);
  border-radius: inherit;
  box-shadow:
    0 0 0 8px rgba(224, 238, 247, 0.18),
    0 0 34px rgba(189, 203, 215, 0.34);
  animation: bubbleSignal 1350ms cubic-bezier(0.14, 0.84, 0.28, 1) infinite;
}

body.sequence-ready .loader-bubble__text::after {
  border-color: rgba(225, 215, 207, 0.72);
  box-shadow:
    0 0 0 14px rgba(236, 248, 250, 0.14),
    0 0 42px rgba(200, 193, 183, 0.28);
  animation-delay: 520ms;
}

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(70px, 12.5vw, 178px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
}

.sequence-stage {
  position: relative;
  height: 245svh;
  background: var(--bg);
}

body.framer-embed .sequence-stage {
  height: 100svh;
  min-height: 100%;
  overflow: hidden;
}

.sequence-stage__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

body.framer-embed .sequence-stage__pin {
  position: relative;
  height: 100svh;
}

.sequence-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}

.sequence-canvas.is-ready {
  opacity: 1;
}

.sequence-shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(252, 252, 252, 0.68), rgba(252, 252, 252, 0.04) 34%, rgba(252, 252, 252, 0) 58%),
    linear-gradient(180deg, rgba(252, 252, 252, 0.04), rgba(252, 252, 252, 0) 56%, rgba(252, 252, 252, 0.5));
}

.hero-copy {
  --copy-x: 112vw;
  --copy-y: -8px;
  position: absolute;
  z-index: 2;
  top: clamp(92px, 10vw, 132px);
  right: clamp(20px, 5vw, 72px);
  display: grid;
  justify-items: center;
  width: min(560px, calc(100% - 40px));
  min-height: 330px;
  padding: 24px 30px 104px;
  border-radius: 24px;
  color: var(--ink);
  text-align: center;
  transform: translate3d(var(--copy-x), var(--copy-y), 0);
  will-change: transform, opacity;
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(54px, 7.2vw, 116px);
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy h1 {
  font-family: "Arial Rounded MT Bold", "Avenir Next", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  font-weight: 900;
  line-height: 0.86;
  margin-bottom: 14px;
  background:
    linear-gradient(110deg, #878785 0%, #999b9b 18%, #9da3a5 34%, #a1a9b1 50%, #afbbc5 66%, #c8c1b7 82%, #878785 100%);
  background-size: 260% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: headlineGradient 4200ms ease-in-out infinite alternate;
}

.hero-description {
  margin-bottom: 0;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.18vw, 18px);
  font-weight: 560;
  line-height: 1.5;
  color: rgba(16, 16, 16, 0.76);
}

.scroll-cue {
  --cue-y: 0px;
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: auto;
  min-width: 132px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(16, 16, 16, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(16, 16, 16, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -8px, 0) scale(0.96);
  transition:
    background-color 320ms var(--ease),
    border-color 360ms var(--ease),
    color 320ms var(--ease),
    opacity 520ms var(--ease),
    box-shadow 360ms var(--ease),
    transform 620ms var(--ease);
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  border-color: rgba(16, 16, 16, 0.86);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 38px rgba(16, 16, 16, 0.16);
}

.hero-copy .scroll-cue.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.scroll-cue__label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@keyframes cueFloat {
  0%,
  100% {
    transform: translate3d(-50%, var(--cue-y), 0) scale(1);
  }

  50% {
    transform: translate3d(-50%, calc(var(--cue-y) + 7px), 0) scale(1);
  }
}

@keyframes bubbleGradient {
  0% {
    background-position: 0% 18%, 100% 12%, 82% 88%, 12% 90%, 0% 50%;
  }

  45% {
    background-position: 65% 8%, 42% 44%, 18% 74%, 90% 28%, 76% 42%;
  }

  100% {
    background-position: 100% 70%, 8% 88%, 64% 18%, 26% 24%, 100% 50%;
  }
}

@keyframes headlineGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes bubbleSignal {
  0% {
    opacity: 0;
    transform: scale(0.9) rotate(0deg);
  }

  14% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: scale(1.88) rotate(10deg);
  }
}

@media (max-width: 760px) {
  .sequence-stage {
    height: 205svh;
  }

  .sequence-shade {
    background:
      linear-gradient(180deg, rgba(252, 252, 252, 0.08), rgba(252, 252, 252, 0) 52%, rgba(252, 252, 252, 0.72)),
      linear-gradient(90deg, rgba(252, 252, 252, 0.12), rgba(252, 252, 252, 0));
  }

  .hero-copy {
    --copy-x: 0vw;
    --copy-y: 12px;
    top: 50%;
    left: 50%;
    right: auto;
    align-content: center;
    width: min(340px, calc(100% - 32px));
    min-height: min(460px, calc(100svh - 112px));
    padding: 0 0 84px;
    border-radius: 0;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--copy-x), var(--copy-y), 0);
  }

  .hero-copy h1 {
    font-size: clamp(50px, 16vw, 80px);
    text-align: center;
  }

  .hero-description {
    max-width: 31ch;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  body.sequence-ready .loader-bubble__text {
    left: 72px;
    top: calc(72px + 165px);
    min-width: clamp(168px, 45vw, 201px);
    font-size: clamp(22px, 5.7vw, 28px);
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  body.mobile-sequence-ready .loader-bubble__text::before,
  body.mobile-sequence-ready .loader-bubble__text::after {
    animation: none;
    content: none;
  }

  .scroll-cue {
    --cue-y: 0px;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 28px;
    min-width: 126px;
    height: 36px;
    padding: 0 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
