:root {
  --cream: #faf7f0;
  --cream2: #f3ede0;
  --green: #1c4a35;
  --green-light: #2d6b50;
  --gold: #b8933f;
  --gold-light: #d4af5a;
  --gold-pale: #f0e0b0;
  --dark: #1a1a1a;
  --text: #3a3028;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
}

/* ─── COVER ─── */
#cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1e4a35 0%, #0d2a1e 60%, #071a12 100%);
  perspective: 1200px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}
#cover.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.cover-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.cover-script {
  font-family: 'Dancing Script', cursive;
  color: var(--gold-light);
  font-size: clamp(16px, 4vw, 24px);
  display: block;
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cover-caps {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
  font-size: clamp(11px, 2.5vw, 15px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 300;
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

.envelope-scene {
  position: relative;
  width: min(340px, 86vw);
  animation: floatEnv 4s ease-in-out infinite;
}
@keyframes floatEnv {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cover-names {
  font-family: 'Dancing Script', cursive;
  color: var(--gold-light);
  font-size: clamp(24px, 6vw, 34px);
  text-align: center;
  margin-top: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cover-cta {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(240,224,176,0.65);
  border: 1px solid rgba(184,147,63,0.35);
  padding: 10px 28px;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
  font-family: 'Lato', sans-serif;
  display: inline-block;
}
.cover-cta:hover { color: var(--gold-light); border-color: rgba(184,147,63,0.65); }

/* floral corners */
.floral {
  position: absolute;
  pointer-events: none;
  animation: floralSway 6s ease-in-out infinite;
}
.floral-tl { top: -10px; left: -10px; transform-origin: top left; }
.floral-tr { top: -10px; right: -10px; transform-origin: top right; }
.floral-bl { bottom: -10px; left: -10px; transform-origin: bottom left; }
.floral-br { bottom: -10px; right: -10px; transform-origin: bottom right; }
.floral-ml { top: 50%; left: -10px; transform: translateY(-50%); transform-origin: left center; }
.floral-mr { top: 50%; right: -10px; transform: translateY(-50%); transform-origin: right center; }
.floral-tl, .floral-bl { animation-delay: 0s; }
.floral-tr, .floral-br { animation-delay: -3s; }
.floral-ml { animation-delay: -1.5s; }
.floral-mr { animation-delay: -4.5s; }
.floral-ml, .floral-mr { animation-name: floralSway2; }

@keyframes floralSway {
  0%,100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(2deg) scale(1.02); }
  66% { transform: rotate(-1.5deg) scale(0.99); }
}
@keyframes floralSway2 {
  0%,100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(calc(-50% - 8px)) rotate(1.5deg); }
}

.mini-flower {
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
  animation: miniFade var(--mf-dur) ease-in-out var(--mf-delay) infinite;
}
@keyframes miniFade {
  0%,100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.6; transform: scale(1.1) rotate(5deg); }
}

@media (max-width: 500px) {
  .floral { transform: scale(0.6); }
  .floral-tl { top: -50px; left: -50px; }
  .floral-tr { top: -50px; right: -50px; }
  .floral-bl { bottom: -50px; left: -50px; }
  .floral-br { bottom: -50px; right: -50px; }
  .floral-ml, .floral-mr { display: none; }
}

/* particles */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: rise var(--dur) ease-in var(--delay) infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(0); opacity: 0.8; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ─── MAIN CONTENT ─── */
#main { opacity: 0; transition: opacity 1s ease; }
#main.visible { opacity: 1; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/IMG_1812.JPG.jpeg');
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
  transform: scale(1.1);
  transition: transform 0.1s linear;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8933f' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  color: var(--cream);
}
.hero-bismillah {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 4vw, 20px);
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 24px;
  font-style: italic;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0.85;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
}
.hero-names .bride {
  font-size: clamp(64px, 18vw, 120px);
  display: block;
  letter-spacing: -0.02em;
}
.hero-names .amp {
  font-size: clamp(36px, 10vw, 70px);
  font-style: italic;
  color: var(--gold-light);
  display: block;
  margin: -10px 0;
}
.hero-names .groom {
  font-size: clamp(64px, 18vw, 120px);
  display: block;
  letter-spacing: -0.02em;
}
.hero-date {
  margin-top: 32px;
  font-size: clamp(12px, 3vw, 15px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.gold-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px auto;
  max-width: 260px;
}
.gold-divider::before, .gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}
.gold-divider::after { background: linear-gradient(to left, transparent, var(--gold-light)); }
.gold-divider span { color: var(--gold-light); font-size: 18px; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
  z-index: 3;
}
.scroll-hint::after {
  content: '↓';
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 16px;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── SECTIONS ─── */
section { padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px); }
.section-label {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 300;
  text-align: center;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: #7a6a5a;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── AYAT ─── */
.ayat-section {
  background: var(--green);
  text-align: center;
  padding: clamp(50px, 8vw, 80px) clamp(24px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.ayat-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af5a' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.ayat-arabic {
  font-size: clamp(22px, 5vw, 36px);
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.ayat-text {
  color: rgba(255,255,255,0.75);
  font-size: clamp(12px, 2.5vw, 15px);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 16px;
  position: relative; z-index: 1;
}
.ayat-ref { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; position: relative; z-index: 1; }

/* ─── COUPLE ─── */
.couple-section { background: var(--cream); }
.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  max-width: 800px;
  margin: 48px auto 0;
}
@media (max-width: 600px) {
  .couple-grid { grid-template-columns: 1fr; max-width: 360px; }
}
.person-card { position: relative; perspective: 800px; cursor: default; }
.person-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(28,74,53,0.15), 0 0 0 1px rgba(184,147,63,0.15);
}
.person-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; display: block; }
.person-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(28,74,53,0.95) 0%, transparent 100%);
  padding: 40px 20px 20px;
  color: white;
  text-align: center;
}
.person-role { font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.person-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 5vw, 32px); font-weight: 300; letter-spacing: 0.03em; margin-bottom: 6px; }
.person-fullname { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.person-parents { font-size: 11px; color: var(--gold-light); margin-top: 4px; line-height: 1.5; }

/* ─── EVENTS ─── */
.events-section { background: var(--cream2); }
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  max-width: 860px;
  margin: 48px auto 0;
}
@media (max-width: 640px) {
  .events-grid { grid-template-columns: 1fr; max-width: 400px; }
}
.event-card {
  background: var(--cream);
  border: 1px solid var(--gold-pale);
  padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 40px);
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 30px rgba(28,74,53,0.08);
}
.event-card:hover { transform: translateY(-6px) rotateX(2deg); box-shadow: 0 24px 60px rgba(28,74,53,0.15); }
.event-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(28,74,53,0.25);
}
.event-name { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.event-date { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 4vw, 30px); font-weight: 300; color: var(--green); margin-bottom: 6px; }
.event-time { font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 14px; }
.event-venue { font-size: 12px; color: #7a6a5a; line-height: 1.7; }

/* card corner ornament */
.card-corner { position: absolute; width: 20px; height: 20px; }
.card-corner.tl { top: 10px; left: 10px; border-top: 1px solid var(--gold-pale); border-left: 1px solid var(--gold-pale); }
.card-corner.tr { top: 10px; right: 10px; border-top: 1px solid var(--gold-pale); border-right: 1px solid var(--gold-pale); }
.card-corner.bl { bottom: 10px; left: 10px; border-bottom: 1px solid var(--gold-pale); border-left: 1px solid var(--gold-pale); }
.card-corner.br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--gold-pale); border-right: 1px solid var(--gold-pale); }

