/* ============================================
   PAGES — Page-specific Styles
   ============================================ */

/* === Hero Section (Landing Page) === */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #080808;
  color: var(--color-text-on-dark);
}

.hero__media-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.02);
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.15) contrast(1.1) brightness(0.92);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 15s ease-out;
}

.hero__video.is-loaded {
  opacity: 0.75;
}

.hero:hover .hero__video.is-loaded {
  transform: translate(-50%, -50%) scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(188, 10, 39, 0.08) 0%, rgba(10, 10, 10, 0.45) 50%, rgba(6, 6, 6, 0.88) 100%),
              linear-gradient(180deg, rgba(8, 8, 8, 0.30) 0%, rgba(8, 8, 8, 0.82) 100%);
}

.hero__overlay-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(201, 168, 76, 0.18) 0%, transparent 65%);
  mix-blend-mode: screen;
  animation: heroAmbientPulse 8s ease-in-out infinite alternate;
}

@keyframes heroAmbientPulse {
  0% { opacity: 0.45; }
  100% { opacity: 0.85; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-2xl) var(--space-md);
}

.hero__cross {
  font-size: 2.8rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 25px var(--color-gold-glow);
  animation: fadeIn 1.2s ease 200ms both;
}

.hero__title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
  animation: fadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.hero__title em {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: var(--fw-semibold);
}

.hero__quote {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--color-gold-bright);
  margin: var(--space-md) auto var(--space-lg);
  max-width: 680px;
  line-height: var(--lh-normal);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: fadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
}

.hero__description {
  font-family: var(--font-serif-body);
  font-size: var(--fs-body);
  color: rgba(245, 243, 239, 0.85);
  margin-bottom: var(--space-2xl);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-normal);
  animation: fadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 800ms both;
}

.hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  animation: fadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms both;
}

.btn--hero-transparent {
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-gold);
  color: #FFFFFF !important;
  padding: 12px 36px;
  font-family: var(--font-sans-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(201, 168, 76, 0.15);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--hero-transparent:hover {
  background: rgba(201, 168, 76, 0.25);
  border-color: #F5E6B3;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.45), 0 0 20px rgba(201, 168, 76, 0.3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(201, 168, 76, 0.8);
}

/* 🌐 Hero 17 Languages Horizontal Bar (Semi-Transparent, Compact, Modern) */
.hero__languages-bar {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeSlideUp 900ms cubic-bezier(0.16, 1, 0.3, 1) 1150ms both;
}

.hero__languages-label {
  font-family: var(--font-sans-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  opacity: 0.9;
}

.hero__languages-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 860px;
}

.hero-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(15, 15, 15, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: rgba(245, 243, 239, 0.88);
  font-family: var(--font-sans-ui);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-lang-chip:hover {
  background: rgba(201, 168, 76, 0.28);
  border-color: var(--color-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
}

.hero-lang-chip.is-active {
  background: rgba(188, 10, 39, 0.65);
  border-color: var(--color-gold);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: clamp(1.2rem, 3.5vh, 2.2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #F5E6B3;
  font-family: var(--font-sans-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  z-index: 4;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 14px rgba(201, 168, 76, 0.65);
  transition: all var(--transition-fast);
  animation: fadeIn 1.2s ease 1300ms both;
}

.hero__scroll-indicator:hover {
  color: #FFFFFF;
  transform: translateX(-50%) translateY(3px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(201, 168, 76, 0.95);
}

.hero__scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  animation: heroScrollBounce 2.2s infinite ease-in-out;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.75; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none !important;
  }
  .hero__bg-fallback {
    opacity: 0.35 !important;
    transform: none !important;
  }
  .hero__overlay-ambient {
    animation: none !important;
  }
  .hero__scroll-arrow {
    animation: none !important;
  }
}

/* === Stats Section === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.stat {
  padding: var(--space-lg);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-sacred-red);
  font-weight: var(--fw-regular);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* === About Carlo Section === */
.about-carlo {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-carlo .two-col {
  align-items: start;
  gap: var(--space-3xl);
}

.about-carlo::before {
  content: '✝';
  position: absolute;
  right: -40px;
  top: -40px;
  font-size: 300px;
  color: var(--color-gold);
  opacity: 0.04;
  pointer-events: none;
}

.about-carlo__media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
  max-width: 440px;
  width: 100%;
}

.about-carlo__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 168, 76, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.about-carlo__image-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.about-carlo__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-carlo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 12px 20px;
}

.about-carlo__text {
  font-size: 0.95rem;
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  text-align: left;
  margin: 0;
}

.about-carlo__quote {
  font-family: var(--font-serif-display, Georgia, serif);
  font-size: var(--fs-h3);
  color: var(--color-sacred-red);
  font-style: italic;
  line-height: var(--lh-snug);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xl);
}

[data-theme="dark"] .about-carlo__quote {
  color: var(--color-sacred-red-light);
}

/* === Featured Miracles Section === */
.featured-section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.featured-section__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

.featured-section__subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
}

/* === Language Selection (Landing Page) === */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.lang-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
}

