/* === AMPLIFY ALLIANCE v2 — Light blue. Animated. Evolution. === */

:root {
  color-scheme: light;
  --bg: #d4e6f5;
  --bg-elevated: #e8f1fa;
  /* Text: tuned for contrast on pale blue (WCAG-friendly hierarchy) */
  --cream: #0f2433;
  --cream-soft: #1e3d52;
  --charcoal-soft: #4a6274;
  --sage: #1a6b7a;
  --sage-glow: rgba(43, 111, 126, 0.4);
  --gold: #b8956c;
  --gold-glow: rgba(184, 149, 108, 0.45);
  --indigo: #4a6fa5;
  --indigo-glow: rgba(74, 111, 165, 0.45);
  --border: rgba(20, 60, 90, 0.14);
  --transition-slow: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-medium: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.75;
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.loaded .header-inner .org-name .char,
body.loaded .header-line {
  opacity: 1;
  transform: translateY(0);
}

/* === Ambient Background === */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: min(70vw, 600px);
  height: min(70vw, 600px);
  background: radial-gradient(circle, rgba(140, 200, 255, 0.55) 0%, transparent 65%);
  top: -20%;
  left: -15%;
  animation-duration: 22s;
  animation-delay: 0s;
}

.orb-2 {
  width: min(55vw, 450px);
  height: min(55vw, 450px);
  background: radial-gradient(circle, rgba(120, 210, 220, 0.45) 0%, transparent 65%);
  bottom: -15%;
  right: -10%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle, rgba(130, 170, 240, 0.5) 0%, transparent 65%);
  top: 45%;
  left: 55%;
  opacity: 0.5;
  animation-duration: 32s;
  animation-delay: -12s;
}

.orb-4 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  background: radial-gradient(circle, rgba(100, 190, 210, 0.4) 0%, transparent 65%);
  top: 20%;
  right: 20%;
  animation-duration: 25s;
  animation-delay: -8s;
}

.orb-5 {
  width: min(30vw, 240px);
  height: min(30vw, 240px);
  background: radial-gradient(circle, rgba(200, 220, 255, 0.45) 0%, transparent 65%);
  bottom: 25%;
  left: 15%;
  animation-duration: 30s;
  animation-delay: -18s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  20% { transform: translate(6%, -4%) scale(1.12) rotate(3deg); }
  40% { transform: translate(-5%, 5%) scale(0.92) rotate(-2deg); }
  60% { transform: translate(4%, 3%) scale(1.05) rotate(2deg); }
  80% { transform: translate(-3%, -2%) scale(0.98) rotate(-1deg); }
}

.orb-3 {
  animation-name: orb-float;
}

.orb-1, .orb-2, .orb-4, .orb-5 {
  animation-name: orb-float;
}

/* Grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 90, 130, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 90, 130, 0.09) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-shift 25s linear infinite;
  opacity: 0.75;
}

@keyframes grid-shift {
  0% { transform: perspective(400px) rotateX(55deg) translateY(0); }
  100% { transform: perspective(400px) rotateX(55deg) translateY(50px); }
}

/* Gradient mesh */
.gradient-mesh {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(120, 170, 230, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(140, 210, 220, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(200, 210, 255, 0.18) 0%, transparent 50%);
  animation: mesh-pulse 15s ease-in-out infinite;
  opacity: 1;
}

@keyframes mesh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

/* Morphing blob */
.ambient-bg::before {
  content: '';
  position: absolute;
  width: min(80vw, 700px);
  height: min(80vw, 700px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(130, 170, 220, 0.35) 0%, transparent 60%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob-morph 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blob-morph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(-50%, -50%) scale(1); }
  25% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%, -50%) scale(1.05); }
  50% { border-radius: 30% 70% 60% 40% / 50% 60% 30% 60%; transform: translate(-50%, -50%) scale(0.95); }
  75% { border-radius: 70% 30% 40% 60% / 30% 60% 40% 50%; transform: translate(-50%, -50%) scale(1.02); }
}

