/*!
 * ZZZ Fitness Club — Service Page Stylesheet
 *
 * Page-template-specific styles for template-service.php.
 * Depends on css/main.css being loaded first (handle: zzz-main-style).
 *
 * Sections:
 *   1.  Service Hero (svc-hero)
 *   2.  Breadcrumb
 *   3.  Intro / Content Area (svc-intro)
 *   4.  Program Highlights (svc-highlights)
 *   5.  Methodology Phase Cards (svc-method)
 *   6.  Results Band (svc-results)
 *   7.  Who Is This For (svc-who)
 *
 * All other sections on the service page reuse classes already defined in
 * main.css (.membership, .faq-*, .contact, .google-reviews, etc.).
 *
 * @package ZZZ_Fitness_Theme
 * @version 2.0.0
 */

/* ============================================================================
   1. SERVICE HERO
   Full-bleed background image + gradient overlay + two-column grid.
   Left: eyebrow → headline → trust badge → CTAs.
   Right: stats card (glass panel with body-comp numbers).
   ============================================================================ */

.svc-hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

/* Background image — set via inline style on the element itself so each
   service page can have its own hero photo without touching CSS. */
.svc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
  /* background-image is set via inline style on .svc-hero */
}

/* Multi-layer overlay: red brand glow top-left + dark vertical gradient */
.svc-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(211, 47, 47, 0.18), transparent 55%),
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.88) 60%,
      var(--bg) 100%);
  z-index: -1;
}

.svc-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .svc-hero          { padding: 140px 0 110px; }
  .svc-hero-inner    { grid-template-columns: 1.4fr 1fr; gap: 60px; }
}

/* === Eyebrow pill (program type indicator) === */
.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 24px;
}
.svc-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s infinite;
}

/* === Dark-theme override for the Google Trust Badge in the hero ===
   The home-page badge uses a white pill. On the dark hero we swap to a
   glassmorphism treatment so it reads cleanly over any background image. */
.svc-hero .g-trust-badge .gtb-inner {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    background .35s var(--ease),
    border-color .35s var(--ease),
    transform .35s var(--ease);
}
.svc-hero .g-trust-badge .gtb-inner:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(245, 124, 0, 0.35);
  transform: translateY(-1px);
}
.svc-hero .g-trust-badge .gtb-logo::after  { background: rgba(255, 255, 255, 0.18); }
.svc-hero .g-trust-badge .gtb-score        { color: var(--text); }
.svc-hero .g-trust-badge .gtb-count        { color: rgba(255, 255, 255, 0.55); }
.svc-hero .g-trust-badge .gtb-link         { color: #8AB4F8; border-left-color: rgba(255, 255, 255, 0.18); }
.svc-hero .g-trust-badge .gtb-link:hover   { color: #fff; }

/* === Main headline (cinematic, negative tracking) === */
.svc-h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.svc-h2 .accent { color: var(--accent); font-weight: 900; }

/* === Sub-headline / lead paragraph === */
.svc-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: #d5d5d5;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 32px;
}

/* === CTA row === */
.svc-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* === Stats card (glass panel — right column) === */
.svc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.svc-stat { text-align: center; padding: 8px 4px; }
.svc-stat .n {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.svc-stat .n .unit {
  font-size: 0.5em;
  color: var(--muted);
  margin-left: 3px;
}
.svc-stat .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}


/* ============================================================================
   2. BREADCRUMB
   Thin info bar below the hero — shows page hierarchy. Dark on --bg-2.
   ============================================================================ */

.breadcrumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.bc-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}
.bc-list a { color: var(--muted); transition: color .3s var(--ease); }
.bc-list a:hover { color: var(--accent); }
.bc-list .sep { color: rgba(255, 255, 255, 0.25); }
.bc-list .current { color: var(--text); }


/* ============================================================================
   3. INTRO / CONTENT AREA
   Two-column layout: editorial copy (left) + tall hero image (right).
   Image has an overlay tag showing the program week count.
   ============================================================================ */

.svc-intro { padding: 100px 0; background: var(--bg); }
@media (max-width: 720px) { .svc-intro { padding: 64px 0; } }

.svc-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) {
  .svc-intro-grid { grid-template-columns: 1.15fr 1fr; gap: 80px; }
}

/* Copy column */
.svc-intro-copy .lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}
.svc-intro-copy p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}
.svc-intro-copy p strong { color: rgba(255, 255, 255, 0.92); font-weight: 700; }

