/* overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.services-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
  padding-top: calc(90px + var(--space-2xl));
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .services-hero {
    min-height: 70vh;
    padding-top: calc(100px + var(--space-3xl));
  }
}

.services-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-2xl);
}

.services-hero__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rosa);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.services-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.services-hero__title .serif {
  color: var(--rosa);
}

/* ── MARQUEE ── */
.sv-marquee {
  overflow: hidden;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.sv-marquee__track {
  display: flex;
  width: max-content;
  animation: svMarqueeScroll 35s linear infinite;
  will-change: transform;
}

.sv-marquee__item {
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gray-600);
  white-space: nowrap;
  padding: 0 var(--space-2xl);
  font-weight: 500;
}

.sv-marquee__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
  vertical-align: middle;
  color: var(--rosa);
}

.sv-marquee__dot svg {
  display: block;
  width: 6px;
  height: 6px;
}

@keyframes svMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── INTRO ── */
.services-intro {
  max-width: 780px;
  margin-bottom: var(--space-3xl);
}

.services-intro__lead {
  font-size: var(--text-lead);
  font-weight: 300;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.services-intro__text {
  font-size: var(--text-lg);
  color: var(--gray-400);
  line-height: 1.5;
  font-weight: 300;
}

.services-nav {
  margin-top: var(--space-2xl);
  position: sticky;
  top: 80px;
  z-index: 50;
  padding: var(--space-md) 0;
  margin-left: calc(var(--container-padding) * -1);
  margin-right: calc(var(--container-padding) * -1);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.services-nav.is-stuck {
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-800);
}

.services-nav__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rosa);
  margin-bottom: var(--space-sm);
}

.services-nav.is-stuck .services-nav__label {
  display: none;
}

.services-nav__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.services-nav__pills::-webkit-scrollbar {
  display: none;
}

.services-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gray-800);
  border-radius: 100px;
  color: var(--gray-400);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.services-pill:hover {
  background: rgba(255, 39, 122, 0.08);
  border-color: var(--rosa);
  color: var(--white);
}

.services-pill:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 2px;
}

.services-pill.is-active {
  background: var(--rosa);
  border-color: var(--rosa);
  color: var(--white);
}

.services-pill__icon {
  display: flex;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.services-pill:hover .services-pill__icon,
.services-pill.is-active .services-pill__icon {
  opacity: 1;
}

@media (min-width: 768px) {
  .services-pill {
    padding: 12px 24px;
    font-size: var(--text-base);
  }
}

/* ── SERVICE BLOCKS — Full-width interactive strips ── */
.services-section {
  padding-top: 0 !important;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-block {
  border-bottom: 1px solid var(--gray-800);
  border-left: 3px solid transparent;
  transition: border-left-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-block:first-child {
  border-top: 1px solid var(--gray-800);
}

.service-block.is-open {
  border-left-color: var(--rosa);
}

/* Highlight when targeted from pill click */
.service-block.is-targeted {
  border-color: var(--rosa);
}

/* ── Trigger ── */
.service-block__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--white);
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .service-block__trigger {
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-md);
  }
}

.service-block__trigger:hover {
  color: var(--rosa);
}

.service-block__trigger:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 4px;
}

/* Number — big, bold, rosa */
.service-block__number {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--rosa);
  min-width: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.service-block__trigger:hover .service-block__number,
.service-block.is-open .service-block__number {
  opacity: 1;
}

/* Question */
.service-block__question {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .service-block__question {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1024px) {
  .service-block__question {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 300;
  }
}

/* Icon — rounded */
.service-block__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-700);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s;
}

.service-block__trigger:hover .service-block__icon {
  border-color: var(--rosa);
}

.service-block.is-open .service-block__icon {
  transform: rotate(45deg);
  background: var(--rosa);
  border-color: var(--rosa);
}

/* ── Panel (expandable content) ── */
.service-block__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-block.is-open .service-block__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service-block__panel[hidden] {
  display: grid;
}

.service-block__content {
  overflow: hidden;
}

.service-block.is-open .service-block__content {
  padding-bottom: var(--space-2xl);
}

/* Content paragraphs */
.service-block__content p {
  font-size: var(--text-base);
  color: var(--gray-300);
  line-height: 1.5;
  max-width: 680px;
  margin-bottom: var(--space-sm);
  padding-left: calc(36px + var(--space-sm) + var(--space-sm));
  padding-right: var(--space-sm);
  font-weight: 300;
}

@media (min-width: 768px) {
  .service-block__content p {
    font-size: var(--text-lg);
    padding-left: calc(36px + var(--space-xl) + var(--space-md));
    padding-right: var(--space-md);
  }
}

/* ── Service tags — bold visual presence ── */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: var(--space-lg) var(--space-sm) 0 calc(36px + var(--space-sm) + var(--space-sm));
  margin: 0;
}

@media (min-width: 768px) {
  .service-tags {
    padding-left: calc(36px + var(--space-xl) + var(--space-md));
    gap: 10px;
  }
}

.service-tags li {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--rosa);
  background: rgba(255, 39, 122, 0.08);
  padding: 8px 18px;
  border: 1px solid rgba(255, 39, 122, 0.15);
  border-radius: 100px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s;
}

.service-tags li:hover {
  background: rgba(255, 39, 122, 0.15);
  border-color: rgba(255, 39, 122, 0.3);
}

/* ── CTA SECTION ── */
/* Uses main.css .section--cta styles + overrides */

/* ── ANIMATIONS ── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sv-reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-block__panel {
    transition: none;
  }

  .service-block__icon {
    transition: none;
  }

  .sv-marquee__track {
    animation: none;
  }

  .sv-reveal {
    opacity: 1;
    transform: none;
  }
}
