@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Lato:wght@300;400&display=swap');

:root {
  --cream:      #FBF7F3;
  --warm-white: #FEFCFA;
  --pale-rose:  #F2E0D9;
  --blush:      #EDD5CB;
  --rose:       #C4806A;
  --deep-rose:  #B8604A;
  --muted-rose: #D9A494;
  --petal:      #F0C8BC;
  --grey:       #928580;
  --dark-grey:  #5C5048;
  --charcoal:   #2D2926;
  --line:       #E4D8D2;
}

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

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

::selection { background: var(--blush); color: var(--charcoal); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 3px; }

/* ─── NAV ─────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(251, 247, 243, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-name {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  z-index: 201;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-grey);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--rose); }

/* ─── HAMBURGER ───────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 201;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s, width 0.3s;
  transform-origin: center;
}

.nav-burger span:nth-child(1) { width: 22px; }
.nav-burger span:nth-child(2) { width: 16px; margin-left: auto; }
.nav-burger span:nth-child(3) { width: 22px; }

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

/* ─── MOBILE NAV DRAWER ───────────────────────── */
@media (max-width: 760px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(251, 247, 243, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 199;
  }

  .nav-links.open { max-height: 600px; }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 18px 24px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .nav-inner { padding: 0 20px; }
}

/* ─── PAGE WRAPPER ────────────────────────────── */
.page-wrapper { padding-top: 64px; }

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 40px 52px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 32%, rgba(240, 200, 188, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 82% 68%, rgba(237, 213, 203, 0.48) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 98%, rgba(228, 200, 190, 0.32) 0%, transparent 55%);
  pointer-events: none;
}

/* ─── HERO PETAL SCATTER ──────────────────────── */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-petal {
  position: absolute;
  border-radius: 50% 8% 50% 8%;
  opacity: 0;
  animation: scatterFloat var(--sd) var(--sdl) ease-in-out infinite alternate;
}

@keyframes scatterFloat {
  0%   { opacity: 0;    transform: translateY(0)     rotate(var(--sr)) scale(0.85); }
  25%  { opacity: var(--so); }
  75%  { opacity: var(--so); }
  100% { opacity: 0;    transform: translateY(-18px)  rotate(calc(var(--sr) + 25deg)) scale(1); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted-rose);
  margin-bottom: 26px;
  animation: fadeUp 1s ease both;
  position: relative;
  font-weight: 400;
}

.hero-name {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(3.8rem, 11vw, 9rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--charcoal);
  margin-bottom: 30px;
  animation: fadeUp 1s 0.15s ease both;
  position: relative;
}

.hero-rule {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--petal), var(--rose));
  margin: 0 auto 28px;
  animation: fadeUp 1s 0.28s ease both;
  position: relative;
}

.hero-tagline {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--dark-grey);
  max-width: 440px;
  line-height: 1.65;
  animation: fadeUp 1s 0.42s ease both;
  position: relative;
  margin-bottom: 40px;
}

/* ─── HEARTBEAT PLAYER ────────────────────────── */
.heartbeat-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1s 0.58s ease both;
  position: relative;
}

.heartbeat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  background: var(--warm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.heartbeat-btn:hover {
  background: var(--pale-rose);
  transform: scale(1.06);
}

.heartbeat-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--rose);
  transition: fill 0.3s;
}

.heartbeat-btn.playing {
  background: var(--rose);
  border-color: var(--rose);
  animation: pulseRing 1.4s ease infinite;
}

.heartbeat-btn.playing svg { fill: white; }

.heartbeat-label-main {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-grey);
  margin-top: 2px;
}

.heartbeat-label-sub {
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-rose);
  margin-top: -2px;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(196, 128, 106, 0.45); }
  60%  { box-shadow: 0 0 0 14px rgba(196, 128, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 128, 106, 0); }
}

/* ─── PHOTO STRIP ─────────────────────────────── */
.photo-strip-wrap {
  position: relative;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr 0.9fr;
  gap: 8px;
  padding: 40px 40px 0;
  max-width: 1120px;
  margin: 0 auto;
}

.photo-strip-item {
  overflow: hidden;
  border-radius: 2px;
  background: var(--pale-rose);
}

