/* Rest in Peace — Memorial theme */
:root {
  --rip-bg: #08060e;
  --rip-purple: #1a1028;
  --rip-purple-glow: rgba(120, 80, 160, 0.25);
  --uk-navy: #0c1830;
  --uk-red: #8b1538;
  --uk-red-soft: rgba(139, 21, 56, 0.4);
  --gold: #b8963e;
  --gold-bright: #e8d5a3;
  --gold-dim: rgba(184, 150, 62, 0.35);
  --candle: #ffb347;
  --candle-glow: rgba(255, 180, 80, 0.45);
  --silver: #c8d0e0;
  --text: #e8eaf4;
  --text-muted: #8a94ad;
  --glass: rgba(14, 12, 24, 0.78);
  --glass-border: rgba(184, 150, 62, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --header-h: 74px;
  --radius: 18px;
  --radius-sm: 10px;
  --banner-max: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cinzel", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.rip-theme {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--rip-bg);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== BACKGROUND FX ========== */
.memorial-gradient {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--rip-purple-glow), transparent 55%),
    radial-gradient(ellipse 40% 30% at 15% 60%, rgba(139, 21, 56, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 85% 70%, rgba(12, 24, 48, 0.5), transparent),
    linear-gradient(180deg, #0d0a14 0%, var(--rip-bg) 40%, #050408 100%);
  pointer-events: none;
}

.fx-stars {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: var(--peak, 0.7); transform: scale(1.2); }
}

.fx-petals {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  width: var(--size, 12px);
  height: var(--size, 12px);
  background: radial-gradient(ellipse, rgba(180, 120, 140, 0.6) 0%, rgba(139, 21, 56, 0.2) 70%, transparent 100%);
  border-radius: 50% 0 50% 0;
  opacity: var(--opacity, 0.5);
  animation: fall var(--fall-dur, 14s) linear infinite;
  animation-delay: var(--fall-delay, 0s);
  transform: rotate(var(--rot, 0deg));
}

@keyframes fall {
  0% { transform: translateY(-5vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--opacity, 0.5); }
  90% { opacity: var(--opacity, 0.3); }
  100% { transform: translateY(110vh) translateX(var(--drift, 80px)) rotate(360deg); opacity: 0; }
}

.fx-candles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.candle-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--candle-glow) 0%, transparent 70%);
  filter: blur(40px);
  animation: candle-pulse 4s ease-in-out infinite;
}

.candle-glow-1 { top: 8%; left: 8%; animation-delay: 0s; }
.candle-glow-2 { top: 25%; right: 5%; animation-delay: -1.5s; width: 160px; height: 160px; }
.candle-glow-3 { bottom: 15%; left: 40%; animation-delay: -3s; width: 240px; height: 240px; opacity: 0.6; }

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

