/* ============================================================
   CELL 3 — SIGNATURE SERVICES — The Beauty Suite (B-opus lane)
   Winner G3 (warm editorial proof-book · ZERO dark rail) · folds in G4 (taupe-on-paper
   index rail 01/02/03 · circular detail-crop inset per card · technique tag-chips ·
   EPRES 3-marker seam) + G2 ("PERFECT FOR:" self-select line) + G1 (single earned
   "CARE & REPAIR" badge on the EPRES seam only). Porcelain-dominant canvas, HONEY accents
   only, espresso ink. Radius = --radius (6px) on every card/frame/inset. Alive at t0:
   ambient gloss @keyframes travels the real blonde ribbon of each portrait + one-time
   EPRES daylight light-leak — NO scroll-gated content. ZERO lens-flare / streak / sparkle.
   Shared tokens are the only color source. Interaction polish lives in js/cells/cell-3.js.
   ============================================================ */

#cell-3 { overflow: hidden; } /* contain ambient gloss/leak blooms — never a page scrollbar */

.svc { width: 100%; }

/* ══ header ══════════════════════════════════════════════════ */
.svc__head {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.svc__eyebrow {
  color: var(--eyebrow-ink);            /* honey accent — names the service beat */
  margin-bottom: var(--space-s);
}
.svc__title {
  font-size: var(--step-section);      /* H2A */
  color: var(--stone-700);             /* espresso ink on porcelain */
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: pretty;                   /* widow control without a balance-forced mid-phrase break */
}
/* controlled break so the honey phrase "One chair." lands clean on line 2 (never a broken
   "Thoughtful / craft"). Collapses on very narrow so the head stays ≤3 lines at 390px. */
.svc__title-break { display: inline; }
@media (max-width: 420px) { .svc__title-break { display: none; } }
.svc__title-em { color: var(--terracotta); }  /* the ONE honey accent word */
/* honey underline seam beneath the head (G3) */
.svc__rule {
  display: block;
  width: 3.75rem; height: 2px;
  margin-top: var(--space-m);
  background: var(--terracotta);
  border-radius: 2px;
}
.svc__lede {
  margin-top: var(--space-m);
  color: var(--text-on-light-muted);   /* muted espresso-taupe on porcelain */
  font-size: var(--step-0);
  line-height: var(--leading-body);
  max-width: 42ch;
  text-wrap: balance;
}

/* ══ services field: taupe index rail (G4) + 3 identical cards ══ */
.svc__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 0.5rem + 2.5vw, 3.5rem);
  align-items: start;
}

/* left vertical index rail — TAUPE-ON-PAPER, never metallic gold (contract) */
.svc__rail {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1rem + 6vw, 6.5rem);
  padding-top: 0.4rem;
  position: relative;
}
/* a faint hairline spine linking the numerals (taupe, not gold) */
.svc__rail::before {
  content: "";
  position: absolute;
  left: 0.9rem; top: 1.2rem; bottom: 1.2rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--hairline-strong) 12%,
    var(--hairline-strong) 88%,
    transparent
  );
}
.svc__rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 2.1rem;
}
.svc__rail-item::before {
  content: "";
  position: absolute;
  left: 0.55rem; top: 0.55rem;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--marble-50);
  border: 1.5px solid var(--terracotta);   /* honey node dot on the taupe spine */
}
.svc__rail-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--stone-500);                 /* taupe, NOT gold */
  line-height: 1;
}
.svc__rail-label {
  font-family: var(--font-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--text-on-light-muted);
}

/* ── the 3 identical service cards ── */
.svc__cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 0.5rem + 1.6vw, 2rem);
}
.svc__card {
  display: flex;
  flex-direction: column;
  background: var(--cream);                 /* soft near-white paper card on porcelain */
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px -40px rgba(75, 56, 47, 0.5);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .svc__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 60px -38px rgba(75, 56, 47, 0.55);
    border-color: color-mix(in srgb, var(--terracotta) 34%, transparent);
  }
}

