:root {
  --white: #ffffff;
  --orange: #e1a245;
  --black: #000000;
  --site-bg: #dadfd6;
  --pink: #f916f7;
  --grey-control: #c3c7bf;
  --ease-soft: cubic-bezier(0.25, 0.1, 0.2, 1);
  --title-desktop: 47pt;
  --title-mobile: 30pt;
  --small-size: 12pt;
  --logo-safe-bottom-desktop: clamp(240px, 18vw, 380px);
  --logo-safe-bottom-mobile: clamp(118px, 20vh, 180px);
  --content-left-desktop: 2.8vw;
  --content-left-mobile: 3.8vw;
  --title-optical-offset: -0.06em;
}

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

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
}

.site {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--white);
  transition: background-color 1200ms var(--ease-soft);
}

body[data-state="static"] .site {
  background: var(--site-bg);
}

.skip-button,
.replay-button,
.title-toggle {
  font: inherit;
  color: inherit;
}

.skip-button,
.replay-button {
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 8;
  border: 0;
  background: transparent;
  padding: 0;
}

.skip-button {
  width: 36px;
  height: 36px;
  top: 28px;
  right: 28px;
  border-radius: 50%;
  background: var(--grey-control);
  cursor: pointer;
  transition: background-color 260ms var(--ease-soft), opacity 260ms var(--ease-soft);
}

.replay-button {
  width: 44px;
  height: 120px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-soft) 120ms;
}

body[data-state="static"] .replay-button {
  opacity: 1;
  pointer-events: auto;
}

body[data-state="static"] .skip-button {
  background: var(--orange);
  opacity: 0;
  pointer-events: none;
  transition-delay: 120ms;
}

.replay-loader {
  position: relative;
  width: 44px;
  height: 120px;
  display: block;
}

.replay-ball {
  position: absolute;
  left: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.replay-top {
  top: 0;
  background: var(--orange);
  z-index: 1;
  animation: replayPushTop 1.9s ease-in-out infinite;
}

.replay-middle {
  top: 0;
  background: var(--white);
  z-index: 2;
  animation: replayMoveBall 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.replay-bottom {
  bottom: 0;
  background: var(--pink);
  z-index: 3;
  animation: replayPushBottom 1.9s ease-in-out infinite;
}

.content-shell {
  position: relative;
  z-index: 6;
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding: 7.6vh 5.2vw var(--logo-safe-bottom-desktop) var(--content-left-desktop);
}

.about-region {
  align-self: center;
  justify-self: start;
  max-width: 100%;
  transition: transform 320ms var(--ease-soft);
}

.title-toggle {
  text-align: left;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: grid;
  align-items: start;
  justify-items: start;
}

.hover-cue {
  position: absolute;
  left: -24px;
  top: 8px;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  display: none;
  transition: opacity 240ms var(--ease-soft), transform 240ms var(--ease-soft);
  transform: translateY(2px);
}

.title {
  margin: 0;
  margin-left: var(--title-optical-offset);
  font-size: var(--title-desktop);
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-weight: 400;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  width: 100%;
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1), transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    color 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .title {
    white-space: nowrap;
  }
}

.title-open {
  opacity: 0;
  transform: translateY(0.35em);
  pointer-events: none;
}

.mobile-break {
  display: none;
}

.title-line-keep {
  white-space: nowrap;
}

.about-block {
  margin-top: 18px;
  max-width: min(38vw, 34ch);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.2em);
  transition: max-height 640ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms cubic-bezier(0.22, 1, 0.36, 1) 40ms,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1) 40ms;
}

.about-block p {
  margin: 0 0 12px;
  font-size: var(--small-size);
  line-height: 1.22;
  color: var(--white);
}

.about-block p:last-child {
  margin-bottom: 0;
}