.light-rays {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: conic-gradient(
    from 0deg at 50% 30%,
    transparent 0deg,
    rgba(232, 213, 163, 0.03) 30deg,
    transparent 60deg,
    rgba(255, 180, 80, 0.04) 90deg,
    transparent 120deg
  );
  animation: rays-spin 120s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes rays-spin {
  to { transform: rotate(360deg); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ========== UTILITIES ========== */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.candle-border {
  position: relative;
}

.candle-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-dim), transparent 40%, var(--uk-red-soft), var(--gold-dim));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

.float-hover {
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.float-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 40px var(--rip-purple-glow);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(8, 6, 14, 0.82);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.brand img {
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 20px var(--candle-glow);
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.nav a:hover {
  color: var(--gold-bright);
}

.nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-body);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-lg { padding: 0.95rem 1.85rem; font-size: 0.92rem; }

.btn-memorial {
  background: linear-gradient(180deg, #3d2a1a 0%, #2a1f14 100%);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 24px rgba(184, 150, 62, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-memorial:hover {
  box-shadow: 0 8px 32px rgba(255, 180, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #4d3828 0%, #322518 100%);
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(200, 208, 224, 0.25);
}

.btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(4rem, 9vw, 6rem) clamp(1rem, 4vw, 2rem);
  position: relative;
}

.container { max-width: 880px; margin: 0 auto; }
.container-wide { max-width: 1000px; }

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(184, 150, 62, 0.25);
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.title-ornament::before,
.title-ornament::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.title-ornament::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.orn-cross {
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0.8;
  animation: cross-glow 3s ease-in-out infinite;
}

@keyframes cross-glow {
  0%, 100% { opacity: 0.5; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 12px var(--candle-glow); }
}

.section-sub {
  margin: 1rem auto 0;
  max-width: 440px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* ========== HERO ========== */
.hero {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 3rem;
}

.hero-shrine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cross {
  position: absolute;
  top: 18%;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  opacity: 0.12;
  animation: cross-float 8s ease-in-out infinite;
}

.cross-l { left: 8%; animation-delay: 0s; }
.cross-r { right: 8%; animation-delay: -4s; }

@keyframes cross-float {
  0%, 100% { transform: translateY(0); opacity: 0.1; }
  50% { transform: translateY(-12px); opacity: 0.18; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.memorial-halo {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.halo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  animation: halo-breathe 5s ease-in-out infinite;
}

.halo-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(184, 150, 62, 0.2);
  animation: halo-spin 30s linear infinite;
}

@keyframes halo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 30px var(--candle-glow); }
  50% { transform: scale(1.04); opacity: 0.9; box-shadow: 0 0 60px var(--candle-glow); }
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

.hero-logo {
  width: min(220px, 40vw);
  height: auto;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 80px var(--candle-glow);
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.rip-epitaph {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  color: var(--silver);
  margin: 0 0 0.35rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.shimmer-text {
  background: linear-gradient(90deg, var(--silver) 0%, var(--gold-bright) 40%, var(--silver) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.rip-dates {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.08em;
}

.memorial-divider {
  margin: 1rem auto 1.25rem;
  color: var(--gold);
  font-size: 1.25rem;
  opacity: 0.7;
  animation: pulse-slow 4s ease-in-out infinite;
}

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

.hero-cause {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.5rem;
  letter-spacing: 0.12em;
}

.hero-symbol {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
  margin: 0.25rem 0;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.pulse-glow {
  animation: symbol-glow 3s ease-in-out infinite;
}

@keyframes symbol-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(184, 150, 62, 0.3); }
  50% { text-shadow: 0 0 40px rgba(255, 180, 80, 0.5), 0 0 60px rgba(184, 150, 62, 0.3); }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.ca-box-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 1rem 1.25rem;
}

.ca-label {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

@media (min-width: 600px) {
  .ca-label { width: auto; text-align: left; }
}

.ca-value, .inline-ca, .footer-ca code {
  font-family: ui-monospace, monospace;
  font-size: clamp(0.65rem, 2vw, 0.78rem);
  word-break: break-all;
  color: var(--silver);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--gold-dim);
  background: rgba(184, 150, 62, 0.1);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover { background: rgba(184, 150, 62, 0.2); }
.btn-copy.copied { border-color: var(--gold); color: var(--gold-bright); }
.btn-copy.copied::after { content: " ✓"; }

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 40px;
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  opacity: 0.5;
  text-decoration: none;
}

.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-drop 2.2s ease infinite;
}

@keyframes scroll-drop {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.2; }
}

/* ========== ABOUT ========== */
.about-card {
  position: relative;
  padding: 2.25rem 2rem 2.25rem 2.5rem;
}

.uk-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #012169 0%, #012169 33%, #fff 33%, #fff 66%, var(--uk-red) 66%, var(--uk-red) 100%);
  opacity: 0.85;
}

.about-rip {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin: 0 0 1rem;
}

.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--silver);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.about-card p {
  margin: 0 0 1rem;
  color: rgba(232, 234, 244, 0.9);
}

.about-meme {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  padding-top: 1rem;
  border-top: 1px dashed var(--gold-dim);
  margin-top: 0.5rem !important;
}

/* ========== TWEET ========== */
.spotlight .container { max-width: 620px; }

.tweet-panel { padding: 0; overflow: hidden; }

.tweet-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.candle-flame {
  width: 8px;
  height: 14px;
  background: linear-gradient(180deg, #fff8e0 0%, var(--candle) 40%, #e85a10 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 12px var(--candle-glow);
  animation: flame-flicker 0.8s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0% { transform: scaleY(1) scaleX(1); opacity: 1; }
  100% { transform: scaleY(1.15) scaleX(0.9); opacity: 0.85; }
}

.tweet-embed-wrap {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0.5rem;
  min-height: 180px;
  background: rgba(0, 0, 0, 0.2);
}

.tweet-fallback {
  display: block;
  text-align: center;
  padding: 1rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--glass-border);
  transition: background 0.2s;
}

.tweet-fallback:hover { background: rgba(184, 150, 62, 0.08); }

/* ========== ELON TWEET GRID ========== */
.elon-section .container-wide {
  max-width: 1200px;
}

.elon-tweet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .elon-tweet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .elon-tweet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.elon-tweet-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
  padding: 1rem 0.75rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.elon-tweet-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 32px var(--rip-purple-glow);
}

.elon-tweet-cell .twitter-tweet {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.elon-tweet-cell iframe {
  margin: 0 auto !important;
  max-width: 100% !important;
  border-radius: var(--radius-sm) !important;
}

/* Loading placeholder before widget renders */
.elon-tweet-cell:empty::before,
.elon-tweet-cell blockquote:not(:has(iframe)) {
  min-height: 200px;
}

.elon-tweet-cell blockquote {
  margin: 0 !important;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ========== STEPS ========== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  padding: 1.6rem 1.35rem;
  text-align: center;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-bright);
  margin: 0 0 0.4rem;
  letter-spacing: 0.06em;
}

.steps p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.inline-ca {
  display: block;
  margin-top: 0.6rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  font-size: 0.65rem !important;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========== CHART ========== */
.chart-wrap {
  padding: 0;
  overflow: hidden;
}

.chart-wrap iframe {
  width: 100%;
  height: min(68vh, 580px);
  min-height: 460px;
  border: 0;
  display: block;
}

.chart-note {
  text-align: center;
  margin-top: 1rem;
}

.chart-note a {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-serif);
  font-style: italic;
}

.chart-note a:hover { color: var(--gold-bright); }

/* ========== JOIN US — CONTAINED BANNER ========== */
.joinus {
  padding-top: clamp(4rem, 9vw, 6rem);
}

.memorial-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  padding: 0 0.5rem;
}

.memorial-frame {
  position: relative;
  width: 100%;
  max-width: var(--banner-max);
  padding: 1.25rem 1.25rem 0.85rem;
  background: linear-gradient(165deg, rgba(20, 16, 28, 0.95) 0%, rgba(8, 6, 14, 0.98) 100%);
  border-radius: var(--radius);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--glass-border),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Corner flourishes */
.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
  z-index: 2;
}

