/* ============================================================================
   styles.css — Rajshree Turns 50 · "Soirée", cinematic
   ========================================================================== */
:root {
  --cream: #f3ebdb;
  --paper: #faf4ea;
  --ink: #2a2018;
  --ink-soft: #5a4a38;
  --espresso: #16110c;
  --espresso-2: #1f1810;
  --gold: #c19a51;
  --gold-bright: #ecd6a0;
  --gold-deep: #8a6f44;
  --line: rgba(193, 154, 81, .34);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--espresso);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
sup { font-size: .55em; vertical-align: super; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- type utilities ------------------------------------------------------ */
.kicker {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(11px, 1.1vw, 13px); letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold);
}
.display {
  font-family: var(--serif); font-weight: 500; line-height: 1.02;
  font-size: clamp(40px, 7vw, 96px); color: var(--ink);
}
.script { font-family: var(--serif); font-style: italic; }
.gold-text {
  color: var(--gold-bright);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text {
    background: linear-gradient(105deg, #9a7330, #c19a51 30%, var(--gold-bright) 50%, #b3893f 72%, #8a6526);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}
.gold-rule {
  height: 1px; width: 80px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.orn { color: var(--gold); letter-spacing: .5em; font-size: 13px; }

/* ---- layout -------------------------------------------------------------- */
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section-pad { padding: clamp(80px, 12vh, 150px) 0; }
.center { text-align: center; }
.cream { background: var(--cream); color: var(--ink); }
.paper { background: var(--paper); color: var(--ink); }
.dark { background: var(--espresso); color: var(--cream); }
.dark .display { color: var(--paper); }
.dark .section-eyebrow, .dark .lead { color: #cdbfa6; }

/* subtle paper grain on cream sections */
.cream::before, .paper::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(138,111,68,.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vh, 72px); }
.section-head .kicker { display: block; margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500; line-height: 1.04;
  font-size: clamp(34px, 5vw, 60px); color: inherit;
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.lead {
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.55; color: var(--ink-soft); margin-top: 20px;
}

/* ---- reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 38px; border: none; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #fff7e8;
  box-shadow: 0 10px 26px rgba(140,100,40,.35); transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(140,100,40,.45); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: rgba(193,154,81,.08); box-shadow: none; }
.dark .btn-ghost { color: var(--gold-bright); border-color: rgba(236,214,160,.4); }

/* ---- top nav ------------------------------------------------------------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 16px clamp(20px, 4vw, 44px);
  transition: background .4s, padding .4s, box-shadow .4s;
}
#nav.solid { background: rgba(22,17,12,.86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(193,154,81,.18); }
#nav .brand { display: none; }
#nav .brand b { display: none; }
#nav .links { display: flex; gap: 26px; align-items: center; }
#nav .links a {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: #d8ccb5; text-decoration: none; transition: color .2s;
}
#nav .links a:hover { color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 22px; }
@media (max-width: 860px) {
  #nav .links { display: none; }
  .nav-toggle { display: block; }
}

/* ---- entry / reveal overlay --------------------------------------------- */
#entry {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(70% 50% at 50% 38%, #2a2015 0%, transparent 60%),
    radial-gradient(120% 90% at 50% 120%, #241a10 0%, var(--espresso) 60%);
  overflow: hidden; transition: opacity 1.1s ease, visibility 1.1s;
}
#entry.gone { opacity: 0; visibility: hidden; }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-bright); opacity: 0; }
@keyframes sparkFloat {
  0% { opacity: 0; transform: translateY(8px) scale(.6); }
  30% { opacity: .9; }
  70% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}
.entry-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 30px; text-align: center; transition: opacity .6s, transform .8s; }
.entry-inner.dismiss { opacity: 0; transform: translateY(-16px); }
.seal {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 38% 32%, #d8b572, #b3893f 58%, #80591f);
  box-shadow: 0 12px 30px rgba(120,86,30,.5), inset 0 3px 6px rgba(255,255,255,.4), inset 0 -6px 14px rgba(80,50,10,.5);
  cursor: pointer; transition: transform .6s cubic-bezier(.5,-0.4,.3,1.4), opacity .6s;
  animation: sealPulse 3s ease-in-out infinite;
}
.seal::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed rgba(90,60,20,.5); }
.seal span { font-family: var(--serif); font-weight: 600; font-size: 64px; color: #5b3f12; text-shadow: 0 1px 1px rgba(255,255,255,.35); }
.seal.broken { transform: scale(1.4) rotate(12deg); opacity: 0; }
@keyframes sealPulse { 0%,100% { box-shadow: 0 12px 30px rgba(120,86,30,.5), inset 0 3px 6px rgba(255,255,255,.4), inset 0 -6px 14px rgba(80,50,10,.5), 0 0 0 0 rgba(193,154,81,.3);} 50% { box-shadow: 0 12px 34px rgba(120,86,30,.55), inset 0 3px 6px rgba(255,255,255,.4), inset 0 -6px 14px rgba(80,50,10,.5), 0 0 0 18px rgba(193,154,81,0);} }
.entry-sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px,3vw,30px); color: var(--paper); }
.tap-hint { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); animation: hintFade 2.4s ease-in-out infinite; }
@keyframes hintFade { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.secret-note { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(216,204,181,.6); z-index: 2; }

/* ---- hero ---------------------------------------------------------------- */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 30%, #241a10 0%, transparent 60%),
    linear-gradient(180deg, var(--espresso) 0%, #120d08 100%);
}
.hero-card {
  position: relative; z-index: 2; width: min(560px, 92vw);
  background: linear-gradient(180deg, #f7f0e2, #efe6d2);
  border-radius: 6px; padding: 64px 50px 54px; text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px rgba(193,154,81,.4);
}
.hero-card .frame-in { position: absolute; inset: 18px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.hero-photo {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: 50% 46%;
  margin: 0 auto 26px; border: 5px solid #fbf6ec;
  box-shadow: 0 16px 36px rgba(120,86,30,.34); outline: 1px solid var(--line);
}
.hero-name { font-family: var(--serif); font-size: clamp(40px,6vw,60px); line-height: 1; color: var(--ink); }
.hero-turns { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold-deep); margin-top: 2px; }
.hero-fifty {
  font-family: var(--serif); font-weight: 600; font-size: clamp(130px, 22vw, 200px); line-height: .8;
  margin: 6px 0 14px; background-size: 220% 100%;
  animation: shimmer 3.6s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.hero-msg { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink-soft); max-width: 380px; margin: 0 auto; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--gold); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue .chev { width: 14px; height: 14px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(4px,4px); } }

/* ---- countdown ----------------------------------------------------------- */
.countdown { display: flex; gap: clamp(16px, 4vw, 54px); justify-content: center; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-num { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 8vw, 96px); line-height: 1.12; padding: 0 .04em; }
.cd-lbl { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); margin-top: 10px; }
.dark .cd-lbl { color: var(--gold); }

/* ---- details + map ------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-list { display: flex; flex-direction: column; gap: 30px; }
.detail-item .dlbl { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.detail-item .dval { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--ink); }
.map-frame { border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.2); border: 1px solid var(--line); position: relative; background: linear-gradient(135deg, #ece2cf, #e3d6bd); min-height: 380px; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--gold-deep); font-family: var(--serif); }
.map-fallback .pin { font-size: 34px; }
.map-frame iframe { position: relative; width: 100%; height: 380px; border: 0; display: block; filter: sepia(.12) saturate(1.05); pointer-events: none; }
.map-frame { display: block; text-decoration: none; cursor: pointer; }
.map-hint { position: absolute; bottom: 12px; right: 12px; z-index: 3; padding: 8px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(22,17,12,.82); color: var(--gold-bright); opacity: 0; transition: opacity .3s; }
.map-frame:hover .map-hint { opacity: 1; }

/* ---- story timeline ------------------------------------------------------ */
.timeline { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--line); transform: translateX(-.5px); }
.tl-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; padding: 22px 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); justify-self: center; box-shadow: 0 0 0 5px rgba(193,154,81,.18); }
.tl-year { font-family: var(--serif); font-size: 30px; color: var(--gold-deep); }
.tl-text { font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--ink-soft); }
.tl-row:nth-child(odd) .tl-year { text-align: right; }
.tl-row:nth-child(odd) .tl-text { grid-column: 3; }
.tl-row:nth-child(even) .tl-year { grid-column: 3; }
.tl-row:nth-child(even) .tl-text { grid-column: 1; text-align: right; }
@media (max-width: 640px) {
  .timeline::before { left: 19px; }
  .tl-row { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; }
  .tl-dot { grid-column: 1; }
  .tl-year, .tl-text { grid-column: 2 !important; text-align: left !important; }
}

