.hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 700px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), var(--content-max));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: clamp(64px, 6.2vh, 88px);
  padding: max(16px, env(safe-area-inset-top)) 0 0;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  width: clamp(116px, 10.35vw, 180px);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter .45s var(--ease-out);
}

.desktop-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: clamp(46px, calc(3.45vw + 20px), 96px);
}

.nav-link {
  height: 1.25em;
  overflow: hidden;
  font-size: clamp(12px, 1.12vw, 19px);
  line-height: 1.25;
  white-space: nowrap;
}

.nav-link span {
  display: block;
  transition: transform .55s var(--ease-out);
}

.nav-link:hover span,
.nav-link:focus-visible span {
  transform: translateY(-100%);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 30;
  width: 58px;
  height: 44px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  right: 0;
  width: 58px;
  height: 1.5px;
  background: var(--ink);
  transform-origin: center;
  transition: transform .55s var(--ease-out), top .55s var(--ease-out), width .55s var(--ease-out);
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.menu-open .brand img {
  filter: none;
}

.mobile-menu {
  position: fixed;
  z-index: 15;
  inset: 0;
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  padding: max(108px, calc(env(safe-area-inset-top) + 82px)) var(--gutter)
    max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-100%);
  transition: transform .78s var(--ease-smooth), opacity .34s ease;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__links {
  display: flex;
  width: min(100%, 610px);
  align-self: center;
  align-items: center;
  justify-self: center;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 36px;
  text-align: center;
}

.mobile-menu__link {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  font-size: clamp(42px, 11.8vw, 68px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
  opacity: 0;
  text-align: center;
  transform: translateY(.82em);
  transition: clip-path .72s var(--ease-out), opacity .36s ease, transform .72s var(--ease-out);
  transition-delay: calc(.42s + var(--menu-order) * .085s);
}

.mobile-menu.is-open .mobile-menu__link {
  clip-path: inset(0);
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu:not(.is-open) .mobile-menu__link {
  transition-delay: 0s;
}

.mobile-menu__roll {
  display: block;
  height: .98em;
  overflow: hidden;
}

.mobile-menu__roll > span {
  display: block;
  transition: transform .55s var(--ease-out);
}

.mobile-menu__link:hover .mobile-menu__roll > span,
.mobile-menu__link:focus-visible .mobile-menu__roll > span {
  transform: translateY(-100%);
}

.mobile-menu__footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #606367;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  text-align: center;
  transform: translateY(18px);
  transition: opacity .5s ease .88s, transform .7s var(--ease-out) .88s;
}

.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__contact {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-style: normal;
}

.mobile-menu__contact a {
  color: var(--ink);
  font-size: 16px;
  transition: opacity .25s ease;
}

.mobile-menu__contact a:hover,
.mobile-menu__contact a:focus-visible {
  opacity: .58;
}

.mobile-menu__messengers {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
  color: #606367;
  font-size: 12px;
}

.mobile-menu__messenger-links {
  display: flex;
  gap: 9px;
}

.mobile-menu__messenger-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: none;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(35, 39, 43, .2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.mobile-menu__messenger-links a:hover,
.mobile-menu__messenger-links a:focus-visible {
  border-color: rgba(35, 39, 43, .5);
  background: rgba(35, 39, 43, .05);
  transform: translateY(-1px);
}

.mobile-menu__messenger-links svg,
.mobile-menu__messenger-links img {
  display: block;
  flex: 0 0 17px;
  width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  max-height: 17px !important;
}

.mobile-menu__messenger-links svg {
  fill: #31a8ff !important;
}

.hero-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.flower {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}

.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: calc(6 - var(--i));
  width: var(--orbit-size);
  height: var(--orbit-size);
  transform: translate(-50%, -50%) translateY(150vh);
  transform-origin: center;
  will-change: transform;
}

.orb-translate {
  position: absolute;
  top: -130%;
  left: 0;
  width: var(--disc-size);
  height: var(--disc-size);
  transform-origin: center;
  will-change: transform;
}

.orb-scale,
.orb-flip {
  position: absolute;
  inset: 0;
  transform-origin: center;
  will-change: transform;
}

.orb-flip,
.primary-disc {
  transform-style: preserve-3d;
}

.orb-disc {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #d7dade;
  transform: scale(var(--initial-scale));
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.primary-disc {
  overflow: visible;
  background: transparent;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.orb-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-face--front {
  z-index: 1;
}

.card-face--back {
  transform: rotateY(180deg);
}

.sequence-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  transform: rotate(180deg);
}

.sequence-image {
  position: absolute;
  inset: 0;
  z-index: calc(var(--sequence) + 1);
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(90deg);
  transform-origin: 100% 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.sequence-image:first-child {
  transform: rotate(0deg);
}

.hero-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 0;
  color: #fff;
  -webkit-text-fill-color: #fff;
  mix-blend-mode: difference;
  font-size: clamp(72px, 10.98vw, 237px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: .006em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title > span:not(.title-space) {
  display: inline-block;
  color: #fff;
  -webkit-text-fill-color: #fff;
  opacity: 0;
  filter: blur(16px);
  transform: translate3d(0, 14px, 0);
  will-change: transform, filter, opacity;
  animation: title-in 1.4s var(--ease-out) forwards;
  animation-delay: calc(.28s + var(--char) * .055s);
  animation-play-state: paused;
}

.is-ready .hero-title > span:not(.title-space) {
  animation-play-state: running;
}

.title-space {
  width: .27em;
}

@keyframes title-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.hero-kicker {
  position: relative;
  z-index: 10;
  margin: clamp(18px, 2.3vh, 28px) 0 0;
  font-size: clamp(17px, 2.4vw, 50px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-bottom {
  position: absolute;
  z-index: 10;
  right: auto;
  bottom: max(34px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), var(--content-max));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  transform: translateX(-50%);
}

.hero-description {
  justify-self: start;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.estimate-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(50px, 4.3vw, 64px);
  padding: 0 26px 0 16px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}

.estimate-button__arrow {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 22px;
  text-align: center;
}

.estimate-button__arrow span {
  position: absolute;
  inset: 0;
}

.estimate-button__text {
  position: relative;
  z-index: 1;
  font-size: clamp(12px, 1.2vw, 18px);
  white-space: nowrap;
  transition: color .45s ease;
}

.estimate-button:hover,
.estimate-button:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.hero-consult {
  justify-self: end;
  display: flex;
  width: 300px;
  height: 142px;
  align-items: center;
  gap: 20px;
  padding: 10px 20px 10px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 34px rgba(33, 37, 41, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-consult__media {
  position: relative;
  width: 95px;
  height: 122px;
  flex: 0 0 95px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #7b7b7b;
}

.hero-consult__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-consult__content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

.hero-consult__identity p {
  margin: 0;
}

.hero-consult__name {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-consult__role {
  margin-top: 7px !important;
  color: #76777a;
  font-size: 14px;
  line-height: 1.2;
}

.hero-consult__link {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 17px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.hero-consult__link-roll {
  height: 1em;
  flex: 0 0 auto;
  overflow: hidden;
  white-space: nowrap;
}

.hero-consult__link-roll > span {
  display: block;
  transition: transform .52s var(--ease-out);
}

.hero-consult__arrow {
  position: relative;
  width: 22px;
  height: 10px;
  flex: 0 0 22px;
  overflow: hidden;
}

.hero-consult__arrow img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 22px;
  height: 10px;
  transition: transform .52s var(--ease-out);
}

.hero-consult__arrow img:last-child {
  transform: translateX(-150%);
}

.hero-consult__link:hover .hero-consult__link-roll > span,
.hero-consult__link:focus-visible .hero-consult__link-roll > span {
  transform: translateY(-100%);
}

.hero-consult__link:hover .hero-consult__arrow img:first-child,
.hero-consult__link:focus-visible .hero-consult__arrow img:first-child {
  transform: translateX(150%);
}

.hero-consult__link:hover .hero-consult__arrow img:last-child,
.hero-consult__link:focus-visible .hero-consult__arrow img:last-child {
  transform: translateX(0);
}

.intro {
  opacity: 0;
  will-change: opacity, transform;
}

.js .intro {
  animation-play-state: paused;
}

.is-ready .intro {
  animation-play-state: running;
}

.intro--brand,
.intro--nav-1,
.intro--nav-2,
.intro--nav-3,
.intro--nav-4,
.intro--nav-5 {
  animation: intro-down 1.1s var(--ease-out) forwards;
}

.intro--nav-1 { animation-delay: .06s; }

.intro--nav-2 { animation-delay: .11s; }

.intro--nav-3 { animation-delay: .16s; }

.intro--nav-4 { animation-delay: .21s; }

.intro--nav-5 { animation-delay: .26s; }

.intro--kicker {
  animation: intro-down 1.45s .3s var(--ease-out) forwards;
}

.intro--description {
  animation: intro-up 1.6s .4s var(--ease-out) forwards;
}

.intro--button {
  animation: intro-up 1.6s .5s var(--ease-out) forwards;
}

.intro--video {
  animation: intro-up 1.6s .6s var(--ease-out) forwards;
}

@keyframes intro-down {
  from { opacity: 0; transform: translate3d(0, -35px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes intro-up {
  from { opacity: 0; transform: translate3d(0, 70px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 979px) {
  .desktop-nav {
      display: none;
    }

  .topbar {
      grid-template-columns: 1fr auto;
    }

  .menu-toggle {
      display: block;
    }

  .hero-title {
      font-size: clamp(50px, 12.3vw, 100px);
    }

  .hero-kicker {
      font-size: clamp(16px, 3.2vw, 27px);
    }

  .hero-bottom {
      grid-template-columns: 1fr auto;
      grid-template-areas:
        "description video"
        "button button";
      gap: 20px 16px;
    }

  .hero-description {
      grid-area: description;
      font-size: clamp(12px, 1.8vw, 15px);
    }

  .estimate-button {
      grid-area: button;
      justify-self: center;
    }

  .hero-consult {
      grid-area: video;
      margin-right: 0;
    }
}

@media (max-width: 640px) {
  .hero {
      min-height: 620px;
    }

  .topbar {
      min-height: 70px;
    }

  .menu-toggle {
      width: 52px;
    }

  .menu-toggle span {
      width: 52px;
    }

  .mobile-menu {
      padding-right: 20px;
      padding-left: 20px;
    }

  .mobile-menu__links {
      gap: 10px;
      padding-bottom: 28px;
    }

  .mobile-menu__link {
      font-size: 33px;
      line-height: 1.08;
    }

  .mobile-menu__roll {
      height: 1.08em;
    }

  .mobile-menu__footer {
      font-size: 12px;
    }

  .mobile-menu__contact a {
      font-size: 15px;
    }

  .brand {
      width: 116px;
    }

  .flower {
      transform: translate3d(0, calc(-6vh - 50px), 0);
    }

  .hero-copy {
      top: -100px;
      bottom: 100px;
      padding-bottom: 0;
      transform: none;
    }

  .hero-title {
      padding-inline: 14px;
      font-size: clamp(43px, 12.6vw, 76px);
      letter-spacing: -.02em;
    }

  .title-space {
      width: .22em;
    }

  .hero-kicker {
      margin-top: 14px;
      font-size: clamp(14px, 4.4vw, 20px);
      letter-spacing: .07em;
    }

  .hero-bottom {
      right: 14px;
      bottom: max(18px, env(safe-area-inset-bottom));
      left: 14px;
      width: auto;
      max-width: none;
      grid-template-columns: 1fr;
      grid-template-areas:
        "description"
        "consult"
        "button";
      gap: 14px;
      transform: none;
    }

  .hero-description {
      position: relative;
      top: -15px;
      justify-self: center;
      max-width: 390px;
      font-size: 16px;
      line-height: 1.4;
      text-align: center;
    }

  .estimate-button {
      justify-self: center;
      justify-content: center;
      width: 100%;
      min-height: 46px;
      padding-right: 18px;
      padding-left: 14px;
      gap: 8px;
    }

  .estimate-button__text {
      font-size: 12px;
    }

  .estimate-button__arrow {
      width: 20px;
      height: 20px;
      line-height: 20px;
    }

  .hero-consult {
      grid-area: consult;
      justify-self: center;
      width: min(100%, 280px);
    }

  .hero-consult__link {
      gap: 10px;
      font-size: 12px;
    }
}

@media (max-width: 380px) {
  .hero-title {
      font-size: 42px;
    }

  .hero-description br {
      display: none;
    }

  .hero-consult {
      width: min(100%, 280px);
      height: 126px;
      gap: 12px;
      padding: 8px 14px 8px 8px;
    }

  .hero-consult__media {
      width: 84px;
      height: 108px;
      flex-basis: 84px;
    }

  .hero-consult__content {
      gap: 10px;
    }

  .hero-consult__name {
      font-size: 16px;
    }

  .hero-consult__role,
    .hero-consult__link {
      font-size: 12px;
    }

  .hero-consult__link {
      gap: 10px;
    }
}

@media (min-width: 1800px) {
  .hero-bottom {
      bottom: max(42px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
    .hero-title > span:not(.title-space) {
      opacity: 1;
      filter: none;
      transform: none;
    }

  .orb {
      transform: translate(-50%, -50%) rotate(var(--petal-angle));
    }

  .orb-disc {
      transform: scale(1);
    }
}
