/* ===================================================================
   UXUARIA — service.css
   Service pages. Figma: uxuaria-Web, diagnóstico UX desktop (146:1115).
   Spec: 15-paginas-servicio. Exploration: no mobile frame yet.
   =================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== SHARED ===== */
.service-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  padding-block: 64px;
}

.service-section--tight { padding-bottom: 32px; }
.service-section--faq { gap: 32px; }
.service-section--full { padding-inline: 0; }

.service-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: center;
}

.service-head--start { align-items: flex-start; text-align: left; }

.service-head__eyebrow {
  color: var(--ux-color-text-muted);
  font-size: var(--ux-size-lead);
  font-weight: 700;
  line-height: 28.8px;
}

.service-head__title {
  color: var(--ux-color-text);
  font-size: var(--ux-size-title);
  font-weight: 700;
  line-height: var(--ux-leading-title);
  letter-spacing: -1.1px;
}

.service-head__title--narrow { max-width: 602px; }
.service-head__title--process { max-width: 489px; }
.service-head__title--report { max-width: 695px; }
.service-head__title--case { max-width: 899px; }

.service-head__text {
  color: var(--ux-color-text);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

.service-head__text--report { max-width: 544px; }
.service-head__text--after { max-width: 718px; }

.service-item__title {
  color: var(--ux-color-text);
  font-size: var(--ux-size-heading);
  font-weight: 700;
  line-height: var(--ux-leading-heading);
}

.service-item__text {
  color: var(--ux-color-text);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

.service-cta { width: 290px; }

/* ===== HERO ===== */
.service-hero {
  position: relative;
  border-bottom: 1px solid var(--ux-color-border-soft);
}

.service-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 670px;
  padding-block: 56px 64px;
  text-align: center;
}

/* Figma: 40px around the title block, 24px inside it */
.service-hero__inner > .page-breadcrumb { margin-bottom: 16px; }
.service-hero__inner > .service-hero__actions { margin-top: 16px; }

.service-hero__badge { color: var(--ux-color-text); border-color: var(--ux-color-text); }

.service-hero__title {
  max-width: 1050px;
  color: var(--ux-color-text);
  font-size: var(--ux-size-display);
  font-weight: 700;
  line-height: var(--ux-leading-display);
  letter-spacing: -.04em;
}

.service-hero__lead {
  max-width: 1050px;
  color: var(--ux-color-text);
  font-size: var(--ux-size-body);
  line-height: 28.8px;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Without the symbol column the lead takes the full container, as in Figma */
.service-hero--wide .service-hero__lead { max-width: none; }

.service-hero__cta { width: 290px; }

/* Short pages (Sobre nosotros): no minimum height */
.service-hero--compact .service-hero__inner { min-height: 0; padding-block: 96px 80px; }

.service-hero__link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--ux-color-ink);
  font-size: var(--ux-size-small);
  line-height: 28.8px;
  text-decoration: none;
}

.service-hero__link:hover { text-decoration: underline; }

.service-hero__note {
  max-width: 1050px;
  color: var(--ux-color-text);
  font-family: var(--ux-font-display);
  font-size: var(--ux-size-meta);
  line-height: 22.4px;
}

/* Figma draws the symbol row turned upright at the right edge */
.service-hero__symbols {
  position: absolute;
  top: 242px;
  right: calc(50% - 720px + 203px);
  width: 186px;
  height: 41px;
  transform: rotate(-90deg);
  transform-origin: right top;
}

/* ===== HEADING REVEALS =====
   headings.js: eyebrow, title and text rise in one after another.
   .service-motion is set in the head, so nothing hides without JavaScript. */
.service-motion :is(.service-hero__title, .service-hero__lead, .service-head > *) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.service-motion :is(.service-hero__title, .service-hero__lead, .service-head > *).is-visible {
  opacity: 1;
  transform: none;
}

/* If headings.js never runs, the hero still shows up */
.service-motion :is(.service-hero__title, .service-hero__lead):not(.is-visible) {
  animation: service-reveal-fallback 0s linear 3s forwards;
}

@keyframes service-reveal-fallback {
  to { opacity: 1; transform: none; }
}

/* ===== SITUATIONS ===== */
.service-section:has(.situation-grid) { gap: 64px; }