/* card media — portrait crop of real work, ambient gloss down the ribbon */
.svc__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--marble-100);
}
.svc__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;                 /* default: favour the shine mid-length, not the crown/torso */
  display: block;
}
/* per-card main-image crops — lead each with the hair result, minimising fabric/shoulder */
.svc__cards > :nth-child(1) .svc__img { object-position: 50% 38%; } /* blonding: down a touch, less arms-up top */
.svc__cards > :nth-child(2) .svc__img { object-position: 50% 26%; } /* balayage: hold the long wave sweep */
.svc__cards > :nth-child(3) .svc__img { object-position: 52% 30%; } /* extensions: keep the blended length + install line */
/* ambient gloss — a soft specular band travels slowly DOWN the real wave pattern.
   Feathered daylight bloom on the blonde ribbon, screen-blended — NO hard streak.
   Staggered per card via --svc-i so the three shimmer in sequence (WOW). */
.svc__gloss {
  position: absolute;
  inset: -20% -12%;
  pointer-events: none;
  background: linear-gradient(
    172deg,
    transparent 38%,
    rgba(255, 250, 242, 0.14) 47%,
    rgba(255, 250, 242, 0.24) 50%,
    rgba(255, 250, 242, 0.14) 53%,
    transparent 62%
  );
  mix-blend-mode: screen;
  animation: svc-gloss-travel 8s var(--ease-inout) infinite;
  animation-delay: calc(var(--svc-i, 0) * 1.6s);
  will-change: transform, opacity;
}
@keyframes svc-gloss-travel {
  0%   { transform: translateY(-46%); opacity: 0; }
  16%  { opacity: 1; }
  50%  { opacity: 0.9; }
  84%  { opacity: 1; }
  100% { transform: translateY(46%); opacity: 0; }
}

/* circular detail-crop inset (G4) — close texture proof, bottom-right of the media.
   Alive-at-t0 default (visible); on hover it does a tight gloss bloom (cell-3.js adds
   .is-lit; CSS handles the :hover fallback). Radius = full circle (an inset medallion,
   not a 6px card — the 6px law governs card/frame edges). */
.svc__detail {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  width: clamp(3.4rem, 2rem + 4vw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--cream) 88%, transparent);
  box-shadow: 0 10px 22px -12px rgba(75, 56, 47, 0.6);
}
.svc__detail-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;                 /* default: the closest ribboning/blend texture */
}
/* per-card detail crops so each medallion shows PURE hair texture (no fabric/shoulder) */
.svc__cards > :nth-child(1) .svc__detail-img { object-position: 62% 58%; } /* blonding: into the wave mass, off the blue sleeve */
.svc__cards > :nth-child(2) .svc__detail-img { object-position: 46% 46%; } /* balayage: mid ribboning */
.svc__cards > :nth-child(3) .svc__detail-img { object-position: 42% 34%; } /* extensions: the hand-tied weft-row install line */
.svc__detail-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* cursor-tracked highlight (cell-3.js sets --dgx/--dgy); falls back to a fixed soft
     interior bloom when JS is absent so the pure-CSS :hover still reads as lit glass */
  background: radial-gradient(
    circle at var(--dgx, 34%) var(--dgy, 28%),
    rgba(255, 251, 244, 0.6),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  mix-blend-mode: screen;
}
@media (hover: hover) {
  .svc__card:hover .svc__detail-gloss,
  .svc__detail.is-lit .svc__detail-gloss { opacity: 1; }
}

