/* ==========================================================================
   MULHERES CONECTADAS · 2027 — O PREPARO DA HONRA
   Editorial Design System fiel à identidade original do PDF:
   Ameixa Profunda (#281129) · Vinho Real (#551E3C) · Berry (#823557)
   Ouro Antigo (#D6B062) · Areia (#EFE3D3) · Linho Fino (#FAF5EE)
   ========================================================================== */

:root {
  --plum-deep: #281129;
  --plum-mid: #341736;
  --plum-night: #1d0b1e;
  --wine: #551e3c;
  --wine-deep: #43152e;
  --berry: #823557;
  --berry-soft: #9c466c;

  --gold: #d6b062;
  --gold-bright: #e9ca83;
  --gold-pale: #f3e0b2;
  --gold-ink: #977127;
  --gold-border: rgba(214, 176, 98, 0.34);

  --sand: #efe3d3;
  --sand-deep: #e2d1bc;
  --linen: #faf5ee;
  --linen-soft: #f4ece1;
  --linen-card: #fffdf9;
  --linen-border: #dfd0bc;

  --ink: #2a132b;
  --ink-body: #513b50;
  --ink-mute: #7c677b;

  --ivory: #fcf9f5;
  --ivory-soft: #e2d5de;
  --ivory-mute: rgba(252, 249, 245, 0.68);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);

  --wrap: 1180px;
  --nav-h: 72px;

  --shadow-soft: 0 12px 32px rgba(40, 17, 41, 0.06);
  --shadow-card: 0 18px 44px rgba(40, 17, 41, 0.09);
  --shadow-dark: 0 28px 70px rgba(15, 5, 16, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--plum-deep);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(214, 176, 98, 0.34);
  color: var(--plum-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--plum-deep);
  font-weight: 600;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 44px);
}

/* ==================== PROGRESS BAR ==================== */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(214, 176, 98, 0.12);
  pointer-events: none;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--berry), var(--gold), var(--gold-bright));
  box-shadow: 0 0 10px rgba(214, 176, 98, 0.65);
  transition: width 0.1s linear;
}

/* ==================== ADAPTIVE TOP NAVIGATION ==================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav[data-theme="dark"] {
  color: var(--ivory);
  background: rgba(40, 17, 41, 0.88);
  border-bottom-color: rgba(214, 176, 98, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav[data-theme="dark"].at-top {
  background: rgba(40, 17, 41, 0.15);
  border-bottom-color: transparent;
  backdrop-filter: blur(4px);
}

.site-nav[data-theme="light"] {
  color: var(--ink);
  background: rgba(250, 245, 238, 0.88);
  border-bottom-color: rgba(223, 208, 188, 0.85);
  box-shadow: 0 8px 28px rgba(40, 17, 41, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.nav-brand-mark {
  width: 24px;
  height: 30px;
  flex: none;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.nav-brand-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.site-nav[data-theme="light"] .nav-brand-sub {
  color: var(--gold-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.82;
  transition: opacity 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.site-nav[data-theme="dark"] .nav-links a.active {
  background: rgba(214, 176, 98, 0.16);
  color: var(--gold-bright);
}

.site-nav[data-theme="light"] .nav-links a.active {
  background: rgba(130, 53, 87, 0.1);
  color: var(--wine);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: transform 0.22s var(--ease), background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.site-nav[data-theme="dark"] .nav-pill-btn {
  border-color: rgba(214, 176, 98, 0.42);
  color: var(--gold-bright);
  background: rgba(214, 176, 98, 0.08);
}

.site-nav[data-theme="dark"] .nav-pill-btn:hover {
  background: var(--gold);
  color: var(--plum-deep);
  border-color: var(--gold);
}

.site-nav[data-theme="light"] .nav-pill-btn {
  border-color: rgba(85, 30, 60, 0.24);
  color: var(--wine);
  background: rgba(255, 253, 249, 0.72);
}

.site-nav[data-theme="light"] .nav-pill-btn:hover {
  background: var(--plum-deep);
  color: var(--gold-bright);
  border-color: var(--plum-deep);
}

.nav-pill-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.nav-pill-btn.active-mode {
  background: var(--gold) !important;
  color: var(--plum-deep) !important;
  border-color: var(--gold) !important;
}

.nav-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  place-items: center;
  border: 1px solid rgba(214, 176, 98, 0.36);
}

.nav-menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(29, 11, 30, 0.96);
  backdrop-filter: blur(18px);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 34px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(214, 176, 98, 0.2);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
}

.mobile-drawer-links a {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ivory);
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(214, 176, 98, 0.1);
}

.mobile-drawer-links a small {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.mobile-drawer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==================== SHARED EDITORIAL TYPE ==================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 18px;
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  font-variant-numeric: oldstyle-nums;
}

.section-dark .section-title {
  color: var(--ivory);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--plum-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(214, 176, 98, 0.25);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(214, 176, 98, 0.36);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(214, 176, 98, 0.44);
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--gold-bright);
  background: rgba(214, 176, 98, 0.14);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-ghost-light {
  border-color: rgba(42, 19, 43, 0.24);
  color: var(--ink);
  background: var(--linen-card);
}

.btn-ghost-light:hover {
  border-color: var(--wine);
  background: var(--plum-deep);
  color: var(--gold-bright);
}

/* ==================== SECTION 1: HERO (SLIDE 1) ==================== */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 64% 62% at 74% 48%, rgba(130, 53, 87, 0.28), transparent 68%),
    radial-gradient(ellipse 52% 48% at 18% 18%, rgba(214, 176, 98, 0.08), transparent 64%),
    linear-gradient(155deg, #2d142f 0%, var(--plum-deep) 58%, var(--plum-night) 100%);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 28px;
  overflow: hidden;
}

