/* ═══════════════════════════════════════════════════════════
   THE ARTIST'S OATH — performer participation page
   Scoped styles. Tokens inherited from style.css :root.
   ═══════════════════════════════════════════════════════════ */

.oath-page {
  --oath-parchment: #f3e7cb;
  --oath-parchment-2: #e9d8b3;
  --oath-ink: #1a1206;
  --oath-ink-soft: #4a3a1c;
  --oath-gold-deep: #b8860b;
}

.oath-wrap {
  width: min(1100px, calc(100% - var(--space-6)));
  margin-inline: auto;
}

/* ── §1 HERO ────────────────────────────────────────────── */
.oath-hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  overflow: hidden;
}

.oath-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 24px 60px var(--color-shadow);
}

.oath-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── shared section rhythm ──────────────────────────────── */
.oath-section {
  padding: var(--space-16) 0;
}

.oath-section__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 var(--space-3);
}

.oath-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-cream);
  margin: 0 0 var(--space-5);
  line-height: 1.1;
}

.oath-section__body p {
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}

/* ── §2 MEET YOUR CURATOR ───────────────────────────────── */
.oath-curator {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-10);
  align-items: center;
}

.oath-curator__portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 20px 50px var(--color-shadow);
  position: relative;
}

.oath-curator__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px rgba(240, 179, 77, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

.oath-curator__portrait img {
  width: 100%;
  aspect-ratio: 805 / 1000;
  object-fit: cover;
}

.oath-curator__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold-2);
  margin-top: var(--space-4);
}

/* ── §3 THE PREMISE / pull quote ────────────────────────── */
.oath-premise {
  padding: 0;
}

.oath-pullquote {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-6);
  text-align: center;
  background-size: cover;
  background-position: center;
  border-block: 1px solid var(--color-line);
}

.oath-pullquote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 4, 3, 0.72), rgba(23, 4, 3, 0.82));
}

.oath-pullquote__text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  max-width: 24ch;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.oath-premise__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.oath-qa {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.oath-qa h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold-2);
  margin: 0 0 var(--space-2);
}

.oath-qa p {
  color: var(--color-muted);
  margin: 0;
}

/* ── §4 FIVE STEPS — parchment panel ────────────────────── */
.wgc-process {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(160deg, var(--oath-parchment), var(--oath-parchment-2));
  border: 2px solid var(--oath-ink);
  box-shadow:
    inset 0 0 0 4px var(--oath-gold-deep),
    inset 0 0 0 6px var(--oath-ink),
    0 24px 60px var(--color-shadow);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-md);
}

.wgc-process__title {
  text-align: center;
  font-family: var(--font-display);
  color: var(--oath-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-10);
}

.wgc-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

.wgc-step {
  flex: 1 1 150px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wgc-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-3);
  border: 2px solid var(--oath-ink);
  border-radius: 50%;
  background: #fffdf6;
  color: var(--oath-ink);
  box-shadow: inset 0 0 0 3px rgba(184, 134, 11, 0.35);
}

.wgc-step__icon svg {
  width: 32px;
  height: 32px;
}

.wgc-step__num {
  position: absolute;
  top: -6px;
  right: calc(50% - 44px);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--oath-ink);
  color: var(--oath-parchment);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
}

.wgc-step__title {
  font-family: var(--font-display);
  color: var(--oath-gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-base);
  margin: 0 0 var(--space-2);
}

.wgc-step__desc {
  color: var(--oath-ink-soft);
  font-size: var(--text-sm);
  margin: 0;
  max-width: 22ch;
}

.wgc-step::after {
  content: "→";
  position: absolute;
  right: calc(var(--space-6) / -2 - 6px);
  top: 22px;
  color: var(--oath-gold-deep);
  font-size: var(--text-lg);
  font-weight: 700;
}

.wgc-step:last-child::after {
  content: none;
}

.wgc-process__footer {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--oath-ink);
  font-size: var(--text-lg);
  margin: var(--space-10) 0 0;
}

/* ── §5 PAYOFF — narrative live shots ───────────────────── */
.oath-payoff__intro {
  text-align: center;
  margin-bottom: var(--space-12);
}

.oath-beat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

.oath-beat:nth-child(even) .oath-beat__media {
  order: 2;
}

.oath-beat__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 18px 44px var(--color-shadow);
}

.oath-beat__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.oath-beat__caption {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin: 0;
}

.oath-beat__caption strong {
  color: var(--color-gold-2);
  font-weight: 700;
}

/* ── §6 TAKE THE OATH — ceremonial seal ─────────────────── */
.oath-ceremony {
  text-align: center;
}

.oath-ceremony__inner {
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 24px 60px var(--color-shadow);
}

.oath-affirm {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold-2);
  margin: 0 0 var(--space-8);
}

.oath-check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 30ch;
  margin: 0 auto var(--space-6);
}

.oath-check input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--color-burgundy);
  cursor: pointer;
}

.oath-check label {
  color: var(--color-cream);
  font-weight: 600;
  cursor: pointer;
}

.oath-seal-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* the seal stage */
.oath-seal-stage {
  position: relative;
  height: 0;
  overflow: hidden;
  margin-top: var(--space-8);
  transition: height var(--transition);
}

.oath-seal-stage.is-sealed {
  height: auto;
  min-height: 280px;
}

.oath-seal {
  width: min(240px, 62%);
  margin: var(--space-6) auto 0;
  opacity: 0;
}

.oath-seal-stage.is-sealed .oath-seal {
  opacity: 1;
  animation: oath-stamp 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.oath-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(160, 20, 12, 0.55), transparent 55%);
}

.oath-seal-stage.is-sealed .oath-vignette {
  animation: oath-impact 500ms ease-out both;
}

.oath-sealed-msg {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold-2);
  margin: var(--space-6) 0 var(--space-6);
}

.oath-sealed-msg:not(.is-shown) {
  display: none;
}

.oath-symbolic-note {
  max-width: 46ch;
  margin: 0 auto var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.oath-symbolic-note[hidden] {
  display: none;
}

@keyframes oath-stamp {
  0% { transform: scale(1.3) rotate(-8deg); opacity: 0; }
  55% { transform: scale(0.96) rotate(1.5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes oath-impact {
  0% { opacity: 0; }
  35% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .oath-seal-stage.is-sealed .oath-seal,
  .oath-seal-stage.is-sealed .oath-vignette {
    animation: none;
  }
  .oath-seal-stage.is-sealed .oath-seal { opacity: 1; }
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .oath-curator,
  .oath-premise__grid,
  .oath-beat {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .oath-beat:nth-child(even) .oath-beat__media {
    order: 0;
  }
  .wgc-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .wgc-step {
    flex-direction: row;
    text-align: left;
    gap: var(--space-4);
    align-items: center;
  }
  .wgc-step__icon {
    margin: 0;
    flex: none;
  }
  .wgc-step__num {
    right: auto;
    left: 50px;
    top: -6px;
  }
  .wgc-step__desc {
    max-width: none;
  }
  .wgc-step::after {
    content: "↓";
    position: static;
    display: block;
    text-align: center;
    margin-top: var(--space-4);
  }
  .wgc-step__body {
    flex: 1;
  }
}
