/* ========================================
   Yellow Umbrella Co. — Design System
   ======================================== */

:root {
  /* Colors */
  --bg: #FBF8F2;
  --paper: #F6F3ED;
  --yellow: #F3C316;
  --gold: #CDA349;
  --text: #1D1D1D;
  --text-secondary: #666666;
  --border: #E6E0D8;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-slow: 0.8s;
  --duration-medium: 0.5s;
  --duration-fast: 0.3s;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   Utility Classes
   ======================================== */

.museum-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2.5rem;
  transition: all var(--duration-medium) var(--ease-out);
  background: transparent;
}

.nav.scrolled {
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2.5rem;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-fast) var(--ease-out);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--text);
  color: var(--bg) !important;
  border-radius: 100px;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 20px;
  position: relative;
}

.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-menu-btn span:first-child { top: 0; }
.nav-menu-btn span:last-child { bottom: 0; }

.nav-menu-btn.active span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.nav-menu-btn.active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(251, 248, 242, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

.mobile-menu-inner .nav-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(205, 163, 73, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

/* Background elements */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
}

.hero-dot-1 { top: 15%; left: 10%; }
.hero-dot-2 { top: 25%; right: 15%; }
.hero-dot-3 { bottom: 30%; left: 20%; }

.hero-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.4;
}

.hero-line-1 {
  top: 20%;
  left: 5%;
  width: 120px;
  transform: rotate(-15deg);
}

.hero-line-2 {
  bottom: 35%;
  right: 8%;
  width: 80px;
  transform: rotate(25deg);
}

.hero-label {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 700px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-support {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ========================================
   Section Commons
   ======================================== */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   Section 2: Ecosystem
   ======================================== */

.ecosystem {
  background: var(--paper);
  position: relative;
}

.ecosystem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.ecosystem-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eco-dropdown {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eco-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  list-style: none;
}

.eco-category::-webkit-details-marker {
  display: none;
}

.eco-category::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  transition: transform var(--duration-fast) var(--ease-out);
}

.eco-dropdown[open] .eco-category::after {
  content: '-';
}

.eco-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0 1.25rem;
}

.eco-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--duration-medium) var(--ease-out);
}

.eco-card:hover {
  border-color: var(--gold);
}

.eco-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.eco-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
}

.eco-dot-emerging {
  background: var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.eco-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eco-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.eco-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.eco-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  transition: all var(--duration-fast) var(--ease-out);
}

.eco-link:hover {
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ========================================
   Section 3: Philosophy / Manifesto
   ======================================== */

.philosophy {
  background: var(--bg);
  position: relative;
}

.manifesto {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.manifesto-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-number {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}

.manifesto-support {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* ========================================
   Section 4: Builder's Rule
   ======================================== */

.principles {
  background: var(--paper);
  position: relative;
}

.principles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.principle-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
}

.principle-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.04);
  border-color: var(--gold);
}

.principle-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--yellow);
  opacity: 0.5;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  line-height: 1;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 85%;
  margin-bottom: 1rem;
}

.principle-reflection {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-out);
}

.principle-card:hover .principle-reflection {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.5rem;
}

.principle-reflection p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ========================================
   Section 5: Journey / Timeline
   ======================================== */

.journey {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 0;
}

.timeline-track {
  position: absolute;
  top: 3.8rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.timeline-progress {
  position: absolute;
  top: 3.8rem;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--gold));
  transition: width 1.5s var(--ease-out);
}

.timeline-stage {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.timeline-stage.visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
  transition: all var(--duration-medium) var(--ease-out);
  color: var(--text-secondary);
}

.stage-icon svg {
  width: 24px;
  height: 24px;
}

.timeline-stage:hover .stage-icon {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(205, 163, 73, 0.15);
}

.stage-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stage-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}

/* ========================================
   Section 6: Join
   ======================================== */

.join {
  background: var(--paper);
  position: relative;
}

.join::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.join .section-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.join-content {
  flex: 1;
}