/* Particles - generated by JS */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  background: rgba(40, 100, 150, 0.35);
  border-radius: 50%;
  animation: particle-float 20s linear infinite;
  box-shadow: 0 0 8px rgba(80, 140, 200, 0.25);
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100vh) translateX(20px) scale(1);
    opacity: 0;
  }
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Organization name — typographic emphasis (no pill/badge) */
.org-mark {
  background: none;
  color: #0c3d5c;
  font-weight: 600;
  font-style: normal;
  padding: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(12, 61, 92, 0.4);
  box-shadow: none;
  text-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-tagline .org-mark {
  font-style: normal;
  color: #0c3d5c;
  border-bottom-color: rgba(12, 61, 92, 0.45);
}

/* Body + footer: same ink family, slightly softer than hero underline */
.content-block .org-mark,
.site-footer .org-mark {
  color: #0d4a5c;
  font-weight: 600;
  border-bottom-color: rgba(13, 74, 92, 0.4);
  text-shadow: none;
}

/* === Layout — Centered === */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(2rem, 6vw);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

.site-header,
main,
.site-footer {
  position: relative;
}

/* === Header === */
.site-header {
  padding-top: max(3rem, 8vh);
}

.header-inner {
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.loaded .header-inner {
  opacity: 1;
}

.org-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 5vw, 2.9rem);
  letter-spacing: 0.4em;
  color: var(--cream);
  display: inline-block;
  position: relative;
  text-shadow: 0 0 48px rgba(74, 111, 165, 0.25);
}

body.loaded .org-name {
  animation: title-breathe 4s ease-in-out 2.5s infinite;
}

@keyframes title-breathe {
  0%, 100% {
    text-shadow: 0 0 40px rgba(74, 111, 165, 0.2);
    letter-spacing: 0.4em;
  }
  50% {
    text-shadow: 0 0 56px rgba(74, 111, 165, 0.35), 0 0 80px rgba(140, 190, 230, 0.22);
    letter-spacing: 0.45em;
  }
}

.org-name:hover {
  filter: brightness(1.1);
  text-shadow: 0 0 30px var(--gold-glow);
  animation-play-state: paused;
}

.org-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(48px) scale(0.85);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 0.1s),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 0.1s);
}

.org-name .char.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.org-name .char:hover {
  transform: translateY(-2px) scale(1.03);
}

.org-name .word {
  display: block;
}

.org-name .word:first-child {
  margin-bottom: 0.15em;
}

.header-line {
  margin-top: 1.75rem;
  width: 8rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--sage), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity var(--transition-medium), transform var(--transition-slow) 0.4s;
  animation: line-shimmer 5s ease-in-out 2s infinite;
}

@keyframes line-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body.loaded .header-line {
  opacity: 0.9;
  transform: scaleX(1);
}

/* === Hero === */
.hero {
  padding-top: max(5rem, 15vh);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(40, 100, 150, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ring-1 {
  width: min(80vw, 500px);
  height: min(80vw, 500px);
  transform: translate(-50%, -50%);
  animation: ring-pulse 6s ease-in-out infinite;
}

.hero-ring-2 {
  width: min(65vw, 400px);
  height: min(65vw, 400px);
  transform: translate(-50%, -50%);
  animation: ring-pulse 8s ease-in-out 1s infinite;
  border-color: rgba(74, 111, 165, 0.18);
}

.hero-ring-3 {
  width: min(50vw, 300px);
  height: min(50vw, 300px);
  transform: translate(-50%, -50%);
  animation: ring-pulse 10s ease-in-out 2s infinite;
  border-color: rgba(43, 111, 126, 0.2);
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.03); }
}

.hero-accent {
  position: absolute;
  left: 50%;
  top: max(4rem, 12vh);
  width: 6rem;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), var(--sage), transparent);
  background-size: 200% 100%;
  opacity: 0.9;
}