#heroDust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
}

.hero-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(24px, 4vh, 48px);
}

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(54px, 7.6vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.1vw, 52px);
  line-height: 1.15;
  color: var(--gold);
  margin: 18px 0 0;
  letter-spacing: 0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-context {
  margin-top: clamp(34px, 5vh, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(214, 176, 98, 0.2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(252, 249, 245, 0.78);
}

/* Sacred Double Arch (faithful to Slide 1) */
.hero-arch-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
}

.hero-arch-frame {
  position: relative;
  width: min(350px, 52vh, 100%);
  aspect-ratio: 370 / 480;
  transition: transform 0.6s var(--ease);
}

.hero-arch-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.arch-outer {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 1280;
  stroke-dashoffset: 1280;
  animation: drawArch 1.7s var(--ease) 0.15s forwards;
}

.arch-inner {
  fill: none;
  stroke: var(--berry);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1120;
  stroke-dashoffset: 1120;
  animation: drawArch 1.6s var(--ease) 0.45s forwards;
}

.arch-glow-path {
  fill: none;
  stroke: rgba(214, 176, 98, 0.18);
  stroke-width: 10;
  filter: blur(8px);
}

.arch-orb {
  fill: var(--gold);
  filter: drop-shadow(0 0 12px rgba(233, 202, 131, 0.8));
  transform-box: fill-box;
  transform-origin: center;
  animation: orbPulse 4.5s ease-in-out infinite;
}

.arch-orb-halo {
  fill: rgba(214, 176, 98, 0.22);
  transform-box: fill-box;
  transform-origin: center;
  animation: haloPulse 4.5s ease-in-out infinite;
}

@keyframes drawArch {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.32; }
  50% { transform: scale(1.75); opacity: 0.08; }
}

/* Subtle interactive sanctuary whisper inside the arch */
.arch-whisper {
  position: absolute;
  inset: 24% 16% 10% 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.arch-whisper.visible {
  opacity: 1;
  transform: none;
}

.arch-whisper-kicker {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.arch-whisper-woman {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--ivory);
  margin: 0 0 8px;
}

.arch-whisper-gate {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-pale);
  margin: 0 0 12px;
}

.arch-whisper-pillar {
  font-size: 12.5px;
  color: var(--ivory-soft);
  max-width: 210px;
}

/* Bottom 12-Month Quick Ribbon inside Hero */
.hero-ribbon {
  position: relative;
  z-index: 2;
  padding-top: 18px;
  border-top: 1px solid rgba(214, 176, 98, 0.16);
}

.hero-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 4px;
}

.hero-ribbon-inner::-webkit-scrollbar {
  display: none;
}