.join-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.join-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.join-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.join-visual {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-umbrella-small {
  animation: breathe 6s ease-in-out infinite;
}

.join-umbrella-small img {
  width: 555px;
  height: auto;
  object-fit: contain;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-copy {
  opacity: 0.6;
}

/* ========================================
   Reveal animations
   ======================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.principles-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.principles-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.principles-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.principles-grid [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.principles-grid [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.principles-grid [data-reveal]:nth-child(6) { transition-delay: 0.4s; }
.principles-grid [data-reveal]:nth-child(7) { transition-delay: 0.48s; }
.principles-grid [data-reveal]:nth-child(8) { transition-delay: 0.56s; }

/* ========================================
   Responsive
   ======================================== */

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

  .timeline {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    padding-left: 3rem;
  }

  .timeline-track {
    top: 0;
    bottom: 0;
    left: 3rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-progress {
    top: 0;
    left: 3rem;
    width: 2px;
    height: 0;
  }

  .timeline-stage {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0;
  }

  .stage-icon {
    margin: 0;
    flex-shrink: 0;
  }

  .stage-content p {
    max-width: none;
    margin: 0;
  }

  .join .section-inner {
    flex-direction: column;
    text-align: center;
  }

  .join-body {
    margin-left: auto;
    margin-right: auto;
  }

  .join-actions {
    justify-content: center;
  }

  .join-visual {
    flex: none;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .join-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   Subtle cursor glow
   ======================================== */

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 195, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ========================================
   Smooth page load
   ======================================== */

body {
  opacity: 0;
  animation: pageReveal 0.8s ease-out 0.1s forwards;
}

@keyframes pageReveal {
  to { opacity: 1; }
}

/* ========================================
   Custody project page
   ======================================== */

.eco-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 2.25rem;
}

.eco-card-topline .eco-card-header {
  margin-bottom: 0.75rem;
}

.eco-card-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform var(--duration-medium) var(--ease-out);
}

.eco-card:hover .eco-card-logo {
  transform: rotate(-6deg) scale(1.08);
}

.custody-page {
  --custody-ink: #77729D;
  --project-glow: rgba(119, 114, 157, 0.1);
  --project-line: rgba(119, 114, 157, 0.3);
}

.neph-page {
  --custody-ink: #6D6B52;
  --project-glow: rgba(109, 107, 82, 0.1);
  --project-line: rgba(109, 107, 82, 0.3);
}

.agapetoi-page {
  --custody-ink: #455C4B;
  --project-glow: rgba(69, 92, 75, 0.1);
  --project-line: rgba(69, 92, 75, 0.3);
}

.christable-page {
  --custody-ink: #3A7CA5;
  --project-glow: rgba(58, 124, 165, 0.12);
  --project-line: rgba(58, 124, 165, 0.28);
  --christable-green: #4A9A6A;
  --christable-gold: #F6BC7C;
  --christable-surface: rgba(255, 255, 255, 0.74);
}

.castle-page {
  --bg: #0F0C09;
  --paper: #1A140F;
  --yellow: #E7CBA9;
  --gold: #C6A47A;
  --text: #E7CBA9;
  --text-secondary: #C6A47A;
  --border: rgba(231, 203, 169, 0.2);
  --white: #211912;
  --custody-ink: #E7CBA9;
  --project-glow: rgba(255, 200, 120, 0.14);
  --project-line: rgba(231, 203, 169, 0.3);
}

.castle-page .nav.scrolled {
  background: rgba(15, 12, 9, 0.86);
}

.castle-page .mobile-menu {
  background: rgba(15, 12, 9, 0.98);
}

.saints-page {
  --bg: #ECE7D6;
  --paper: #F8F7F3;
  --yellow: #C9CCB6;
  --gold: #B79A5B;
  --text: #2D2A25;
  --text-secondary: #7B766D;
  --border: #D6D1C6;
  --white: #F8F7F3;
  --custody-ink: #B79A5B;
  --project-glow: rgba(201, 204, 182, 0.34);
  --project-line: rgba(183, 154, 91, 0.38);
  --saints-sage: #C9CCB6;
}

.regula-page {
  --bg: #F8F7F4;
  --paper: #F1F0EC;
  --yellow: #D6D3D1;
  --gold: #A28C5A;
  --text: #171614;
  --text-secondary: #78716C;
  --border: #D6D3D1;
  --white: #FFFFFF;
  --custody-ink: #171614;
  --project-glow: rgba(214, 211, 209, 0.5);
  --project-line: rgba(23, 22, 20, 0.2);
  --regula-ink: #171614;
  --regula-gold: #A28C5A;
}

.flee-page {
  --bg: #EAF7FF;
  --paper: #F6FBFF;
  --yellow: #F5E6C8;
  --gold: #E7C35A;
  --text: #2B3550;
  --text-secondary: #6A7282;
  --border: rgba(90, 142, 92, 0.24);
  --white: #FFFFFF;
  --custody-ink: #5A8E5C;
  --project-glow: rgba(169, 217, 255, 0.36);
  --project-line: rgba(90, 142, 92, 0.34);
  --flee-blue: #3F73D8;
  --flee-green: #5A8E5C;
}

.flee-page .nav.scrolled {
  background: rgba(234, 247, 255, 0.88);
}

.flee-visual-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flee-hero-image {
  width: min(430px, 92%);
  height: 480px;
  object-fit: cover;
  border: 1px solid rgba(90, 142, 92, 0.34);
  box-shadow: 0 24px 70px rgba(63, 115, 216, 0.18);
}

.flee-hero-image-overlay {
  position: absolute;
  width: min(430px, 92%);
  height: 480px;
  background: linear-gradient(180deg, rgba(63, 115, 216, 0.02), rgba(43, 53, 80, 0.2));
  pointer-events: none;
}

.flee-page .custody-title {
  font-family: 'Cinzel', var(--font-display);
  letter-spacing: -0.03em;
}

.flee-page .custody-title em,
.flee-page .custody-invitation .join-headline em {
  color: var(--flee-green);
}

.atria-page {
  --bg: #082D35;
  --paper: #0D3E45;
  --yellow: #E7C47E;
  --gold: #E7C47E;
  --text: #F4E7C5;
  --text-secondary: #A9C5BF;
  --border: rgba(231, 196, 126, 0.28);
  --white: #123F45;
  --custody-ink: #E7C47E;
  --project-glow: rgba(66, 169, 160, 0.2);
  --project-line: rgba(231, 196, 126, 0.42);
  --atria-sea: #2A8C91;
  --atria-coral: #E88B66;
}

.atria-page .nav.scrolled,
.atria-page .mobile-menu {
  background: rgba(8, 45, 53, 0.94);
}

.atria-page .nav-logo,
.atria-page .nav-menu-btn,
.atria-page .mobile-menu-inner {
  color: var(--text);
}

.atria-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 5rem;
  background:
    radial-gradient(circle at 78% 20%, rgba(66, 169, 160, 0.24), transparent 25rem),
    linear-gradient(180deg, #0B3B45, var(--bg));
}

.atria-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: radial-gradient(rgba(231, 196, 126, 0.7) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, black, transparent 62%);
  -webkit-mask-image: linear-gradient(120deg, black, transparent 62%);
}

.atria-hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  position: relative;
  z-index: 1;
}

