/* Native UI over independent rainforest artwork layers. */
@font-face {
  font-family: SynCreate Jungle;
  src: url("/frontend/assets/home/syncreate-jungle.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
.workspace.is-home {
  max-width: none;
  padding: 0;
  gap: 0;
  display: block;
}
.home-pages {
  container: home / size;
  height: calc(100dvh - var(--site-header-height, 98px));
  overflow: clip;
}
.home-track,
.home-panel {
  height: 100%;
}
.home-track {
  transition: transform 280ms cubic-bezier(.22, .75, .24, 1);
}
.home-pages[data-panel="intro"] > .home-track {
  transform: translateY(-100%);
}
.home-panel {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.home-intro-trigger {
  position: absolute;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  min-height: 52px;
  padding: 6px 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 700 clamp(20px, 1.75vw, 24px)/1.3 var(--ui-font-heading);
  white-space: nowrap;
  text-shadow: 0 1px 3px #000, 0 0 8px #00271c;
  cursor: pointer;
}
.home-intro-trigger span {
  margin-left: .25em;
  color: var(--accent);
  font-size: 1.12em;
  line-height: 1;
}
.home-intro-trigger:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-intro-trigger:focus-visible {
  outline: 2px solid white;
}
.jungle-title:focus,
#home-intro-title:focus {
  outline: none;
}
.jungle {
  --forest: #00271c;
  --headline: clamp(66px, 7.2vw, 126px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--forest);
  height: 100%;
  min-height: 390px;
  color: #fff;
  font-family:
    "SynCreate Jungle", "Arial Black", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
.jungle-scene {
  position: absolute;
  inset: -14px;
  z-index: -2;
  pointer-events: none;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0);
  will-change: transform;
}
.jungle-backdrop,
.jungle-breeze img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}
.jungle-breeze {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.jungle-breeze-left {
  /* These masks blend artwork layers; they are not UI background gradients. */
  mask-image: radial-gradient(
    ellipse 48% 65% at 4% 25%,
    #000 35%,
    transparent 74%
  );
  transform-origin: 0 0;
  animation: canopy-left 9s ease-in-out infinite;
}
.jungle-breeze-right {
  mask-image: radial-gradient(
    ellipse 48% 65% at 96% 60%,
    #000 30%,
    transparent 72%
  );
  transform-origin: 100% 100%;
  animation: canopy-right 11s -4s ease-in-out infinite;
}
.jungle-copy {
  position: absolute;
  z-index: 4;
  top: 48.7%;
  left: 50%;
  width: max-content;
  max-width: 92%;
  text-align: center;
  transform: translate(-50%, -50%);
}
.jungle-copy-inner {
  position: relative;
  animation: jungle-copy-enter 150ms ease-out both;
}
.jungle-title {
  margin: 0;
  font-family: inherit;
  font-size: var(--headline);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-shadow: 3px 5px 0 var(--ink);
}
.jungle-title-line {
  display: block;
  white-space: nowrap;
}
.jungle-title-line:first-child {
  transform: translateX(0.17em);
}
.jungle-title-line:last-child {
  transform: translateX(0.4em) scaleX(1.06);
}
.jungle-title em {
  font-style: normal;
  color: var(--accent);
}
.jungle-copy p {
  margin: 17px 0 29px;
  font-size: clamp(17px, 1.7vw, 29px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 var(--ink);
}
.jungle-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 248px;
  min-height: 66px;
  padding: 10px 31px;
  background: var(--accent);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--press) var(--press) 0 var(--ink);
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.jungle-cta svg {
  width: 43px;
  height: 28px;
  flex: 0 0 auto;
  transition: transform 150ms ease-out;
}
.jungle-cta:active {
  transform: translate(var(--press), var(--press));
  box-shadow: none;
  transition: none;
}
.jungle-cta:focus-visible {
  outline: var(--line) solid var(--paper);
  outline-offset: 7px;
}
.jungle-sparkle {
  position: absolute;
  right: 0;
  top: 6%;
  width: clamp(36px, 3.7vw, 64px);
  height: clamp(42px, 4.4vw, 75px);
  pointer-events: none;
  filter: drop-shadow(2px 2px 0 var(--ink));
  animation: jungle-star 6s ease-in-out infinite;
}
.gecko-position {
  position: absolute;
  z-index: 2;
  will-change: transform;
  transform: translate3d(var(--gecko-x, 0px), var(--gecko-y, 0px), 0);
}
.gecko-position-green {
  top: 5%;
  left: 2.5%;
  width: 29%;
}
.gecko-position-coral {
  bottom: 4%;
  right: 1.1%;
  width: 25%;
  transform: translate3d(var(--coral-x, 0px), var(--coral-y, 0px), 0)
    rotate(7deg);
}
.gecko-arrival {
  animation: gecko-enter 150ms ease-out both;
}
.gecko-breathe {
  position: relative;
  transform-origin: 65% 35%;
  animation: gecko-breathe 6s ease-in-out infinite;
}
.gecko-position-coral .gecko-breathe {
  transform-origin: 45% 55%;
  animation-name: gecko-breathe-coral;
  animation-duration: 7.6s;
  animation-delay: -2s;
}
.gecko {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(2px 4px 0 var(--ink));
}
.gecko-mouth {
  position: absolute;
  left: 96.7%;
  top: 28.3%;
  width: 16%;
  aspect-ratio: 4.2;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(-4deg);
}
.gecko-position-coral .gecko-mouth {
  left: 8.6%;
  top: 15.2%;
  width: 17%;
  transform: translateY(-50%) rotate(-149deg);
}
.gecko-breathe:not(.is-tasting) .gecko-mouth {
  display: none;
}
.gecko-tongue,
.gecko-tongue::before {
  display: block;
  width: 100%;
  height: 100%;
}
.gecko-tongue {
  transform-origin: 0 50%;
  transform: scaleX(0);
  filter: drop-shadow(0 0.7px 0.45px #5b1021);
}
.gecko-tongue::before {
  content: "";
  background: linear-gradient(#ff9a94 16%, #ff4b59 40%, #ef304a 56%, #a8173b 76%);
  clip-path: polygon(0 36%, 9% 32%, 19% 29%, 29% 31%, 42% 41%, 54% 47%,
    64% 46%, 74% 40%, 84% 26%, 94% 8%, 100% 2%, 96% 14%, 90% 28%,
    83% 44%, 89% 48%, 99% 50%, 100% 54%, 95% 57%, 85% 56%, 77% 54%,
    66% 63%, 55% 66%, 44% 61%, 32% 53%, 22% 49%, 12% 53%, 0 67%);
}
.gecko-breathe.is-tasting .gecko-tongue {
  animation: gecko-taste 650ms ease-in-out;
}
.gecko-interaction {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
/* Match the hit targets to the opaque outlines of the two gecko sprites. */
.gecko-position-green .gecko-interaction {
  clip-path: polygon(
    97.5% 25.5%, 91.5% 15.8%, 90.2% 15.1%, 83.9% 15.5%, 83.6% 14.1%, 81.7% 12.4%,
    86.2% 12.7%, 86.6% 11.2%, 86.1% 10.4%, 82.1% 10.1%, 86.8% 7.4%, 86.5% 6.0%,
    85.7% 5.6%, 80.8% 8.6%, 82.7% 4.3%, 82.0% 2.5%, 80.9% 3.3%, 80.4% 5.7%,
    78.5% 8.9%, 74.3% 7.8%, 71.7% 8.6%, 71.2% 11.2%, 72.5% 15.2%, 61.5% 13.4%,
    47.1% 15.7%, 49.2% 10.5%, 49.6% 6.4%, 48.1% 4.7%, 44.1% 5.7%, 33.8% 11.4%,
    33.7% 13.0%, 34.4% 14.0%, 37.2% 12.0%, 40.4% 12.5%, 42.8% 11.7%, 38.8% 19.0%,
    21.4% 27.6%, 14.6% 32.9%, 9.2% 39.1%, 5.4% 45.5%, 3.1% 52.4%, 2.4% 58.1%,
    3.1% 67.0%, 6.8% 76.3%, 13.6% 83.9%, 22.3% 89.3%, 37.9% 95.3%, 41.3% 98.0%,
    40.8% 96.2%, 38.3% 94.1%, 24.3% 88.2%, 16.8% 83.7%, 12.8% 80.1%, 8.6% 74.5%,
    5.7% 67.3%, 4.9% 58.9%, 6.6% 50.9%, 10.7% 43.2%, 16.5% 37.3%, 24.2% 32.6%,
    34.9% 29.2%, 41.9% 29.0%, 46.1% 32.2%, 41.5% 35.4%, 40.8% 37.8%, 41.7% 39.9%,
    46.4% 45.4%, 47.4% 52.1%, 48.6% 52.6%, 49.3% 51.6%, 47.9% 43.8%, 51.2% 47.0%,
    54.8% 52.4%, 55.6% 51.4%, 55.5% 49.9%, 50.5% 42.9%, 55.1% 44.1%, 56.5% 45.5%,
    57.6% 45.0%, 57.7% 43.2%, 50.9% 40.5%, 53.7% 39.8%, 54.0% 38.4%, 53.3% 37.3%,
    50.0% 38.6%, 47.0% 38.2%, 53.8% 34.1%, 54.6% 32.2%, 54.1% 29.6%, 61.2% 31.2%,
    67.1% 31.2%, 65.2% 34.5%, 66.0% 37.1%, 68.8% 38.4%, 74.0% 38.4%, 75.5% 40.7%,
    75.8% 44.6%, 76.9% 45.4%, 77.7% 43.8%, 76.6% 39.6%, 80.9% 44.7%, 81.7% 44.0%,
    81.7% 42.5%, 78.4% 38.7%, 83.1% 40.4%, 83.9% 38.5%, 83.1% 37.5%, 79.1% 36.5%,
    82.1% 35.8%, 82.5% 34.4%, 82.0% 33.4%, 77.9% 34.8%, 79.0% 32.9%, 78.4% 31.4%,
    75.8% 34.2%, 72.1% 33.3%, 73.2% 31.9%, 78.0% 30.5%, 85.1% 32.1%, 93.6% 31.2%,
    96.5% 29.5%
  );
}
.gecko-position-coral .gecko-interaction {
  clip-path: polygon(
    8.1% 10.0%, 7.7% 12.8%, 8.9% 16.9%, 15.3% 26.3%, 23.0% 32.1%, 31.0% 34.3%,
    35.9% 40.1%, 32.9% 41.9%, 31.9% 37.6%, 30.3% 38.2%, 30.8% 41.0%, 29.0% 36.9%,
    27.6% 36.9%, 27.1% 39.0%, 29.1% 42.5%, 24.8% 40.4%, 23.3% 41.8%, 24.2% 44.3%,
    26.2% 44.1%, 28.8% 45.4%, 24.7% 47.6%, 24.2% 49.6%, 24.9% 51.0%, 26.2% 51.1%,
    29.2% 48.0%, 31.0% 47.9%, 30.1% 53.0%, 30.9% 54.3%, 32.2% 54.2%, 32.9% 52.6%,
    33.0% 49.4%, 34.0% 47.5%, 38.3% 46.5%, 41.1% 44.4%, 41.6% 41.9%, 40.8% 38.0%,
    58.2% 47.5%, 59.4% 53.5%, 55.6% 51.6%, 53.8% 47.3%, 52.5% 46.2%, 51.4% 47.0%,
    51.1% 48.6%, 53.5% 52.7%, 48.4% 49.8%, 46.7% 51.1%, 47.3% 53.7%, 52.7% 55.7%,
    47.0% 56.4%, 46.4% 58.4%, 47.1% 60.1%, 52.0% 58.7%, 54.6% 59.5%, 51.4% 63.2%,
    51.3% 65.1%, 52.1% 66.3%, 53.6% 65.9%, 54.4% 63.8%, 56.8% 61.0%, 58.3% 61.0%,
    57.2% 64.8%, 57.4% 66.7%, 58.2% 67.5%, 59.8% 66.7%, 60.5% 61.4%, 63.2% 63.2%,
    65.0% 63.0%, 66.1% 60.4%, 65.2% 54.3%, 69.0% 56.7%, 76.8% 59.0%, 82.2% 64.2%,
    84.9% 69.7%, 85.2% 73.2%, 84.0% 76.9%, 80.9% 80.4%, 76.8% 82.0%, 69.7% 81.0%,
    59.2% 75.1%, 53.3% 72.9%, 46.1% 72.7%, 39.5% 74.7%, 33.5% 79.1%, 29.7% 85.0%,
    28.6% 92.0%, 29.2% 94.9%, 30.9% 97.4%, 32.4% 97.8%, 33.1% 96.8%, 30.6% 92.1%,
    30.8% 89.6%, 32.2% 86.1%, 36.8% 81.3%, 42.1% 79.0%, 46.9% 78.4%, 53.1% 79.8%,
    66.9% 89.6%, 74.4% 92.3%, 79.8% 91.9%, 83.9% 90.0%, 88.3% 85.9%, 91.6% 80.1%,
    93.0% 73.9%, 93.2% 68.2%, 92.0% 61.1%, 89.1% 53.8%, 89.5% 41.1%, 88.0% 41.0%,
    87.7% 44.1%, 85.1% 36.4%, 81.4% 29.7%, 79.7% 29.6%, 78.6% 31.2%, 79.0% 37.9%,
    69.7% 27.0%, 59.0% 20.9%, 60.2% 18.3%, 58.6% 15.0%, 62.0% 12.7%, 62.2% 11.2%,
    61.4% 9.8%, 60.2% 9.7%, 56.6% 12.9%, 56.2% 8.9%, 56.6% 6.5%, 56.1% 5.4%,
    54.8% 5.2%, 54.0% 6.5%, 54.0% 12.6%, 50.5% 8.7%, 48.8% 9.5%, 48.9% 11.8%,
    50.4% 12.5%, 52.3% 15.2%, 49.3% 14.6%, 48.5% 15.7%, 48.8% 17.7%, 36.8% 13.5%,
    33.1% 8.9%, 27.6% 6.7%, 25.5% 3.7%, 23.6% 2.8%, 21.5% 3.1%, 18.7% 5.3%,
    11.5% 6.8%
  );
}
.gecko-breathe:has(.gecko-interaction:focus-visible) .gecko {
  filter: drop-shadow(0 0 2px white) drop-shadow(0 0 3px white) drop-shadow(2px 4px 0 var(--ink));
}
.gecko-breathe.is-happy {
  animation: gecko-greet 150ms ease-out;
}
.gecko-position-coral .gecko-breathe.is-happy {
  animation: gecko-greet-coral 150ms ease-out;
}
.jungle.is-paused *,
.jungle.is-paused *::before,
.jungle.is-paused *::after {
  animation-play-state: paused !important;
}
.jungle.has-entered .jungle-copy-inner,
.jungle.has-entered .gecko-arrival {
  animation: none;
  transform: none;
}
.jungle.is-paused .jungle-scene,
.jungle.is-paused .jungle-breeze,
.jungle.is-paused .gecko-position {
  will-change: auto;
}
@media (hover: hover) and (pointer: fine) {
  .jungle-cta:hover:not(:active) {
    background: var(--hover);
    transform: translate(calc(-1 * var(--lift)), calc(-1 * var(--lift)));
    box-shadow: calc(var(--press) + var(--lift)) calc(var(--press) + var(--lift)) 0 var(--ink);
  }
  .jungle-cta:hover svg {
    transform: translateX(6px);
  }
}
@keyframes jungle-copy-enter {
  from {
    transform: translateY(22px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes gecko-enter {
  from {
    transform: translate(-14px, -8px);
  }
  to {
    transform: translate(0, 0);
  }
}
@keyframes canopy-left {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(0.45deg) translate(2px, 1px);
  }
}
@keyframes canopy-right {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-0.5deg) translate(-2px, -1px);
  }
}
@keyframes gecko-breathe {
  0%,
  100% {
    transform: rotate(-0.3deg) scaleY(1);
  }
  50% {
    transform: rotate(0.35deg) scaleY(1.015) translateY(-2px);
  }
}
@keyframes gecko-breathe-coral {
  0%,
  100% {
    transform: rotate(0.25deg) scaleY(1);
  }
  50% {
    transform: rotate(-0.4deg) scaleY(1.018) translateY(-2px);
  }
}
@keyframes jungle-star {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(12deg) scale(0.85);
  }
}
@keyframes gecko-greet {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  30% {
    transform: translate(9px, -3px) rotate(2deg);
  }
  65% {
    transform: translate(3px, 0) rotate(-1deg);
  }
}
@keyframes gecko-greet-coral {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  30% {
    transform: translate(-9px, -4px) rotate(-2deg);
  }
  65% {
    transform: translate(-3px, 0) rotate(1deg);
  }
}
@keyframes gecko-taste {
  0%, 100% { transform: scaleX(0); }
  21% { transform: rotate(-2deg) scaleX(0.95); }
  32% { transform: rotate(3deg) scaleX(1); }
  48% { transform: rotate(1deg) scaleX(0.42); }
  67% { transform: rotate(-3deg) scaleX(0.86); }
  78% { transform: rotate(-1deg) scaleX(0.76); }
}
@media (min-width: 1800px) {
  .gecko-position-green {
    width: min(29%, 600px);
  }
  .gecko-position-coral {
    width: min(23%, 460px);
  }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .jungle {
    --headline: clamp(65px, 8vw, 88px);
  }
  .gecko-position-green {
    width: 34%;
    left: 0;
    top: 4%;
  }
  .gecko-position-coral {
    width: 29%;
    right: 0;
    bottom: 3%;
  }
  .jungle-copy p {
    font-size: 19px;
  }
  .jungle-cta {
    min-width: 200px;
    min-height: 60px;
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .jungle {
    --headline: clamp(38px, 10.8vw, 70px);
    min-height: 350px;
  }
  .jungle-copy {
    top: 47%;
    max-width: 92%;
  }
  .jungle-title {
    line-height: 1.18;
    letter-spacing: -0.055em;
    text-shadow: 2px 3px 0 var(--ink);
  }
  .jungle-copy p span {
    display: block;
  }
  .jungle-copy p {
    margin: 16px auto 24px;
    font-size: clamp(13px, 3.55vw, 18px);
    line-height: 1.8;
    max-width: 89%;
    text-wrap: balance;
  }
  .jungle-cta {
    min-width: 174px;
    min-height: 54px;
    padding: 9px 22px;
    gap: 24px;
    font-size: 22px;
    box-shadow: var(--press) var(--press) 0 var(--ink);
  }
  .jungle-cta svg {
    width: 34px;
    height: 25px;
  }
  .jungle-sparkle {
    right: -4%;
    top: -10px;
    width: 27px;
    height: 34px;
  }
  .gecko-position-green {
    top: 3%;
    left: 0;
    width: 53%;
    max-width: 310px;
  }
  .gecko-position-coral {
    right: 0;
    bottom: 3%;
    width: 49%;
    max-width: 285px;
  }
  .jungle-breeze-left {
    mask-image: linear-gradient(#000 0%, transparent 43%);
  }
  .jungle-breeze-right {
    mask-image: linear-gradient(transparent 60%, #000 100%);
  }
}
/* A wrapped navigation bar can leave very little space, even on a tall phone. */
@container home (max-height: 430px) {
  .jungle {
    --headline: clamp(30px, min(9vw, 15cqh), 64px);
    min-height: 210px;
  }
  .jungle-copy {
    top: 43%;
  }
  .jungle-title {
    line-height: 1.06;
  }
  .jungle-copy p {
    max-width: none;
    margin: 8px 0 12px;
    font-size: clamp(12px, 3.5cqh, 16px);
    line-height: 1.45;
  }
  .jungle-copy p span {
    display: inline;
  }
  .jungle-cta {
    min-width: 142px;
    min-height: 44px;
    gap: 16px;
    padding: 4px 18px;
    font-size: 20px;
  }
  .home-intro-trigger {
    bottom: 2px;
    min-height: 44px;
    padding-block: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-track {
    transition: none;
  }
  .jungle * {
    animation: none !important;
    transition: none !important;
  }
  .jungle-copy-inner,
  .gecko-arrival {
    transform: none;
  }
  .jungle-scene,
  .gecko-position {
    transform: none;
    will-change: auto;
  }
  .gecko-position-coral {
    transform: rotate(7deg);
  }
  .jungle-breeze {
    will-change: auto;
  }
}