/* ─── COUNTDOWN ─── */
.countdown-section { background: var(--green); text-align: center; padding: clamp(50px, 8vw, 80px) 24px; }
.countdown-label { font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-bottom: 32px; }
.countdown-grid { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); }
.countdown-item { text-align: center; min-width: 60px; }
.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  display: block;
}
.countdown-unit { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 12vw, 80px);
  color: var(--gold);
  align-self: flex-start;
  line-height: 1;
  opacity: 0.5;
}

/* ─── GALLERY ─── */
.gallery-section { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1.5vw, 12px);
  max-width: 960px;
  margin: 40px auto 0;
  grid-auto-rows: 1fr;
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--cream2);
  transform: perspective(600px) rotateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
  aspect-ratio: 3/4;
}
.gallery-item:hover { transform: perspective(600px) scale(1.03) rotateY(-2deg); box-shadow: 0 20px 50px rgba(28,74,53,0.2); z-index: 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* lightbox */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
#lightbox-close { position: absolute; top: 20px; right: 24px; color: white; font-size: 32px; cursor: pointer; opacity: 0.7; line-height: 1; }

/* ─── MAP ─── */
.map-section { background: var(--cream2); }
.map-container { max-width: 800px; margin: 40px auto 0; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(28,74,53,0.15); position: relative; }
.map-img { width: 100%; aspect-ratio: 16/9; background: var(--green); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.map-pin { font-size: 40px; }
.map-address { color: rgba(255,255,255,0.8); font-size: 13px; text-align: center; max-width: 340px; line-height: 1.7; padding: 0 20px; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--gold); color: white;
  text-decoration: none; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.3s;
}
.map-link:hover { background: var(--gold-light); }

/* ─── GIFT ─── */
.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 40px);
  max-width: 720px;
  margin: 48px auto 0;
}
@media (max-width: 600px) {
  .gift-grid { grid-template-columns: 1fr; max-width: 360px; }
}
.gift-card {
  background: var(--cream);
  border: 1px solid var(--gold-pale);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 32px);
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(28,74,53,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gift-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(28,74,53,0.13); }
.gift-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 2px solid var(--gold-pale); box-shadow: 0 4px 16px rgba(28,74,53,0.15); }
.gift-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.gift-role { font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.gift-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--green); margin-bottom: 16px; }
.gift-bank { height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bank-badge { display: inline-block; padding: 5px 18px; border-radius: 3px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.bank-badge.bca { background: #005baa; color: white; }
.bank-badge.mandiri { background: #003d82; color: #f0c040; }
.gift-account-name { font-size: 12px; color: #7a6a5a; margin-bottom: 12px; }
.gift-account-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--cream2); border: 1px solid var(--gold-pale); padding: 10px 16px; border-radius: 2px; }
.gift-account-num { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--green); letter-spacing: 0.12em; }
.copy-btn {
  background: var(--green); color: var(--gold-light);
  border: none; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 6px 12px; cursor: pointer;
  border-radius: 2px; transition: background 0.2s; white-space: nowrap;
  font-family: 'Lato', sans-serif;
}
.copy-btn:hover { background: var(--green-light); }
.copy-btn.copied { background: var(--gold); color: white; }

/* ─── RSVP ─── */
.rsvp-section { background: var(--cream); text-align: center; }
.rsvp-form { max-width: 480px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 14px; }
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--gold-pale);
  background: white; font-family: 'Lato', sans-serif;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.3s; border-radius: 2px;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus { border-color: var(--gold); }
.rsvp-form textarea { resize: vertical; min-height: 90px; }
.rsvp-btn {
  padding: 14px 48px;
  background: var(--green); color: var(--gold-light);
  border: none; font-family: 'Lato', sans-serif;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: background 0.3s;
  align-self: center; margin-top: 6px;
}
.rsvp-btn:hover { background: var(--green-light); }
#rsvp-success {
  display: none;
  color: var(--green);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  margin-top: 16px;
  font-style: italic;
}