.atria-hero-copy {
  max-width: 560px;
}

.atria-kicker,
.atria-label {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.atria-kicker {
  margin: 2rem 0 1rem;
}

.atria-hero h1,
.atria-invitation h2 {
  color: var(--text);
  font-family: 'Cinzel', var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin-bottom: 2rem;
}

.atria-hero h1 em,
.atria-about h2 em,
.atria-invitation h2 em {
  color: var(--atria-coral);
  font-style: italic;
}

.atria-lede {
  max-width: 500px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.atria-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.atria-page .btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.atria-page .btn-primary:hover {
  background: var(--atria-coral);
  color: var(--bg);
}

.atria-page .btn-secondary {
  color: var(--text);
  border-color: var(--border);
}

.atria-page .btn-secondary:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.atria-map-stage {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.atria-map-frame {
  width: min(640px, 100%);
  padding: 0.75rem;
  background: rgba(231, 196, 126, 0.12);
  border: 1px solid rgba(231, 196, 126, 0.48);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.atria-map-frame img {
  width: 100%;
  aspect-ratio: 1 / 0.84;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(8, 45, 53, 0.65);
}

.atria-map-stamp {
  display: block;
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 0.17em;
  padding-top: 0.6rem;
  text-align: right;
  text-transform: uppercase;
}

.atria-tide-line {
  width: 120px;
  height: 1px;
  position: absolute;
  right: -2rem;
  bottom: 9%;
  background: linear-gradient(90deg, transparent, var(--atria-sea));
  transform: rotate(-20deg);
}

.atria-sky-mark {
  position: absolute;
  right: 8%;
  top: 18%;
  color: var(--gold);
  font-size: 1.2rem;
  animation: atriaTwinkle 4s ease-in-out infinite;
}

@keyframes atriaTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.atria-about {
  background: #0D3E45;
  border-top: 1px solid var(--border);
}

.atria-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 6rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.atria-about h2,
.atria-section-heading h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-top: 1.5rem;
}

.atria-intro-copy {
  padding-top: 0.35rem;
}

.atria-intro-copy p,
.atria-section-heading p,
.atria-invitation p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.atria-districts {
  background: var(--bg);
}

.atria-section-heading {
  max-width: 650px;
  margin-bottom: 3rem;
}

.atria-district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.atria-district-card {
  min-height: 210px;
  padding: 1.75rem;
  background: var(--bg);
  transition: background var(--duration-medium) var(--ease-out), transform var(--duration-medium) var(--ease-out);
}

.atria-district-card:hover {
  background: #103F45;
  transform: translateY(-4px);
}

.atria-district-card span {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.atria-district-card h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 2.5rem 0 0.7rem;
}

.atria-district-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.atria-language {
  background: #0A343B;
  border-top: 1px solid var(--border);
}

.atria-language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  margin-top: 3rem;
}

.atria-language-grid > div {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.atria-language-grid strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.atria-language-grid p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.atria-invitation {
  background: #071F26;
  border-top: 1px solid var(--border);
  text-align: center;
}

.atria-invitation .section-inner {
  max-width: 760px;
}

.atria-invitation h2 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin: 1.5rem auto;
}

.atria-invitation p {
  max-width: 480px;
  margin: 0 auto 2rem;
}

.atria-footer {
  background: #071F26;
  color: var(--text);
}

.atria-footer .footer-col a,
.atria-footer .footer-col h4,
.atria-footer .footer-bottom,
.atria-footer .footer-brand {
  color: var(--text-secondary);
}

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

@media (max-width: 768px) {
  .atria-hero {
    padding-top: 7rem;
  }

  .atria-hero-inner,
  .atria-intro-grid {
    grid-template-columns: 1fr;
  }

  .atria-hero-inner {
    gap: 3rem;
  }

  .atria-map-stage {
    min-height: 360px;
  }

  .atria-map-frame {
    width: 94%;
  }

  .atria-intro-grid {
    gap: 2rem;
  }

  .atria-language-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .atria-hero h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .atria-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .atria-hero-actions .btn {
    width: 100%;
  }

  .atria-district-grid,
  .atria-language-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Foundation and transparency pages
   ======================================== */

.foundation-page {
  --foundation-ink: #1D1D1D;
  --foundation-muted: #666666;
}

.foundation-hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 9rem 2rem 6rem;
  background:
    radial-gradient(circle at 80% 35%, rgba(243, 195, 22, 0.12), transparent 25rem),
    var(--paper);
  border-bottom: 1px solid var(--border);
}

.foundation-hero-compact {
  min-height: 48vh;
}

.foundation-hero-inner {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.foundation-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 2rem 0;
}

.foundation-hero h1 em,
.foundation-cta h2 em {
  color: var(--gold);
  font-style: italic;
}

.foundation-hero p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
}

.foundation-hero small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 2rem;
}