.photo-strip-item:nth-child(1) { aspect-ratio: 4/5; margin-top: 20px; }
.photo-strip-item:nth-child(2) { aspect-ratio: 3/4; }
.photo-strip-item:nth-child(3) { aspect-ratio: 4/5; margin-top: 14px; }
.photo-strip-item:nth-child(4) { aspect-ratio: 3/4; margin-top: 28px; }

.photo-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-strip-item:hover img { transform: scale(1.05); }

/* ─── BOTANICAL DIVIDER ───────────────────────── */
.divider-botanical {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.divider-botanical svg { width: 100%; max-width: 480px; height: 36px; overflow: visible; }

.divider { border: none; border-top: 1px solid var(--line); max-width: 1120px; margin: 0 auto; }

/* ─── SECTIONS ────────────────────────────────── */
.section {
  padding: 72px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.61rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 26px;
}

.section-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--dark-grey);
  max-width: 620px;
}

.section-body p + p { margin-top: 1.4em; }

/* ─── VIDEO SECTION ───────────────────────────── */
.video-section { padding: 0 40px 72px; max-width: 1120px; margin: 0 auto; }

.video-section-label {
  font-size: 0.61rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 2px;
  overflow: hidden;
  background: var(--pale-rose);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.video-placeholder-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-icon svg { width: 18px; height: 18px; fill: var(--rose); margin-left: 3px; }

.video-placeholder span {
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── TRIPTYCH ────────────────────────────────── */
.triptych { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }

.triptych-item { border-top: 1.5px solid var(--rose); padding-top: 22px; }

.triptych-title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.triptych-body {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--dark-grey);
  margin-bottom: 18px;
}

.text-link {
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
  border-bottom: 1px solid var(--petal);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover { color: var(--deep-rose); border-bottom-color: var(--rose); }

/* ─── PAGE HEADER ─────────────────────────────── */
.page-header {
  text-align: center;
  padding: 84px 40px 52px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(240, 200, 188, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.page-header-eyebrow {
  font-size: 0.61rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-rose);
  margin-bottom: 18px;
  position: relative;
}

.page-header-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 28px;
  position: relative;
}

.page-header-rule {
  width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--petal), var(--rose));
  margin: 0 auto;
  position: relative;
}

/* ─── ABOUT ───────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.about-photo {
  background: var(--pale-rose);
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── SERVICE BLOCKS ──────────────────────────── */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; }

.service-block { border-left: 2px solid var(--rose); padding-left: 22px; }

.service-block-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}

.service-block-value {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 5px;
}

.service-block-detail { font-size: 0.88rem; color: var(--dark-grey); line-height: 1.75; }

/* ─── GALLERY ─────────────────────────────────── */
.gallery-intro {
  text-align: center;
  padding: 0 40px 44px;
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--dark-grey);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 40px 84px;
  max-width: 1120px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--pale-rose);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 41, 38, 0);
  transition: background 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(45, 41, 38, 0.25); }

.gallery-caption {
  font-style: italic;
  font-family: 'Cormorant Garant', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* ─── LIGHTBOX ────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 41, 38, 0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

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

.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  font-weight: 300;
  transition: color 0.2s;
}

.lightbox-close:hover { color: white; }

/* ─── VIDEO SECTION ───────────────────────────── */
.video-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 84px;
}
.video-section-inner { max-width: 780px; margin: 0 auto; }
.video-section-title {
  font-family: 'Cormorant Garant', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin: 0 0 10px;
  text-align: center;
}
.video-rule {
  width: 48px; height: 1px;
  background: var(--rose);
  margin: 0 auto 40px;
}
.video-list { display: flex; flex-direction: column; gap: 52px; }
.video-figure { margin: 0; }
.video-embed-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--pale-rose);
  border-radius: 2px;
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-caption {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--grey);
  margin: 12px 0 0;
  text-align: center;
}
@media (max-width: 600px) {
  .video-section { padding: 0 20px 60px; }
}

/* ─── GUESTBOOK FORM ──────────────────────────── */
.guestbook-note {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--dark-grey);
  margin-bottom: 44px;
}