.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 305px));
  gap: 32px;
  justify-content: center;
  width: 100%;
}

.situation-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.situation-card__title {
  color: var(--ux-color-text);
  font-size: var(--ux-size-subtitle);
  font-weight: 500;
  line-height: var(--ux-leading-subtitle);
  letter-spacing: -.1em;
}

.situation-card__text {
  color: var(--ux-color-ink);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

/* situations.js sets --reveal from 0 to 1 on each child, one after another */
.situation-grid--animated > * {
  opacity: var(--reveal, 0);
  translate: 0 calc((1 - var(--reveal, 0)) * 32px);
  will-change: opacity, translate;
}

/* ===== DELIVERABLES ===== */
.service-section:has(.deliverables) { gap: 64px; }

.deliverables {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 980px;
}

.deliverables__symbol { transform: rotate(90deg); }
.deliverables__line { width: 100%; height: 5.33px; margin-top: 5px; }

.deliverables__list {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 21px;
}

.deliverables__item { display: flex; flex-direction: column; gap: 16px; }

/* deliverables.js: the symbol rides the line and lights each item it reaches */
.deliverables--animated .deliverables__symbol { will-change: translate; }

.deliverables--animated .deliverables__item .service-item__title,
.deliverables--animated .deliverables__item .service-item__text {
  color: var(--ux-color-text-subtle);
  transition: color .3s ease;
}

.deliverables--animated .deliverables__item.is-active .service-item__title,
.deliverables--animated .deliverables__item.is-active .service-item__text { color: var(--ux-color-text); }

/* ===== PROCESS ===== */
.process {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: 100%;
  /* Steps + Figma's visible gap + figure, so the group sits centered */
  max-width: 889px;
}

.process__body {
  display: flex;
  gap: 98px;
  align-items: center;
  width: 100%;
}

.process__steps {
  display: flex;
  flex: none;
  width: 344px;
}

.process__list { display: flex; flex-direction: column; gap: 32px; }
.process__step { display: flex; flex-direction: column; gap: 16px; max-width: 344px; }

/* Illustration from process.js: the figure stays while the steps scroll past.
   Without JavaScript the steps keep their compact layout and no figure. */
.process__figure { display: none; }

.process--animated .process__body { align-items: flex-start; }

.process--animated .process__figure {
  position: sticky;
  top: var(--ux-header-height);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 447px;
  height: calc(100vh - var(--ux-header-height));
}

.process__figure svg { display: block; width: 100%; height: auto; max-height: 92%; }

.process--animated .process__step {
  justify-content: center;
  min-height: calc(100vh - var(--ux-header-height));
}

.process--animated .process__list { gap: 0; }

.process--animated .process__step .service-item__title,
.process--animated .process__step .service-item__text {
  color: var(--ux-color-text-muted);
  transition: color .2s;
}

.process--animated .process__step.is-active .service-item__title,
.process--animated .process__step.is-active .service-item__text { color: var(--ux-color-text); }

/* ===== REPORT ===== */
.report-parts {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
}

.report-part {
  display: flex;
  gap: 31px;
  align-items: center;
}

/* Figma: 31px on the first part, 16px on the rest */
.report-part + .report-part { gap: 16px; }

.report-part__copy { display: flex; flex: 1; flex-direction: column; gap: 16px; }
.report-part__image { flex: none; width: 68.3%; height: auto; }

/* ===== PRO SERVICE ===== */
.pro-service {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  width: 100%;
  padding: 40px;
  border-radius: var(--ux-radius-card);
  background: var(--ux-color-surface-inverse);
}

.pro-service__intro,
.pro-service__item { display: flex; flex-direction: column; gap: 16px; }

.pro-service__icon { transform: rotate(180deg); }

.pro-service__title {
  color: var(--ux-color-text-inverse);
  font-size: var(--ux-size-heading);
  font-weight: 700;
  line-height: var(--ux-leading-heading);
}

.pro-service__text {
  color: var(--ux-color-text-inverse);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

/* ===== COMPARISON ===== */
.comparison-wrap { width: 100%; }

.comparison {
  width: 100%;
  border-collapse: collapse;
  color: var(--ux-color-text);
  text-align: left;
}

.comparison th,
.comparison td { vertical-align: top; }

.comparison__head {
  padding: 0 0 16px 32px;
  font-size: var(--ux-size-heading);
  font-weight: 700;
  line-height: var(--ux-leading-heading);
}

.comparison__row { border-bottom: 1px solid var(--ux-color-border-soft); }

.comparison__label {
  width: 200px;
  padding: 20px 0;
  font-size: var(--ux-size-body);
  font-weight: 500;
  line-height: 24px;
}

.comparison__cell {
  padding: 20px 0 20px 32px;
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

.comparison__cell:nth-child(2) { width: 392px; }

/* ===== CASE ===== */
.case {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  width: 100%;
}

.case__story { display: flex; flex: 1; flex-direction: column; gap: 32px; }
.case__moments { display: flex; flex-direction: column; gap: 32px; }
.case__moment { display: flex; gap: 16px; align-items: flex-start; }

.case__pin {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--ux-radius-badge);
  background: var(--ux-color-ink);
  color: var(--ux-color-text-inverse);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-label);
  font-weight: 700;
}

.case__result { display: flex; flex: none; flex-direction: column; gap: 24px; width: 420px; }
.case__received { display: flex; flex-direction: column; gap: 24px; }
.case__note { color: var(--ux-color-text-muted); }

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--ux-color-ink);
  border-radius: var(--ux-radius-card);
  background: var(--ux-color-surface);
  transition: transform .25s ease, box-shadow .25s ease;
}

