/* ─────────────────────────────────────────────
   Experience — editorial alternating stages,
   approach grid, FAQ accordion-list.
   ───────────────────────────────────────────── */

.experience-intro {
  padding-block: var(--space-6) var(--space-6);
  text-align: center;
}
.experience-intro__eyebrow {
  margin-bottom: var(--space-3);
}
.experience-intro__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 auto;
  max-width: 28ch;
  color: var(--ink);
}

/* ── Stages ──────────────────────────────── */
.experience-stages {
  padding-block: var(--space-5) var(--space-7);
}
.experience-stages.ground-cream {
  padding-inline: max(clamp(1.25rem, 5vw, 3rem), calc(50vw - 540px));
}
.experience-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-block: var(--space-6);
}
.experience-stage:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Image — column 1, single row */
.experience-stage__image {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

/* Text wrapper — column 2, single row, vertically centered against image */
.experience-stage__text {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

/* Even stages: image flips to column 2, text to column 1 */
.experience-stage:nth-child(even) .experience-stage__image {
  grid-column: 2;
  grid-row: 1;
}
.experience-stage:nth-child(even) .experience-stage__text {
  grid-column: 1;
  grid-row: 1;
}

/* ── Step label ─────────────────────────────────
   NOIR: large Fraunces 300, full-strength accent (bronze on cream) */
.experience-stage__step-label {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  font-style: italic;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 100;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}
.experience-stage__step-rule {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.experience-stage__step-rule::before {
  content: '';
  display: block;
  height: 1px;
  width: 120px;
  background: var(--rule);
  flex-shrink: 0;
}
.experience-stage__step-rule-diamond {
  color: var(--accent-40);
  font-size: 0.65em;
  line-height: 1;
}

/* ── Headline ─────────────────────────────── */
.experience-stage__headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 1.25rem 0 0;
}

/* ── Body copy ────────────────────────────── */
.experience-stage__body-copy {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  margin: var(--space-3) 0 0;
  max-width: 56ch;
}

/* ── Detail rail ─────────────────────────── */
.experience-stage__rail {
  margin-top: 2rem;
}
.experience-stage__rail-line {
  height: 1px;
  background: var(--rule);
}
.experience-stage__rail-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 1.25rem;
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0.65;
}
.experience-stage__rail-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.experience-stage__rail-solo {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
}
.experience-stage__rail-diamond {
  color: var(--accent-40);
  font-size: 0.7em;
  opacity: 1;
  line-height: 1;
}

/* ── Pricing anchor ──────────────────────── */
.experience-pricing {
  text-align: center;
}
.experience-pricing__hairline {
  height: 1px;
  background: var(--rule);
}
.experience-pricing__body {
  padding-block: var(--space-6);
}
.experience-pricing__label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
}
.experience-pricing__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.experience-pricing__support {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.65;
  margin: 0 auto;
  max-width: 52ch;
}

/* ── Approach ────────────────────────────── */
.experience-approach {
  max-width: 1080px;
  margin-inline: auto;
  padding-block: var(--space-6);
  border-top: 1px solid var(--rule);
}
.experience-approach__eyebrow {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}
.experience-approach__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-3), 4vw, var(--space-5));
}
.experience-approach__item h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h3);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.experience-approach__item p {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.88;
  margin: 0;
}

/* ── FAQ ─────────────────────────────────── */
.experience-faq {
  max-width: 880px;
  margin-inline: auto;
  padding-block: var(--space-6);
}
.experience-faq__eyebrow {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}
.experience-faq__item {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-4);
}
.experience-faq__item:last-child {
  border-bottom: 1px solid var(--rule);
}
.experience-faq__q {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.experience-faq__a {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.88;
  margin: 0;
  max-width: 64ch;
}

/* ── Close ───────────────────────────────── */
.experience-close {
  text-align: center;
  padding-block: var(--space-7);
}
.experience-close__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.4;
  margin: 0 auto var(--space-3);
  max-width: 36ch;
  color: var(--ink);
  opacity: 0.92;
}

