/* ============================================================================
   BEPCO Studio — Experiences page styles (loaded only on /experiences/ via
   pageCss). Ported in spirit from design/mockups/bepco-experiences.html;
   every color/type value resolves to a token or an rgba() of a token base rgb.
   All classes namespaced `xp-` to avoid colliding with site.css (.hero-*,
   .section-*, .nav-*, .footer-*, .cb-*, .btn-*).
   ============================================================================ */

/* ── HERO (dark, image-forward split) ── */
.xp-hero {
  background: var(--color-soot);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}
.xp-hero-media {
  background: rgba(26,22,18,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}
.xp-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(60,46,30,0) 68%, var(--color-soot));
  pointer-events: none;
  z-index: 1;
}
/* Rotating hero plates: stacked, crossfade between them (below the ::after
   gradient that blends the media into the content column). */
.xp-hero-plate {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Sepia grade matched to the archive row thumbnails; full colour on hover. */
  filter: sepia(0.72) saturate(0.55) hue-rotate(-8deg) brightness(1.05) contrast(0.93);
  transition: opacity 1.2s var(--ease), filter 0.4s var(--ease);
}
.xp-hero-plate.on { opacity: 1; }
.xp-hero-media:hover .xp-hero-plate { filter: none; }
.xp-hero-content {
  padding: 72px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
/* Amber grid lines behind the copy — mirrors the homepage hero panel
   (.hero-right::before). */
.xp-hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,134,10,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,134,10,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}
.xp-hero-content > * { position: relative; z-index: 1; }
.xp-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.6);
  margin-bottom: 16px;
}
.xp-hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-56);
  font-weight: var(--weight-regular);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(245,240,232,0.92);
  margin-bottom: 16px;
}
.xp-hero-rule {
  width: 40px;
  height: 1px;
  background: var(--color-amber);
  opacity: 0.4;
  margin-bottom: 20px;
}
.xp-hero-desc {
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  font-style: italic;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 460px;
  margin-bottom: 32px;
}
.xp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS (own set — hero sits on a dark ground) ── */
.xp-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), letter-spacing 0.3s var(--ease);
}
.xp-btn-solid {
  background: var(--color-amber);
  border: 1px solid var(--color-amber);
  color: rgba(245,240,232,0.95);
}
.xp-btn-solid:hover { background: var(--color-amber-dk); border-color: var(--color-amber-dk); letter-spacing: 0.22em; }
.xp-btn-ghost {
  background: transparent;
  border: 1px solid rgba(245,240,232,0.2);
  color: rgba(245,240,232,0.7);
}
.xp-btn-ghost:hover { border-color: var(--color-amber); color: var(--color-amber-lt); }

/* ── SHARED SECTION HEADING ── */
.xp-section-head { margin-bottom: 40px; }
.xp-label {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.5);
  margin-bottom: 12px;
}
.xp-title {
  font-family: var(--font-serif);
  font-size: var(--fs-26);
  font-weight: var(--weight-regular);
  color: var(--color-carbon);
}
.xp-lede {
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  line-height: 1.7;
  color: rgba(26,22,18,0.6);
  max-width: 620px;
  margin: 16px 0 0;
}

/* ── EXPERIENCE TYPES ── */
.xp-types { max-width: 1060px; margin: 0 auto; padding: 80px 52px; }
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Two-up variant so a pair of mode cards doesn't strand in a 3-col track. */
.xp-grid--pair { grid-template-columns: repeat(2, 1fr); }
/* Training footnote under the mode cards — an aside, not an offering. */
.xp-types-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: rgba(26,22,18,0.5);
  max-width: 640px;
  margin: 22px 0 0;
}
.xp-card {
  border: 1px solid rgba(26,22,18,0.1);
  background: var(--color-vellum);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.xp-card:hover { border-color: var(--color-amber); transform: translateY(-3px); }
.xp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.xp-card:hover::before { transform: scaleX(1); }
.xp-card-num {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.45);
  margin-bottom: 16px;
}
.xp-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-22);
  font-weight: var(--weight-regular);
  color: var(--color-carbon);
  line-height: 1.2;
  margin-bottom: 8px;
}
.xp-card-audience {
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.55);
  margin-bottom: 16px;
}
.xp-card-rule { width: 24px; height: 1px; background: var(--color-amber); opacity: 0.3; margin-bottom: 16px; }
.xp-card-desc {
  font-family: var(--font-serif);
  font-size: var(--fs-14);
  line-height: 1.8;
  color: rgba(26,22,18,0.6);
  margin-bottom: 24px;
}
.xp-card-meta { margin-bottom: 24px; }
.xp-card-meta div { display: flex; gap: 8px; margin-bottom: 6px; }
.xp-card-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.5);
  flex-shrink: 0;
  min-width: 52px;
}
.xp-card-meta dd {
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.04em;
  color: rgba(26,22,18,0.42);
  line-height: 1.6;
  margin: 0;
}
.xp-card-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-9);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
  text-decoration: none;
  transition: letter-spacing 0.2s var(--ease);
}
.xp-card:hover .xp-card-cta { letter-spacing: 0.22em; }