/* ─── FOOTER ─── */
footer { background: var(--green); text-align: center; padding: 50px 24px; }
.footer-names { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 8vw, 60px); font-weight: 300; color: var(--cream); margin-bottom: 16px; }
.footer-names .amp { color: var(--gold-light); font-style: italic; }
.footer-sub { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.7; }

/* ─── LOVE STORY ─── */
.love-story-section { background: var(--cream2); }

.story-opening {
  max-width: 600px;
  margin: 32px auto 56px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 3vw, 20px);
  font-style: italic;
  color: var(--green);
  line-height: 1.9;
  padding: 28px 40px;
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
  position: relative;
}

.story-timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 80px;
}
.story-timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-pale) 8%, var(--gold-pale) 92%, transparent);
}

.story-item {
  position: relative;
  margin-bottom: 40px;
}
.story-item:last-child { margin-bottom: 0; }

.story-marker {
  position: absolute;
  left: -80px;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  top: 10px;
}
.story-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-light);
  border: 2px solid var(--cream2);
  box-shadow: 0 0 0 2px var(--green-light);
  flex-shrink: 0;
}
.story-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
  width: 16px; height: 16px;
}
.story-year {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  text-align: center;
  line-height: 1.4;
}
.story-year--gold { color: var(--gold); font-weight: 700; }

.story-card {
  background: var(--cream);
  border: 1px solid var(--gold-pale);
  padding: clamp(20px, 4vw, 32px);
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(28,74,53,0.06);
  position: relative;
}
.story-card::before {
  content: '';
  position: absolute;
  left: -8px; top: 14px;
  width: 14px; height: 14px;
  background: var(--cream);
  border-left: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
  transform: rotate(45deg);
}
.story-card--highlight {
  border-color: rgba(184,147,63,0.35);
  background: linear-gradient(135deg, #fff 0%, #fffef9 100%);
}
.story-card--highlight::before { background: #fff; }
.story-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--green);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.story-card p { font-size: 14px; line-height: 1.9; color: #6a5a4a; }

.story-signature {
  text-align: center;
  margin-top: 60px;
  padding-top: 8px;
}
.story-signature-line {
  width: 60px; height: 1px;
  background: var(--gold-pale);
  margin: 0 auto 20px;
}
.story-signature-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(22px, 5vw, 34px);
  color: var(--green);
  margin-bottom: 6px;
}
.story-signature-role {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 500px) {
  .story-timeline { padding-left: 60px; }
  .story-timeline::before { left: 25px; }
  .story-marker { left: -60px; width: 52px; }
  .story-opening { padding: 20px 24px; }
}

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── MUSIC BTN ─── */
#music-btn {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 500; width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 18px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
#music-btn.shown { display: flex; }
#music-btn:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