.ribbon-chip {
  flex: 1 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 5px;
  border-radius: 10px;
  color: rgba(252, 249, 245, 0.76);
  border: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s var(--ease);
}

.ribbon-chip:hover,
.ribbon-chip:focus-visible {
  color: var(--ivory);
  background: rgba(214, 176, 98, 0.11);
  border-color: rgba(214, 176, 98, 0.34);
  transform: translateY(-2px);
}

.ribbon-chip-m {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.ribbon-chip-w {
  font-family: var(--font-serif);
  font-size: 13.5px;
  white-space: nowrap;
}

/* ==================== SECTION 2: A IDEIA (SLIDE 2) ==================== */
.sec-idea {
  background: var(--linen);
  padding-block: clamp(76px, 10vw, 128px);
  position: relative;
}

.sec-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--linen-border);
  background: var(--linen-card);
  box-shadow: var(--shadow-soft);
}

.trip-card {
  position: relative;
  padding: clamp(32px, 4.4vw, 52px) clamp(26px, 3.6vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  border-right: 1px solid var(--linen-border);
  transition: background 0.32s var(--ease), transform 0.32s var(--ease);
}

.trip-card:last-child {
  border-right: none;
}

.trip-card.featured {
  background: var(--plum-deep);
  color: var(--ivory);
  border-color: var(--plum-deep);
}

.trip-period {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 50px);
  line-height: 1.06;
  color: var(--gold-ink);
  font-variant-numeric: oldstyle-nums;
  margin-bottom: 14px;
}

.trip-card.featured .trip-period {
  color: var(--gold);
}

.trip-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}

.trip-card.featured .trip-title {
  color: #ffffff;
}

.trip-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  margin: 0 0 22px;
}

.trip-card.featured .trip-text {
  color: var(--ivory-soft);
}

.trip-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(223, 208, 188, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trip-card.featured .trip-foot {
  border-top-color: rgba(214, 176, 98, 0.24);
}

.trip-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.trip-card.featured .trip-tag {
  color: var(--gold);
}

.trip-more-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(130, 53, 87, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.trip-card.featured .trip-more-btn {
  color: var(--gold-bright);
  background: rgba(214, 176, 98, 0.14);
}

.trip-more-btn:hover {
  background: var(--wine);
  color: #fff;
}

.trip-card.featured .trip-more-btn:hover {
  background: var(--gold);
  color: var(--plum-deep);
}

.trip-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--linen);
  border-left: 2px solid var(--gold);
}

.trip-card.featured .trip-note {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory-soft);
}

.trip-card.expanded .trip-note {
  display: block;
  animation: fadeUp 0.3s var(--ease);
}

/* ==================== SECTION 3: VERSÍCULO-CHAVE (SLIDE 3) ==================== */
.sec-verse {
  position: relative;
  background:
    radial-gradient(ellipse 68% 76% at 86% 24%, rgba(214, 176, 98, 0.11), transparent 60%),
    radial-gradient(ellipse 56% 70% at 12% 86%, rgba(40, 17, 41, 0.45), transparent 65%),
    var(--wine);
  color: var(--ivory);
  padding-block: clamp(88px, 12vw, 148px);
  overflow: hidden;
}

.verse-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.verse-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.9vw, 62px);
  line-height: 1.24;
  color: #ffffff;
  margin: 0;
}

.v-hl {
  position: relative;
  display: inline;
  cursor: pointer;
  border-radius: 6px;
  padding-inline: 3px;
  transition: color 0.25s ease, background 0.25s ease, text-shadow 0.25s ease;
}

.v-hl.v-gold {
  color: var(--gold-bright);
}

.v-hl:hover,
.v-hl.lit {
  background: rgba(214, 176, 98, 0.24);
  color: #fff6dc;
  text-shadow: 0 0 24px rgba(233, 202, 131, 0.45);
}

.verse-ref {
  margin-top: 30px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.verse-map {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(214, 176, 98, 0.22);
}

.verse-map-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  margin: 0 0 14px;
}

.verse-cues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.verse-cue {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(40, 17, 41, 0.28);
  border: 1px solid rgba(214, 176, 98, 0.2);
  transition: transform 0.24s var(--ease), background 0.24s ease, border-color 0.24s ease;
}