.foundation-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.foundation-section-paper {
  background: var(--paper);
}

.foundation-narrow {
  max-width: 820px;
}

.foundation-section h2,
.foundation-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 1.5rem 0;
}

.foundation-section p {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.foundation-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.foundation-card {
  min-height: 260px;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.foundation-card > span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.foundation-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 3rem 0 0.75rem;
}

.foundation-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.foundation-cta {
  background: var(--paper);
  text-align: center;
}

.foundation-cta .section-inner {
  max-width: 760px;
}

.foundation-cta p {
  max-width: 500px;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
}

.legal-section {
  background: var(--bg);
}

.legal-narrow {
  max-width: 840px;
}

.legal-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-block:last-child {
  border-bottom: 0;
}

.legal-block > span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.legal-block h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 1rem 0;
}

.legal-block p {
  max-width: 700px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .foundation-hero {
    min-height: 58vh;
    padding-top: 7rem;
  }

  .foundation-card-grid {
    grid-template-columns: 1fr;
  }

  .foundation-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .flee-visual-stage {
    min-height: 360px;
  }

  .flee-hero-image,
  .flee-hero-image-overlay {
    height: 360px;
  }
}

.regula-visual-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.regula-visual-ring {
  width: min(29rem, 95%);
  aspect-ratio: 1;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 75px rgba(69, 92, 75, 0.08);
}

