:root {
  --black: #000;
  --white: #f4f1ed;
  --muted: #958d80;
  --line: rgba(244, 241, 237, 0.2);
  --gold: #c09968;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--white);
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: "Noto Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 500;
}

html[lang="en"] body {
  font-family: "Inter", "Noto Sans", "Source Sans 3", sans-serif;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header.site-header.services-header {
  border-bottom: 0;
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.services-main.services-main {
  padding-top: 0;
}

.services-cover {
  position: relative;
  min-height: clamp(330px, 27vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(244, 241, 237, 0.2);
  border-bottom: 1px solid rgba(244, 241, 237, 0.72);
  background: #030303 url("../images/services-cover-abstract.jpg") center 52% / cover no-repeat;
}

.services-cover::before,
.services-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.services-cover::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.46)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.2));
}

.services-cover::after {
  top: auto;
  height: 38%;
  background: linear-gradient(180deg, transparent, #000);
}

.services-cover h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 24px;
  color: #fff;
  font-size: clamp(38px, 4.3vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.8);
}

.site-header.site-header.services-header {
  border-bottom: 1px solid rgba(244, 241, 237, 0.28);
}

html[lang="en"] .services-cover h1 {
  font-size: clamp(34px, 3.7vw, 68px);
  letter-spacing: 0.2em;
}

.services-showcase {
  position: relative;
  min-height: 116vh;
  background: #000;
  color: #dfdad4;
}

.services-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 5vh, 76px) clamp(24px, 4vw, 68px) clamp(42px, 5vh, 72px);
}

.service-copy {
  position: absolute;
  z-index: 5;
  top: clamp(62px, 8.5vh, 104px);
  left: 50%;
  width: min(68vw, 1080px);
  min-height: clamp(76px, 10vh, 116px);
  transform: translateX(-50%);
}

.service-copy p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #d9d4cc;
  font-size: clamp(15px, 1.18vw, 21px);
  font-weight: 400;
  line-height: 1.52;
  text-align: center;
  opacity: var(--copy-opacity, 0);
  transform: translate3d(0, var(--copy-y, 12px), 0);
  will-change: opacity, transform;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

html[lang="en"] .service-copy p {
  font-size: clamp(14px, 1.02vw, 18px);
  line-height: 1.55;
}

.service-kicker {
  position: absolute;
  z-index: 4;
  top: 32.5vh;
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  text-align: center;
  transform: translateX(-50%);
}

.service-list {
  position: absolute;
  z-index: 3;
  top: 37vh;
  left: 50%;
  width: min(92vw, 1420px);
  display: grid;
  gap: 0;
  margin: 0;
  transform: translate3d(-50%, 0, 0);
}

.service-row {
  position: relative;
  width: 100%;
  min-height: clamp(78px, calc(4.45vw + 18px), 124px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2px, 0.55vh, 4px) 0;
  color: rgba(223, 218, 212, 0.115);
  cursor: pointer;
  outline: 0;
  will-change: color;
  transition: color 0.24s ease;
}

.service-row:hover,
.service-row:focus-visible,
.service-row.is-active {
  color: #e6e1da;
}

.service-row:focus-visible {
  outline: 1px solid rgba(230, 225, 218, 0.7);
  outline-offset: 8px;
}

