@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CIMA Canada — pastel/glass/glow/flip/parallax theme ===== */

:root {
  /* Pastel base palette */
  --pastel-pink: #ffd4e0;
  --pastel-lavender: #e0d6ff;
  --pastel-mint: #d6ffe5;
  --pastel-peach: #ffe5d6;
  --pastel-sky: #d0eaff;
  --pastel-cream: #fff5d6;

  /* Saturated accents (for glow + gradients) */
  --accent-pink: #ff8fb5;
  --accent-purple: #a78fff;
  --accent-mint: #7fd9a5;
  --accent-blue: #7fb8e0;
  --accent-peach: #ffb38f;

  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(180, 150, 220, 0.18);
  --glass-shadow-hover: 0 12px 48px rgba(255, 143, 181, 0.45),
                        0 0 70px rgba(167, 143, 255, 0.35);

  /* Text */
  --text-primary: #2d2545;
  --text-secondary: #6a5d85;
  --text-muted: #8d83a0;

  /* Accent gradients (reused) */
  --gradient-primary: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  --gradient-tri: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-blue));
  --gradient-text-dark: linear-gradient(135deg, #5b3d8a 0%, #2d2545 60%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-variation-settings: "opsz" 32;
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--text-primary);
  background: linear-gradient(135deg,
    #ffe0eb 0%,
    #e8d8ff 25%,
    #d8eaff 50%,
    #d8ffec 75%,
    #fff0d8 100%);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradientShift 25s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: overlay;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-pct, 0%);
  background: var(--gradient-tri);
  z-index: 1001;
  box-shadow: 0 0 12px rgba(255, 143, 181, 0.7);
}

/* ===== Parallax decorative blobs ===== */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 { width: 480px; height: 480px; background: var(--accent-pink);   top: 8%;    left: -120px; }
.blob-2 { width: 560px; height: 560px; background: var(--accent-purple); top: 45%;   right: -180px; }
.blob-3 { width: 380px; height: 380px; background: var(--accent-mint);   bottom: 8%; left: 25%; }
.blob-4 { width: 320px; height: 320px; background: var(--accent-blue);   top: 70%;   left: 8%; }

/* ===== Layout ===== */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 28px; }

/* ===== Header (sticky glass) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(180, 150, 220, 0.12);
  padding: 14px 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 143, 181, 0.4);
}
.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
nav a:hover {
  background: var(--glass-bg-strong);
  box-shadow: 0 0 24px rgba(255, 143, 181, 0.5),
              0 0 48px rgba(167, 143, 255, 0.35);
  transform: translateY(-1px);
}
nav a.active {
  background: linear-gradient(135deg, rgba(255, 143, 181, 0.18), rgba(167, 143, 255, 0.18));
  color: var(--text-primary);
  font-weight: 600;
}
nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 143, 181, 0.6);
}

/* ===== Typography ===== */
main { padding: 80px 0; }

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  padding-bottom: 0.08em;
  margin-bottom: 20px;
  background: var(--gradient-text-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  color: var(--text-primary);
}
h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}
.intro {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.7;
}
ol, ul { margin-bottom: 16px; padding-left: 24px; }
ol li, ul li { color: var(--text-secondary); margin-bottom: 8px; }

a { color: var(--text-primary); }

.grad-link {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid rgba(167, 143, 255, 0.4);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.grad-link:hover { opacity: 0.75; }

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 64px;
  --cursor-x: 50%;
  --cursor-y: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 420px at var(--cursor-x) var(--cursor-y),
              rgba(255, 143, 181, 0.22),
              rgba(167, 143, 255, 0.12) 30%,
              transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.hero:hover::before { opacity: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(180, 150, 220, 0.18);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(255, 143, 181, 0.8);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.045em;
  line-height: 1.15;
  padding-bottom: 0.08em;
}
.hero .tagline {
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 32px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(255, 143, 181, 0.45),
              0 2px 8px rgba(167, 143, 255, 0.25);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255, 143, 181, 0.65),
              0 0 60px rgba(167, 143, 255, 0.5);
  color: white;
}
.btn:active { transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  padding: 14px 28px;
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-ghost:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(167, 143, 255, 0.4),
              0 0 40px rgba(255, 143, 181, 0.3);
}

