/* ==========================================================================
   Jerry Onkels Memorial — Design System & Layout
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --cream: #FAF6F0;
  --linen: #F5EDE3;
  --dusty-rose: #C4928A;
  --sage: #8A9A7B;
  --soft-brown: #8B7355;
  --walnut: #5C4A32;
  --sky-blue: #7BA7C4;
  --deep-cream: #EDE4D8;
  --text: #3D3328;
  --text-light: #6B5E50;
  --border: #DDD3C7;
  --max-width: 800px;
  --nav-height: 56px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--walnut);
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25em;
}

a {
  color: var(--dusty-rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: var(--walnut);
}

/* --- Welcome Overlay --- */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  text-align: center;
  padding: 2rem;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.welcome-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.welcome-overlay h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--walnut);
  margin-bottom: 0.25em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.welcome-overlay .dates {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  color: var(--soft-brown);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.welcome-overlay .welcome-illustration {
  max-width: 280px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  opacity: 0.85;
}

.welcome-overlay .ornament {
  width: 80px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24'%3E%3Cellipse cx='20' cy='12' rx='10' ry='4' fill='%238A9A7B' opacity='0.3' transform='rotate(-20 20 12)'/%3E%3Ccircle cx='40' cy='11' r='5' fill='%23C4928A' opacity='0.4'/%3E%3Ccircle cx='40' cy='11' r='3' fill='%23d4a69e' opacity='0.35'/%3E%3Cellipse cx='60' cy='12' rx='10' ry='4' fill='%238A9A7B' opacity='0.3' transform='rotate(20 60 12)'/%3E%3Cline x1='10' y1='14' x2='33' y2='12' stroke='%238A9A7B' stroke-width='0.6' fill='none' opacity='0.25'/%3E%3Cline x1='47' y1='12' x2='70' y2='14' stroke='%238A9A7B' stroke-width='0.6' fill='none' opacity='0.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-size: 0;
  color: transparent;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: -8px;
  background-image: url('../images/generated/hero-rose-garden.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: blur(0.75px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(40, 56, 30, 0.4) 0%,
    rgba(35, 48, 25, 0.52) 40%,
    rgba(35, 48, 25, 0.52) 60%,
    rgba(40, 56, 30, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(30, 42, 20, 0.56) 0%, rgba(30, 42, 20, 0.3) 45%, transparent 80%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #FAF6F0;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.2em;
  text-shadow: 0 2px 16px rgba(30, 42, 20, 0.5), 0 1px 3px rgba(30, 42, 20, 0.3);
}

.hero .hero-dates {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.15rem;
  color: rgba(250, 246, 240, 0.85);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(30, 42, 20, 0.4);
}

.hero .hero-epigraph {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(250, 246, 240, 0.92);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(30, 42, 20, 0.4);
}

.hero .hero-epigraph .attribution {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  color: rgba(250, 246, 240, 0.7);
  letter-spacing: 0.05em;
}

/* --- Sticky Nav --- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sticky-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sticky-nav a {
  display: block;
  padding: 1rem 1.25rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft-brown);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
}

.sticky-nav a:hover,
.sticky-nav a.active {
  color: var(--walnut);
  border-bottom-color: var(--dusty-rose);
}

/* --- Content Sections --- */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background-color: var(--linen);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 20px;
  margin: 0.75rem auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 20'%3E%3C!-- center line --%3E%3Cline x1='10' y1='10' x2='70' y2='10' stroke='%23C4928A' stroke-width='1' opacity='0.5'/%3E%3C!-- left leaf --%3E%3Cellipse cx='20' cy='9' rx='7' ry='3' fill='%238A9A7B' opacity='0.3' transform='rotate(-15 20 9)'/%3E%3C!-- right leaf --%3E%3Cellipse cx='60' cy='9' rx='7' ry='3' fill='%238A9A7B' opacity='0.3' transform='rotate(15 60 9)'/%3E%3C!-- center bud --%3E%3Ccircle cx='40' cy='10' r='3.5' fill='%23C4928A' opacity='0.4'/%3E%3Ccircle cx='40' cy='10' r='2' fill='%23d4a69e' opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.section-divider {
  text-align: center;
  margin: 3rem 0;
  font-size: 0;
  line-height: 0;
}

.section-divider::before {
  content: '';
  display: inline-block;
  width: 120px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3C!-- left leaf --%3E%3Cellipse cx='30' cy='20' rx='14' ry='6' fill='%238A9A7B' opacity='0.35' transform='rotate(-30 30 20)'/%3E%3Cline x1='22' y1='24' x2='38' y2='16' stroke='%238A9A7B' stroke-width='0.7' opacity='0.4'/%3E%3C!-- right leaf --%3E%3Cellipse cx='90' cy='20' rx='14' ry='6' fill='%238A9A7B' opacity='0.35' transform='rotate(30 90 20)'/%3E%3Cline x1='82' y1='16' x2='98' y2='24' stroke='%238A9A7B' stroke-width='0.7' opacity='0.4'/%3E%3C!-- center rose --%3E%3Ccircle cx='60' cy='18' r='7' fill='%23C4928A' opacity='0.5'/%3E%3Ccircle cx='60' cy='18' r='4.5' fill='%23C4928A' opacity='0.35'/%3E%3Ccircle cx='60' cy='18' r='2' fill='%23d4a69e' opacity='0.5'/%3E%3C!-- stem --%3E%3Cline x1='60' y1='25' x2='60' y2='34' stroke='%238A9A7B' stroke-width='1' opacity='0.4'/%3E%3C!-- stem leaves --%3E%3Cellipse cx='55' cy='30' rx='5' ry='2.5' fill='%238A9A7B' opacity='0.3' transform='rotate(-20 55 30)'/%3E%3Cellipse cx='65' cy='28' rx='5' ry='2.5' fill='%238A9A7B' opacity='0.3' transform='rotate(25 65 28)'/%3E%3C!-- connecting vine lines --%3E%3Cpath d='M38 20 Q49 17 53 18' stroke='%238A9A7B' stroke-width='0.7' fill='none' opacity='0.3'/%3E%3Cpath d='M67 18 Q71 17 82 20' stroke='%238A9A7B' stroke-width='0.7' fill='none' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.85;
}

/* --- Obituary / Text Content --- */
.text-content p:first-of-type::first-letter {
  float: left;
  font-family: 'Lora', Georgia, serif;
  font-size: 4em;
  line-height: 0.8;
  padding-right: 0.1em;
  color: var(--walnut);
  font-weight: 700;
}

.text-content p {
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* --- Pull Quotes --- */
.pull-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--dusty-rose);
  background-color: rgba(196, 146, 138, 0.08);
  border-radius: 0 4px 4px 0;
}

.pull-quote::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='14' r='6' fill='%23C4928A' opacity='0.18'/%3E%3Ccircle cx='16' cy='14' r='3.5' fill='%23C4928A' opacity='0.12'/%3E%3Cline x1='16' y1='20' x2='16' y2='28' stroke='%238A9A7B' stroke-width='0.8' opacity='0.2'/%3E%3Cellipse cx='13' cy='24' rx='4' ry='2' fill='%238A9A7B' opacity='0.15' transform='rotate(-20 13 24)'/%3E%3Cellipse cx='19' cy='22' rx='4' ry='2' fill='%238A9A7B' opacity='0.15' transform='rotate(20 19 22)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.pull-quote p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--walnut);
  margin-bottom: 0;
}