.metric-card__value {
  color: var(--ux-color-text);
  font-size: var(--ux-size-display);
  font-weight: 700;
  line-height: var(--ux-leading-display);
  letter-spacing: -2.6px;
}

.metric-card__description { color: var(--ux-color-text); font-size: var(--ux-size-small); }

.metric-card__logo {
  width: 104.8px;
  height: 30px;
  object-fit: cover;
  opacity: .8;
  mix-blend-mode: difference;
}

.metric-card a::after { content: ''; position: absolute; inset: 0; border-radius: var(--ux-radius-card); }

.metric-card:hover,
.metric-card:has(a:focus-visible) {
  transform: scale(1.025);
  box-shadow: var(--ux-shadow-card-hover);
}

/* ===== FAQ ===== */
.faq { width: 100%; max-width: 830px; }

.faq__item {
  padding-block: 24px;
  border-bottom: 1px solid var(--ux-color-border-soft);
}

.faq__question {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--ux-color-text);
  font-size: var(--ux-size-heading);
  font-weight: 700;
  line-height: var(--ux-leading-heading);
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker { display: none; }

/* Plus sign; the vertical bar hides when the answer is open */
.faq__question::after {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  background:
    linear-gradient(var(--ux-color-ink), var(--ux-color-ink)) center / 16px 2px no-repeat,
    linear-gradient(var(--ux-color-ink), var(--ux-color-ink)) center / 2px 16px no-repeat;
}

.faq__item[open] .faq__question::after {
  background: linear-gradient(var(--ux-color-ink), var(--ux-color-ink)) center / 16px 2px no-repeat;
}

.faq__question:hover { text-decoration: underline; }