.verse-cue:hover,
.verse-cue.lit {
  transform: translateY(-3px);
  background: rgba(40, 17, 41, 0.56);
  border-color: var(--gold);
}

.verse-cue-phrase {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.verse-cue-mov {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}

.verse-cue-period {
  display: block;
  font-size: 11.5px;
  color: var(--ivory-mute);
  margin-top: 2px;
}

/* ==================== SECTION 4: 4 MOVIMENTOS (SLIDE 4) ==================== */
.sec-movements {
  background: var(--linen);
  padding-top: clamp(80px, 10vw, 128px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.mov-subhint {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-mute);
  max-width: 560px;
}

.arches-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
  margin-top: clamp(32px, 4.5vw, 52px);
}

.arch-card {
  position: relative;
  min-height: var(--arch-h, 320px);
  border-radius: 170px 170px 6px 6px;
  padding: 58px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  background: var(--m-bg);
  color: var(--m-ink);
  box-shadow: 0 14px 32px rgba(40, 17, 41, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s ease;
  overflow: hidden;
}

.arch-card::before {
  content: "";
  position: absolute;
  inset: 9px 9px 0 9px;
  border-radius: 162px 162px 0 0;
  border: 1px solid currentColor;
  border-bottom: none;
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.arch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(40, 17, 41, 0.14);
}

.arch-card:hover::before,
.arch-card.is-selected::before {
  opacity: 0.42;
}

.arch-card.is-selected {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(40, 17, 41, 0.2), 0 0 0 3px var(--gold);
}

.arch-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: oldstyle-nums;
  margin-bottom: 10px;
}

.arch-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.arch-period {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.88;
}

.arch-card[data-mov="apresentada"] .arch-period,
.arch-card[data-mov="apresentada"] .arch-desc {
  color: var(--ivory);
}

.arch-desc {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 215px;
  opacity: 0.9;
}

.arch-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.arch-card[data-mov="apresentada"] .arch-cta {
  background: rgba(214, 176, 98, 0.18);
  color: var(--gold-bright);
}

.arch-card:hover .arch-cta {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.34);
}

.arch-card[data-mov="apresentada"]:hover .arch-cta {
  background: var(--gold);
  color: var(--plum-deep);
}

/* ==================== SECTION 5: 12 PORTAS (SLIDE 5 + INTERACTIVE) ==================== */
.sec-gates {
  background: linear-gradient(180deg, var(--linen) 0%, var(--linen-soft) 100%);
  padding-top: clamp(42px, 5vw, 68px);
  padding-bottom: clamp(86px, 11vw, 132px);
}

.gates-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.journey-meter {
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--linen-card);
  border: 1px solid var(--linen-border);
  box-shadow: var(--shadow-soft);
}

.journey-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-body);
  margin-bottom: 8px;
}

.journey-meter-head strong {
  color: var(--wine);
}

.journey-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
}

.journey-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--berry));
  transition: width 0.45s var(--ease);
}

/* Interactive Toolbar */
.gates-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--linen-card);
  border: 1px solid var(--linen-border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.mov-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-body);
  background: var(--linen);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.filter-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pill-c, var(--gold));
}

.filter-pill:hover {
  border-color: var(--linen-border);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--plum-deep);
  color: var(--gold-bright);
  border-color: var(--plum-deep);
}

.toolbar-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.search-wrap {
  position: relative;
  width: 220px;
  min-width: 170px;
}

.search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--ink-mute);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 34px 9px 36px;
  border-radius: 999px;
  border: 1px solid var(--linen-border);
  background: var(--linen);
  font: 500 13.5px var(--font-sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  border-color: var(--berry);
  background: #fff;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 16px;
  color: var(--ink-mute);
  background: rgba(42, 19, 43, 0.08);
}

.search-clear.show {
  display: grid;
}

.view-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--linen);
  border: 1px solid var(--linen-border);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  transition: background 0.22s ease, color 0.22s ease;
}

.view-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.view-btn.active {
  background: var(--plum-deep);
  color: var(--gold-bright);
}

/* MATRIX VIEW — Faithful to Slide 5 */
.gates-matrix {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.matrix-row.is-hidden {
  display: none;
}

.matrix-badge {
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--row-bg);
  color: var(--row-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.matrix-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(40, 17, 41, 0.12);
}

.matrix-badge-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.08;
}