/* ===== Stats row ===== */
.stats {
  display: inline-flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 24px 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
}
.stats-wrap { display: flex; justify-content: center; }
.stat { text-align: center; }
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
  font-weight: 600;
}

/* ===== Sections ===== */
section { padding: 56px 0; position: relative; }

/* ===== Pillars (bento grid) ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.pillar:nth-child(1) { grid-column: span 2; }
.pillar:nth-child(4) { grid-column: span 2; }

.pillar {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient-tri);
  opacity: 0.85;
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
}
.pillar .pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(255, 143, 181, 0.4);
}
.pillar .pillar-icon svg {
  width: 22px;
  height: 22px;
}
.pillar h3 {
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), #5b3d8a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pillar p { font-size: 0.94rem; margin: 0; }

/* ===== Marquee strip ===== */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin: 56px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.01em;
}
.marquee-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 6px rgba(255, 143, 181, 0.7);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Generic glass panel (about / standards body) ===== */
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: var(--glass-shadow);
  margin-top: 24px;
}

/* ===== Member directory ===== */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.member {
  perspective: 1200px;
  height: 340px;
  cursor: pointer;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.member:hover .flip-inner,
.member.flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease;
}
.flip-front {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.flip-back {
  transform: rotateY(180deg);
  justify-content: space-between;
}
.member:hover .flip-front,
.member:hover .flip-back,
.member.flipped .flip-front,
.member.flipped .flip-back {
  box-shadow: var(--glass-shadow-hover);
}

/* Agency avatar (front face) */
.avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 24px rgba(255, 143, 181, 0.35);
  background: var(--gradient-primary);
}
.region-bc .avatar {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 8px 24px rgba(127, 184, 224, 0.45);
}
.region-ns .avatar {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-peach));
  box-shadow: 0 8px 24px rgba(255, 143, 181, 0.45);
}

.flip-front h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #5b3d8a, var(--text-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.flip-front .location {
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.flip-front .hint {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
}

.flip-back p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 12px;
  line-height: 1.55;
}
.flip-back .specialties { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.flip-back .tag {
  background: linear-gradient(135deg, rgba(255, 143, 181, 0.22), rgba(167, 143, 255, 0.22));
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.5);
  letter-spacing: -0.005em;
}
.flip-back .visit-link {
  display: inline-block;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 24px;
  background: var(--gradient-primary);
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(255, 143, 181, 0.4);
}
.flip-back .visit-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 143, 181, 0.6),
              0 0 40px rgba(167, 143, 255, 0.4);
}

/* ===== Resource cards ===== */
.resource {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.resource::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 5px; height: 100%;
  background: var(--gradient-tri);
}
.resource:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}
.resource h2 {
  font-size: 1.22rem;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #5b3d8a, var(--text-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.resource .meta {
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.resource p { margin: 0; font-size: 0.95rem; }

/* ===== Standards (numbered) ===== */
.standard {
  display: flex;
  gap: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s, box-shadow 0.35s;
}
.standard:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}
.standard-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 18px rgba(255, 143, 181, 0.4);
}
.standard-content { flex: 1; }
.standard-content h2 {
  font-size: 1.18rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.standard-content p { margin: 0; font-size: 0.94rem; }

/* ===== Contact card ===== */
.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px 40px;
  margin-top: 28px;
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.35s, transform 0.35s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}
.contact-card a { font-weight: 700; }

/* ===== Footer ===== */
footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 36px 0;
  font-size: 0.9rem;
  margin-top: 64px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer.simple .container { justify-content: center; text-align: center; }