/* ---- forms (rsvp / guestbook / upload) ----------------------------------- */
.panel { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.dark .field label { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 9px; font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.dark .field input, .dark .field select, .dark .field textarea { background: rgba(255,255,255,.05); color: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,81,.16); }
.field textarea { resize: vertical; min-height: 96px; }
.choice-row { display: flex; gap: 12px; }
.choice {
  flex: 1; padding: 14px 10px; border-radius: 9px; text-align: center; font-size: 13px; line-height: 1.3;
  border: 1px solid var(--line); background: rgba(255,255,255,.5); color: var(--ink-soft); transition: all .2s;
}
.dark .choice { background: rgba(255,255,255,.05); color: #cdbfa6; }
.choice.on { background: linear-gradient(180deg,var(--gold),var(--gold-deep)); color: #fff7e8; border-color: var(--gold-deep); }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* confirmation */
.confirm { text-align: center; animation: popIn .5s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.92);} to { opacity:1; transform: none; } }
.confirm .big { font-family: var(--serif); font-size: clamp(30px,4vw,44px); color: var(--gold-deep); margin-bottom: 12px; }
.dark .confirm .big { color: var(--gold-bright); }

/* ---- guestbook ----------------------------------------------------------- */
.gb-grid { columns: 3 280px; column-gap: 22px; }
.gb-card {
  break-inside: avoid; margin-bottom: 22px; padding: 26px 26px 22px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(236,214,160,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.gb-card .msg { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--paper); }
.gb-card .who { margin-top: 16px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.empty-note { text-align: center; color: #b6a98f; font-family: var(--serif); font-style: italic; font-size: 20px; opacity: .8; }

/* ---- media gallery ------------------------------------------------------- */
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.tab { padding: 11px 24px; border-radius: 999px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); background: transparent; color: #cdbfa6; }
.tab.on { background: rgba(193,154,81,.16); color: var(--gold-bright); border-color: var(--gold); }
.masonry { columns: 4 240px; column-gap: 16px; }
@media (max-width: 700px) { .masonry { columns: 2 150px; } }
.m-item { break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: 10px; overflow: hidden; background: #241c12; box-shadow: 0 8px 24px rgba(0,0,0,.35); cursor: pointer; transition: transform .25s; }
.m-item:hover { transform: translateY(-3px); }
.m-item img, .m-item video { width: 100%; display: block; }
.m-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #f3ead9; font-size: 12px; }
.m-item .cap b { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-bright); }
.m-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; background: rgba(22,17,12,.7); color: var(--gold-bright); backdrop-filter: blur(4px); }
.play-glyph { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play-glyph::after { content: ''; width: 0; height: 0; border-left: 22px solid rgba(255,255,255,.9); border-top: 14px solid transparent; border-bottom: 14px solid transparent; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); margin-left: 6px; }

/* upload dropzone */
.dropzone { border: 1.5px dashed var(--line); border-radius: 12px; padding: 40px 24px; text-align: center; background: rgba(255,255,255,.04); transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(193,154,81,.08); }
.dropzone .dz-ic { font-size: 34px; color: var(--gold); margin-bottom: 10px; }
.dropzone .dz-main { font-family: var(--serif); font-size: 22px; color: var(--paper); }
.dropzone .dz-sub { font-size: 12px; color: #b6a98f; margin-top: 6px; letter-spacing: .04em; }

/* ---- live slideshow overlay --------------------------------------------- */
#slideshow { position: fixed; inset: 0; z-index: 90; background: #0c0805; display: none; align-items: center; justify-content: center; }
#slideshow.on { display: flex; }
#slideshow .slide-media { max-width: 88vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.7); object-fit: contain; animation: slideIn 1s ease both; }
@keyframes slideIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
#slideshow .slide-cap { position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; color: #f3ead9; }
#slideshow .slide-cap b { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold-bright); display: block; }
#slideshow .ss-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #d8ccb5; font-size: 30px; }
#slideshow .ss-count { position: absolute; top: 28px; left: 30px; color: var(--gold); font-size: 12px; letter-spacing: .2em; }

/* ---- lightbox ------------------------------------------------------------ */
#lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10,7,4,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
#lightbox.on { display: flex; }
#lightbox .lb-media { max-width: 90vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
#lightbox .lb-close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: #d8ccb5; font-size: 32px; }

/* ---- music control ------------------------------------------------------- */
#music-btn {
  position: fixed; bottom: 22px; right: 22px; z-index: 70; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(22,17,12,.8); color: var(--gold-bright); backdrop-filter: blur(8px);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .2s;
}
#music-btn:hover { transform: scale(1.07); }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 2.5px; background: var(--gold-bright); height: 5px; border-radius: 2px; }
#music-btn.playing .eq i { animation: eq 1s ease-in-out infinite; }
#music-btn.playing .eq i:nth-child(2){ animation-delay:.2s } #music-btn.playing .eq i:nth-child(3){ animation-delay:.4s } #music-btn.playing .eq i:nth-child(4){ animation-delay:.15s }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 15px; } }

/* ---- footer -------------------------------------------------------------- */
footer { padding: 70px 24px; text-align: center; background: #0e0a06; color: #8a7c64; }
footer .f-name { font-family: var(--serif); font-size: 34px; color: var(--gold-bright); margin-bottom: 10px; }
footer .f-meta { font-size: 12px; letter-spacing: .14em; line-height: 1.9; }
footer .f-secret { margin-top: 22px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }

/* toast */
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 80; background: rgba(22,17,12,.94); color: var(--paper); padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================================
   delight layer — added for the live experience
   ========================================================================== */
/* scroll progress ribbon */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 65;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .12s linear; box-shadow: 0 0 10px rgba(193,154,81,.5); }

/* hero: soft breathing glow + parallax-ready card */
#hero::after { content: ''; position: absolute; width: 80vmin; height: 80vmin; left: 50%; top: 42%;
  transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(193,154,81,.20), transparent 62%); animation: glowBreathe 7s ease-in-out infinite; }
@keyframes glowBreathe { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .9; transform: translate(-50%,-50%) scale(1.12); } }
.hero-card { transition: transform .18s ease-out; transform-style: preserve-3d; will-change: transform; }
.hero-photo { transform: translateZ(40px); }
.hero-fifty { transform: translateZ(30px); }