.faq__answer {
  margin-top: 12px;
  color: var(--ux-color-text);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

/* ===== OTHER SERVICES ===== */
.service-links { width: 100%; border-bottom: 1px solid var(--ux-color-ink); }

.service-link {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(16px, 11.25vw, 162px) 23px;
  border-top: 1px solid var(--ux-color-ink);
  color: var(--ux-color-text);
  font-size: var(--ux-size-subtitle);
  font-weight: 500;
  line-height: var(--ux-leading-subtitle);
  letter-spacing: -.08em;
  text-decoration: none;
}

.service-links li:nth-child(odd) .service-link { flex-direction: row-reverse; text-align: right; }
.service-link__arrow { flex: none; }

a.service-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ux-color-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.service-links li:nth-child(odd) a.service-link::before { transform-origin: right; }

@media (hover: hover) {
  a.service-link { transition: color .2s; }
  a.service-link:hover { color: var(--ux-color-text-inverse); }
  a.service-link:hover::before { transform: scaleX(1); }
  .service-link__arrow { transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .2s; }
  a.service-link:hover .service-link__arrow { filter: invert(1); transform: translateX(12px); }
}

a.service-link:focus-visible { outline: 2px solid var(--ux-color-ink); outline-offset: -4px; }

/* ===== RELATED ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

/* ===== CLOSING ===== */
.service-page .closing-cta {
  padding: 96px var(--ux-gutter);
  background: var(--ux-color-surface-inverse);
}

.service-page .closing-cta__title {
  max-width: none;
  font-size: var(--ux-size-title);
  line-height: var(--ux-leading-title);
  letter-spacing: -1.1px;
  font-weight: 700;
}

.service-page .closing-cta__text {
  max-width: none;
  margin-top: -24px;
  color: var(--ux-color-text-inverse);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

.service-page .closing-cta .pill-button { width: 290px; border-color: var(--ux-color-text-inverse); }

/* ===== AI MVP RESCUE ===== */
/* Four situations read better as two rows of two */
.situation-grid--pairs { grid-template-columns: repeat(2, minmax(0, 305px)); }

/* Five areas: one row each, no tabs, so everything reads without JavaScript */
.rescue-areas { width: 100%; border-top: 1px solid var(--ux-color-ink); }

.rescue-area {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 32px;
  border-bottom: 1px solid var(--ux-color-border-soft);
}

.rescue-area__number {
  color: var(--ux-color-text-muted);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-small);
  line-height: 28.8px;
}

.rescue-area__summary,
.rescue-area__tasks { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.rescue-area__subtitle {
  color: var(--ux-color-text-muted);
  font-size: var(--ux-size-small);
  font-weight: 700;
  line-height: 25.6px;
}

.rescue-area__list { display: flex; flex-direction: column; gap: 8px; }

.rescue-area__task { position: relative; padding-left: 20px; }

.rescue-area__task::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ux-color-ink);
}

.rescue-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.rescue-step { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.rescue-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ux-color-ink);
  border-radius: 50%;
  box-shadow: var(--ux-shadow-button);
  color: var(--ux-color-ink);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-small);
  font-weight: 700;
}

.rescue-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 32px;
  justify-content: center;
  width: 100%;
}

.metric-card__value--word { font-size: var(--ux-size-title); line-height: var(--ux-leading-title); font-weight: 700; }
.metric-card__logo--wide { width: 154px; }

/* ===== AI NATIVE AND DESIGN SYSTEM (spec 16) ===== */
/* Thin rule on top of a block, as the Figma dividers */
.service-rule {
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid var(--ux-color-border-soft);
}

.service-head__text--definition {
  max-width: 830px;
  font-size: var(--ux-size-body);
  line-height: 32px;
}

.service-head__text--wide { max-width: 830px; }

/* Title on the left, content on the right */
.service-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  width: 100%;
}

.service-split__body { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.service-split__group { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.service-text-lg {
  color: var(--ux-color-text);
  font-size: var(--ux-size-body);
  line-height: 32px;
}

.service-note { color: var(--ux-color-text-muted); font-size: var(--ux-size-small); line-height: 25.6px; }
.service-note a { color: inherit; }
.service-note a:hover { color: var(--ux-color-text); }

/* Items with an arrow, one per row */
.check-list { width: 100%; }

.check-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block: 16px;
  border-bottom: 1px solid var(--ux-color-border-soft);
  color: var(--ux-color-text);
  font-size: var(--ux-size-small);
  line-height: 25.6px;
}

.check-list__item img { flex: none; width: 24px; height: 24px; margin-top: 1px; }

/* Dark band: "¿Tu producto necesita IA?" */
.service-band { background: var(--ux-color-surface-inverse); }

.service-band__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
  padding-block: 96px;
}

.service-band .service-head__title { color: var(--ux-color-text-inverse); }

.service-band__body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.service-band__text { color: var(--ux-color-inverse-55); font-size: var(--ux-size-body); line-height: 32px; }

/* Four cards, left aligned, with a lighter title */
.situation-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.situation-card--start { align-items: flex-start; text-align: left; }
.situation-card--start .situation-card__icon { margin-bottom: 8px; }

.situation-card--start .situation-card__title {
  font-size: var(--ux-size-heading);
  font-weight: 700;
  line-height: var(--ux-leading-heading);
  letter-spacing: 0;
}