.contact-links {
  position: absolute;
  left: var(--content-left-desktop);
  bottom: var(--logo-safe-bottom-desktop);
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.contact-links a {
  text-decoration: none;
  color: var(--white);
  font-size: var(--small-size);
  line-height: 1.05;
  font-weight: 400;
  transition: color 220ms var(--ease-soft), font-weight 220ms var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  body[data-state="static"] .about-region:hover .hover-cue {
    opacity: 0.7;
    transform: translateY(0);
  }

  body[data-state="static"] .about-region:hover .title-closed,
  body[data-state="static"] .title-toggle[data-about-open="true"] .title-closed {
    opacity: 0;
    transform: translateY(-0.35em);
  }

  body[data-state="static"] .about-region:hover .title-open,
  body[data-state="static"] .title-toggle[data-about-open="true"] .title-open {
    opacity: 1;
    transform: translateY(0);
    color: var(--white);
  }

  body[data-state="static"] .about-region:hover .about-block,
  body[data-state="static"] .title-toggle[data-about-open="true"] + .about-block {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
  }

  body[data-state="static"] .about-region:hover .about-block p,
  body[data-state="static"] .title-toggle[data-about-open="true"] + .about-block p {
    color: var(--pink);
  }

  .contact-links a:hover {
    color: var(--pink);
    font-weight: 600;
  }
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 900ms var(--ease-soft);
}

body[data-state="static"] .intro-overlay {
  opacity: 0;
}

.intro-overlay:not([data-source="placeholder"]) .echo-layer {
  opacity: 0;
}

.intro-lottie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-lottie-player svg {
  width: 100% !important;
  height: 100% !important;
}

.intro-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.echo-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.echo-layer span {
  position: absolute;
  font-size: clamp(36px, 5vw, 88px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--black);
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(1);
  animation: echoDecay 2200ms var(--ease-soft) forwards;
  animation-delay: var(--delay);
}

.echo-layer span:nth-child(even) {
  color: var(--black);
  -webkit-text-stroke: 0;
  opacity: 0.2;
}

.intro-motion-mobile {
  display: none;
}

.logo {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: auto;
  z-index: 4;
  pointer-events: none;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo-filled {
  opacity: 0;
  transition: opacity 1100ms var(--ease-soft);
}

.logo-outline {
  opacity: 1;
  transition: opacity 1100ms var(--ease-soft);
}

body[data-state="static"] .logo-filled {
  opacity: 1;
}

body[data-state="static"] .logo-outline {
  opacity: 0;
}

@keyframes echoDecay {
  0% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.02);
  }

  18% {
    opacity: 0.42;
  }

  65% {
    opacity: 0.15;
    transform: translate(calc(var(--dx) * 0.35), calc(var(--dy) * 0.45)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 0.08), calc(var(--dy) * 0.1)) scale(0.99);
  }
}

@keyframes replayMoveBall {
  0%,
  18% {
    top: 0;
  }

  46% {
    top: calc(100% - 36px);
  }

  46%,
  64% {
    top: calc(100% - 36px);
  }

  92% {
    top: 0;
  }

  92%,
  100% {
    top: 0;
  }
}

@keyframes replayPushTop {
  0%,
  72% {
    transform: translateX(-50%) translateY(0);
  }

  80% {
    transform: translateX(-50%) translateY(-2px);
  }

  88% {
    transform: translateX(-50%) translateY(-6px);
  }

  96% {
    transform: translateX(-50%) translateY(-2px);
  }

  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes replayPushBottom {
  0%,
  26% {
    transform: translateX(-50%) translateY(0);
  }

  34% {
    transform: translateX(-50%) translateY(2px);
  }

  42% {
    transform: translateX(-50%) translateY(6px);
  }

  50% {
    transform: translateX(-50%) translateY(2px);
  }

  58%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 767px) {
  .skip-button,
  .replay-button {
    top: 20px;
    right: 14px;
  }

  .skip-button {
    right: 18px;
  }

  .content-shell {
    padding: 19vh 6vw var(--logo-safe-bottom-mobile) var(--content-left-mobile);
    grid-template-rows: auto 1fr auto;
  }

  .title-toggle {
    align-self: start;
    max-width: 17.5ch;
  }

  .hover-cue {
    display: none;
  }

  .title {
    font-size: var(--title-mobile);
    line-height: 0.96;
  }

  .mobile-break {
    display: inline;
  }

  .about-block {
    max-width: 100%;
    margin-top: 14px;
  }

  .about-block p,
  .contact-links a {
    font-size: var(--small-size);
  }

  .contact-links {
    left: auto;
    right: 6vw;
    bottom: var(--logo-safe-bottom-mobile);
    gap: 3px;
    align-items: flex-end;
    text-align: right;
  }

  .intro-motion-desktop {
    display: none;
  }

  .intro-motion-mobile {
    display: grid;
  }

  .echo-layer span {
    font-size: clamp(34px, 10vw, 58px);
  }

  .logo {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }
}

body[data-about-open="true"] .title-toggle .title-closed {
  opacity: 0;
  transform: translateY(-0.35em);
}

body[data-about-open="true"] .title-toggle .title-open {
  opacity: 1;
  transform: translateY(0);
}

body[data-about-open="true"] .about-block {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

body[data-about-open="true"] .about-block p {
  color: var(--pink);
}

body[data-state="intro"] .title-toggle,
body[data-state="intro"] .about-block,
body[data-state="intro"] .contact-links {
  opacity: 0;
  pointer-events: none;
}

body[data-state="static"] .title-toggle,
body[data-state="static"] .about-block,
body[data-state="static"] .contact-links {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 500ms var(--ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