/* button shimmer sweep */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.btn:hover::after { left: 140%; }

/* hover lifts */
.gb-card, .map-frame { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.gb-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.4); border-color: rgba(236,214,160,.4); }
.map-frame:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.detail-item { transition: transform .3s; }
.detail-item:hover { transform: translateX(6px); }

/* animated filigree ornament for section heads */
.filigree { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 6px; }
.filigree .fl-line { height: 1px; width: 0; background: linear-gradient(90deg, transparent, var(--gold)); transition: width 1.1s ease .15s; }
.filigree .fl-line.r { background: linear-gradient(90deg, var(--gold), transparent); }
.filigree .fl-dot { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg) scale(0); transition: transform .6s cubic-bezier(.2,.8,.3,1.4) .3s; }
.reveal.in .filigree .fl-line { width: 54px; }
.reveal.in .filigree .fl-dot { transform: rotate(45deg) scale(1); }

/* per-second fade in the countdown (2D only — 3D transforms break text clip) */
.cd-num .cd-flip { display: inline-block; animation: flipIn .5s cubic-bezier(.2,.7,.2,1) both; background: linear-gradient(105deg, #9a7330, #c19a51 30%, var(--gold-bright) 50%, #b3893f 72%, #8a6526) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important; }
@keyframes flipIn { from { opacity: 0; transform: translateY(-32%); } to { opacity: 1; transform: none; } }

/* animated mini-ornament drawn on every section kicker */
.section-head .kicker { display: inline-flex; align-items: center; gap: 14px; }
.section-head .kicker::before, .section-head .kicker::after { content: ''; height: 1px; width: 0; background: linear-gradient(90deg, transparent, var(--gold)); transition: width 1s ease .25s; }
.section-head .kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }
.reveal.in .kicker::before, .reveal.in .kicker::after { width: 38px; }

/* gallery items rise in a touch */
.m-item { transition: transform .25s, box-shadow .25s; }

@media (prefers-reduced-motion: reduce) {
  #hero::after, .hero-fifty { animation: none !important; }
  .reveal { transition: opacity .4s ease !important; transform: none !important; }
}