.pull-quote .attribution {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--soft-brown);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* --- Inline Illustrations --- */
.inline-illustration {
  position: relative;
  margin: 2.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(138, 154, 123, 0.15);
}

.inline-illustration img {
  width: 100%;
  display: block;
}

.inline-illustration figcaption {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: var(--linen);
  font-style: italic;
}

/* --- Photo Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-item .caption {
  padding: 0.75rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.lightbox .lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox .lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox .lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox .lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox .lightbox-prev {
  left: 1.5rem;
}

.lightbox .lightbox-next {
  right: 1.5rem;
}

/* --- Video Section --- */
.video-block {
  margin-bottom: 3rem;
}

.video-block:last-child {
  margin-bottom: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-block h3 {
  margin-top: 1rem;
  text-align: center;
}

.video-block .video-description {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* --- Eulogy Section --- */
.eulogy-content p {
  text-align: left;
}

.eulogy-content p:first-of-type::first-letter {
  float: left;
  font-family: 'Lora', Georgia, serif;
  font-size: 4em;
  line-height: 0.8;
  padding-right: 0.1em;
  color: var(--walnut);
  font-weight: 700;
}

/* --- Closing Section --- */
.closing {
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.closing::before {
  content: '';
  display: block;
  width: 160px;
  height: 40px;
  margin: 0 auto 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'%3E%3C!-- left vine --%3E%3Cpath d='M10 22 Q30 18 45 20' stroke='%238A9A7B' stroke-width='0.8' fill='none' opacity='0.3'/%3E%3Cellipse cx='22' cy='18' rx='8' ry='3.5' fill='%238A9A7B' opacity='0.2' transform='rotate(-25 22 18)'/%3E%3Cellipse cx='38' cy='22' rx='7' ry='3' fill='%238A9A7B' opacity='0.2' transform='rotate(10 38 22)'/%3E%3C!-- left bud --%3E%3Ccircle cx='52' cy='19' r='4' fill='%23C4928A' opacity='0.25'/%3E%3C!-- center rose --%3E%3Ccircle cx='80' cy='18' r='8' fill='%23C4928A' opacity='0.3'/%3E%3Ccircle cx='80' cy='18' r='5' fill='%23C4928A' opacity='0.2'/%3E%3Ccircle cx='80' cy='18' r='2.5' fill='%23d4a69e' opacity='0.3'/%3E%3Cline x1='80' y1='26' x2='80' y2='36' stroke='%238A9A7B' stroke-width='1' opacity='0.25'/%3E%3Cellipse cx='74' cy='32' rx='6' ry='2.5' fill='%238A9A7B' opacity='0.2' transform='rotate(-20 74 32)'/%3E%3Cellipse cx='86' cy='30' rx='6' ry='2.5' fill='%238A9A7B' opacity='0.2' transform='rotate(20 86 30)'/%3E%3C!-- right bud --%3E%3Ccircle cx='108' cy='19' r='4' fill='%23C4928A' opacity='0.25'/%3E%3C!-- right vine --%3E%3Cpath d='M115 20 Q130 18 150 22' stroke='%238A9A7B' stroke-width='0.8' fill='none' opacity='0.3'/%3E%3Cellipse cx='122' cy='22' rx='7' ry='3' fill='%238A9A7B' opacity='0.2' transform='rotate(-10 122 22)'/%3E%3Cellipse cx='138' cy='18' rx='8' ry='3.5' fill='%238A9A7B' opacity='0.2' transform='rotate(25 138 18)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.closing-quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--walnut);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.closing-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.8rem;
  color: var(--walnut);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.closing-dates {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--soft-brown);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
}

.closing-illustration {
  max-width: 500px;
  margin: 0 auto 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.closing-illustration img {
  width: 100%;
}

.donation-info {
  position: relative;
  background-color: var(--linen);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid rgba(196, 146, 138, 0.2);
}

.donation-info::before,
.donation-info::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cellipse cx='10' cy='26' rx='8' ry='3.5' fill='%238A9A7B' opacity='0.2' transform='rotate(-40 10 26)'/%3E%3Ccircle cx='18' cy='18' r='4' fill='%23C4928A' opacity='0.15'/%3E%3Cellipse cx='26' cy='10' rx='8' ry='3.5' fill='%238A9A7B' opacity='0.2' transform='rotate(-40 26 10)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.donation-info::before {
  top: -4px;
  left: -4px;
}

.donation-info::after {
  bottom: -4px;
  right: -4px;
  transform: rotate(180deg);
}

.donation-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.donation-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
  text-align: center;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  text-align: center;
  padding: 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--dusty-rose);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover {
  border-bottom-color: var(--dusty-rose);
}

.site-footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 20px;
  margin: 0 auto 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Ccircle cx='30' cy='10' r='4.5' fill='%23C4928A' opacity='0.25'/%3E%3Ccircle cx='30' cy='10' r='2.5' fill='%23d4a69e' opacity='0.2'/%3E%3Cellipse cx='18' cy='11' rx='8' ry='3' fill='%238A9A7B' opacity='0.2' transform='rotate(-15 18 11)'/%3E%3Cellipse cx='42' cy='11' rx='8' ry='3' fill='%238A9A7B' opacity='0.2' transform='rotate(15 42 11)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* --- Scroll Fade-In Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .welcome-overlay {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .sticky-nav ul {
    gap: 0;
  }

  .sticky-nav a {
    padding: 0.85rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }

  .lightbox .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox .lightbox-next {
    right: 0.75rem;
  }

  .lightbox .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .section-divider::before {
    width: 90px;
    height: 30px;
  }

  .closing::before {
    width: 120px;
    height: 32px;
  }

  .pull-quote {
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
  }

  .text-content p:first-of-type::first-letter,
  .eulogy-content p:first-of-type::first-letter {
    font-size: 3em;
  }
}

@media (max-width: 480px) {
  .sticky-nav a {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .gallery-item .caption {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}