.frame-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.frame-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.frame-bl { bottom: 42px; left: 10px; border-width: 0 0 2px 2px; }
.frame-br { bottom: 42px; right: 10px; border-width: 0 2px 2px 0; }

/* Side candles on frame */
.frame-candle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 36px;
  background: linear-gradient(180deg, #f5e6c8 0%, #d4b896 100%);
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.frame-candle-l { left: -6px; }
.frame-candle-r { right: -6px; }

.frame-candle .flame {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 16px;
  background: linear-gradient(180deg, #fffacd 0%, var(--candle) 50%, #c44 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 16px var(--candle-glow);
  animation: flame-flicker 0.7s ease-in-out infinite alternate;
}

.banner-img-wrap {
  position: relative;
  width: 100%;
  border-radius: calc(var(--radius-sm) - 2px);
  overflow: hidden;
  background: #0a0810;
  border: 1px solid rgba(184, 150, 62, 0.2);
  /* Contain banner — aspect ratio friendly */
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 6, 14, 0.15) 0%,
    transparent 25%,
    transparent 75%,
    rgba(8, 6, 14, 0.35) 100%
  );
  pointer-events: none;
}

.banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.frame-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

.joinus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
}

.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.85rem 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.join-icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
  color: var(--gold);
}

.join-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.join-url {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 4, 10, 0.95);
  text-align: center;
}

.footer-candles {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.25rem;
}

.fc-flame {
  display: block;
  width: 8px;
  height: 14px;
  background: linear-gradient(180deg, #fff8e0, var(--candle), #c44);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 14px var(--candle-glow);
  animation: flame-flicker 0.9s ease-in-out infinite alternate;
}

.fc-flame:nth-child(2) { animation-delay: -0.3s; }
.fc-flame:nth-child(3) { animation-delay: -0.6s; }

.footer-logo {
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  margin-bottom: 0.75rem;
}

.memorial-halo-sm {
  box-shadow: 0 0 24px var(--candle-glow);
}

.footer-rip {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-bright) !important;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem !important;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer strong { color: var(--gold-bright); }

.disclaimer { font-size: 0.76rem !important; opacity: 0.7; }

.footer-ca code { font-size: 0.68rem; }

/* ========== MOBILE ========== */
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header { justify-content: space-between; }
  .site-header .btn-sm { margin-left: auto; }
  .hero-cta .btn { width: 100%; max-width: 260px; }
  .scroll-hint { display: none; }
  .frame-candle { display: none; }
  .memorial-frame { padding: 0.85rem; }
  .banner-img-wrap { aspect-ratio: 4 / 3; }
  .about-card { padding: 1.75rem 1.25rem 1.75rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .star, .petal, .candle-glow, .light-rays, .halo-ring,
  .shimmer-text, .pulse-glow, .cross, .orn-cross,
  .candle-flame, .fc-flame, .frame-candle .flame,
  .scroll-hint span, .memorial-divider { animation: none !important; }
}