.regula-visual-ring::before,
.regula-visual-ring::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
}

.regula-visual-ring::before {
  top: 13%;
  right: 14%;
  background: var(--regula-gold);
}

.regula-visual-ring::after {
  bottom: 16%;
  left: 8%;
  background: var(--regula-ink);
}

.regula-hero-image {
  width: min(390px, 86%);
  height: 470px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 24px rgba(23, 22, 20, 0.18));
  animation: regulaImageFloat 8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.regula-rule-card {
  width: min(320px, 78%);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--project-line);
  box-shadow: 0 24px 70px rgba(29, 29, 29, 0.09);
  transform: rotate(-3deg);
  animation: regulaFloat 8s ease-in-out infinite;
  position: relative;
}

.regula-rule-card > span,
.regula-rule-card small {
  color: var(--regula-ink);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.regula-rule-card strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 3.5rem 0 1.75rem;
}

.regula-rule-line {
  width: 48px;
  height: 1px;
  background: var(--regula-gold);
  margin-bottom: 1rem;
}

.regula-rule-card small {
  color: var(--text-secondary);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

@keyframes regulaFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
}

@keyframes regulaImageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 768px) {
  .regula-visual-stage {
    min-height: 360px;
  }

  .regula-hero-image {
    height: 360px;
  }
}

.custody-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 45%, var(--project-glow), transparent 28rem),
    var(--bg);
}

.custody-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 80%);
}

.custody-hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  position: relative;
  z-index: 1;
}

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

.custody-kicker {
  color: var(--custody-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2.25rem 0 0.9rem;
}

.custody-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 2rem;
}

.custody-title em,
.custody-invitation .join-headline em {
  color: var(--custody-ink);
  font-style: italic;
}

.custody-lede {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.custody-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.custody-mark-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custody-mark-orbit {
  width: min(28rem, 90%);
  aspect-ratio: 1;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  position: absolute;
}

.custody-mark-orbit::before,
.custody-mark-orbit::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  position: absolute;
}

.custody-mark-orbit::before {
  top: 12%;
  right: 15%;
}

.custody-mark-orbit::after {
  bottom: 18%;
  left: 8%;
  background: var(--custody-ink);
}

.custody-mark-card {
  width: min(290px, 72%);
  aspect-ratio: 0.86;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--project-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(29, 29, 29, 0.08);
  transform: rotate(4deg);
  animation: custodyFloat 7s ease-in-out infinite;
}

.custody-mark-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.agapetoi-word-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.agapetoi-word-orbit {
  width: min(28rem, 90%);
  aspect-ratio: 1;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  position: absolute;
}