/* ── IMAGE STRIP (most image-heavy section) ── */
.xp-strip {
  background: var(--color-charcoal);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 280px;
}
.xp-strip-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Defining frame so each photo separates from the charcoal ground; the amber
     brightens on hover as the sepia lifts. */
  border: 1px solid rgba(200,134,10,0.4);
  padding: 24px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  /* Sepia grade matched to the archive row thumbnails; full colour on hover. */
  filter: sepia(0.72) saturate(0.55) hue-rotate(-8deg) brightness(1.05) contrast(0.93);
  transition: filter 0.35s var(--ease), border-color 0.3s var(--ease);
}
.xp-strip-zone:hover { filter: none; border-color: var(--color-amber); }

/* ── PLACEHOLDER ZONES ── */
.xp-ph {
  font-family: var(--font-mono);
  font-size: var(--fs-8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  text-align: center;
  line-height: 1.9;
}
.xp-ph span {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-9);
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255,255,255,0.16);
  line-height: 1.7;
  max-width: 240px;
}
.xp-ph-hero { max-width: 340px; }
.xp-ph-hero span { max-width: 320px; }

/* ── SESSIONS SECTION (wrapper; holds the past-sessions list) ── */
.xp-upcoming { max-width: 1060px; margin: 0 auto; padding: 80px 52px; }

/* ── PAST SESSIONS LIST ── */
.xp-past {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,22,18,0.08);
}
/* When the past list is the whole section (no upcoming block above it), it sits
   directly under the section head and needs no separating rule. */
.xp-past--flush { margin-top: 0; padding-top: 0; border-top: 0; }
.xp-past-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(26,22,18,0.1);
  background: var(--color-vellum);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.xp-past-row + .xp-past-row { margin-top: 12px; }
.xp-past-row:hover { border-color: rgba(200,134,10,0.4); background: var(--color-parchment); }
.xp-past-date { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: 0.06em; color: rgba(26,22,18,0.45); min-width: 130px; }
.xp-past-title { font-family: var(--font-serif); font-size: var(--fs-15); color: var(--color-carbon); flex: 1; }
.xp-past-note-link {
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,134,10,0.35);
  transition: border-color 0.2s var(--ease);
}
.xp-past-note-link:hover { border-bottom-color: var(--color-amber); }
.xp-past-nonote { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-12); color: rgba(26,22,18,0.4); }
.xp-past-archive {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-10);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber-dk);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.xp-past-archive:hover { color: var(--color-amber); }

/* ── CLOSE ── */
.xp-close {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 52px 96px;
  text-align: center;
}
.xp-close-text {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  line-height: 1.6;
  color: rgba(26,22,18,0.66);
  max-width: 560px;
  margin: 0 auto 22px;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .xp-past-row { flex-direction: column; gap: 4px; }
  .xp-past-date { min-width: 0; }
  .xp-hero { grid-template-columns: 1fr; }
  .xp-hero-media { min-height: 260px; }
  .xp-hero-media::after { display: none; }
  .xp-hero-content { padding: 44px 20px; }
  .xp-hero-title { font-size: var(--fs-32); }
  .xp-types { padding: 48px 20px; }
  .xp-grid { grid-template-columns: 1fr; gap: 16px; }
  .xp-grid--pair { grid-template-columns: 1fr; }
  .xp-strip { grid-template-columns: 1fr 1fr; }
  .xp-upcoming { padding: 48px 20px; }
  .xp-close { padding: 16px 20px 64px; }
}