/* Process table with a header on the first column too */
.comparison__head--first { padding-left: 0; }
.comparison--process .comparison__label { font-weight: 700; }

/* Four deliverables, titles only */
.deliverables--four { max-width: none; }
.deliverables--four .deliverables__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* "Qué entregamos": copy on the left, an example on the right */
.ds-parts { display: flex; flex-direction: column; gap: 64px; width: 100%; }

.ds-part {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.ds-part__copy { display: flex; flex-direction: column; gap: 16px; }

.ds-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border-radius: var(--ux-radius-card);
  background: var(--ux-color-surface-soft);
}

.ds-panel--code { background: var(--ux-color-surface-inverse); }

.ds-panel__label {
  color: var(--ux-color-text-muted);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-label);
  line-height: 17.6px;
  text-transform: uppercase;
}

.ds-panel--code .ds-panel__label { color: var(--ux-color-inverse-55); text-transform: none; }

.ds-tokens { display: flex; flex-direction: column; gap: 24px; }

.ds-token {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--ux-color-text);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-meta);
  line-height: 22px;
}

.ds-token__swatch {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ux-color-border-soft);
  border-radius: var(--ux-radius-frame);
}

.ds-token__swatch--ink { background: var(--ux-color-text); }
.ds-token__swatch--surface { background: var(--ux-color-surface); }
.ds-token__swatch--soft { background: var(--ux-color-surface-soft); }
.ds-token__arrow { color: var(--ux-color-text-muted); }

.ds-component { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }

.ds-code {
  margin: 0;
  color: var(--ux-color-text-inverse);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-small);
  line-height: 28px;
  white-space: pre-wrap;
}

/* ===== AUDIENCE: "Para quién" on AI Native =====
   The left column stays while the moments on the right open with the scroll
   (audience.js). Without JavaScript every moment stays open. */
.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  width: 100%;
}

.audience__aside { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.audience__body { display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
.audience__list { width: 100%; }

.audience-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 32px;
  border-bottom: 1px solid var(--ux-color-border-soft);
}

.audience-item:first-child { padding-top: 0; }

.audience-item__number {
  grid-row: span 2;
  color: var(--ux-color-text-muted);
  font-family: var(--ux-font-mono);
  font-size: var(--ux-size-meta);
  font-weight: 700;
  line-height: 28.8px;
}

.audience-item__title {
  color: var(--ux-color-text);
  font-size: var(--ux-size-heading);
  font-weight: 700;
  line-height: var(--ux-leading-heading);
}

.audience-item__detail { display: grid; grid-template-rows: 1fr; margin-top: 12px; }
.audience-item__detail > * { overflow: hidden; }

.audience--animated .audience-item__number,
.audience--animated .audience-item__title {
  color: var(--ux-color-text-subtle);
  transition: color .3s ease;
}

.audience--animated .audience-item__detail {
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1), margin-top .5s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}

/* Each moment takes its own stretch of scroll, so they open one at a time */
.audience--animated .audience-item { min-height: 36vh; align-content: start; }
.audience--animated .audience-item:last-child { min-height: 0; }

.audience--animated .audience-item.is-open .audience-item__number { color: var(--ux-color-ink); }
.audience--animated .audience-item.is-open .audience-item__title { color: var(--ux-color-text); }

.audience--animated .audience-item.is-open .audience-item__detail {
  grid-template-rows: 1fr;
  margin-top: 12px;
  opacity: 1;
}

@media (min-width: 900px) {
  .audience__aside { position: sticky; top: calc(var(--ux-header-height) + 48px); }
}

/* ===== BOOKING BLOCK (BookingBlock.astro) =====
   Same look as the home contact block: copy on the left, Cal.com on the right */
.booking-block {
  padding: 96px var(--ux-gutter);
  background: var(--ux-color-surface-inverse);
  color: var(--ux-color-text-inverse);
}

.booking-block__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1119px;
  margin: 0 auto;
}

.booking-block__title {
  margin-bottom: 16px;
  font-family: var(--ux-font-display);
  font-size: var(--ux-size-title);
  font-weight: 700;
  line-height: var(--ux-leading-title);
  letter-spacing: -1.2px;
}

