:root {
  color-scheme: light;
  --page-bg: #f6f3ee;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.58);
  --line: rgba(17, 17, 17, 0.14);
  --card: rgba(255, 255, 255, 0.46);
  --shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

a {
  color: inherit;
}

.service-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(196, 227, 255, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(252, 223, 232, 0.22), transparent 28%),
    var(--page-bg);
}

.service-page--identity .service-header__logo {
  filter: none;
  transition: filter 180ms ease;
}

.service-page--identity .service-header__brand.is-on-image .service-header__logo {
  filter: brightness(0) invert(1);
}

.service-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.4rem 1.5rem 0;
  mix-blend-mode: normal;
}

.service-header__brand,
.service-header__contact {
  text-decoration: none;
}

.service-header__logo {
  width: auto;
  height: 2.5rem;
  max-width: min(38vw, 10rem);
}

.service-header__contact {
  color: inherit;
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  -webkit-tap-highlight-color: transparent;
}

.service-header__contact:visited,
.service-header__contact:hover,
.service-header__contact:active,
.service-header__contact:focus-visible {
  color: inherit;
}

.service-main {
  padding-top: 0;
  padding-left: 0;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  min-height: 165vh;
  min-height: 165svh;
}

.service-hero__visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 72vh;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow);
}

.service-hero__visual {
  position: sticky;
  top: 0;
  align-self: start;
  justify-self: start;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  width: auto;
  max-width: 100%;
  overflow: clip;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.service-hero__content {
  padding: 1.6rem 0 2rem;
}

.service-hero__content {
  padding-top: 8rem;
}

.service-hero__detail {
  margin-top: 0;
  width: min(17rem, 58%);
  margin: 0 10.5rem 2rem auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
}

.service-hero__detail img {
  width: 100%;
  height: auto;
}

.service-hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
}

.service-hero__index {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.88;
}

.service-hero__title {
  margin: 1rem 0 0;
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.service-hero__intro {
  margin: 1.2rem 0 0;
  max-width: 24rem;
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 40rem);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(7.5rem, 12vh, 10rem) 0 0;
}

.service-hover-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 1px;
  padding-top: 3rem;
  padding-left: 3rem;
}

.service-hover-panel__content {
  position: relative;
  min-height: 34rem;
  max-width: 31rem;
  overflow: visible;
}

.service-hover-panel__entry {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  overflow: visible;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.service-hover-panel__text {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.service-hover-panel__entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-hover-panel__figure {
  width: min(36vw, 35rem);
  margin: 2rem 0 0 clamp(8rem, 13vw, 15rem);
  overflow: visible;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
}

.service-hover-panel__figure img {
  width: 100%;
  height: auto;
}

.service-hover-panel__figure--slideshow {
  position: relative;
  aspect-ratio: 3 / 2;
  background: rgba(255, 255, 255, 0.34);
}

.service-hover-panel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: service-hover-slideshow 2.4s linear infinite;
}

.service-hover-panel__slide:nth-child(1) {
  animation-delay: 0s;
}

.service-hover-panel__slide:nth-child(2) {
  animation-delay: 0.8s;
}

.service-hover-panel__slide:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes service-hover-slideshow {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.service-sections {
  display: grid;
  gap: 1.35rem;
}

.service-card {
  padding: 1.35rem 0 1.35rem;
  border-top: 1px solid var(--line);
}

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

.service-card__label {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  font-style: italic;
  font-weight: 500;
}

.service-card__text,
.service-card__list,
.service-card__closing {
  margin: 0;
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.1rem, 1.48vw, 1.32rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.service-card__list {
  display: grid;
  gap: 0.46rem;
  margin-top: 1.1rem;
}

.service-card__item {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.service-card__bullet {
  width: 0.32rem;
  height: 0.32rem;
  flex: 0 0 0.32rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.54);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.service-card__item:hover,
.service-card__item:focus-visible {
  opacity: 0.58;
  transform: translateX(0.2rem);
  outline: none;
}

.service-card__item:hover .service-card__bullet,
.service-card__item:focus-visible .service-card__bullet {
  transform: scale(1.35);
  background: rgba(17, 17, 17, 0.78);
}

.service-card__hint {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-style: italic;
  line-height: 1.08;
}

.service-card__closing {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.service-cta__link,
.service-cta__back {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.service-cta__link:visited,
.service-cta__link:hover,
.service-cta__link:active,
.service-cta__link:focus-visible,
.service-cta__back:visited,
.service-cta__back:hover,
.service-cta__back:active,
.service-cta__back:focus-visible {
  color: inherit;
}

.service-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.04);
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.service-cta__back {
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  font-style: italic;
}

.service-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.service-footer__col--contact {
  justify-self: end;
}

.service-footer__label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.06rem;
  font-style: italic;
}

.service-footer p,
.service-footer a {
  margin: 0;
  text-decoration: none;
  font-family: "Barlow Semi Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.08;
}

@media (max-width: 980px) {
  .service-hero,
  .service-layout,
  .service-footer {
    grid-template-columns: 1fr;
  }

  .service-footer__col--contact {
    justify-self: start;
  }

  .service-hover-panel {
    order: 2;
    padding-top: 0;
    padding-left: 0;
  }

  .service-hover-panel__content {
    min-height: 16rem;
    max-width: none;
  }

  .service-hover-panel__figure {
    width: min(100%, 18rem);
    margin: 1rem 0 0 0;
  }

  .service-hero {
    min-height: auto;
  }

  .service-hero__visual {
    min-height: 58vh;
  }

  .service-main {
    padding-top: 5.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .service-hero {
    min-height: auto;
  }

  .service-hero__visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: 58vh;
    border-radius: 0;
  }

  .service-hero__content {
    padding-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .service-header {
    padding: 1rem 1rem 0;
  }

  .service-header__logo {
    height: 2rem;
    max-width: 42vw;
  }

  .service-main {
    padding: 5.2rem 1rem 1.5rem;
  }

  .service-hero__visual {
    min-height: 48vh;
    border-radius: 1rem;
  }

  .service-hero__content {
    padding: 0.5rem 0 1rem;
  }

  .service-hero__detail {
    width: min(14rem, 70%);
    margin: 0 2.2rem 1.4rem auto;
  }

  .service-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