.lang-card:hover {
  border-color: var(--color-sacred-red);
  background: var(--color-sacred-red-bg);
  color: var(--color-sacred-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lang-card__flag {
  font-size: 1.4rem;
}

/* === Miracle Detail Page ("Sacro $10K") === */
.miracle-detail__hero {
  background: #0E0E0E;
  color: white;
  padding: var(--space-3xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.miracle-detail__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(4px) saturate(1.2);
}

.miracle-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(188, 10, 39, 0.25) 0%, transparent 60%),
              linear-gradient(180deg, rgba(14, 14, 14, 0.4) 0%, rgba(14, 14, 14, 0.95) 100%);
}

.miracle-detail__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: flex-end;
}

@media (max-width: 900px) {
  .miracle-detail__hero-inner {
    grid-template-columns: 1fr;
  }
}

.miracle-detail__header-badges {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.miracle-detail__title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.miracle-detail__subtitle {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h3);
  color: var(--color-gold-bright);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.miracle-detail__meta-list {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-family: var(--font-sans-ui);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}

.miracle-detail__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.miracle-detail__meta-item strong {
  color: white;
}

/* Detail Main Layout Grid */
.miracle-detail__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  align-items: start;
}

@media (max-width: 960px) {
  .miracle-detail__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.narrative-content {
  font-family: var(--font-serif-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
}

.narrative-content h2 {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h2);
  color: var(--color-sacred-red-dark);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border-gold);
}

[data-theme="dark"] .narrative-content h2 {
  color: var(--color-gold-light);
}

.narrative-content p {
  margin-bottom: var(--space-lg);
  text-align: justify;
}

/* Sticky Fact Sidebar */
.fact-sidebar {
  position: sticky;
  top: 90px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.fact-sidebar__title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h3);
  color: var(--color-sacred-red);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

[data-theme="dark"] .fact-sidebar__title {
  color: var(--color-gold-light);
}

.fact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-label {
  font-family: var(--font-sans-ui);
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact-value {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
}

/* Navigation Between Miracles */
.miracle-nav-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4xl);
}

.miracle-nav-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.miracle-nav-card:hover {
  background: var(--color-bg-card);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.miracle-nav-card--next {
  text-align: right;
  align-items: flex-end;
}

.miracle-nav-direction {
  font-family: var(--font-sans-ui);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-dark);
  font-weight: var(--fw-semibold);
}

.miracle-nav-title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h4);
  color: var(--color-text-primary);
}

/* ============================================
   INSTITUTIONAL PAGES (Biography, Exhibition, Prefaces)
   ============================================ */

/* Institutional Hero */
.inst-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.inst-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.1);
  transform: scale(1.02);
  transition: transform 15s ease;
}

.inst-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(188, 10, 39, 0.18) 0%, rgba(14, 14, 14, 0.85) 60%, #0E0E0E 100%);
}

.inst-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.inst-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 18px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  color: var(--color-gold-bright);
  font-family: var(--font-sans-ui);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.15);
}

.inst-hero__title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: var(--fw-normal);
  color: #FFFFFF;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.inst-hero__subtitle {
  font-family: var(--font-serif-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(245, 243, 239, 0.85);
  line-height: var(--lh-normal);
  max-width: 720px;
  margin: 0 auto var(--space-md);
}

.inst-hero__quote {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-gold-light);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  border-left: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
  display: inline-block;
  background: rgba(201, 168, 76, 0.08);
  border-radius: var(--radius-sm);
}

/* Institutional Content Layout */
.inst-layout {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  max-width: 1040px;
  margin: 0 auto;
}

.inst-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .inst-grid {
    grid-template-columns: 1fr;
  }
}

