/* Temple corridor — continuous mystical descent from hero */

.temple-corridor {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: none;
  background: transparent;
  padding: 6.5rem 0;
}

/* Soft seam into hero / next chamber */
.temple-corridor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6rem;
  background: linear-gradient(
    180deg,
    rgba(6, 5, 8, 0.95) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.temple-corridor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(
    0deg,
    rgba(6, 5, 8, 0.85) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Atmospheric wash */
.temple-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(61, 24, 36, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(92, 61, 143, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 40%, rgba(196, 165, 116, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #0a0810 0%, #08060c 40%, #0c0a12 100%);
}

.temple-corridor--deep .temple-atmosphere {
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(45, 18, 32, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(196, 165, 116, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #07050a 0%, #050408 50%, #0a0810 100%);
}

/* Faint stone lattice */
.temple-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(90deg, rgba(196, 165, 116, 0.35) 1px, transparent 1px),
    linear-gradient(rgba(196, 165, 116, 0.25) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}

.temple-inner {
  position: relative;
  z-index: 1;
}

/* Corner ornaments */
.temple-corner {
  position: absolute;
  width: 2.25rem;
  height: 2.25rem;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

.temple-corner--tl {
  top: 1.5rem;
  left: 1.5rem;
  border-top: 1px solid var(--gold, #c4a574);
  border-left: 1px solid var(--gold, #c4a574);
  box-shadow: inset 1px 1px 0 rgba(232, 212, 168, 0.15);
}

.temple-corner--tr {
  top: 1.5rem;
  right: 1.5rem;
  border-top: 1px solid var(--gold, #c4a574);
  border-right: 1px solid var(--gold, #c4a574);
}

.temple-corner--bl {
  bottom: 1.5rem;
  left: 1.5rem;
  border-bottom: 1px solid var(--gold, #c4a574);
  border-left: 1px solid var(--gold, #c4a574);
}

.temple-corner--br {
  bottom: 1.5rem;
  right: 1.5rem;
  border-bottom: 1px solid var(--gold, #c4a574);
  border-right: 1px solid var(--gold, #c4a574);
}

@media (min-width: 900px) {
  .temple-corner {
    width: 3rem;
    height: 3rem;
  }
  .temple-corner--tl,
  .temple-corner--tr { top: 2rem; }
  .temple-corner--bl,
  .temple-corner--br { bottom: 2rem; }
  .temple-corner--tl,
  .temple-corner--bl { left: 2.5rem; }
  .temple-corner--tr,
  .temple-corner--br { right: 2.5rem; }
}

/* Labels */
.temple-label {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--font-ui, "Outfit", system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold, #c4a574);
}

.temple-footnote {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft, #b8b0a8);
  font-weight: 300;
}

/* Doctrine lines — large Cinzel Decorative */
.temple-corridor .doctrine-quote {
  margin: 0;
  text-align: center;
}

.temple-corridor .doctrine-line {
  margin: 0 0 1.35rem;
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-soft, #b8b0a8);
  letter-spacing: 0.02em;
}

.temple-corridor .doctrine-line--lead {
  font-size: clamp(1.35rem, 3.6vw, 2.05rem);
  color: var(--text, #f4efe6);
  margin-bottom: 1.75rem;
}

.temple-corridor .doctrine-line--emph {
  color: var(--gold-bright, #e8d4a8);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 32px rgba(196, 165, 116, 0.25);
}

.temple-corridor .doctrine-line--dim {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  color: rgba(184, 176, 168, 0.65);
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.06em;
}

.temple-corridor .doctrine-line--closer {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--gold-bright, #e8d4a8);
  font-style: normal;
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 0 rgba(6, 5, 8, 0.8),
    0 0 40px rgba(196, 165, 116, 0.3);
}

/* Override base doctrine styles inside corridor */
.temple-corridor.doctrine {
  background: transparent;
  border-block: none;
}

.temple-corridor .doctrine-closer {
  /* legacy class unused; closer is doctrine-line--closer */
}

/* Statement / The House */
.temple-corridor .statement-lead {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text, #f4efe6);
  letter-spacing: 0.02em;
}

.temple-corridor .statement-regions {
  color: var(--gold-bright, #e8d4a8);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.temple-corridor .statement-em--temple {
  display: block;
  margin: 0;
  text-align: center;
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-size: clamp(1.5rem, 3.8vw, 2.35rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--gold, #c4a574);
  text-shadow: 0 0 36px rgba(196, 165, 116, 0.28);
}

.statement-invite {
  margin: 2rem auto 1.75rem;
  max-width: 28rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(196, 165, 116, 0.28);
  text-align: center;
}

.statement-invite-deck {
  margin: 0.85rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(184, 176, 168, 0.78);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.temple-corridor .statement-sub {
  margin: 0 auto 0.85rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-soft, #b8b0a8);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.65;
}

.temple-corridor .statement-sub:last-child {
  margin-bottom: 0;
}

/* Provenance — glassy cards */
.temple-corridor--deep {
  padding: 7rem 0 6.5rem;
}

.temple-corridor--deep .section-head h2 {
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.temple-corridor--deep .prov-card {
  background: rgba(20, 17, 26, 0.45);
  border: 1px solid rgba(196, 165, 116, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(232, 212, 168, 0.08);
  transition:
    background 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.temple-corridor--deep .prov-card:hover {
  background: rgba(26, 22, 34, 0.65);
  border-color: rgba(196, 165, 116, 0.5);
  transform: translateY(-4px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(196, 165, 116, 0.08),
    inset 0 1px 0 rgba(232, 212, 168, 0.12);
}

.temple-corridor--deep .prov-region {
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.temple-corridor--deep .ledger {
  margin-top: 2.5rem;
  opacity: 0.28;
}

/* Continuous descent: stack corridors without hard gaps */
.hero + .temple-corridor {
  margin-top: 0;
}

.temple-corridor + .temple-corridor {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .temple-corridor--deep .prov-card:hover {
    transform: none;
  }
}

/* Temple pass v3 — deeper chamber, larger type, cult deck */
.temple-corridor {
  padding: 8rem 0 7.5rem;
}

.temple-corridor--deep {
  padding: 9rem 0 8rem;
}

.temple-atmosphere {
  background:
    radial-gradient(ellipse 100% 80% at 50% -5%, rgba(72, 28, 42, 0.7) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 10% 90%, rgba(70, 40, 110, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 92% 35%, rgba(196, 165, 116, 0.1) 0%, transparent 48%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(20, 12, 28, 0.5) 0%, transparent 70%),
    linear-gradient(180deg, #08060c 0%, #050408 45%, #0b0912 100%);
}

.temple-corridor--deep .temple-atmosphere {
  background:
    radial-gradient(ellipse 110% 70% at 50% -15%, rgba(52, 20, 36, 0.85) 0%, transparent 52%),
    radial-gradient(ellipse 50% 60% at 50% 110%, rgba(196, 165, 116, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 20% 40%, rgba(40, 20, 60, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #050308 0%, #040306 50%, #09070f 100%);
}

.temple-corridor .statement-lead {
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow:
    0 2px 0 rgba(6, 5, 8, 0.85),
    0 0 48px rgba(196, 165, 116, 0.12);
}

.temple-corridor .statement-regions {
  display: block;
  margin: 1rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright, #e8d4a8);
  line-height: 1.55;
}

.temple-corridor .statement-em--temple {
  font-size: clamp(1.85rem, 5vw, 3rem);
  letter-spacing: 0.18em;
  text-shadow:
    0 2px 0 rgba(6, 5, 8, 0.9),
    0 0 48px rgba(196, 165, 116, 0.4),
    0 0 80px rgba(196, 165, 116, 0.15);
}

.statement-invite {
  margin: 2.75rem auto 2rem;
  max-width: 32rem;
  padding: 2rem 1.25rem 0;
  border-top: 1px solid rgba(196, 165, 116, 0.4);
}

.statement-invite-deck {
  margin: 1.1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: rgba(232, 212, 168, 0.72);
  text-shadow: 0 0 24px rgba(196, 165, 116, 0.15);
}

.temple-corridor--deep .prov-region {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.temple-corridor--deep .prov-copy {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.78);
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.temple-corridor--deep .prov-card {
  padding: 2.35rem 1.9rem;
}

/* ENTER. DRINK. pass */
.temple-corridor .statement-em--temple {
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(6, 5, 8, 0.95),
    0 0 56px rgba(196, 165, 116, 0.5),
    0 0 100px rgba(196, 165, 116, 0.22);
}

.statement-invite {
  margin: 3.5rem auto 2.75rem;
  max-width: 36rem;
  padding: 2.5rem 1.5rem 0;
  border-top: 1px solid rgba(196, 165, 116, 0.45);
}

.statement-invite-deck {
  margin-top: 1.25rem;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  letter-spacing: 0.08em;
}