/* ── Photo hover — gated to pointer-fine so touch devices never see the effect ── */
.experience-stage {
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .experience-stage__image {
    transition: transform 600ms cubic-bezier(.22,.61,.36,1);
  }
  .experience-stage:hover .experience-stage__image {
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .experience-stage__image { transition: none; }
  .experience-stage:hover .experience-stage__image { transform: none; }
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 760px) {
  .experience-intro__line { font-size: var(--fs-h3); }

  /* Compress section-level vertical rhythm at mobile */
  .experience-stages {
    padding-block: var(--space-4) var(--space-5);
  }
  .experience-stage {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding-block: var(--space-4);
  }
  /* Reset alternation — every stage stacks image → text */
  .experience-stage__image,
  .experience-stage:nth-child(even) .experience-stage__image {
    grid-column: 1;
    grid-row: auto;
  }
  .experience-stage__text,
  .experience-stage:nth-child(even) .experience-stage__text {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
  }

  .experience-approach__list { grid-template-columns: 1fr; gap: var(--space-4); }

  .experience-stage__headline {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  /* Rail: center all fact cells; ◇ stays horizontally centered between the two spans.
     flex: 1 + min-width: 0 lets each span shrink and wrap its own text with text-align: center,
     while the diamond stays its natural width in the middle. */
  .experience-stage__rail-row {
    width: 100%;
    justify-content: center;
  }
  .experience-stage__rail-row span:not(.experience-stage__rail-diamond) {
    text-align: center;
    flex: 1;
    min-width: 0;
  }
}

/* ── Scroll-in stagger — text block children ──────────────────────────
   The stage article itself is always visible (no whole-block fade);
   its four children animate in sequence with 90ms stagger.
   Hairline on the step label draws from 0 → 120px on reveal.
   ────────────────────────────────────────────────────────────────── */
html.reveal-enabled .experience-stage[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}
html.reveal-enabled .experience-stage__text > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}
html.reveal-enabled .experience-stage[data-reveal].is-revealed .experience-stage__text > :nth-child(1) {
  opacity: 1;
  transform: none;
}
html.reveal-enabled .experience-stage[data-reveal].is-revealed .experience-stage__text > :nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 90ms;
}
html.reveal-enabled .experience-stage[data-reveal].is-revealed .experience-stage__text > :nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 180ms;
}
html.reveal-enabled .experience-stage[data-reveal].is-revealed .experience-stage__text > :nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 270ms;
}

/* Hairline draws 0 → 120px on reveal */
html.reveal-enabled .experience-stage__step-rule::before {
  width: 0;
  transition: width 700ms cubic-bezier(0.25, 0.1, 0.25, 1) 200ms;
}
html.reveal-enabled .experience-stage[data-reveal].is-revealed .experience-stage__step-rule::before {
  width: 120px;
}

/* prefers-reduced-motion: all text visible immediately, no hairline animation */
@media (prefers-reduced-motion: reduce) {
  html.reveal-enabled .experience-stage[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.reveal-enabled .experience-stage__text > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.reveal-enabled .experience-stage__step-rule::before {
    width: 120px;
    transition: none;
  }
}

/* ── Close CTA link affordance ───────────────────────────────────────
   Resting underline at 30% accent, draw left → right 400ms on hover,
   arrow slides 6px. Gated to pointer-fine devices.
   ────────────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .experience-close .text-link {
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(var(--accent-40), var(--accent-40));
    background-repeat: no-repeat;
    background-position: 0 calc(100% + 2px);
    background-size: 100% 1px;
  }
  .experience-close .text-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .experience-close .text-link::after {
    content: ' →';
    display: inline-block;
    transition: transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .experience-close .text-link:hover::before {
    width: 100%;
  }
  .experience-close .text-link:hover::after {
    transform: translateX(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .experience-close .text-link::before,
  .experience-close .text-link::after {
    transition: none;
  }
}

/* ── Pricing mobile ───────────────────────── */
@media (max-width: 760px) {
  .experience-pricing__body {
    padding-block: var(--space-5);
  }
  .experience-pricing__line {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   MARGAUX: Wax-seal pricing card
   .mgx-wax-card elevates the pricing section to a framed aged-paper card
   with a wax-seal SVG ornament at the top-right corner.
   ═══════════════════════════════════════════════════════════════════════ */

.mgx-wax-card {
  position: relative;
  background: var(--mgx-paper-aged);
  max-width: 620px;
  margin-inline: auto;
  padding: var(--space-6) var(--space-5) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--mgx-brass) 22%, transparent);
  box-shadow:
    0 3px 16px color-mix(in srgb, var(--mgx-ink) 10%, transparent),
    0 1px 4px  color-mix(in srgb, var(--mgx-ink) 6%, transparent);
}

/* Wax seal: absolute, top-right, half-overlapping the card edge */
.mgx-wax-seal {
  position: absolute;
  top: calc(-1 * var(--space-3));
  right: var(--space-4);
  display: block;
  width: 52px;
  height: 52px;
  color: var(--mgx-oxblood); /* used as currentColor fill for the seal SVG */
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--mgx-ink) 35%, transparent));
}

/* Pricing text on the card uses ink tokens (parchment context) */
.mgx-wax-card .experience-pricing__label { color: var(--mgx-ink-muted); }
.mgx-wax-card .experience-pricing__line  { color: var(--mgx-ink); }
.mgx-wax-card .experience-pricing__support { color: var(--mgx-ink); }
.mgx-wax-card .experience-pricing__hairline { background: var(--mgx-rule); }

@media (max-width: 760px) {
  .mgx-wax-card { padding: var(--space-4) var(--space-3) var(--space-3); margin-inline: var(--space-2); }
  .mgx-wax-seal { width: 40px; height: 40px; top: -20px; }
}

/* ── Section alternation: B / R / B / R / B / R ─────────────────── */
.experience-intro    { background: var(--paper); }
.experience-stages   { background: var(--surface); }
.experience-pricing  { background: var(--paper); }
.experience-approach { background: var(--paper); }
.experience-faq      { background: var(--paper); }
.experience-close    { background: transparent; }