.booking-block__text { margin-bottom: 16px; font-size: var(--ux-size-small); line-height: 28.8px; }
.booking-block__link { color: inherit; text-decoration: none; }
.booking-block__link:hover,
.booking-block__link--email { text-decoration: underline; }

.booking-block__calendar {
  height: 450px;
  overflow: hidden;
  border: 1px solid var(--ux-color-text-inverse);
  border-radius: var(--ux-radius-frame);
  background: var(--ux-color-surface);
}

/* ===== ABOUT: founder with photo ===== */
.founder {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

.founder__photo {
  width: 240px;
  height: 240px;
  border-radius: var(--ux-radius-card);
  object-fit: cover;
}

.founder__body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ===== RESPONSIVE =====
   Provisional until the mobile frame exists (spec 15) */
@media (max-width: 1280px) {
  .service-hero__symbols { display: none; }
}

@media (max-width: 1100px) {
  .situation-grid { grid-template-columns: repeat(2, minmax(0, 305px)); }
  .process__body { gap: 40px; }
  .process__steps { flex: 1; width: auto; }
  .process--animated .process__figure { flex: 0 1 42%; width: auto; }
  .process { align-items: flex-start; }
  .process .service-cta { align-self: center; }
  .report-part { flex-direction: column; align-items: flex-start; gap: 24px; }
  .report-part__image { width: 100%; }
  .pro-service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pro-service__intro { grid-column: 1 / -1; }
  .case { flex-direction: column; }
  .case__result { width: 100%; max-width: 420px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rescue-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .situation-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-part { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .service-split,
  .service-band__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .audience { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .booking-block { padding-block: 56px; }
  .booking-block__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .booking-block__calendar { height: 520px; }
  .founder { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .founder__photo { width: 160px; height: 160px; }
  .audience-item { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding-block: 24px; }
}

/* Same as the preview on narrow screens: figure pinned on top, steps below it */
@media (max-width: 899px) {
  .process--animated .process__body { flex-direction: column; gap: 0; }

  .process--animated .process__figure {
    order: -1;
    z-index: 2;
    flex: none;
    width: calc(100% + 16px);
    height: auto;
    margin-inline: -8px;
    padding: 8px;
    background: var(--ux-color-surface);
  }

  .process--animated .process__figure svg { width: auto; max-height: 52vh; }
  .process--animated .process__steps { width: 100%; }

  .process--animated .process__step {
    justify-content: flex-start;
    min-height: 85vh;
    padding-top: 62vh;
  }
}

@media (max-width: 768px) {
  .service-section { gap: 32px; padding-block: 48px; }
  .service-section:has(.situation-grid),
  .service-section:has(.deliverables) { gap: 40px; }
  .service-hero__inner { min-height: 0; padding-block: 40px 48px; }
  .service-hero__lead { line-height: 27px; }
  .service-hero__actions { flex-direction: column; align-items: center; gap: 8px; }
  .situation-grid { grid-template-columns: minmax(0, 1fr); }
  .deliverables__list { grid-template-columns: minmax(0, 1fr); }
  .pro-service { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px; }

  /* Comparison becomes one card per row */
  .comparison thead { display: none; }
  .comparison__row { display: block; padding-block: 16px; }
  .comparison__label { display: block; width: auto; padding: 0 0 8px; }
  .comparison__cell { display: block; width: auto !important; padding: 8px 0 0; }
  .comparison__cell::before {
    content: attr(data-label);
    display: block;
    color: var(--ux-color-text-muted);
    font-weight: 700;
  }
  .service-link { letter-spacing: -.04em; }
  .service-link__arrow { width: 28px; height: 28px; margin-top: 2px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .rescue-area { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .rescue-steps,
  .rescue-cases { grid-template-columns: minmax(0, 1fr); }
  .situation-grid--four,
  .deliverables--four .deliverables__list { grid-template-columns: minmax(0, 1fr); }
  .service-band__inner { padding-block: 64px; }
  .service-text-lg,
  .service-band__text,
  .service-head__text--definition { line-height: 28px; }
  .ds-panel { padding: 24px; }
  .ds-code { font-size: 14px; line-height: 24px; }
  .comparison__head--first { display: none; }
  .closing-cta__actions { flex-direction: column; gap: 8px; }
  .service-hero__link,
  .closing-cta__link { white-space: nowrap; }
}