/* 2-column checklist */
.svc-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 10px;
}
@media (max-width: 600px) { .svc-checks { grid-template-columns: 1fr 1fr; } }
.svc-checks li {
  position: relative;
  padding-left: 36px;
  line-height: 1.5;
  font-size: 14px;
  color: var(--text, inherit);
}

/* Checkmark SVG rendered via CSS mask — inherits color from background-color
   so you can re-tint it with var(--accent) or change on hover */
.svc-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  background-color: var(--accent, #e63946); /* falls back if --accent isn't set */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
  flex-shrink: 0;
} 

.svc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}
.svc-check svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

/* Image column */
.svc-intro-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.svc-intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.svc-intro-visual:hover img { transform: scale(1.04); }
.svc-intro-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* Floating tag (bottom of image — shows "12 weeks" style stats) */
.svc-intro-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.svc-intro-tag .it-num {
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  line-height: 0.9;
  color: var(--accent);
  text-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
}
.svc-intro-tag .it-text {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-align: right;
}
.svc-intro-tag .it-text small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.06em;
}


/* ============================================================================
   4. PROGRAM HIGHLIGHTS
   3-column card grid with animated top edge bar and icon.
   ============================================================================ */

.svc-highlights {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .svc-highlights { padding: 64px 0; } }

.svc-hl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .svc-hl-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (min-width: 1050px) {
  .svc-hl-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Card */
.svc-hl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform .4s var(--ease),
    border-color .4s var(--ease),
    background .4s var(--ease);
}
/* Brand gradient top edge bar */
.svc-hl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc-hl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 47, 47, 0.4);
  background: #2f2f2f;
}
.svc-hl-card:hover::before { transform: scaleX(1); }

/* Icon circle */
.svc-hl-icon {
  width: 56px;
  height: 56px;
  background: rgba(211, 47, 47, 0.12);
  border: 1px solid rgba(211, 47, 47, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition:
    background .4s var(--ease),
    color .4s var(--ease),
    transform .4s var(--ease);
}
.svc-hl-card:hover .svc-hl-icon {
  background: rgba(245, 124, 0, 0.15);
  color: var(--accent-2);
  transform: rotate(-6deg) scale(1.05);
}
.svc-hl-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mono step number (top-right watermark) */
.svc-hl-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.1em;
}

.svc-hl-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.svc-hl-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }


/* ============================================================================
   5. METHODOLOGY PHASE CARDS
   4-up grid with CSS counter for auto-numbered phase headings.
   ============================================================================ */

.svc-method { padding: 100px 0; background: var(--bg); }
@media (max-width: 720px) { .svc-method { padding: 64px 0; } }

.svc-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: phase;
}
@media (min-width: 720px)  { .svc-method-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1050px) { .svc-method-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-method-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  position: relative;
  counter-increment: phase;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.svc-method-card:hover { transform: translateY(-4px); border-color: var(--accent); }

/* Auto-numbered large counter (red Anton font) */
.svc-method-card::before {
  content: counter(phase, decimal-leading-zero);
  display: block;
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.svc-method-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.svc-method-card .week {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.svc-method-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }


/* ============================================================================
   6. RESULTS BAND
   Full-width highlight strip with 4 oversized stat numbers.
   Red-tinted background + subtle gradient.
   ============================================================================ */

.svc-results {
  background:
    linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(245, 124, 0, 0.04)),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.svc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
}
@media (min-width: 720px) {
  .svc-results-grid { grid-template-columns: repeat(4, 1fr); }
}

.svc-res .n {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.svc-res .n .unit {
  color: var(--accent);
  font-size: 0.55em;
  vertical-align: top;
  margin-left: 4px;
}
.svc-res .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
}


/* ============================================================================
   7. WHO IS THIS FOR
   4-column audience cards with emoji-style icon and benefit copy.
   Uses orange accent (--accent-2) to visually distinguish from the
   red-dominant highlights section above.
   ============================================================================ */

.svc-who { padding: 100px 0; background: var(--bg); }
@media (max-width: 720px) { .svc-who { padding: 64px 0; } }

.svc-who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px)  { .svc-who-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .svc-who-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-who-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.svc-who-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 124, 0, 0.4); /* orange accent on hover */
}

