:root {
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
}

html.motion-ready,
html.motion-ready body {
  overflow-x: clip;
}

.nav {
  isolation: isolate;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  background: rgba(3, 5, 6, .84);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  transform: translateX(-50%);
  pointer-events: none;
}

.stats strong[data-count-to] {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 761px) {
  .workCategoriesHead {
    transform: translateY(clamp(24px, 2vw, 40px));
  }
}

.openingSequence {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f4f7f6;
  background: transparent;
  pointer-events: all;
}

.openingSequencePanel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 51%;
  background: #020304;
  will-change: transform;
}

.openingSequencePanelTop {
  top: 0;
  transform-origin: top;
}

.openingSequencePanelBottom {
  bottom: 0;
  transform-origin: bottom;
}

.openingSequenceRule {
  position: absolute;
  left: 6vw;
  right: 6vw;
  top: 50%;
  z-index: 2;
  height: 1px;
  background: rgba(93, 235, 229, .6);
  box-shadow: 0 0 26px rgba(93, 235, 229, .28);
  transform: scaleX(0);
  transform-origin: left;
}

.openingSequenceMark {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: calc(50% + clamp(24px, 2.4vw, 42px));
  z-index: 3;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: .08em 0 .04em;
  text-align: center;
}

.openingSequenceMark span {
  display: block;
  font-family: var(--display-condensed);
  font-size: clamp(92px, 15vw, 260px);
  font-weight: 400;
  line-height: .9;
  transform: translateY(110%) scaleX(.68);
  transform-origin: center;
  will-change: transform;
}

.openingSequenceMark small {
  display: block;
  margin-top: clamp(14px, 1.5vw, 24px);
  color: rgba(244, 247, 246, .54);
  font-size: clamp(10px, .8vw, 13px);
  font-weight: 800;
  letter-spacing: 0;
  transform: translateY(150%);
  will-change: transform;
}

.openingSequenceCounter {
  position: absolute;
  right: 6vw;
  bottom: 5vh;
  z-index: 3;
  overflow: hidden;
  color: rgba(244, 247, 246, .7);
  font-family: var(--display-condensed);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
}

.openingSequenceCounter span {
  display: block;
  transform: translateY(110%);
}

.motionLineMask {
  display: block;
  overflow: hidden;
  padding: .04em 0 .1em;
  margin: -.04em 0 -.1em;
}

.motionLine {
  display: block;
  transform-origin: left center;
  will-change: transform;
}

.motion-ready [data-motion-section] {
  contain: layout style;
}

.motion-ready [data-motion-image] {
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path, transform;
}

.motion-ready [data-motion-image] img {
  will-change: transform;
}

.motion-ready .heroVideo,
.motion-ready .heroIdentity,
.motion-ready .heroType,
.motion-ready .heroActions {
  will-change: transform, opacity;
}

.motion-ready .heroIdentity h1 {
  overflow: visible;
}

.motion-ready .heroIdentity h1 span,
.motion-ready .heroIdentity h1 strong {
  overflow: hidden;
}

.motion-ready .heroIdentity h1 span::after,
.motion-ready .heroIdentity h1 strong::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f4f7f6;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.motion-ready .heroIdentity h1 span,
.motion-ready .heroIdentity h1 strong {
  position: relative;
}

.photoWallSection::after {
  background-image: url("/dist/assets/photo-wall-city-bg.webp");
}

.photoWallEnter.specular-button {
  border-color: rgba(184, 255, 247, 0.72);
  background: linear-gradient(102deg, #55d6c8 0%, #86ebe0 48%, #d8fff5 100%);
  color: #031716;
  box-shadow:
    0 0 0 1px rgba(108, 236, 222, 0.12),
    0 10px 30px rgba(65, 218, 202, 0.24),
    0 0 34px rgba(112, 242, 229, 0.2);
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.photoWallEnter.specular-button:hover {
  background: linear-gradient(102deg, #62dfd1 0%, #96f0e6 48%, #e3fff8 100%);
  box-shadow:
    0 0 0 1px rgba(143, 248, 236, 0.2),
    0 14px 36px rgba(65, 218, 202, 0.3),
    0 0 42px rgba(112, 242, 229, 0.28);
  filter: saturate(1.04) brightness(1.03);
  transform: translateY(-2px);
}

.photoWallEnter.specular-button:active {
  transform: translateY(0) scale(0.97);
}

.hero .primaryBtn.specular-button {
  --specular-angle: 135deg;
  --specular-opacity: 0;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-color: rgba(151, 167, 168, 0.36);
  border-radius: 14px;
  background: linear-gradient(120deg, #58ddd3 0%, #8ceee4 48%, #c8fff2 100%);
  color: #071211;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 30px rgba(0, 0, 0, 0.18);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease,
    filter 240ms ease;
}

.hero .primaryBtn.specular-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--specular-angle),
    transparent 0 34%,
    rgba(255, 255, 255, 0.12) 42%,
    #ffffff 49%,
    rgba(93, 235, 229, 0.95) 51%,
    rgba(255, 255, 255, 0.12) 58%,
    transparent 66% 100%
  );
  opacity: var(--specular-opacity);
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(93, 235, 229, 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 220ms ease;
}

.hero .primaryBtn.specular-button:hover {
  background: linear-gradient(120deg, #69e8dc 0%, #a0f5e9 48%, #dcfff7 100%);
  color: #030b0a;
  box-shadow:
    0 0 0 1px rgba(143, 248, 236, 0.2),
    0 14px 36px rgba(65, 218, 202, 0.3),
    0 0 42px rgba(112, 242, 229, 0.28);
  filter: saturate(1.04) brightness(1.03);
  transform: translateY(-2px);
}

.hero .primaryBtn.specular-button:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 760px) {
  .openingSequenceRule {
    left: 24px;
    right: 24px;
  }

  .openingSequenceMark span {
    font-size: clamp(84px, 32vw, 150px);
  }

  .openingSequenceMark {
    left: 24px;
    right: 24px;
    bottom: calc(50% + 22px);
  }

  .openingSequenceCounter {
    right: 24px;
    bottom: 28px;
  }

  .motion-ready [data-motion-section] {
    contain: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .openingSequence {
    display: none;
  }

  .motion-ready [data-motion-image] {
    clip-path: none;
  }

  .motionLine,
  .motion-ready .heroVideo,
  .motion-ready .heroIdentity,
  .motion-ready .heroType,
  .motion-ready .heroActions,
  .motion-ready [data-motion-image],
  .motion-ready [data-motion-image] img {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}