/* card body */
.svc__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 0.8rem + 1vw, 1.7rem);
  flex: 1;
}
/* numeral 01/02/03 + short honey dash (G3) */
.svc__num {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.svc__num-fig {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-on-light-muted);
}
.svc__num-dash {
  width: 1.6rem; height: 1.5px;
  background: var(--terracotta);            /* honey accent dash */
  border-radius: 2px;
}
.svc__name {
  font-family: var(--font-display);         /* Prata — H3A service name */
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem);
  line-height: 1.05;
  color: var(--stone-700);
  margin-bottom: 0.55rem;
  /* reserve 2 lines so "BELLAMI Extensions" (wraps) aligns with the 1-line names —
     all three bodies start their descriptor/copy at the same y (T2.2 identical units) */
  min-height: calc(2 * 1.05em);
  display: flex;
  align-items: flex-end;
}
.svc__descriptors {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--stone-500);                  /* taupe descriptor line */
  margin-bottom: var(--space-s);
}
.svc__copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-on-light);              /* espresso body */
  margin-bottom: var(--space-s);
}
.svc__gem {
  font-family: var(--font-display);         /* the verbatim BBB gem, poised in Prata italic */
  font-style: italic;
  color: var(--stone-700);
}
/* technique tag-chips (G4) — scannable, taupe-on-paper, hairline-boxed */
.svc__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-s);
}
.svc__tags li {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--stone-500);
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  white-space: nowrap;
}
/* "PERFECT FOR:" self-select line (G2) */
.svc__perfect {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-m);
}
.svc__perfect-key {
  font-family: var(--font-body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--terracotta);                 /* honey key */
  margin-right: 0.35rem;
}
.svc__perfect-key::after { content: ":"; }
/* LEARN MORE — soft honey underline-travel + arrow slide (the only action-state motion) */
.svc__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--stone-700);
  width: fit-content;
}
.svc__more-label {
  position: relative;
  padding-bottom: 3px;
}
.svc__more-label::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.svc__more-arrow { color: var(--terracotta); transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) {
  .svc__card:hover .svc__more-label::after,
  .svc__more:hover .svc__more-label::after { transform: scaleX(1); }
  .svc__card:hover .svc__more-arrow,
  .svc__more:hover .svc__more-arrow { transform: translateX(4px); }
}
.svc__more:focus-visible .svc__more-label::after { transform: scaleX(1); }

/* ══ EPRES care-proof seam — CONTAINED taupe band (NOT dark). champagne-family, so it
     seams seamlessly with cell-2 (champagne) and stays in the light world. ══════════ */
.svc__epres {
  margin-top: clamp(1.5rem, 0.8rem + 2vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 2.35fr);
  gap: 0;
  align-items: stretch;
  background: var(--marble-100);            /* warm taupe/honey champagne breath — LIGHT family */
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 54px -44px rgba(75, 56, 47, 0.5);
}
.svc__epres-media {
  position: relative;
  overflow: hidden;
  /* the seam is a COMPACT horizontal proof band (per the G3 winner), so the portrait is a
     bounded strip that hugs the body content — NOT a tall column forcing dead taupe.
     The grid row is driven by the body; the image covers this capped strip. */
  min-height: 100%;
  max-height: 15.5rem;
  align-self: stretch;
  background: var(--marble-100);
}
.svc__epres-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 34%;                 /* the glossy healthy finish, not the wall/door */
  min-height: 12rem;
}
/* one-time faint daylight light-leak drifts once across the finish on a slow loop (WOW).
   Feather-soft (T2.19) — never a hard flare. */