.agapetoi-word-orbit::before,
.agapetoi-word-orbit::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  position: absolute;
}

.agapetoi-word-orbit::before {
  top: 12%;
  right: 15%;
}

.agapetoi-word-orbit::after {
  bottom: 18%;
  left: 8%;
  background: var(--custody-ink);
}

.agapetoi-word-card {
  width: min(350px, 80%);
  aspect-ratio: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(252, 251, 248, 0.82);
  border: 1px solid var(--project-line);
  box-shadow: 0 24px 70px rgba(29, 29, 29, 0.07);
  transform: rotate(-3deg);
  animation: agapetoiFloat 7s ease-in-out infinite;
}

.agapetoi-word-greek {
  color: var(--custody-ink);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
}

.agapetoi-word-rule {
  width: 48px;
  height: 1px;
  background: var(--custody-ink);
  opacity: 0.55;
}

.agapetoi-word-meaning {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes agapetoiFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
}

.christable-visual-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.christable-visual-glow {
  width: min(29rem, 96%);
  aspect-ratio: 1;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  position: absolute;
}

.christable-visual-glow::before,
.christable-visual-glow::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
}

.christable-visual-glow::before {
  top: 12%;
  right: 14%;
  background: var(--christable-gold);
}

.christable-visual-glow::after {
  bottom: 17%;
  left: 8%;
  background: var(--christable-green);
}

.christable-dashboard {
  width: min(390px, 88%);
  padding: 1.25rem;
  background: var(--christable-surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(17, 17, 20, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: rotate(3deg);
  animation: christableFloat 7s ease-in-out infinite;
  position: relative;
}

.christable-dashboard-topbar,
.christable-dashboard-heading,
.christable-dashboard-footer,
.christable-people-dots {
  display: flex;
  align-items: center;
}

.christable-dashboard-topbar {
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}

.christable-dashboard-brand {
  color: #111114;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.christable-dashboard-avatar {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #B8B4E3;
  color: #111114;
  font-size: 0.65rem;
  font-weight: 700;
}

.christable-dashboard-heading {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.christable-dashboard-heading > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.christable-dashboard-label,
.christable-dashboard-panel > span,
.christable-dashboard-footer {
  color: #5F6872;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.christable-dashboard-heading strong {
  color: #111114;
  font-size: 1.05rem;
}

.christable-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 100px;
  background: rgba(74, 154, 106, 0.12);
  color: var(--christable-green);
  font-size: 0.6rem;
  font-weight: 600;
}

.christable-live i,
.christable-footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--christable-green);
}

.christable-dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.65rem;
}

.christable-dashboard-panel {
  min-height: 155px;
  padding: 0.85rem;
  background: rgba(248, 250, 253, 0.78);
  border: 1px solid rgba(17, 17, 20, 0.07);
  border-radius: 14px;
}

.christable-panel-schedule > span,
.christable-panel-people > span {
  display: block;
  margin-bottom: 0.9rem;
}

.christable-schedule-row {
  display: grid;
  grid-template-columns: 2.8rem 0.45rem 1fr;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.christable-schedule-row b {
  color: #5F6872;
  font-size: 0.58rem;
  font-weight: 500;
}

.christable-schedule-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--custody-ink);
}

.christable-schedule-row:nth-of-type(3) i {
  background: var(--christable-gold);
}