@keyframes accent-draw {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  to {
    opacity: 0.9;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes accent-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-accent {
  animation: accent-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both,
    accent-shimmer 4s ease-in-out 2.5s infinite;
  transform-origin: center;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  font-style: italic;
  /* Main hero copy: one step softer than headings, still high contrast */
  color: var(--cream-soft);
  max-width: 52ch;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-tagline {
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .hero-tagline {
    font-size: 1.55rem;
  }
}

.hero-tagline .tagline-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tagline.visible .tagline-line {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline .tagline-intro {
  transition-delay: 0.2s;
}

.hero-tagline .evolution-phrase {
  display: inline;
  margin-top: 0;
  white-space: normal;
}

.tagline-nowrap {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .tagline-nowrap {
    white-space: normal;
  }
}

.hero-tagline.visible .evolution-phrase {
  transition-delay: 0.6s;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(140, 190, 240, 0.45) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0;
  animation: hero-glow-pulse 6s ease-in-out 1.5s infinite;
  pointer-events: none;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 0.42; transform: translate(-50%, -50%) scale(1.15); }
}

/* === Content === */
.content {
  padding-top: max(4rem, 10vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(2.5rem, 6vh);
}

.content-block {
  max-width: 52ch;
  text-align: center;
}

.content-block--left {
  text-align: left;
  align-self: flex-start;
  width: 100%;
}

/* Soft backdrop behind body copy blocks — border + fill pulse in/out */
.content-block--panel {
  position: relative;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 1rem;
  border: 1px solid rgba(40, 100, 140, 0.14);
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 18px 36px -20px rgba(30, 80, 120, 0.18);
  transition: transform 0.4s ease;
}

.content-block--panel.visible {
  animation: panel-surface-pulse 14s ease-in-out infinite;
}

.content-block--panel:nth-of-type(2).visible {
  animation-delay: -7s;
}

.content-block--panel:hover {
  transform: translateY(-2px);
}

.content-block--panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 90% 70% at 8% 12%, rgba(140, 180, 230, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 92% 88%, rgba(120, 200, 210, 0.22) 0%, transparent 52%),
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(232, 244, 252, 0.9) 45%,
      rgba(255, 255, 255, 0.55) 100%
    );
  pointer-events: none;
  z-index: 0;
  animation: panel-bg-pulse 14s ease-in-out infinite;
}

.content-block--panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(74, 111, 165, 0.08) 100%
  );
  pointer-events: none;
  z-index: 0;
  animation: panel-sheen-pulse 14s ease-in-out infinite;
}

.content-block--panel:nth-of-type(2)::before {
  background:
    radial-gradient(ellipse 85% 65% at 92% 15%, rgba(120, 200, 210, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 75% 55% at 10% 90%, rgba(140, 170, 230, 0.28) 0%, transparent 50%),
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(232, 244, 252, 0.9) 45%,
      rgba(255, 255, 255, 0.55) 100%
    );
  animation-delay: -7s;
}

.content-block--panel:nth-of-type(2)::after {
  animation-delay: -7s;
}

.content-block--panel > p {
  position: relative;
  z-index: 1;
}

/* Card shell: border & shadow nearly vanish, then return */
@keyframes panel-surface-pulse {
  0%, 100% {
    border-color: rgba(40, 100, 140, 0.12);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.55) inset,
      0 12px 28px -18px rgba(30, 80, 120, 0.12),
      0 0 0 0 rgba(74, 111, 165, 0);
  }
  50% {
    border-color: rgba(74, 111, 165, 0.35);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.75) inset,
      0 24px 48px -20px rgba(30, 80, 120, 0.2),
      0 0 36px -4px rgba(120, 170, 230, 0.28),
      0 0 22px -2px rgba(43, 111, 126, 0.15);
  }
}

/* Fill layer: background washes almost fade out, then rebuild */
@keyframes panel-bg-pulse {
  0%, 100% {
    opacity: 0.03;
  }
  50% {
    opacity: 0.78;
  }
}

/* Bottom sheen: same rhythm — peak below full opacity */
@keyframes panel-sheen-pulse {
  0%, 100% {
    opacity: 0.02;
  }
  50% {
    opacity: 0.72;
  }
}

.content-block.reveal[data-direction="center"] {
  transform: translateY(32px) scale(0.98);
}

.content-block.reveal.visible[data-direction="center"] {
  transform: translateY(0) scale(1);
}

.content-block.visible:not(.content-block--panel) {
  animation: block-glow 4s ease-out 0.5s;
}

@keyframes block-glow {
  0% { box-shadow: 0 0 0 0 rgba(143, 176, 140, 0); }
  30% { box-shadow: 0 0 40px 0 rgba(143, 176, 140, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(143, 176, 140, 0); }
}

.content-block .line {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-block.visible .line {
  opacity: 1;
  transform: translateY(0);
}

.content-block .line:nth-of-type(1) { transition-delay: 0.1s; }
.content-block .line:nth-of-type(2) { transition-delay: 0.25s; }
.content-block .line:nth-of-type(3) { transition-delay: 0.4s; }

.content-block p {
  font-weight: 400;
  color: var(--cream-soft);
}

.content-block p + p {
  margin-top: 0.45em;
}

.content-block .lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.9;
}

.content-block em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
  text-shadow: 0 0 40px var(--sage-glow);
  transition: text-shadow var(--transition-fast), transform var(--transition-fast);
}