.svc__epres-leak {
  position: absolute;
  inset: -20% -30%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 249, 238, 0.22) 50%,
    transparent 58%
  );
  mix-blend-mode: screen;
  animation: svc-epres-leak 11s var(--ease-inout) 1s infinite;
  will-change: transform, opacity;
}
@keyframes svc-epres-leak {
  0%   { transform: translateX(-40%); opacity: 0; }
  20%  { opacity: 0.9; }
  46%  { opacity: 0; }
  100% { transform: translateX(40%); opacity: 0; }
}
.svc__epres-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.1rem, 0.5rem + 1.6vw, 2.25rem);
  padding: clamp(1.35rem, 0.9rem + 1.5vw, 2.5rem) clamp(1.35rem, 0.9rem + 1.5vw, 2.75rem);
}
/* the ONE earned badge (G1) — circular "CARE & REPAIR", honey outline, no per-card hearts */
.svc__epres-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--terracotta);
  text-align: center;
  flex: 0 0 auto;
}
.svc__epres-badge-mark { color: var(--terracotta); }
.svc__epres-badge-text {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--stone-500);                  /* taupe caption under the honey mark */
}
.svc__epres-copy { min-width: 0; }
.svc__epres-eyebrow {
  color: var(--eyebrow-ink);
  margin-bottom: 0.4rem;
}
.svc__epres-head {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 0.7vw, 1.7rem);
  line-height: 1.1;
  color: var(--stone-700);
  margin-bottom: 0.55rem;
}
.svc__epres-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-on-light);
  max-width: 52ch;                          /* fills the copy column — no hollow taupe gap at right */
}
/* 3 care markers (G4) — vertical stack of icon + head + sub */
.svc__epres-markers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  flex: 0 0 auto;
  border-left: 1px solid var(--hairline-strong);
  padding-left: clamp(1.1rem, 0.5rem + 1.6vw, 2.25rem);
}
.svc__epres-marker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  align-items: center;
}
.svc__epres-marker-icon {
  grid-row: 1 / 3;
  color: var(--terracotta);                 /* honey line-icons */
}
.svc__epres-marker-head {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--stone-700);
}
.svc__epres-marker-sub {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-on-light-muted);
}

/* ══ closing care-line (G3) ══════════════════════════════════ */
.svc__careline {
  margin-top: clamp(1.75rem, 1rem + 2vw, 3rem);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.22rem);
  line-height: 1.5;
  color: var(--stone-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.svc__careline-mark {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--terracotta);            /* honey diamond lead */
  border-radius: 1px;
}
.svc__careline-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--terracotta);            /* honey separator dot */
}

/* ══ reduced-motion safety — everything alive-at-t0, nothing gated ══ */
@media (prefers-reduced-motion: reduce) {
  .svc__gloss,
  .svc__epres-leak { animation: none; opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RECOMPOSITION (≤760px) — per DESIGN mobile plan cell 3:
   3 cards → 1 stack (Blonding · Balayage · Extensions), EPRES nested under care
   language, drop any redundant secondary copy after two lines. Recomposed, not squished.
   The taupe index rail is a desktop wayfinding device → hidden on mobile (the numerals
   live on each card). EPRES seam re-stacks: image on top, copy, then markers as a row.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .svc__field { grid-template-columns: 1fr; gap: 0; }
  .svc__rail { display: none; }             /* wayfinding rail → card numerals carry it on mobile */
  .svc__cards {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
  .svc__media { aspect-ratio: 3 / 2; }      /* wider crop reads better in a single column */
  .svc__img { object-position: 50% 26%; }

  /* EPRES seam re-stacks vertically */
  .svc__epres { grid-template-columns: 1fr; }
  .svc__epres-media { min-height: auto; }
  .svc__epres-img { aspect-ratio: 3 / 2; min-height: 0; }
  .svc__epres-body {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: var(--space-s);
    text-align: left;
  }
  .svc__epres-badge { flex-direction: row; gap: 0.6rem; align-items: center; }
  .svc__epres-badge-text { text-align: left; }
  .svc__epres-markers {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    padding-left: 0;
    padding-top: var(--space-s);
    border-top: 1px solid var(--hairline-strong);
    gap: var(--space-m) var(--space-l);
    width: 100%;
  }
  .svc__careline { flex-direction: column; gap: 0.35rem; }
  .svc__careline-dot { display: none; }
}

/* very narrow (≤390px) — keep the card body tight, headline label-scale (H3A/mobile) */
@media (max-width: 390px) {
  .svc__title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .svc__name { font-size: 1.5rem; }
  .svc__epres-markers { gap: var(--space-s) var(--space-m); }
}
