/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */

/* HERO */
.sd-hero__pin {
  height: 600vh;
  position: relative;
}

.sd-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.sd-hero__image {
  position: absolute;
  inset: 0;
}

.sd-hero__image img,
.sd-hero__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sd-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.75) 100%
  );
}

.sd-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 5rem;
  width: 100%;
  max-width: 900px;
}

.sd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.sd-back:hover {
  color: rgba(255, 255, 255, 0.75);
}

.sd-browse {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  margin-top: 1.25rem;
  transition: color 0.3s ease;
}

.sd-browse:hover {
  color: rgba(255, 255, 255, 0.65);
}

.sd-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.sd-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.sd-hero__title em {
  font-style: italic;
  display: block;
}

.sd-hero__value-prop {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 520px;
}

.sd-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.sd-hero__scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  animation: arrowBounce 1.4s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* OVERVIEW */
.sd-overview {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 6rem;
  padding: 8rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.sd-overview__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sd-overview__body p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  line-height: 2;
}

.sd-overview__body .sd-overview__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sd-overview__includes {
  border-left: 1px solid var(--border-subtle);
  padding-left: 3rem;
  position: sticky;
  top: 8rem;
}

.sd-overview__includes-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2rem;
}

.sd-overview__includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sd-overview__includes-list li {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-left: 1.5rem;
  position: relative;
}

.sd-overview__includes-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.25);
}

.sd-overview__includes-list a {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.sd-overview__includes-list a:hover {
  color: rgba(255,255,255,1);
  letter-spacing: 0.02em;
}

.sd-overview__bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  padding-top: 3rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.sd-overview__bullets-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sd-overview__bullets > ul {
  background: #111;
  border-radius: 12px;
  padding: 0 1.5rem;
  border: 1px solid var(--border-subtle);
}

.sd-overview__bullets > ul li:last-child {
  border-bottom: none;
}

.sd-overview__bullets-intro {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  line-height: 2;
}

/* PROCESS */
.sd-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}

.sd-process__step {
  padding: 3.5rem 2rem 3.5rem 2.5rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sd-process__step:last-child {
  border-right: none;
}

.sd-process__num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--grey);
}

.sd-process__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.2;
}

.sd-process__desc {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.75;
}

/* WORK */
.sd-work {
  padding: 8rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sd-work__label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 3rem;
}

.sd-work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sd-work__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.sd-work__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.sd-work__item:hover .sd-work__image img {
  transform: scale(1.03);
}

.sd-work__caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.sd-work__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  transition: gap 0.3s ease, opacity 0.3s ease;
}

.sd-work__cta:hover {
  gap: 1.25rem;
  opacity: 0.7;
}

/* PAIRED WITH */
.sd-paired {
  padding: 6rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sd-paired__label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2.5rem;
}

.sd-paired__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.sd-paired__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--white);
  transition: opacity 0.3s ease;
}

.sd-paired__list li:first-child .sd-paired__link {
  border-top: 1px solid var(--border-subtle);
}

.sd-paired__link:hover {
  opacity: 0.5;
}

.sd-paired__arrow {
  font-size: 1.5rem;
  color: var(--grey);
  transition: transform 0.3s ease;
}

.sd-paired__link:hover .sd-paired__arrow {
  transform: translate(4px, -4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sd-overview {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .sd-overview__includes {
    position: static;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 3rem;
  }

  .sd-process {
    grid-template-columns: repeat(3, 1fr);
  }

  .sd-process__step:nth-child(3) {
    border-right: none;
  }

  .sd-process__step:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
  }

  .sd-process__step:nth-child(5) {
    border-top: 1px solid var(--border-subtle);
    border-right: none;
  }
}

@media (max-width: 768px) {
  .sd-hero__content {
    padding: 0 1.5rem 4rem;
  }

  .sd-overview {
    padding: 5rem 1.5rem;
  }

  .sd-overview__bullets {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sd-overview__bullets > *:nth-child(1) { order: 1; margin-bottom: 1.5rem; }
  .sd-overview__bullets > *:nth-child(3) { order: 2; margin-bottom: 2.5rem; }
  .sd-overview__bullets > *:nth-child(2) { order: 3; margin-bottom: 1.5rem; }
  .sd-overview__bullets > *:nth-child(4) { order: 4; }

  .sd-process {
    grid-template-columns: 1fr 1fr;
  }

  .sd-process__step {
    padding: 2.5rem 1.5rem;
  }

  .sd-process__step:nth-child(2) {
    border-right: none;
  }

  .sd-process__step:nth-child(3),
  .sd-process__step:nth-child(4),
  .sd-process__step:nth-child(5) {
    border-top: 1px solid var(--border-subtle);
  }

  .sd-process__step:nth-child(4) {
    border-right: none;
  }

  .sd-work {
    padding: 5rem 1.5rem;
  }

  .sd-work__grid {
    grid-template-columns: 1fr;
  }

  .sd-paired {
    padding: 4rem 1.5rem;
  }
}