.matrix-badge-period {
  font-size: 13px;
  font-weight: 500;
  margin-top: 5px;
  opacity: 0.86;
}

.matrix-row[data-mov="apresentada"] .matrix-badge-period {
  color: var(--ivory);
}

.matrix-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Signature Asymmetric Quarter-Arch Card from Slide 5 */
.gate-pill-card {
  position: relative;
  text-align: left;
  padding: 18px 20px 18px 20px;
  border-radius: 10px 44px 10px 10px;
  background: var(--linen-card);
  border: 1px solid var(--linen-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s var(--ease), background 0.28s ease;
}

.gate-pill-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 0 44px 0 0;
  border-top: 2px solid transparent;
  border-right: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.28s ease;
}

.gate-pill-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(40, 17, 41, 0.1);
  background: #ffffff;
}

.gate-pill-card:hover::after {
  border-color: var(--gold);
}

.gate-pill-card.is-done {
  border-color: rgba(214, 176, 98, 0.72);
  background: linear-gradient(155deg, #fffdf9 0%, #fbf3e2 100%);
}

.gate-pill-card.is-hidden {
  display: none;
}

.gate-pill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.gate-pill-woman {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.gate-pill-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--gold-ink);
  font-weight: 600;
}

.gate-pill-arrow {
  opacity: 0.45;
  transform: translateX(0);
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}

.gate-pill-card:hover .gate-pill-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.done-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--plum-deep);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

/* DETAILED GALLERY VIEW */
.gates-detailed {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gates-detailed.active {
  display: grid;
}

.gates-matrix.hidden {
  display: none;
}

.detail-card {
  position: relative;
  text-align: left;
  padding: 26px 24px 22px;
  border-radius: 14px 52px 14px 14px;
  background: var(--linen-card);
  border: 1px solid var(--linen-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.detail-card.is-hidden {
  display: none;
}

.detail-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-emblem {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--linen);
  border: 1px solid var(--linen-border);
  display: grid;
  place-items: center;
  flex: none;
}

.detail-emblem svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-emblem svg .sym-gold {
  stroke: var(--gold-ink);
}

.detail-mov-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
}

.detail-month {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.detail-woman {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.08;
  color: var(--ink);
  margin: 2px 0 0;
}

.detail-gate-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--berry);
}

.detail-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(223, 208, 188, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--wine);
}

.gates-empty {
  display: none;
  text-align: center;
  padding: 56px 24px;
  border-radius: 20px;
  background: var(--linen-card);
  border: 1px dashed var(--linen-border);
}

.gates-empty.show {
  display: block;
}

.gates-empty h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--ink);
}

.gates-empty p {
  color: var(--ink-mute);
  margin: 0 0 20px;
}

/* ==================== SECTION 6: O CIRCUITO DE NEEMIAS (SLIDE 6) ==================== */
.sec-circuit {
  position: relative;
  background:
    radial-gradient(ellipse 56% 66% at 75% 50%, rgba(130, 53, 87, 0.24), transparent 65%),
    linear-gradient(160deg, #2b132d 0%, var(--plum-deep) 65%, var(--plum-night) 100%);
  color: var(--ivory);
  padding-block: clamp(86px, 11vw, 138px);
  overflow: hidden;
}

.circuit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.circuit-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 34px;
}

.circuit-point {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ivory-soft);
}

.circuit-point strong {
  color: #ffffff;
  font-weight: 700;
}

/* Live Orbital Inspector Card */
.circuit-inspector {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(214, 176, 98, 0.26);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inspector-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.inspector-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
}

.inspector-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ivory-soft);
  margin: 0;
}

.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.inspector-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--plum-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.inspector-open:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.inspector-tour {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(214, 176, 98, 0.36);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.inspector-tour:hover,
.inspector-tour.playing {
  background: rgba(214, 176, 98, 0.16);
  border-color: var(--gold);
}

/* Interactive Circuit SVG */
.circuit-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circuit-svg-wrap {
  position: relative;
  width: min(440px, 60vh, 100%);
  aspect-ratio: 1 / 1;
}

.circuit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-base {
  fill: none;
  stroke: var(--berry);
  stroke-width: 10;
  opacity: 0.85;
}

.ring-dotted {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-dasharray: 2.5 15;
  stroke-linecap: round;
  opacity: 0.78;
}

.ring-progress {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.55s var(--ease);
  filter: drop-shadow(0 0 8px rgba(233, 202, 131, 0.65));
}

.circuit-center-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  fill: #ffffff;
  text-anchor: middle;
}