.service-row h2 {
  width: 100%;
  margin: 0;
  color: currentColor;
  font-size: clamp(39px, 5.15vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-align: center;
}

html[lang="en"] .service-row h2 {
  max-width: 100%;
  font-size: clamp(34px, 4.4vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.service-visuals {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.service-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  overflow: visible;
  opacity: var(--visual-opacity, 0);
  transform: translate3d(0, var(--visual-y, 34px), 0) scale(var(--visual-scale, 0.95));
  will-change: opacity, transform;
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-visual-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.service-slide {
  position: absolute;
  width: clamp(132px, 11.2vw, 216px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: saturate(0.88) contrast(1.03);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  transform: translate3d(0, 22px, 0) scale(0.96);
  will-change: opacity, transform;
  transition:
    opacity 0.46s ease,
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-visual.is-active .service-slide {
  opacity: 0.82;
  transform: translate3d(0, 0, 0) scale(1);
}

.service-slide:nth-child(1) {
  width: clamp(150px, 12.5vw, 240px);
  transition-delay: 0s;
}

.service-slide:nth-child(2) {
  transition-delay: 0.035s;
}

.service-slide:nth-child(3) {
  transition-delay: 0.07s;
}

.service-slide:nth-child(4) {
  width: clamp(150px, 12.5vw, 240px);
  transition-delay: 0.105s;
}

.service-slide:nth-child(5) {
  width: clamp(118px, 9.6vw, 184px);
  transition-delay: 0.14s;
}

.service-slide:nth-child(6) {
  transition-delay: 0.175s;
}

.service-slide:nth-child(7) {
  width: clamp(118px, 9.6vw, 184px);
  transition-delay: 0.21s;
}

.service-slide:nth-child(8) {
  width: clamp(126px, 10.4vw, 200px);
  transition-delay: 0.245s;
}

.service-slide:nth-child(9) {
  width: clamp(118px, 9.6vw, 184px);
  transition-delay: 0.28s;
}

.services-menu {
  position: fixed;
  z-index: 40;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  padding: 96px 34px 40px;
  background: #fff;
  color: #000;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}

.services-menu.is-open {
  visibility: visible;
  transform: translateX(0);
}

.services-menu nav {
  display: grid;
}

.services-menu a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  font-size: clamp(30px, 8vw, 48px);
}

.services-menu-close {
  position: absolute;
  top: 24px;
  right: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 48px;
  font-weight: 200;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .service-copy {
    width: min(78vw, 900px);
  }

  .service-list {
    width: 94vw;
  }

  .service-row h2 {
    font-size: clamp(40px, 6.3vw, 72px);
  }

  html[lang="en"] .service-row h2 {
    font-size: clamp(31px, 4.9vw, 56px);
  }
}

@media (max-width: 900px) {
  .services-main.services-main {
    padding-top: var(--lekas-header-mobile-height, 104px);
  }

  .services-cover {
    min-height: clamp(260px, 52vw, 390px);
    background-position: center 52%;
  }

  .services-cover h1 {
    font-size: clamp(36px, 8vw, 58px);
  }

  html[lang="en"] .services-cover h1 {
    font-size: clamp(30px, 6.5vw, 50px);
  }

  .services-showcase {
    min-height: auto;
    padding: clamp(40px, 7vw, 64px) clamp(16px, 4vw, 32px) clamp(48px, 9vw, 80px);
  }

  .services-stage {
    min-height: auto;
    display: block;
    overflow: visible;
    padding: 0;
  }

  .service-copy,
  .service-visuals {
    display: none;
  }

  .service-copy .service-mobile-copy {
    display: block;
  }

  .service-kicker {
    position: static;
    margin: 0 0 22px;
    text-align: center;
    transform: none;
  }

  .service-list {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
  }

  .service-row,
  .service-row:hover,
  .service-row:focus-visible,
  .service-row.is-active {
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    padding: 0;
    border-top: 1px solid var(--line);
    color: rgba(223, 218, 212, 0.52);
  }

  .service-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .service-row.is-active {
    color: #dfdad4;
  }

  .service-row:focus-visible {
    outline: 0;
  }

  .service-row:focus-visible h2 {
    outline: 1px solid rgba(230, 225, 218, 0.7);
    outline-offset: -3px;
  }

  .service-row h2,
  html[lang="en"] .service-row h2 {
    position: relative;
    min-width: 0;
    min-height: clamp(72px, 12vw, 88px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    padding: clamp(18px, 3vw, 23px) 0;
    font-size: clamp(22px, 5.8vw, 28px);
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
    overflow-wrap: normal;
  }

  html[lang="en"] .service-row h2 {
    font-size: clamp(21px, 5.4vw, 26px);
    font-weight: 400;
    line-height: 1.35;
  }

  .service-row h2::after {
    content: "+";
    align-self: center;
    color: var(--muted);
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    transform: rotate(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
  }

  .service-row.is-active h2::after {
    color: #dfdad4;
    transform: rotate(45deg);
  }

  .service-mobile-detail {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease,
      visibility 0.42s;
  }

  .service-mobile-detail[aria-hidden="false"] {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
  }

  .service-mobile-detail-inner {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .service-mobile-detail[aria-hidden="false"] .service-mobile-detail-inner {
    padding-bottom: 32px;
  }

  .service-mobile-detail .service-mobile-copy {
    position: static !important;
    inset: auto !important;
    width: 100%;
    min-height: 0;
    display: block;
    margin: 0 0 24px;
    color: #e5e0d9;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.75;
    text-align: left;
    opacity: 1 !important;
    transform: none !important;
  }

  html[lang="en"] .service-mobile-detail .service-mobile-copy {
    font-size: clamp(15px, 1.95vw, 18px);
  }

  .service-visual,
  .service-visual.is-active {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    overflow: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .service-visual-stack {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .service-visual-stack::-webkit-scrollbar {
    display: none;
  }

  .service-mobile-detail .service-slide,
  .service-mobile-detail .service-slide.is-active {
    position: relative;
    inset: auto;
    flex: 0 0 min(72vw, 360px);
    width: min(72vw, 360px);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    scroll-snap-align: start;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 560px) {
  .services-cover {
    min-height: 250px;
    background-size: cover;
  }

  .services-cover h1 {
    font-size: 38px;
    letter-spacing: 0.1em;
  }

  html[lang="en"] .services-cover h1 {
    font-size: 31px;
    letter-spacing: 0.15em;
  }

  .service-kicker {
    margin-bottom: 18px;
  }

  .service-mobile-detail[aria-hidden="false"] .service-mobile-detail-inner {
    padding-bottom: 24px;
  }

  .service-mobile-detail .service-mobile-copy,
  html[lang="en"] .service-mobile-detail .service-mobile-copy {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-row,
  .service-row h2,
  .service-copy p,
  .service-visual,
  .service-slide,
  .service-mobile-detail,
  .service-mobile-detail-inner {
    transition-duration: 0.01ms !important;
  }
}