.svc-who-emoji {
  width: 52px;
  height: 52px;
  background: rgba(245, 124, 0, 0.1);
  border: 1px solid rgba(245, 124, 0, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-2);
}
.svc-who-emoji svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-who-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.svc-who-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }


/* ============================================================================
   8. 3D COVERFLOW CAROUSEL — Trainer Showcase
   ─────────────────────────────────────────────────────────────────────────────
   Included here (not just main.css) so the service page is self-contained.
   One coach card sits in focus; others fan back in 3D perspective space.
   Five positional state classes are toggled by service.js:
     is-active | is-near-prev | is-near-next | is-far-prev | is-far-next
   ============================================================================ */

/* Stage wrapper — houses the arrows outside the perspective viewport */
.cf-stage {
  position: relative;
  padding: 30px 0 20px;
  outline: none;
}

/* Prev / Next arrow buttons */
.cf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  z-index: 30;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background .3s var(--ease),
    border-color .3s var(--ease),
    transform .35s var(--ease),
    box-shadow .35s var(--ease);
}
.cf-arrow svg { width: 22px; height: 22px; display: block; }
.cf-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px -8px rgba(211, 47, 47, 0.55);
}
.cf-arrow:active  { transform: translateY(-50%) scale(0.96); }
.cf-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cf-prev { left:  1.5%; }
.cf-next { right: 1.5%; }

/* Viewport — the 3D stage with perspective and edge-fade mask */
.cf-viewport {
  position: relative;
  width: 100%;
  height: 560px;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0%, black 14%, black 86%, transparent 100%);
}

/* Track — preserve-3d so each card composites in true 3D space */
.cf-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Individual card — absolutely centred; JS class moves it in 3D */
.cf-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 480px;
  margin: -240px 0 0 -170px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    transform .7s cubic-bezier(.22, 1, .36, 1),
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    filter .55s cubic-bezier(.22, 1, .36, 1),
    box-shadow .55s cubic-bezier(.22, 1, .36, 1),
    border-color .35s var(--ease);
  will-change: transform, opacity, filter;
}

/* Card photo — fills the card */
.cf-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: filter .55s var(--ease), transform .9s var(--ease);
}

/* Gradient overlay for readable info text */
.cf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0)    38%,
    rgba(0,0,0,.55)  52%,
    rgba(0,0,0,.92)  68%,
    rgba(0,0,0,.96) 100%);
  pointer-events: none;
  border-radius: 16px;
}

/* Info block — always visible at bottom of every card */
.cf-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 20px 22px 22px;
  color: var(--text);
}
.cf-info .cf-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.cf-info h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}
.cf-info .cf-role {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}
.cf-info .cf-bio {
  color: rgba(245,245,245,0.85);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf-info .cf-creds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.cf-info .cf-creds span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: var(--text);
  white-space: nowrap;
}

/* ── Positional state classes (toggled by service.js) ── */

/* ACTIVE — front and center, red border + glow */
.cf-card.is-active {
  transform: translate3d(0, 0, 120px) rotateY(0deg) scale(1);
  z-index: 20;
  opacity: 1;
  filter: none;
  border-width: 2px;
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(211,47,47,0.4),
    0 30px 80px -20px rgba(211,47,47,0.45),
    0 25px 55px -10px rgba(0,0,0,0.7);
}

/* NEAR — immediate neighbours, gentle tilt */
.cf-card.is-near-prev,
.cf-card.is-near-next {
  z-index: 12;
  opacity: 1;
  filter: brightness(0.82) saturate(0.92);
}
.cf-card.is-near-prev {
  transform: translate3d(-260px, 0, 0) rotateY(25deg) scale(0.9);
  transform-origin: right center;
}
.cf-card.is-near-next {
  transform: translate3d(260px, 0, 0) rotateY(-25deg) scale(0.9);
  transform-origin: left center;
}

/* FAR — extreme edges, more rotation & dim */
.cf-card.is-far-prev,
.cf-card.is-far-next {
  z-index: 6;
  opacity: 0.85;
  filter: brightness(0.55) saturate(0.78);
}
.cf-card.is-far-prev {
  transform: translate3d(-450px, 10px, -60px) rotateY(38deg) scale(0.76);
  transform-origin: right center;
}
.cf-card.is-far-next {
  transform: translate3d(450px, 10px, -60px) rotateY(-38deg) scale(0.76);
  transform-origin: left center;
}