.christable-schedule-row em {
  overflow: hidden;
  color: #111114;
  font-size: 0.65rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.christable-panel-people strong {
  display: block;
  color: #111114;
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.christable-panel-people small {
  color: #5F6872;
  font-size: 0.58rem;
}

.christable-people-dots {
  margin-top: 1rem;
}

.christable-people-dots i,
.christable-people-dots b {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #F8FAFD;
  border-radius: 50%;
  background: #B8B4E3;
  margin-left: -4px;
}

.christable-people-dots i:nth-child(2) { background: #F6BC7C; }
.christable-people-dots i:nth-child(3) { background: #4A9A6A; }
.christable-people-dots i:nth-child(4) { background: #3A7CA5; }

.christable-people-dots b {
  width: auto;
  padding: 0 0.35rem;
  background: #111114;
  color: #F8FAFD;
  font-size: 0.5rem;
  font-weight: 600;
}

.christable-dashboard-footer {
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
}

.christable-footer-dot {
  flex-shrink: 0;
  margin-left: auto;
}

@keyframes christableFloat {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
}

.castle-visual-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.castle-visual-halo {
  width: min(29rem, 95%);
  aspect-ratio: 1;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 70px rgba(214, 185, 140, 0.08);
}

.castle-visual-halo::before,
.castle-visual-halo::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  background: var(--gold);
}

.castle-visual-halo::before {
  top: 12%;
  right: 15%;
}

.castle-visual-halo::after {
  bottom: 15%;
  left: 9%;
  background: var(--yellow);
}

.castle-chapel {
  width: min(285px, 72%);
  aspect-ratio: 0.76;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 236, 199, 0.18), transparent 32%),
    linear-gradient(180deg, #2A1C13, #110D0A 74%);
  border: 1px solid rgba(231, 203, 169, 0.28);
  border-radius: 150px 150px 12px 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 0 45px rgba(255, 220, 170, 0.06);
  transform: rotate(-3deg);
  animation: castleFloat 8s ease-in-out infinite;
}

.castle-chapel::before,
.castle-chapel::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 20%;
  height: 45%;
  border: 1px solid rgba(231, 203, 169, 0.12);
  border-bottom: 0;
}

.castle-chapel::before {
  left: 8%;
  border-radius: 70px 70px 0 0;
}

.castle-chapel::after {
  right: 8%;
  border-radius: 70px 70px 0 0;
}

.castle-chapel-arch {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 46%;
  aspect-ratio: 0.68;
  border: 1px solid rgba(231, 203, 169, 0.46);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
  transform: translateX(-50%);
}

.castle-chapel-window {
  position: absolute;
  inset: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 236, 199, 0.4), rgba(198, 164, 122, 0.08) 52%, transparent 70%);
  border-radius: 100px 100px 0 0;
}

.castle-chapel-window::before,
.castle-chapel-window::after {
  content: '';
  position: absolute;
  background: rgba(231, 203, 169, 0.42);
}

.castle-chapel-window::before {
  width: 1px;
  height: 100%;
}

.castle-chapel-window::after {
  width: 100%;
  height: 1px;
}

.castle-chapel-window span {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 236, 199, 0.7);
  transform: rotate(45deg);
}

.castle-chapel-cross {
  position: absolute;
  top: 53%;
  left: 50%;
  width: 20px;
  height: 30px;
  transform: translateX(-50%);
}

.castle-chapel-cross i,
.castle-chapel-cross b {
  position: absolute;
  display: block;
  background: var(--gold);
  opacity: 0.75;
}

.castle-chapel-cross i {
  width: 1px;
  height: 100%;
  left: 50%;
}

.castle-chapel-cross b {
  width: 14px;
  height: 1px;
  top: 28%;
  left: 15%;
}

.castle-chapel-altar {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 42%;
  height: 8%;
  border: 1px solid rgba(231, 203, 169, 0.24);
  border-bottom: 0;
  transform: translateX(-50%);
}

.castle-chapel-candle {
  position: absolute;
  bottom: 22%;
  left: 27%;
  width: 7px;
  height: 18px;
  background: #F3D9AE;
  box-shadow: 0 0 16px rgba(255, 200, 120, 0.7);
}

.castle-chapel-candle i {
  position: absolute;
  top: -7px;
  left: 1px;
  width: 5px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  background: var(--yellow);
  transform: rotate(45deg);
}

.castle-visual-caption {
  position: absolute;
  right: 0;
  bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom;
  white-space: nowrap;
}

@keyframes castleFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
}