.inst-prose {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.inst-prose p {
  margin-bottom: var(--space-lg);
}

.inst-prose > p:first-of-type::first-letter,
.bio-act-lead::first-letter {
  font-family: var(--font-serif-display);
  font-size: 3.6rem;
  float: left;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--color-sacred-red);
  font-weight: var(--fw-bold);
}

[data-theme="dark"] .inst-prose > p:first-of-type::first-letter,
[data-theme="dark"] .bio-act-lead::first-letter {
  color: var(--color-gold-bright);
}

.inst-section-title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h2);
  color: var(--color-sacred-red);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

[data-theme="dark"] .inst-section-title {
  color: var(--color-gold-light);
}

/* Sidebar Profile Card */
.bio-sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.bio-portrait-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(201, 168, 76, 0.2);
  margin-bottom: var(--space-md);
  background: #000;
}

.bio-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.bio-portrait-frame:hover .bio-portrait-img {
  transform: scale(1.03);
}

.bio-sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
}

.bio-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-body-sm);
}

.bio-meta-label {
  font-family: var(--font-sans-ui);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.bio-meta-val {
  font-family: var(--font-serif-display);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  text-align: right;
}

/* Vertical Timeline */
.bio-timeline {
  position: relative;
  padding: var(--space-xl) 0;
  margin: var(--space-xl) 0;
}

.bio-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-sacred-red) 50%, var(--color-gold) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 54px;
  margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.bio-timeline .timeline-node {
  position: absolute;
  left: 20px;
  top: 14px;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
  transition: all var(--transition-base);
  z-index: 2;
}

.bio-timeline .timeline-item:hover .timeline-node {
  background: var(--color-gold);
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 14px var(--color-gold-glow);
}

.timeline-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-sans-ui);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--color-sacred-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

[data-theme="dark"] .timeline-year {
  color: var(--color-gold-bright);
}

.timeline-title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h4);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-desc {
  font-family: var(--font-serif-body);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

/* Quotes Grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.quote-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-sacred-red);
}

.quote-card__icon {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.6;
  margin-bottom: var(--space-sm);
  font-family: Georgia, serif;
}

.quote-card__text {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
}

.quote-card__author {
  font-family: var(--font-sans-ui);
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-medium);
}

/* Exhibition Stats Banner */
.exh-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

@media (max-width: 680px) {
  .exh-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.exh-stat-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.exh-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
}

.exh-stat-number {
  font-family: var(--font-serif-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: var(--color-sacred-red);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

[data-theme="dark"] .exh-stat-number {
  color: var(--color-gold-bright);
}

.exh-stat-desc {
  font-family: var(--font-sans-ui);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  line-height: 1.35;
}

/* Prefaces Reader Interface */
.prefaces-tabs-nav {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  padding-bottom: 2px;
}

.preface-tab-btn {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.preface-tab-btn:hover {
  color: var(--color-sacred-red);
}

.preface-tab-btn.is-active {
  color: var(--color-sacred-red);
  border-bottom-color: var(--color-sacred-red);
  font-weight: var(--fw-semibold);
}

[data-theme="dark"] .preface-tab-btn:hover,
[data-theme="dark"] .preface-tab-btn.is-active {
  color: var(--color-gold-bright);
  border-bottom-color: var(--color-gold);
}

.preface-author-banner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.preface-author-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--color-gold);
  padding: 3px;
  background: var(--color-bg-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-theme="dark"] .preface-author-avatar-wrap {
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.25);
}

.preface-author-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
}

.preface-author-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
}

.preface-author-name {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h3);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.preface-author-role {
  font-family: var(--font-sans-ui);
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

.preface-doc-title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h2);
  color: var(--color-sacred-red);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-tight);
}

[data-theme="dark"] .preface-doc-title {
  color: var(--color-gold-light);
}

.preface-article {
  display: none;
  animation: fadeIn 400ms ease;
}

.preface-article.is-active {
  display: block;
}

.preface-article ul {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
  line-height: 1.7;
}

.preface-article li {
  margin-bottom: var(--space-sm);
}

.preface-article strong {
  color: var(--color-text-primary);
}

.preface-signature {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  text-align: right;
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-primary);
}

/* ==========================================================================
   Biography Page Enriched Components ("Sacro $10K")
   ========================================================================== */

/* Sub-navigation bar */
.bio-subnav-wrapper {
  position: sticky;
  top: var(--header-height, 94px);
  z-index: 90;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-2xl);
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

[data-theme="dark"] .bio-subnav-wrapper {
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(201, 168, 76, 0.15);
}