.guestbook-form { max-width: 600px; }
.form-group { margin-bottom: 26px; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey); }

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--rose); }

.form-group textarea { height: 120px; }

.btn-submit {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 14px 44px;
  font-family: 'Lato', sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.btn-submit:hover    { background: var(--rose); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── GUESTBOOK ENTRIES ───────────────────────── */
.gb-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gb-count {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.gb-sort {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dark-grey);
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}

.gb-sort:focus { border-color: var(--rose); }

.entry-card {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.entry-card:first-child { border-top: 1px solid var(--line); }

.entry-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.entry-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--charcoal);
}

.entry-relation {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-rose);
}

.entry-date {
  font-size: 0.63rem;
  color: var(--grey);
  margin-left: auto;
  white-space: nowrap;
}

.entry-message {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--dark-grey);
  margin-bottom: 14px;
}

.entry-anon { opacity: 0.4; font-style: italic; }

/* ─── REACTIONS ───────────────────────────────── */
.reactions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 5px 13px 5px 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, color 0.2s;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--dark-grey);
  line-height: 1;
  user-select: none;
}

.reaction-btn:hover {
  background: var(--pale-rose);
  border-color: var(--petal);
  transform: scale(1.05);
}

.reaction-btn.active {
  background: var(--pale-rose);
  border-color: var(--rose);
  color: var(--rose);
}

.reaction-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

.reaction-emoji {
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.reaction-count {
  min-width: 10px;
  font-size: 0.72rem;
  letter-spacing: 0;
}

/* ─── REPLY UI ────────────────────────────────── */
.reply-toggle {
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.reply-toggle:hover { color: var(--rose); }

.reply-cancel {
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  margin-left: 14px;
  padding: 0;
  transition: color 0.2s;
}

.reply-cancel:hover { color: var(--rose); }

.reply-form-wrap {
  display: none;
  margin-top: 16px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}

.reply-form-wrap.open { display: block; }

.reply-err {
  color: var(--rose);
  font-size: 0.82rem;
  margin-top: 10px;
  display: none;
}

.replies-list {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.reply-card {
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}

.reply-card:last-child { border-bottom: none; }
.reply-card .entry-name { font-size: 1.05rem; }
.reply-card .entry-message { font-size: 0.9rem; margin-bottom: 8px; }
.reply-card .reactions { margin-bottom: 0; }

.gb-empty,
.gb-loading {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--grey);
  padding: 28px 0;
}

.form-success-inline {
  display: none;
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark-grey);
  padding: 24px 0 8px;
  line-height: 1.65;
}

@keyframes entryFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.entry-card.new { animation: entryFadeIn 0.5s ease both; }

/* ─── BLOCKQUOTE ──────────────────────────────── */
.memorial-quote {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  color: var(--dark-grey);
  text-align: center;
}

.memorial-quote-attr {
  margin-top: 18px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}

/* ─── POEM BLOCK ──────────────────────────────── */
.poem-block { margin: 0 auto; max-width: 340px; }

.poem-line {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 300;
  color: var(--dark-grey);
  line-height: 1.9;
}

/* ─── FAMILY TREE ─────────────────────────────── */
.scroll-hint-mobile {
  display: none;
  font-size: 0.61rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}

@media (max-width: 900px) { .scroll-hint-mobile { display: block; } }

/* ─── 404 PAGE ────────────────────────────────── */
.error-page {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 40px 52px;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(240, 200, 188, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 70% 60%, rgba(237, 213, 203, 0.38) 0%, transparent 60%);
  pointer-events: none;
}

.error-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-rose);
  margin-bottom: 18px;
  position: relative;
  font-weight: 400;
}

.error-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 20px;
  position: relative;
}

.error-photo-wrap {
  position: relative;
  width: min(420px, 82vw);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 40px rgba(45, 41, 38, 0.1);
}

.error-photo-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center 30%;
}

.error-photo-caption {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 10px;
  margin-bottom: 32px;
}

.error-message {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  color: var(--dark-grey);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 36px;
  position: relative;
}

.error-home-link {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--charcoal);
  text-decoration: none;
  padding: 13px 36px;
  border-radius: 1px;
  transition: background 0.25s;
  position: relative;
}