.saints-visual-stage {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.saints-visual-sun {
  width: min(29rem, 95%);
  aspect-ratio: 1;
  border: 1px solid var(--project-line);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 80px rgba(183, 154, 91, 0.08);
}

.saints-visual-sun::before,
.saints-visual-sun::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
}

.saints-visual-sun::before {
  top: 13%;
  right: 14%;
  background: var(--gold);
}

.saints-visual-sun::after {
  bottom: 17%;
  left: 8%;
  background: var(--saints-sage);
}

.saints-library-card {
  width: min(340px, 78%);
  padding: 1.25rem;
  background: rgba(248, 247, 243, 0.82);
  border: 1px solid rgba(183, 154, 91, 0.38);
  box-shadow: 0 24px 70px rgba(45, 42, 37, 0.12);
  transform: rotate(3deg);
  animation: saintsFloat 8s ease-in-out infinite;
  position: relative;
}

.saints-library-topbar,
.saints-library-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saints-library-topbar {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.saints-library-topbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.saints-library-feature {
  min-height: 260px;
  padding: 0;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.saints-library-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.saints-library-feature::before,
.saints-library-feature::after {
  display: none;
}

.saints-library-label,
.saints-library-feature em {
  color: rgba(45, 42, 37, 0.68);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.saints-library-feature strong {
  max-width: 190px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
  margin: 0.45rem 0;
  position: relative;
  z-index: 1;
}

.saints-library-feature em {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.saints-library-mark {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: rgba(45, 42, 37, 0.16);
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.8;
}

.saints-library-tabs {
  justify-content: flex-start;
  gap: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saints-tab-active {
  color: var(--gold);
  font-weight: 600;
}

.saints-visual-caption {
  position: absolute;
  right: 0;
  bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom;
  white-space: nowrap;
}

@keyframes saintsFloat {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
}

.custody-mark-card span,
.custody-mark-caption {
  color: var(--custody-ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.custody-mark-caption {
  position: absolute;
  right: 0;
  bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.6rem;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom;
  white-space: nowrap;
}

@keyframes custodyFloat {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-10px); }
}

.custody-hero-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(1200px, calc(100% - 4rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  transform: translateX(-50%);
}

.custody-about {
  background: var(--paper);
}

.custody-about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 6rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.custody-section-title {
  text-align: left;
  margin-top: 1.5rem;
}

.custody-about-copy {
  padding-top: 0.35rem;
}

.custody-about-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.custody-practices {
  background: var(--bg);
}

.custody-practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.custody-practice-card {
  min-height: 250px;
  padding: 2.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-medium) var(--ease-out), border-color var(--duration-medium) var(--ease-out);
}

.custody-practice-card:hover {
  border-color: var(--custody-ink);
  transform: translateY(-5px);
}

.custody-practice-number {
  display: block;
  color: var(--custody-ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 3rem;
}

.custody-practice-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.custody-practice-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.custody-invitation {
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.custody-invitation-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.custody-invitation .join-headline {
  margin-top: 1.5rem;
}

.custody-invitation .join-body {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .custody-hero {
    padding-top: 7rem;
  }

  .custody-hero-inner,
  .custody-about-grid {
    grid-template-columns: 1fr;
  }

  .custody-hero-inner {
    gap: 3rem;
  }

  .custody-mark-stage {
    min-height: 360px;
  }

  .agapetoi-word-stage {
    min-height: 360px;
  }

  .christable-visual-stage {
    min-height: 360px;
  }

  .christable-dashboard {
    width: min(390px, 94%);
  }

  .castle-visual-stage {
    min-height: 360px;
  }

  .saints-visual-stage {
    min-height: 360px;
  }

  .custody-mark-card img {
    width: 120px;
    height: 120px;
  }

  .custody-mark-caption {
    right: 3%;
  }

  .custody-about-grid {
    gap: 2rem;
  }

  .custody-practice-grid {
    grid-template-columns: 1fr;
  }

  .custody-practice-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .custody-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .custody-hero-actions .btn {
    width: 100%;
  }

  .custody-title {
    font-size: clamp(4rem, 19vw, 6rem);
  }
}
