@font-face {
  font-family: "Wise Sans";
  src: url("fonts/wise-sans-heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

.has-brand-intro { overflow: hidden; scrollbar-width: none; }
.has-brand-intro body { overflow: hidden; }
.has-brand-intro:not(.is-brand-intro-revealing) body > :not(.brand-intro-overlay) { visibility: hidden; }

.brand-intro-overlay {
  --intro-duration: 3s;
  --intro-opening-hold: 1s;
  --intro-closing-hold: 1s;
  --intro-exit-delay: calc(var(--intro-opening-hold) + var(--intro-duration) + var(--intro-closing-hold));
  --intro-exit-duration: 850ms;
  display: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  background: var(--brand-green);
  color: var(--brand-ink);
}

.has-brand-intro .brand-intro-overlay { display: block; }

.brand-intro-stage {
  /* Align the visible glyphs and wind strokes at the end of the animation. */
  --intro-final-text-x: -33.5px;
  --intro-final-text-y: -4px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 800px;
  overflow: hidden;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(var(--intro-scale, 1));
}

.brand-intro-overlay.is-playing {
  animation: intro-background-fade var(--intro-exit-duration) ease-in-out var(--intro-exit-delay) both;
}

.is-playing .brand-intro-stage {
  visibility: inherit;
  animation: intro-lockup-exit var(--intro-exit-duration) cubic-bezier(0.52, 0.02, 0.77, 0.48) var(--intro-exit-delay) both;
}

@keyframes intro-background-fade {
  from { background-color: var(--brand-green); }
  to { background-color: transparent; }
}

@keyframes intro-lockup-exit {
  from { translate: 0; }
  to { translate: 100vw; }
}

.brand-intro-text {
  position: absolute;
  top: 333px;
  font: 900 96px/normal "Wise Sans", sans-serif;
  white-space: nowrap;
  transform-origin: 50% 50%;
}

.intro-design { left: 923px; }
.intro-form { left: 923px; top: 482px; }
.intro-sia { left: 775px; }
.intro-ast { left: 548px; }
.intro-outh { left: 271px; }
.intro-s { left: 226px; --intro-mid-x: 296px; --intro-end-x: 372px; }
.intro-e { left: 506px; --intro-mid-x: 61px; --intro-end-x: 137px; }
.intro-a { left: 718px; --intro-mid-x: -104px; --intro-end-x: -28px; }

.brand-intro-symbol {
  position: absolute;
  top: 348px;
  left: 424px;
  width: 103.099px;
  height: 103.099px;
  overflow: hidden;
  transform-origin: 50% 50%;
}

.brand-intro-symbol svg {
  position: absolute;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 9.66557px;
}

.intro-stroke-one { left: 25.77px; top: 24.1672px; width: 59.6044px; height: 32.2186px; }
.intro-stroke-three { left: 32.22px; top: 14.4972px; width: 20.9421px; height: 28.9967px; }
.intro-stroke-two {
  left: 19.33px;
  top: 59.6072px;
  width: 53.1606px;
  height: 32.2186px;
  transform: scaleY(-1);
}

/* The Figma timeline uses a single 3 s clock for the lettering and strokes. */
.is-playing .intro-design {
  animation: intro-design-opacity var(--intro-duration) linear both, intro-design-translate var(--intro-duration) linear both;
}

@keyframes intro-design-opacity {
  0% { opacity: 1; }
  33.145% { opacity: 1; }
  44.141% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes intro-design-translate {
  0% { translate: 0px 0px; }
  33.213% { translate: 0px 0px; }
  44.141% { translate: 192px 0px; }
  66.637% { translate: 268px 0px; }
  100% { translate: 268px 0px; }
}

.is-playing .intro-form {
  animation: intro-form-opacity var(--intro-duration) linear both, intro-form-translate var(--intro-duration) linear both;
}

@keyframes intro-form-opacity {
  0% { opacity: 0; }
  55.945% { animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); opacity: 0; }
  66.637% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes intro-form-translate {
  0%, 55.945% { translate: -410px -148.376px; }
  66.729%, 100% {
    translate: calc(-160px + var(--intro-final-text-x)) calc(-149px + var(--intro-final-text-y));
  }
}

.is-playing .intro-sia {
  animation: intro-sia-opacity var(--intro-duration) linear both, intro-sia-translate var(--intro-duration) linear both;
}

@keyframes intro-sia-opacity {
  0% { opacity: 1; }
  33.107% { animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); opacity: 1; }
  45.608% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes intro-sia-translate {
  0% { translate: 1px 0px; }
  33.107% { translate: 1px 0px; }
  50.849% { translate: 139px 0px; }
  66.637% { translate: 215px 0px; }
  100% { translate: 215px 0px; }
}

.is-playing .intro-ast,
.is-playing .intro-outh {
  animation: intro-collapse-opacity var(--intro-duration) linear both, intro-collapse-translate var(--intro-duration) linear both;
}

@keyframes intro-collapse-opacity {
  0% { opacity: 1; }
  33.145% { animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); opacity: 1; }
  45.635% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes intro-collapse-translate {
  0% { translate: 1px 0px; }
  33.145% { translate: 1px 0px; }
  50.86% { translate: 139px 0px; }
  66.637% { translate: 215px 0px; }
  100% { translate: 215px 0px; }
}

.is-playing .intro-s,
.is-playing .intro-e,
.is-playing .intro-a {
  animation: intro-initial-translate var(--intro-duration) linear both;
}

@keyframes intro-initial-translate {
  0% { translate: 0px 0px; }
  33.145% { translate: 0px 0px; }
  53.607% { translate: var(--intro-mid-x) 0px; }
  66.637%, 100% {
    translate: calc(var(--intro-end-x) + var(--intro-final-text-x)) var(--intro-final-text-y);
  }
}

.is-playing .brand-intro-symbol {
  animation: intro-symbol-opacity var(--intro-duration) linear both, intro-symbol-translate var(--intro-duration) linear both;
}

@keyframes intro-symbol-opacity {
  0% { opacity: 0; }
  53.561% { animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); opacity: 0; }
  53.604% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes intro-symbol-translate {
  0% { translate: 0px 0px; }
  53.644% { translate: 0px 0px; }
  66.637%, 100% { translate: 31.5px -1.5px; }
}

.is-playing .intro-stroke-one path {
  animation: intro-stroke-one-path-trim var(--intro-duration) linear both;
}

@keyframes intro-stroke-one-path-trim {
  0% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  56.05% { animation-timing-function: linear; stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  79.251% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
  100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
}

.is-playing .intro-stroke-three path {
  animation: intro-stroke-three-path-trim var(--intro-duration) linear both;
}

@keyframes intro-stroke-three-path-trim {
  0% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  53.637% { animation-timing-function: cubic-bezier(1, -0.004, 0.699, 1.011); stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  70.197% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
  100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
}

.is-playing .intro-stroke-two path {
  animation: intro-stroke-two-path-trim var(--intro-duration) linear both;
}

@keyframes intro-stroke-two-path-trim {
  0% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  62.499% { animation-timing-function: cubic-bezier(1, -0.004, 0.699, 1.011); stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  81.249% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
  100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
}

/* Backwards fill displays the opening frame throughout the shared delay. */
.brand-intro-overlay.is-playing :where(.brand-intro-text, .brand-intro-symbol),
.brand-intro-overlay.is-playing path {
  animation-delay: var(--intro-opening-hold);
}