.error-home-link:hover { background: var(--rose); }

/* ─── FOOTER ──────────────────────────────────── */
footer {
  position: relative;
  text-align: center;
  padding: 68px 40px 48px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 120% at 50% 110%, rgba(240, 200, 188, 0.38) 0%, transparent 60%);
  pointer-events: none;
}

.footer-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.fp {
  position: absolute;
  bottom: -30px;
  border-radius: 50% 8% 50% 8%;
  opacity: 0;
  animation: petalRise var(--d) var(--dl) ease-in-out infinite;
}

@keyframes petalRise {
  0%   { opacity: 0;    transform: translateY(0)      rotate(0deg); }
  12%  { opacity: 0.75; }
  85%  { opacity: 0.45; }
  100% { opacity: 0;    transform: translateY(-200px)  rotate(280deg) translateX(15px); }
}

.footer-heart {
  font-size: 1rem;
  color: var(--muted-rose);
  display: block;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: 0.4em;
}

.footer-name {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 10px;
  position: relative;
}

.footer-dates {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-rose);
  margin-bottom: 24px;
  position: relative;
}

.footer-rule {
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--petal), var(--rose));
  margin: 0 auto 20px;
  position: relative;
}

.footer-note {
  font-family: 'Cormorant Garant', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 2;
  position: relative;
}

.footer-link {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--rose); }

/* ─── FADE ANIMATIONS ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.fade-in.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PENTYCH (5-card grid) ───────────────────── */
.pentych {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
}
.pentych > :nth-child(1) { grid-column: 1 / 3; }
.pentych > :nth-child(2) { grid-column: 3 / 5; }
.pentych > :nth-child(3) { grid-column: 5 / 7; }
.pentych > :nth-child(4) { grid-column: 2 / 4; }
.pentych > :nth-child(5) { grid-column: 4 / 6; }

/* ─── CTA PAIR (index urgent blocks) ─────────── */
.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
}

/* Third item spans full width below the first two on desktop */
.cta-pair > :nth-child(3) {
  grid-column: 1 / -1;
}

.cta-block {
  border-left: 2px solid var(--rose);
  padding-left: 22px;
}

.cta-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.cta-detail {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--dark-grey);
  margin-bottom: 18px;
}

/* ─── PAGE HEADER ILLUSTRATION ────────────────── */
.page-header-illustration {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  opacity: 0.88;
}