.bio-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  padding: 2px 0;
}

.bio-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.bio-subnav-link:hover {
  color: var(--color-sacred-red);
  border-color: var(--color-sacred-red);
  background: rgba(188, 10, 39, 0.05);
  transform: translateY(-1px);
}

.bio-subnav-link.is-active {
  background: var(--color-sacred-red);
  color: #FFFFFF !important;
  border-color: var(--color-sacred-red);
  box-shadow: 0 2px 8px rgba(188, 10, 39, 0.35);
}

[data-theme="dark"] .bio-subnav-link:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.1);
}

[data-theme="dark"] .bio-subnav-link.is-active {
  background: var(--color-gold);
  color: #141414 !important;
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
}

/* Narrative 2-Column Section (Acts + Profile Card) */
.bio-narrative-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

@media (max-width: 960px) {
  .bio-narrative-layout {
    grid-template-columns: 1fr;
  }
}

.bio-section {
  margin-bottom: var(--space-3xl);
}

/* Acts and Chapter Cards */
.bio-act-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.bio-act-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md), 0 0 16px rgba(201, 168, 76, 0.12);
  transform: translateY(-2px);
}

.bio-act-badge {
  display: inline-block;
  font-family: var(--font-sans-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-sacred-red);
  background: rgba(188, 10, 39, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

[data-theme="dark"] .bio-act-badge {
  color: var(--color-gold-light);
  background: rgba(201, 168, 76, 0.15);
}

.bio-act-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--lh-tight);
}

/* 5 Pillars of Sanctity ("Kit de Santidade") */
.holiness-kit-section {
  margin: var(--space-3xl) 0;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .holiness-kit-section {
  background: rgba(25, 25, 25, 0.75);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.4);
}

.holiness-kit-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.holiness-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.holiness-pillar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.holiness-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-sacred-red));
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.holiness-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md), 0 0 20px rgba(201, 168, 76, 0.15);
}

.holiness-pillar-card:hover::before {
  opacity: 1;
}

.holiness-pillar-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.holiness-pillar-title {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.holiness-pillar-quote {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-sacred-red);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

[data-theme="dark"] .holiness-pillar-quote {
  color: var(--color-gold-bright);
}

.holiness-pillar-desc {
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-top: auto;
}

/* Testimonials Grid */
.bio-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.bio-testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.bio-testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.bio-testimonial-quote {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  position: relative;
}

.bio-testimonial-author {
  font-family: var(--font-serif-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-sacred-red);
  margin-bottom: 2px;
}

[data-theme="dark"] .bio-testimonial-author {
  color: var(--color-gold-bright);
}

.bio-testimonial-role {
  font-family: var(--font-sans-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* 22-Photo Gallery Grid */
.bio-gallery-section {
  /* Keep container margin: 0 auto intact */
}

.bio-gallery-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.bio-gallery-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans-ui);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bio-gallery-filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-text-primary);
}

.bio-gallery-filter-btn.is-active {
  background: var(--color-sacred-red);
  border-color: var(--color-sacred-red);
  color: #ffffff;
}

[data-theme="dark"] .bio-gallery-filter-btn.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #141414;
}

.bio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.bio-gallery-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.bio-gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg), 0 0 16px rgba(201, 168, 76, 0.2);
}

.bio-gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.bio-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.bio-gallery-card:hover .bio-gallery-img {
  transform: scale(1.08);
}

.bio-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #fff;
  font-size: 1.4rem;
}

.bio-gallery-card:hover .bio-gallery-overlay {
  opacity: 1;
}

