/* Black Diamond Spa — Home page (onsen aesthetic) */

.page-content > .hero--split:first-child,
#main-content > .hero--split:first-child {
  margin-top: calc(-1 * var(--nav-height));
}

/* ── Ink reveal & section line ──────────────────── */

.hero [data-ink] {
  clip-path: inset(0 0 0 0);
}

[data-ink] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ink].is-visible {
  clip-path: inset(0 0 0 0);
}

.section-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--tiffany);
  margin-top: var(--sp-md);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-line.is-visible {
  width: 40px;
}

.section-header--center .section-line {
  margin-inline: auto;
}

/* ── Atmosphere section ─────────────────────────── */

.atmosphere {
  position: relative;
  min-height: clamp(280px, 50vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--sp-4xl) var(--container-pad);
}

.atmosphere__bg {
  position: absolute;
  inset: 0;
}

.atmosphere__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.atmosphere__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 17, 21, 0.55) 0%,
    rgba(14, 17, 21, 0.72) 50%,
    rgba(14, 17, 21, 0.55) 100%
  );
}

.atmosphere__mist {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(245, 240, 235, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.atmosphere__quote {
  position: relative;
  z-index: 1;
  max-width: 28ch;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: var(--lh-snug);
  color: var(--text-primary);
}

.atmosphere__quote-sub {
  display: block;
  margin-top: var(--sp-md);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Editorial services ─────────────────────────── */

.services-editorial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
}

.service-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: stretch;
}

.service-editorial--left {
  grid-template-columns: 1fr;
}

.service-editorial--right .service-editorial__visual {
  order: 2;
}

.service-editorial__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: clamp(220px, 40vw, 420px);
  background: var(--bg-tertiary);
}

.service-editorial__visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.service-editorial__visual--placeholder {
  background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
}

.service-editorial__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-xl);
  background: linear-gradient(to top, rgba(14, 17, 21, 0.88), transparent);
}

.service-editorial__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
}

.service-editorial__name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--text-primary);
  line-height: var(--lh-snug);
}

.service-editorial__description {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  max-width: none;
}

.service-editorial__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}

@media (min-width: 768px) {
  .service-editorial,
  .service-editorial--left,
  .service-editorial--right {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
  }

  .service-editorial--right .service-editorial__visual {
    order: 2;
  }

  .service-editorial--right .service-editorial__body {
    order: 1;
  }

  .service-editorial__body {
    padding: var(--sp-xl) 0;
  }
}

/* ── Process timeline ───────────────────────────── */

.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  list-style: none;
  position: relative;
}

.process-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-lg);
  align-items: start;
}

.process-timeline__marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(10, 186, 181, 0.35);
  background: rgba(10, 186, 181, 0.08);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--tiffany);
  flex-shrink: 0;
}

.process-timeline__content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-sm);
}

.process-timeline__content p {
  max-width: none;
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
    padding-top: var(--sp-xl);
  }

  .process-timeline::before {
    content: '';
    position: absolute;
    top: calc(var(--sp-xl) + 22px);
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(10, 186, 181, 0.35) 15%,
      rgba(10, 186, 181, 0.35) 85%,
      transparent
    );
  }

  .process-timeline__item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-md);
  }

  .process-timeline__marker {
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .process-timeline {
    padding-left: var(--sp-sm);
  }

  .process-timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 21px;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(10, 186, 181, 0.35) 10%,
      rgba(10, 186, 181, 0.35) 90%,
      transparent
    );
  }
}

/* ── CTA section ────────────────────────────────── */

.section-cta {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-deep));
  border-top: 1px solid rgba(10, 186, 181, 0.35);
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(10, 186, 181, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-cta .container {
  position: relative;
  z-index: 1;
}

/* ── Hero stats mobile ──────────────────────────── */

@media (max-width: 479px) {
  .hero__stats { gap: var(--sp-lg); }
  .hero__stat-value { font-size: var(--fs-2xl); }
}

@media (prefers-reduced-motion: reduce) {
  [data-ink] {
    clip-path: none;
    transition: none;
  }

  [data-ink].is-visible {
    clip-path: none;
  }

  .section-line {
    width: 40px;
    transition: none;
  }
}