.content-block em:hover {
  text-shadow: 0 0 50px var(--sage-glow), 0 0 80px rgba(143, 176, 140, 0.25);
}

.evolution-phrase {
  display: block;
  white-space: nowrap;
}

.evolution-phrase em {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  /* Deep teal: readable on ice-blue, distinct from body gray */
  color: #045a57;
  text-shadow: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.hero-tagline.visible .evolution-phrase em {
  animation: evolution-glow 3s ease-in-out 2.5s infinite;
}

@keyframes evolution-glow {
  0%, 100% {
    color: #045a57;
    text-shadow: none;
  }
  50% {
    color: #034a48;
    text-shadow: 0 0 40px rgba(4, 90, 87, 0.22);
  }
}

/* === Contact === */
.contact {
  padding-top: max(5rem, 12vh);
  padding-bottom: max(3rem, 8vh);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-inner {
  max-width: 52ch;
  text-align: center;
}

.contact-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--cream-soft);
  margin-bottom: 0.75rem;
}

.contact-link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 2px solid rgba(143, 176, 140, 0.5);
  padding-bottom: 3px;
  overflow: hidden;
  transition: color var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.contact-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 40px var(--gold-glow);
  transform: scale(1.02);
}

.link-glow {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.contact-link:hover .link-glow {
  opacity: 0.5;
  animation: link-glow-pulse 2s ease-in-out infinite;
}

@keyframes link-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

/* === Footer === */
.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: max(2rem, 5vh);
  display: flex;
  justify-content: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 176, 140, 0.35);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

.footer-links__sep {
  color: var(--charcoal-soft);
  user-select: none;
}

.footer-copy {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  font-weight: 500;
  animation: footer-fade 2s ease-out 1.5s both;
}

@keyframes footer-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-block.reveal:nth-child(1) { transition-delay: 0s; }
.content-block.reveal:nth-child(2) { transition-delay: 0.15s; }
.content-block.reveal:nth-child(3) { transition-delay: 0.3s; }

.contact-inner.reveal { transition-delay: 0.1s; }
.footer-inner.reveal { transition-delay: 0.05s; }

/* === Legal stub pages (privacy, terms) === */
.legal-page .page-wrapper {
  padding-bottom: max(3rem, 8vh);
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 176, 140, 0.35);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.legal-back:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.legal-header {
  margin-bottom: 2rem;
  text-align: left;
  align-self: flex-start;
  width: 100%;
  max-width: 52ch;
}

.legal-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.legal-header .legal-meta {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.legal-meta--date {
  margin-top: 0.5rem;
  max-width: 42ch;
  line-height: 1.45;
}

.legal-prose {
  max-width: 52ch;
  text-align: left;
  align-self: flex-start;
  color: var(--cream-soft);
}

.legal-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  margin: 2rem 0 0.75rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  margin-bottom: 1rem;
  font-weight: 300;
}

.legal-prose a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.legal-prose a:hover {
  color: var(--gold);
}

.legal-prose code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  color: var(--cream-soft);
}

.legal-prose .legal-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid rgba(43, 111, 126, 0.35);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.legal-footer__copyright {
  margin: 0 0 0.75rem;
  color: var(--charcoal-soft);
  font-weight: 500;
}

.legal-footer__links {
  margin: 0;
}

.legal-footer a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 176, 140, 0.3);
}

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

/* === Skip link (a11y) === */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: max(1rem, 3vh);
  left: max(1rem, 3vw);
  z-index: 10001;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.65rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f5f9fc;
  background: var(--sage);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(30, 80, 120, 0.28);
  text-decoration: none;
}

/* === 404 === */
.page-404__main {
  text-align: center;
  align-self: center;
  margin: 0 auto;
  padding-top: max(4rem, 12vh);
}

.page-404__code {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--charcoal-soft);
  opacity: 0.45;
  margin-bottom: 0.75rem;
}

.page-404__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
}

/* === Reduced motion ===
   We no longer blanket-disable all CSS animations: many systems (Windows “Animation
   effects”, embedded previews, etc.) report prefers-reduced-motion broadly, which
   made the site look completely static. We keep smooth scrolling off and shorten
   entrance transitions; users who need no motion can enable OS settings + use
   reader mode or contact the team. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition-duration: 0.01ms !important;
  }
}

/* === Responsive === */
@media (max-width: 640px) {
  .org-name {
    letter-spacing: 0.2em;
  }
}