.bio-gallery-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bio-gallery-title {
  font-family: var(--font-serif-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.bio-gallery-period {
  font-family: var(--font-sans-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Quotes Filter Bar */
.quote-filter-bar {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.quote-filter-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans-ui);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quote-filter-btn:hover {
  border-color: var(--color-gold);
}

.quote-filter-btn.is-active {
  background: var(--color-sacred-red);
  border-color: var(--color-sacred-red);
  color: #ffffff;
}

[data-theme="dark"] .quote-filter-btn.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #141414;
}

/* Timeline Wrapper */
.bio-timeline-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

/* Tribute & Prayer 2-Column Grid */
.bio-tribute-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
  margin: var(--space-2xl) 0;
}

.bio-tribute-grid .bio-poem-card,
.bio-tribute-grid .bio-prayer-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .bio-tribute-grid {
    grid-template-columns: 1fr;
  }
}

/* Poem and Prayer Boxes */
.bio-poem-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-left: 5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .bio-poem-card {
  background: #181818;
  border-color: rgba(201, 168, 76, 0.25);
}

.bio-poem-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.bio-poem-title {
  font-family: var(--font-serif-display);
  font-size: var(--fs-h2);
  color: var(--color-sacred-red);
  margin-bottom: 4px;
}

[data-theme="dark"] .bio-poem-title {
  color: var(--color-gold-light);
}

.bio-poem-author {
  font-family: var(--font-sans-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.bio-poem-stanzas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.bio-poem-stanza {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  white-space: pre-line;
}

.bio-prayer-card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-xl);
  margin: var(--space-2xl) 0;
  text-align: center;
  box-shadow: var(--shadow-md), 0 0 20px rgba(201, 168, 76, 0.12);
}

.bio-prayer-title {
  font-family: var(--font-serif-display);
  font-size: 1.4rem;
  color: var(--color-sacred-red);
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .bio-prayer-title {
  color: var(--color-gold-light);
}

.bio-prayer-body {
  font-family: var(--font-serif-body);
  font-size: 1.1rem;
  color: var(--color-text-primary);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

/* Lightbox Navigation Buttons for Gallery */
.lightbox__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1002;
}

.lightbox__nav-btn:hover {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
}

.lightbox__nav-btn--prev {
  left: 20px;
}

.lightbox__nav-btn--next {
  right: 20px;
}

@media (max-width: 768px) {
  .bio-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bio-subnav-wrapper {
    top: var(--header-height-mobile, 55px);
  }
  .lightbox__nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Complete Catalog of Miracles (miracles.html)
   ========================================================================== */

.catalog-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

/* Toolbar & Filters */
.catalog-toolbar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

[data-theme="dark"] .catalog-toolbar {
  background: rgba(26, 26, 26, 0.85);
  border-color: rgba(201, 168, 76, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.catalog-toolbar-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.catalog-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-family: var(--font-sans-ui);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.catalog-sort-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.catalog-sort-label {
  font-family: var(--font-sans-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.catalog-sort-select {
  padding: 11px 32px 11px 14px;
  font-family: var(--font-sans-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23C9A84C%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  transition: all var(--transition-fast);
}

.catalog-sort-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

/* Quick Filter Chips */
.catalog-filter-chips {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
}

.catalog-chip-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans-ui);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.catalog-chip-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.catalog-chip-btn.is-active {
  background: var(--color-sacred-red);
  border-color: var(--color-sacred-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(188, 10, 39, 0.3);
}

[data-theme="dark"] .catalog-chip-btn.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #141414;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
}

/* Status Counter Bar */
.catalog-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  font-family: var(--font-sans-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.catalog-count-badge {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Continuous 3-Column Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.catalog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  position: relative;
}

[data-theme="dark"] .catalog-card {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(201, 168, 76, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(201, 168, 76, 0.16);
}

.catalog-card__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

[data-theme="dark"] .catalog-card__thumb-wrap {
  background: #101010;
}

.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.catalog-card:hover .catalog-card__img {
  transform: scale(1.06);
}

.catalog-card__badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.catalog-card__badge {
  font-family: var(--font-sans-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.catalog-card__badge--scientific {
  background: rgba(201, 168, 76, 0.9);
  color: #141414;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.catalog-card__badge--century {
  background: rgba(14, 14, 14, 0.75);
  color: #F5E6B3;
  border: 1px solid rgba(201, 168, 76, 0.3);
  margin-left: auto;
}

.catalog-card__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card__header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.catalog-card__country {
  font-family: var(--font-sans-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sacred-red);
}

[data-theme="dark"] .catalog-card__country {
  color: var(--color-gold-light);
}

.catalog-card__year {
  font-family: var(--font-sans-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.catalog-card__title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.catalog-card__summary {
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.catalog-card__btn {
  font-family: var(--font-sans-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-sacred-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

[data-theme="dark"] .catalog-card__btn {
  color: var(--color-gold-bright);
}

.catalog-card:hover .catalog-card__btn {
  gap: 8px;
}

/* Empty State */
.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.catalog-empty-icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.catalog-empty-title {
  font-family: var(--font-serif-display);
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.catalog-empty-text {
  font-family: var(--font-serif-body);
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Home CTA Wrap underneath Miracles Grid */
.home-catalog-cta-wrap {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--space-2xl);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.home-catalog-cta-btn {
  font-size: 1.12rem;
  padding: 16px 42px;
  white-space: nowrap;
  box-shadow: var(--shadow-md), 0 4px 20px rgba(188, 10, 39, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.home-catalog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 28px rgba(188, 10, 39, 0.45);
}

@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ======================================================
   ABOUT PROJECT & AGENTIC ENGINEERING PAGE
   ====================================================== */

.about-hero-quote-wrap {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

.about-hero-quote {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--color-gold-light);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 780px;
  line-height: var(--lh-snug);
}

.about-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (max-width: 900px) {
  .about-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 500px) {
  .about-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.about-metric-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.about-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 6px 24px rgba(201, 168, 76, 0.18);
  border-color: var(--color-gold);
}

.about-metric-number {
  font-family: var(--font-serif-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.about-metric-icon {
  font-size: 1.25rem;
  color: var(--color-gold);
  display: inline-block;
}

.about-metric-desc {
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin: 0;
}

.about-editorial-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.about-editorial-block .section-title {
  text-align: left;
}

.about-prose-lead {
  font-family: var(--font-serif-body);
  font-size: clamp(1.12rem, 2vw, 1.25rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.about-prose {
  font-family: var(--font-serif-body);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (max-width: 860px) {
  .about-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.about-pillar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-sacred-red);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-left-color var(--transition-base);
}

.about-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 8px 28px rgba(188, 10, 39, 0.16);
  border-left-color: var(--color-gold);
}

.about-pillar-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--lh-snug);
}

.about-pillar-text {
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* === Contact Form Section (Fale Conosco) === */
.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

[data-theme="dark"] .contact-card {
  background: #181818;
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.contact-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.contact-card__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--gradient-sacred-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(188, 10, 39, 0.3);
  flex-shrink: 0;
}

[data-theme="dark"] .contact-card__icon-wrap {
  box-shadow: 0 0 16px rgba(188, 10, 39, 0.5);
}

.contact-card__title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: var(--fw-bold);
  color: var(--color-sacred-red);
  margin: 0 0 0.2rem 0;
  line-height: var(--lh-snug);
}

[data-theme="dark"] .contact-card__title {
  color: var(--color-gold);
}

.contact-card__subtitle {
  font-family: var(--font-sans-ui);
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: var(--lh-relaxed);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.form-label {
  font-family: var(--font-sans-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans-ui);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  outline: none;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background-color: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FAFAF8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-sacred-red);
  box-shadow: 0 0 0 3.5px rgba(188, 10, 39, 0.15);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3.5px rgba(201, 168, 76, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-relaxed);
}

.form-select-wrap {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A0720' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 16px 16px !important;
}

[data-theme="dark"] .form-select {
  background-color: #1c1c1c !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 16px 16px !important;
}

.form-select option {
  background-color: #FFFFFF;
  color: #1A1A1A;
  padding: 0.5rem;
}

[data-theme="dark"] .form-select option {
  background-color: #222222;
  color: #FAFAF8;
  padding: 0.5rem;
}

.contact-submit-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(188, 10, 39, 0.3);
  cursor: pointer;
}

.contact-status {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-sans-ui);
  font-size: 0.92rem;
  line-height: var(--lh-relaxed);
}

.contact-status--warning {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--color-gold);
  color: var(--color-text-primary);
}

.contact-status--success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: var(--color-text-primary);
}

.contact-success-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.contact-success-icon {
  font-size: 2rem;
}

.contact-success-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-sacred-red);
}

[data-theme="dark"] .contact-success-title {
  color: var(--color-gold);
}

.contact-success-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.contact-success-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* ======================================================
   ULTRA-WIDE CATALOG GRID (>= 2000px)
   ====================================================== */
@media (min-width: 2000px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
  }
}

/* ======================================================
   404 ERROR PAGE ("Sacro $10K")
   ====================================================== */
.page-404 {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.page-404__content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.page-404__code {
  font-family: var(--font-serif-display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-sacred-red);
  margin-bottom: var(--space-xs);
  text-shadow: 0 4px 20px rgba(188, 10, 39, 0.25);
}

[data-theme="dark"] .page-404__code {
  color: var(--color-gold);
  text-shadow: 0 0 30px var(--color-gold-glow);
}

.page-404__title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.page-404__desc {
  font-family: var(--font-serif-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

.page-404__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}