.circuit-center-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  fill: var(--ivory-soft);
  text-anchor: middle;
}

.circuit-center-active {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  fill: var(--gold-bright);
  text-anchor: middle;
}

.altar-node {
  cursor: pointer;
}

.altar-circle {
  fill: var(--gold);
  stroke: var(--plum-deep);
  stroke-width: 3;
  filter: drop-shadow(0 0 18px rgba(214, 176, 98, 0.5));
  transition: transform 0.25s var(--ease), fill 0.25s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.altar-node:hover .altar-circle,
.altar-node.active .altar-circle {
  transform: scale(1.08);
  fill: var(--gold-bright);
}

.altar-label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  fill: var(--plum-deep);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.gate-node {
  cursor: pointer;
  outline: none;
}

.gate-node-dot {
  fill: var(--plum-deep);
  stroke: var(--gold);
  stroke-width: 2.2;
  transition: r 0.22s var(--ease), fill 0.22s ease, stroke 0.22s ease;
}

.gate-node-halo {
  fill: rgba(214, 176, 98, 0);
  transition: fill 0.25s ease;
}

.gate-node-lbl {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(252, 249, 245, 0.68);
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 0.22s ease;
  pointer-events: none;
}

.gate-node:hover .gate-node-dot,
.gate-node:focus-visible .gate-node-dot,
.gate-node.active .gate-node-dot {
  fill: var(--gold-bright);
  stroke: #ffffff;
}

.gate-node:hover .gate-node-halo,
.gate-node.active .gate-node-halo {
  fill: rgba(214, 176, 98, 0.26);
}

.gate-node:hover .gate-node-lbl,
.gate-node.active .gate-node-lbl {
  fill: var(--gold-bright);
}

.circuit-hint {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ivory-mute);
  text-align: center;
}

/* ==================== SECTION 7: LEMA 2027 (SLIDE 7) ==================== */
.sec-motto {
  position: relative;
  background:
    radial-gradient(ellipse 64% 68% at 80% 50%, rgba(214, 176, 98, 0.12), transparent 62%),
    linear-gradient(155deg, #5d2142 0%, var(--wine) 60%, var(--wine-deep) 100%);
  color: var(--ivory);
  padding-top: clamp(96px, 13vw, 156px);
  padding-bottom: clamp(54px, 7vw, 84px);
  overflow: hidden;
}

.motto-watermark {
  position: absolute;
  right: clamp(-40px, 4vw, 80px);
  bottom: -24px;
  width: min(360px, 52vw);
  opacity: 0.14;
  pointer-events: none;
}

.motto-inner {
  position: relative;
  z-index: 2;
}

.motto-statement {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.08;
  margin: 0;
  max-width: 920px;
}

.motto-statement span {
  display: block;
}

.motto-top {
  color: #ffffff;
}

.motto-bottom {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  margin-top: 4px;
}

.motto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 46px;
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(214, 176, 98, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(252, 249, 245, 0.78);
}

/* ==================== DESKTOP MINIMAL SIDE RAIL ==================== */
.side-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 9px;
  border-radius: 999px;
  background: rgba(40, 17, 41, 0.72);
  border: 1px solid rgba(214, 176, 98, 0.28);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.side-rail.show {
  opacity: 1;
  pointer-events: auto;
}

.side-rail a {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(252, 249, 245, 0.34);
  transition: transform 0.22s var(--ease), background 0.22s ease, box-shadow 0.22s ease;
}

.side-rail a::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--plum-deep);
  border: 1px solid rgba(214, 176, 98, 0.4);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.side-rail a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.side-rail a:hover,
.side-rail a.active {
  background: var(--gold);
  transform: scale(1.42);
  box-shadow: 0 0 12px rgba(214, 176, 98, 0.8);
}