/* HIDDEN — pushed back, invisible */
.cf-card.is-hidden {
  opacity: 0;
  transform: translate3d(0, 0, -400px) scale(0.5);
  pointer-events: none;
  z-index: 1;
}

/* Non-active cards are clickable to focus */
.cf-card:not(.is-active):hover {
  filter: brightness(1) saturate(1);
}

/* Dot pagination */
.cf-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    width .4s var(--ease),
    background .35s var(--ease),
    transform .35s var(--ease);
}
.cf-dot:hover { background: rgba(255,255,255,0.5); }
.cf-dot.is-active {
  width: 36px;
  border-radius: 999px;
  background: var(--accent);
}
.cf-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cf-viewport { height: 510px; }
  .cf-card { width: 300px; height: 420px; margin: -210px 0 0 -150px; }
  .cf-card.is-near-prev { transform: translate3d(-220px, 0, 0) rotateY(25deg) scale(0.88); }
  .cf-card.is-near-next { transform: translate3d(220px, 0, 0) rotateY(-25deg) scale(0.88); }
  .cf-card.is-far-prev  { transform: translate3d(-360px, 8px, -60px) rotateY(36deg) scale(0.74); }
  .cf-card.is-far-next  { transform: translate3d(360px, 8px, -60px) rotateY(-36deg) scale(0.74); }
  .cf-info h3 { font-size: 23px; }
  .cf-info .cf-bio { font-size: 12.5px; }
}

@media (max-width: 600px) {
  .cf-stage { padding: 16px 0 12px; }
  .cf-viewport {
    height: 470px;
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .cf-card { width: 260px; height: 380px; margin: -190px 0 0 -130px; border-radius: 14px; }
  .cf-card::after { border-radius: 14px; }
  .cf-card.is-active { transform: translate3d(0, 0, 80px) rotateY(0deg) scale(1); }
  .cf-card.is-near-prev { transform: translate3d(-160px, 10px, 0) rotateY(30deg) scale(0.78); }
  .cf-card.is-near-next { transform: translate3d(160px, 10px, 0) rotateY(-30deg) scale(0.78); }
  .cf-card.is-far-prev,
  .cf-card.is-far-next  { opacity: 0; pointer-events: none; }
  .cf-info { padding: 16px 18px 18px; }
  .cf-info h3 { font-size: 21px; }
  .cf-info .cf-tag  { font-size: 9.5px; margin-bottom: 6px; letter-spacing: 0.18em; }
  .cf-info .cf-role { font-size: 10px; margin-top: 6px; letter-spacing: 0.15em; }
  .cf-info .cf-bio  { font-size: 12px; line-height: 1.5; margin-top: 10px; }
  .cf-info .cf-creds { margin-top: 12px; gap: 6px; }
  .cf-info .cf-creds span { font-size: 9px; padding: 5px 9px; letter-spacing: 0.12em; }
  .cf-arrow { width: 44px; height: 44px; }
  .cf-arrow svg { width: 18px; height: 18px; }
  .cf-prev { left:  0; }
  .cf-next { right: 0; }
  .cf-dots { gap: 8px; margin-top: 18px; }
  .cf-dot { width: 7px; height: 7px; }
  .cf-dot.is-active { width: 28px; }
}

@media (max-width: 380px) {
  .cf-viewport { height: 460px; }
  .cf-card { width: 230px; height: 340px; margin: -170px 0 0 -115px; }
  .cf-card.is-near-prev { transform: translate3d(-130px, 8px, 0) rotateY(28deg) scale(0.78); }
  .cf-card.is-near-next { transform: translate3d(130px, 8px, 0) rotateY(-28deg) scale(0.78); }
  .cf-info { padding: 14px 14px 14px; }
  .cf-info h3 { font-size: 18px; }
  .cf-arrow { width: 38px; height: 38px; }
  .cf-arrow svg { width: 16px; height: 16px; }
}

/* Reduced motion — kill 3D tilts */
@media (prefers-reduced-motion: reduce) {
  .cf-card { transition-duration: .15s !important; }
  .cf-card.is-near-prev,
  .cf-card.is-far-prev  { transform: translate3d(-260px, 0, 0) scale(0.88); }
  .cf-card.is-near-next,
  .cf-card.is-far-next  { transform: translate3d(260px, 0, 0) scale(0.82); }
}