.page-header-illustration svg {
  max-width: 200px;
  height: auto;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .triptych     { grid-template-columns: 1fr; gap: 40px; }
  .pentych      { grid-template-columns: 1fr 1fr; }
  .pentych > :nth-child(n) { grid-column: auto; }
  .cta-pair     { grid-template-columns: 1fr; gap: 36px; }
  .cta-pair > :nth-child(3) { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .about-photo  { aspect-ratio: 4/3; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Photo strip: horizontal scroll on tablet/mobile ── */
  .photo-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 32px 20px 16px;
    max-width: none;
    grid-template-columns: unset;
  }
  .photo-strip::-webkit-scrollbar { display: none; }

  .photo-strip-item {
    flex: 0 0 72vw;
    scroll-snap-align: start;
    margin-top: 0 !important;
    aspect-ratio: 3/4;
  }

  /* Unhide photos 3 and 4 */
  .photo-strip-item:nth-child(3),
  .photo-strip-item:nth-child(4) { display: block; }

  /* Faint scroll track line below the strip */
  .photo-strip-wrap::after {
    content: '';
    display: block;
    height: 1.5px;
    margin: 0 20px;
    background: var(--line);
    opacity: 0.4;
    border-radius: 1px;
  }
}

@media (max-width: 640px) {
  .section        { padding: 52px 20px; }
  .pentych        { grid-template-columns: 1fr; }
  .page-header    { padding: 68px 20px 40px; }
  .hero           { padding: 52px 20px 40px; min-height: 80vh; }
  .gallery-grid   { padding: 0 20px 60px; gap: 5px; }
  .gallery-intro  { padding: 0 20px 32px; }
  .video-section  { padding: 0 20px 60px; }
  footer          { padding: 52px 20px 40px; }
  .divider-botanical { padding: 8px 20px; }
  .error-page     { padding: 52px 20px 40px; }
  /* Guestbook mobile */
  .gb-controls    { gap: 12px; }
  .gb-sort        { margin-left: 0; width: 100%; }
  .entry-date     { margin-left: 0; width: 100%; }
  .reactions      { gap: 5px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding: 40px; }
  .hero-name { font-size: clamp(2.5rem, 8vw, 4.5rem); }
}

/* ─── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-petals           { display: none; }
  .page-header-illustration svg * { animation: none !important; }
}

/* ─── PRINT STYLES ────────────────────────────────────────────── */
@media print {
  #site-nav, #site-footer, .heartbeat-player,
  .guestbook-form, .guestbook-note, .guestbook-contact-note,
  .gb-controls, .gb-form-wrap, .reactions, .reply-toggle,
  .share-toggle, .share-popup, .entry-expand,
  .hero-petals, .page-header-illustration,
  .divider-botanical, .btn-submit, .video-section,
  .video-placeholder, .cta-pair, .pentych { display: none !important; }

  body {
    background: white !important;
    color: #2D2926 !important;
    font-size: 11pt;
    line-height: 1.6;
  }

  .page-wrapper  { padding: 0; }
  .entry-card    { break-inside: avoid; border-top: 1pt solid #ccc; padding: 12pt 0; margin: 0; }
  .entry-name    { font-weight: bold; font-size: 11pt; }
  .entry-date    { font-size: 9pt; color: #666; }
  .entry-message { font-size: 10pt; margin-top: 6pt; }
  .entry-message--collapsed {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  a[href]:after  { content: none !important; }

  .page-header-title { font-size: 20pt; }
  .gb-messages-wrap  { max-width: 100%; }
  .page-actions      { display: none !important; }
  .subscribe-nudge   { display: none !important; }
}


/* ─── SUBSCRIBE NUDGE ───────────────────────────────────────────── */
.subscribe-nudge {
  text-align: right;
  max-width: 960px;
  margin: -4px auto 0;
  padding: 0 40px 12px;
}
.subscribe-nudge-btn {
  font-family: 'Cormorant Garant', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.subscribe-nudge-btn:hover { color: var(--rose); border-color: var(--muted-rose); }
@media (max-width: 600px) { .subscribe-nudge { padding: 0 20px 12px; } }


/* ─── PAGE ACTIONS BAR ──────────────────────────────────────────── */
.page-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px 20px;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.pa-btn:hover { color: var(--rose); border-color: var(--muted-rose); }

.pa-divider {
  width: 1px; height: 20px;
  background: var(--line);
  margin: 0 4px;
  flex-shrink: 0;
}

.pa-email-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pa-email-input {
  font-family: 'Cormorant Garant', serif;
  font-size: 0.78rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 4px 2px;
  width: 148px;
  outline: none;
  transition: border-color 0.2s;
}
.pa-email-input::placeholder { color: var(--grey); opacity: 0.7; }
.pa-email-input:focus { border-color: var(--muted-rose); }

.pa-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.pa-submit:hover { color: var(--rose); border-color: var(--muted-rose); }

.pa-bot-field { display: none !important; }

.pa-copied {
  font-family: 'Cormorant Garant', serif;
  font-size: 0.75rem;
  color: var(--rose);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  flex-shrink: 0;
  font-style: italic;
}
.pa-copied.show { opacity: 1; }

.pa-thanks {
  font-family: 'Cormorant Garant', serif;
  font-size: 0.82rem;
  color: var(--rose);
  font-style: italic;
}

/* ─── LIGHTBOX ACTIONS ──────────────────────────────────────────── */
.lightbox-img { max-width: 90vw; max-height: 78vh; }

.lightbox-actions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}

.lb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  font-family: 'Cormorant Garant', serif;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lb-action-btn:hover {
  color: white;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.13);
}

/* ─── GALLERY NOTE ──────────────────────────────────────────────── */
.gallery-note {
  font-family: 'Cormorant Garant', serif;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--dark-grey);
  text-align: center;
  max-width: 560px;
  margin: 8px auto 0;
  padding: 24px 24px 4px;
  font-style: italic;
  opacity: 0.88;
}