/* ==================== GATE DEVOTIONAL MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 9, 25, 0.78);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.gate-modal {
  width: min(820px, 100%);
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  border-radius: 22px 58px 22px 22px;
  overflow: hidden;
  background: var(--linen-card);
  color: var(--ink);
  border: 1px solid rgba(214, 176, 98, 0.45);
  box-shadow: var(--shadow-dark);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.34s var(--ease);
}

.modal-backdrop.open .gate-modal {
  transform: none;
}

.gm-header {
  position: relative;
  padding: 28px 32px 24px;
  background: linear-gradient(140deg, var(--plum-deep) 0%, var(--wine) 100%);
  color: var(--ivory);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gm-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.gm-emblem {
  width: 64px;
  height: 76px;
  border-radius: 36px 36px 10px 10px;
  border: 1px solid rgba(214, 176, 98, 0.55);
  background: rgba(40, 17, 41, 0.45);
  display: grid;
  place-items: center;
  flex: none;
}

.gm-emblem svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--ivory);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gm-emblem svg .sym-gold {
  stroke: var(--gold-bright);
}

.gm-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.gm-mov-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  letter-spacing: 0.12em;
}

.gm-woman {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.05;
  color: #ffffff;
  margin: 0;
}

.gm-gate-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold-pale);
  margin-top: 4px;
}

.gm-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(214, 176, 98, 0.34);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gm-close:hover {
  background: var(--gold);
  color: var(--plum-deep);
  transform: rotate(90deg);
}

.gm-body {
  padding: 26px 32px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gm-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gm-ref-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--linen);
  border: 1px solid var(--linen-border);
  color: var(--wine);
}

.gm-verse-box {
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--linen);
  border-left: 3px solid var(--gold);
}

.gm-verse-box blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.38;
  color: var(--ink);
}

.gm-verse-box cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.gm-block h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 7px;
}

.gm-block p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-body);
}

.gm-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gm-soft-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--linen);
  border: 1px solid var(--linen-border);
}

.gm-soft-card.prayer {
  background: linear-gradient(150deg, #faf3eb 0%, #f3e6d6 100%);
}

.gm-soft-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 6px;
}

.gm-soft-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-body);
}

.gm-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--linen-border);
  background: var(--linen);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gm-foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--linen-border);
  background: var(--linen-card);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gm-btn:hover {
  border-color: var(--wine);
  background: var(--plum-deep);
  color: var(--gold-bright);
}

.gm-btn.is-done {
  background: var(--plum-deep);
  color: var(--gold-bright);
  border-color: var(--plum-deep);
}

.gm-nav-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== QUICK MAP MODAL ==================== */
.map-modal {
  width: min(980px, 100%);
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--plum-deep);
  color: var(--ivory);
  border: 1px solid rgba(214, 176, 98, 0.36);
  box-shadow: var(--shadow-dark);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.32s var(--ease);
}

.modal-backdrop.open .map-modal {
  transform: none;
}