footer a {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
footer a:hover { opacity: 0.7; }

/* ===== Scroll-reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  h1 { font-size: 2.1rem; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 2.4rem; }
  .hero .tagline { font-size: 1.05rem; }
  nav { width: 100%; gap: 2px; }
  nav a { padding: 6px 12px; font-size: 0.85rem; }
  main { padding: 56px 0; }
  section { padding: 36px 0; }
  .container, .container-narrow { padding: 0 20px; }
  .panel { padding: 32px 24px; }
  .blob { filter: blur(60px); opacity: 0.4; }
  .standard { flex-direction: column; gap: 12px; padding: 24px; }
  footer .container { flex-direction: column; text-align: center; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .pillar:nth-child(1), .pillar:nth-child(4) { grid-column: span 1; }
  .stats { gap: 32px; padding: 18px 24px; }
  .stat-num { font-size: 1.9rem; }
  .marquee { margin: 36px 0; }
  .marquee-track { gap: 40px; }
  .panel { padding: 28px 22px; }
  .resource { padding: 22px 24px; }
}

/* ===== Reduced motion ===== */
/* ===== Page banner (parallax, top of inner pages) ===== */
.page-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 64px;
}
.parallax-bg {
  position: absolute;
  top: -38%;
  left: 0;
  width: 100%;
  height: 176%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(45, 37, 69, 0.5) 100%);
}
.page-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
}
.page-banner-content h1 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: white;
  color: white;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
               0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
  line-height: 1.18;
  padding-bottom: 0.08em;
  max-width: 880px;
}
.page-banner-content .banner-tagline {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.15rem;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0;
  max-width: 640px;
  letter-spacing: -0.005em;
}

/* ===== Hero with banner background (homepage) ===== */
.hero {
  isolation: isolate;
}
.hero > .parallax-bg {
  z-index: -2;
  opacity: 0.6;
  top: 0;
  height: 130%;
}
.hero > .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.55) 60%,
    rgba(255, 255, 255, 0.7) 100%);
  pointer-events: none;
}

/* ===== Parallax separator (mid-page banners) ===== */
.parallax-separator {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  margin: 56px 0;
}
.parallax-separator .parallax-bg {
  top: -15%;
  height: 130%;
}
.parallax-separator-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(45, 37, 69, 0.18) 0%,
    rgba(45, 37, 69, 0.42) 100%);
}
.parallax-separator-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
               0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0 32px;
  max-width: 980px;
  margin: 0 auto;
  font-style: italic;
}

/* ===== Offset-square image pattern ===== */
.offset-image {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 32px auto;
  display: block;
}
.offset-image::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  background: var(--accent-pink);
  border-radius: 20px;
  z-index: 0;
}
.offset-image.offset-purple::before { background: var(--accent-purple); }
.offset-image.offset-mint::before   { background: var(--accent-mint); }
.offset-image.offset-blue::before   { background: var(--accent-blue); }
.offset-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(45, 37, 69, 0.18);
}

/* FAQ items */
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}
.faq-item h2 {
  font-size: 1.12rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.faq-item p { margin: 0; font-size: 0.95rem; }

/* Glossary */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.glossary-letter {
  grid-column: 1 / -1;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 28px 0 4px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.04em;
}
.glossary-letter:first-child { margin-top: 0; }
.term {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.term:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}
.term-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.term-def {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* External resource cards (link-outs to other publications) */
.resource-external {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.resource-external h2 { margin-top: 4px; }
.resource-external::after {
  content: "↗";
  position: absolute;
  top: 26px;
  right: 30px;
  color: var(--accent-purple);
  font-size: 1.35rem;
  font-weight: 700;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}
.resource-external:hover::after {
  opacity: 1;
  transform: translate(3px, -3px);
}
.resource-external .source {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,143,181,0.18), rgba(167,143,255,0.18));
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.55);
  margin: 0 0 6px;
}

/* Side-by-side panel + image */
.panel-with-image {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}
.panel-with-image .offset-image { margin: 0; max-width: 320px; }

@media (max-width: 820px) {
  .panel-with-image { grid-template-columns: 1fr; gap: 32px; }
  .panel-with-image .offset-image { margin: 0 auto; max-width: 280px; }
}

/* Mobile banner adjustments */
@media (max-width: 720px) {
  .page-banner { height: 280px; margin-bottom: 40px; }
  .page-banner-content h1 { font-size: 2.2rem; }
  .page-banner-content .banner-tagline { font-size: 0.95rem; }
  .parallax-separator { height: 220px; margin: 36px 0; }
  .parallax-separator-text { font-size: 1.25rem; padding: 0 24px; }
  .offset-image { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
  .blob, .marquee-track { display: none; }
  .marquee { display: none; }
}