.map-head {
  padding: 20px 26px;
  border-bottom: 1px solid rgba(214, 176, 98, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-head h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  margin: 0;
  color: var(--gold-bright);
}

.map-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.map-search {
  width: min(270px, 100%);
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(214, 176, 98, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font: 500 13px var(--font-sans);
  outline: none;
}

.map-search:focus {
  border-color: var(--gold);
}

.map-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.map-tile {
  text-align: left;
  padding: 15px 16px;
  border-radius: 10px 30px 10px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(214, 176, 98, 0.2);
  transition: transform 0.22s var(--ease), border-color 0.22s ease, background 0.22s ease;
}

.map-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(214, 176, 98, 0.12);
}

.map-tile.is-hidden {
  display: none;
}

.map-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.map-tile-woman {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.15;
  color: #ffffff;
}

.map-tile-pillar {
  font-size: 12.5px;
  color: var(--ivory-soft);
  margin-top: 4px;
}

/* ==================== PRESENTATION / SLIDE HUD ==================== */
.slide-hud {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(90px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 11, 30, 0.92);
  border: 1px solid rgba(214, 176, 98, 0.46);
  color: var(--ivory);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.slide-hud.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hud-btn {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(214, 176, 98, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.hud-btn:hover {
  background: var(--gold);
  color: var(--plum-deep);
}

.hud-status {
  padding-inline: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
}

.hud-exit {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ivory-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hud-exit:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  z-index: 120;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--plum-deep);
  color: var(--gold-bright);
  border: 1px solid rgba(214, 176, 98, 0.52);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(15, 5, 16, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Compact laptop viewport optimization (e.g. 1366x640 / 1536x640) */
@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    padding-top: calc(var(--nav-h) + 10px);
    padding-bottom: 14px;
  }
  .hero-main {
    padding-block: 8px;
  }
  .hero-eyebrow {
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: clamp(48px, 6.2vw, 80px);
  }
  .hero-subtitle {
    font-size: clamp(26px, 3.3vw, 42px);
    margin-top: 10px;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .hero-context {
    margin-top: 22px;
    padding-top: 14px;
  }
  .hero-arch-frame {
    width: min(295px, 46vh);
  }
  .hero-ribbon {
    padding-top: 10px;
  }
  .ribbon-chip {
    padding: 5px 8px;
  }
  .sec-idea,
  .sec-verse,
  .sec-circuit {
    padding-block: 62px;
  }
  .sec-movements {
    padding-top: 62px;
    padding-bottom: 48px;
  }
  .sec-head {
    margin-bottom: 28px;
  }
  .arches-grid {
    margin-top: 24px;
  }
  .arch-card {
    min-height: calc(var(--arch-h, 320px) * 0.84);
    padding: 42px 20px 24px;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1120px) {
  .gates-toolbar {
    flex-wrap: wrap;
  }
  .mov-filters {
    flex-wrap: wrap;
  }
  .toolbar-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .search-wrap {
    flex: 1;
    width: auto;
    max-width: 340px;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-menu-toggle {
    display: grid;
  }
  .matrix-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .matrix-badge {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 18px;
  }
  .matrix-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gates-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 32px;
  }
  .hero-arch-frame {
    width: min(260px, 72vw);
    margin: 0 auto;
  }
  .triptych {
    grid-template-columns: 1fr;
  }
  .trip-card {
    border-right: none;
    border-bottom: 1px solid var(--linen-border);
  }
  .trip-card:last-child {
    border-bottom: none;
  }
  .verse-cues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .arch-card {
    min-height: 290px;
    padding-top: 48px;
  }
  .circuit-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .circuit-visual {
    order: -1;
  }
  .map-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }
  .nav-pill-btn .pill-lbl {
    display: none;
  }
  .nav-pill-btn {
    padding: 8px 11px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .verse-cues {
    grid-template-columns: 1fr;
  }
  .arches-grid {
    grid-template-columns: 1fr;
  }
  .arch-card {
    min-height: 240px;
    border-radius: 140px 140px 10px 10px;
  }
  .matrix-cards,
  .gates-detailed,
  .map-body,
  .gm-dual {
    grid-template-columns: 1fr;
  }
  .gates-toolbar {
    padding: 12px;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .search-wrap {
    max-width: none;
    flex-basis: 100%;
  }
  .gm-header {
    padding: 22px 20px 18px;
  }
  .gm-body {
    padding: 20px;
  }
  .gm-footer {
    padding: 14px 18px;
  }
  .gm-emblem {
    width: 52px;
    height: 62px;
  }
  .slide-hud {
    width: calc(100% - 24px);
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  #heroDust {
    display: none;
  }
  .arch-outer,
  .arch-inner {
    animation: none;
    stroke-dashoffset: 0;
  }
  .arch-orb,
  .arch-orb-halo {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================== PRINT STYLESHEET ==================== */
@media print {
  .site-nav,
  .progress-track,
  .side-rail,
  .hero-actions,
  .hero-ribbon,
  .gates-toolbar,
  .journey-meter,
  .motto-actions,
  .slide-hud,
  .modal-backdrop,
  .toast,
  #heroDust {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #1c101d;
  }
  .hero,
  .sec-verse,
  .sec-circuit,
  .sec-motto {
    background: #ffffff !important;
    color: #1c101d !important;
    min-height: auto !important;
    padding: 28px 0 !important;
    border-bottom: 1px solid #d7c7b2;
  }
  .hero-title,
  .section-title,
  .verse-quote,
  .motto-top {
    color: #281129 !important;
  }
  .hero-subtitle,
  .motto-bottom,
  .eyebrow,
  .v-hl.v-gold {
    color: #8f6b24 !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
