/* ---------- tokens ---------- */
:root {
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gold: #C9A86A;
  --page: #1A1D30;
}
html.framed { --page: #11131F; }
html.framed.is-light { --page: #E4DCD0; }
html.is-light:not(.framed) { --page: #F3EDE4; }

#stage.dark  { --bg: #1A1D30; --ink: #F3EDE4; --muted: #BDB8CC; --rule: #363A55; }
#stage.light { --bg: #F3EDE4; --ink: #2E2A28; --muted: #6E665F; --rule: #DCD2C4; }

/* ---------- base ---------- */
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--page); transition: background 1s ease; }
body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { opacity: .8; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
button:disabled { cursor: not-allowed; }
input, textarea { font-family: inherit; border-radius: 0; -webkit-appearance: none; appearance: none; }
input::placeholder, textarea::placeholder { color: #9A918A; }
input:focus, textarea:focus { outline: none; border-color: #7A5F3E !important; }
button:focus-visible, a:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }

#stage {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px;
  transform-origin: 0 0; overflow: hidden;
  display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400;
  transition: background 1s ease, color 1s ease;
  visibility: hidden;
}
#stage.ready { visibility: visible; }
#stage.framed { border-radius: 42px; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(201,168,106,.22); }

#atmo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#screen { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; }
#flood { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: #F6E7C8; opacity: 0; transition: opacity 1s ease; }
#flood.on { opacity: 1; }
#overlay { position: absolute; inset: 0; z-index: 25; }
#overlay:empty { display: none; }
#grain { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: .07; mix-blend-mode: screen; }
#stage.light #grain { mix-blend-mode: multiply; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }
@keyframes fall { 0% { transform: translate3d(0,-60px,0) rotate(0deg); opacity: 0; } 12% { opacity: .85; } 100% { transform: translate3d(70px,920px,0) rotate(340deg); opacity: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(2); opacity: 0; } }
@keyframes floodOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes drift { from { transform: scale(1) translateY(0); } to { transform: scale(1.08) translateY(-6px); } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes develop {
  0%   { opacity: 0; transform: translateY(-14px) rotate(9deg); filter: sepia(1) brightness(1.7) contrast(.5) blur(1.5px); }
  25%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(3deg); filter: none; }
}
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.rise { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
.fade { animation: fade 1.6s ease backwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .32s; } .d3 { animation-delay: .5s; }
.d4 { animation-delay: .7s; } .d5 { animation-delay: .95s; } .d6 { animation-delay: 1.3s; }
.draw  { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.4,0,.2,1) .2s forwards; }
.draw2 { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.4,0,.2,1) .55s forwards; }
.twinkle { animation: twinkle 4s ease-in-out infinite both; }
.fall { animation: fall 14s linear infinite both; }
.pulse { animation: pulse 2.4s ease-out infinite; }
.flood-out { animation: floodOut 1.4s ease .1s both; }
.drift { animation: drift 9s ease-in-out infinite alternate; }
.sweep { transform-origin: left center; animation: sweep 1.4s cubic-bezier(.6,0,.2,1) .4s backwards; }

/* ---------- shared type ---------- */
.serif { font-family: var(--serif); }
.kicker { font-size: 10px; font-weight: 500; letter-spacing: .32em; color: #7A5F3E; }
.h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: .98; }
.h1 i { font-style: italic; }
.label { font-size: 9px; font-weight: 500; letter-spacing: .26em; color: #6E665F; }
.ghost {
  position: absolute; right: -18px; top: -24px; pointer-events: none;
  font-family: var(--serif); font-weight: 300; font-size: 240px; line-height: 1;
  color: transparent; -webkit-text-stroke: .7px #D2BF9C;
}
.page {
  position: relative; z-index: 1; flex-grow: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 28px 32px 8px; display: flex; flex-direction: column; gap: 22px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.page::-webkit-scrollbar { display: none; }
.title-block { position: relative; display: flex; flex-direction: column; gap: 10px; }

/* ---------- sound toggle ---------- */
.snd {
  width: 30px; height: 30px; padding: 0; border-radius: 999px; background: transparent;
  border: .8px solid currentColor; color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  opacity: .8;
}
.snd i { display: block; width: 1.5px; height: 11px; background: currentColor; border-radius: 1px; transform: scaleY(.2); transform-origin: center; transition: transform .4s; }
#stage.music-on .snd i { animation: eq 1s ease-in-out infinite; }
#stage.music-on .snd i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
#stage.music-on .snd i:nth-child(3) { animation-duration: 1.2s; animation-delay: -.6s; }
#stage.music-on .snd i:nth-child(4) { animation-duration: .9s; animation-delay: -.2s; }
.snd-wrap { position: absolute; top: 30px; right: 32px; z-index: 5; }
.snd-wrap .snd { background: rgba(26,29,48,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #F3EDE4; opacity: 1; }

/* ---------- cover ---------- */
.cover-box { position: absolute; inset: 0; }
.cover {
  position: absolute; left: 50%; top: var(--ct, 0px); width: 390px; height: 844px;
  transform: translateX(-50%) scale(var(--cs, 1)); transform-origin: top center;
}
.cover .abs { position: absolute; }
.cover .top-meta { position: absolute; top: 46px; font-size: 10px; font-weight: 500; color: #BDB8CC; }
.cover .name {
  position: absolute; left: 30px; font-family: var(--serif); font-weight: 300; font-size: 58px;
  line-height: .92; letter-spacing: -.015em; color: #F3EDE4;
}
.cover .halo {
  position: absolute; left: 70px; top: 221px; width: 250px; height: 547px; border-radius: 125px 125px 0 0;
  pointer-events: none; box-shadow: 0 0 120px 40px rgba(241,214,160,.45); opacity: 0; transition: opacity 1.8s ease .4s;
}
.cover .rays { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 2s ease .6s; }
.cover .interior {
  position: absolute; left: 70px; top: 221px; width: 250px; height: 547px; border-radius: 125px 125px 0 0;
  overflow: hidden; background: #23263C; perspective: 1200px;
}
.cover .light { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease .2s; }
.cover .leaf {
  position: absolute; top: 0; width: 125px; height: 547px; background: #282B45; box-sizing: border-box; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform 2.4s cubic-bezier(.65,0,.2,1);
}
.cover .leaf > div { position: absolute; box-sizing: border-box; }
.cover .leaf-l { left: 0; border-radius: 125px 0 0 0; transform-origin: left center; }
.cover .leaf-r { left: 125px; border-radius: 0 125px 0 0; transform-origin: right center; }
.cover .seam {
  position: absolute; left: 124px; top: 40px; width: 2px; height: 507px; background: #FFE9BF;
  box-shadow: 0 0 14px 4px rgba(255,226,170,.75); opacity: .85; transition: opacity .5s ease;
}
.cover .doors { position: absolute; inset: 0; }
.cover .opener { position: absolute; inset: 0; pointer-events: none; transition: opacity .5s ease; }
.cover .open-btn, .cover .open-ring {
  position: absolute; left: 163px; top: 548px; width: 64px; height: 64px; border-radius: 999px;
  border: 1px solid var(--gold); box-sizing: border-box;
}
.cover .open-btn {
  background: #1A1D30; color: #F3EDE4; font-family: var(--serif); font-style: italic; font-size: 18px; pointer-events: auto; padding: 0;
}
.cover .enter {
  position: absolute; left: 65px; top: 440px; width: 120px; min-height: 44px; border: 1px solid #2E2A28; border-radius: 999px;
  background: transparent; color: #2E2A28; font-size: 10px; font-weight: 500; letter-spacing: .3em;
}
.cover.open .leaf-l { transform: rotateY(-104deg); }
.cover.open .leaf-r { transform: rotateY(104deg); }
.cover.open .seam, .cover.open .opener { opacity: 0; }
.cover.open .doors { pointer-events: none; }
.cover.open .light, .cover.open .halo { opacity: 1; }
.cover.open .rays { opacity: .45; }

/* ---------- journey chrome ---------- */
.jhead {
  position: relative; z-index: 3; padding: 34px 32px 0; display: flex; flex-direction: column; gap: 14px;
  transition: opacity .6s ease;
}
.jhead-row { display: flex; justify-content: space-between; align-items: center; }
.jhead-right { display: flex; align-items: center; gap: 14px; }
.brand { font-size: 10px; font-weight: 500; letter-spacing: .3em; color: var(--muted); }
.count { font-family: var(--serif); font-size: 15px; }
.count span { color: var(--muted); }
.progress { position: relative; height: 1px; background: var(--rule); }
.progress div {
  position: absolute; left: 0; top: -.5px; height: 2px; background: #2E2A28;
  transition: width .8s cubic-bezier(.6,0,.2,1);
}
#stage.dark .progress div { background: var(--gold); }

.jfoot { position: relative; z-index: 3; padding: 10px 32px 36px; display: flex; flex-direction: column; gap: 12px; transition: opacity .9s ease; }
.jfoot.hold { opacity: 0; pointer-events: none; }
.jfoot.inline { padding: 26px 0 10px; }
.jfoot.inline .hint { display: none; }
.hint { font-size: 12px; font-weight: 300; color: var(--muted); min-height: 16px; text-align: right; }
.hint.err { color: #A4564B; }
.jfoot-row { display: flex; align-items: center; justify-content: space-between; }
.back { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 500; letter-spacing: .3em; }
.next {
  min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 10px; font-weight: 500; letter-spacing: .3em;
  transition: all .3s; border: .8px solid #2E2A28; background: #2E2A28; color: #F3EDE4;
}
#stage.dark .next { border-color: var(--gold); background: var(--gold); color: #1C1A18; }
.next:disabled { border-color: #C9BFB2; background: transparent; color: #857C74; }

/* ---------- 01 film ---------- */
.film { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #22263E; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity 1s ease; }
.film .shade-t { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(#1A1D30, rgba(26,29,48,0)); transition: opacity 1s; }
.film .shade-b { position: absolute; left: 0; right: 0; bottom: 0; height: 420px; background: linear-gradient(rgba(26,29,48,0), #1A1D30 70%); transition: opacity 1s; }
.film .copy { position: absolute; left: 32px; right: 32px; bottom: 150px; display: flex; flex-direction: column; gap: 12px; }

.film-lines { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1.35; color: #E9DCCF; }
.film-rule { width: 44px; height: .6px; background: var(--gold); margin: 4px 0 2px; }
.film-punch { font-family: var(--serif); font-weight: 300; font-size: 58px; line-height: .92; letter-spacing: -.02em; color: #F3EDE4; }
.film-punch i { font-style: italic; color: var(--gold); }

/* ---------- 03 details ---------- */
.dayrow { position: relative; display: flex; align-items: flex-end; gap: 18px; padding: 6px 0 14px; }
.dayrow .line { position: absolute; left: 0; right: 0; height: .6px; background: #A88A5C; }
.bigday { font-family: var(--serif); font-weight: 300; font-size: 150px; line-height: .86; letter-spacing: -.03em; color: #B88D84; }
.sched-row { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: .6px solid #DCD2C4; }
.sched-row:last-child { border-bottom: 0; }
.sched-time { font-size: 10px; font-weight: 500; letter-spacing: .2em; color: #6E665F; width: 72px; flex-shrink: 0; }
.sched-what { font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.sub { font-size: 12px; font-weight: 300; color: #6E665F; }

.note { position: relative; margin: 0; padding: 14px 16px; background: #EAE0D2; border-left: 2px solid #C9A86A; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: #4A4440; }
.days { position: relative; display: flex; flex-direction: column; border-top: .6px solid #A88A5C; }
.dayblock { display: flex; gap: 18px; padding: 18px 0; border-bottom: .6px solid #DCD2C4; }
.dayblock:last-child { border-bottom-color: #A88A5C; }
.dayblock-num { width: 96px; flex-shrink: 0; font-family: var(--serif); font-weight: 300; font-size: 88px; line-height: .8; letter-spacing: -.03em; color: #B88D84; }
.dayblock-body { display: flex; flex-direction: column; gap: 12px; padding-top: 2px; }
.dayblock-date { font-size: 10px; font-weight: 500; letter-spacing: .3em; }
.ev { display: flex; flex-direction: column; gap: 3px; }
.ev-name { font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.mini-sched { display: flex; flex-direction: column; margin-top: 8px; border-top: .6px solid #DCD2C4; }
.mini-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: .6px solid #DCD2C4; }
.mini-time { width: 64px; flex-shrink: 0; font-size: 9px; font-weight: 500; letter-spacing: .18em; color: #6E665F; }
.mini-what { font-family: var(--serif); font-size: 17px; line-height: 1.2; }

/* ---------- 02 story ---------- */
.journey { position: relative; padding: 6px 0 4px 30px; display: flex; flex-direction: column; gap: 30px; }
.track { position: absolute; left: 6px; top: 12px; bottom: 14px; width: 1px; background: repeating-linear-gradient(#C9BFB2 0 4px, transparent 4px 8px); }
.track-fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: #7A5F3E; transition: height .25s linear; }
.stop { position: relative; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.stop.in { opacity: 1; transform: none; }
.stop .dot { position: absolute; left: -30px; top: 2px; width: 13px; height: 13px; border-radius: 999px; border: .8px solid #2E2A28; background: #F3EDE4; box-sizing: border-box; transition: background .6s ease .3s, box-shadow .6s ease .3s; }
.stop.in .dot { background: #2E2A28; box-shadow: inset 0 0 0 3px #F3EDE4; }
.stop.end .dot { border-color: #C9A86A; }
.stop.end.in .dot { background: #C9A86A; }
.stop-kicker { font-size: 10px; font-weight: 500; letter-spacing: .3em; color: #7A5F3E; }
.stop .city { font-size: 34px; }
.stop .city { margin-bottom: 8px; }
.stop:not(.in) .polaroid { animation: none; opacity: 0; }
.then { font-family: var(--serif); font-style: italic; font-size: 19px; color: #857C74; margin-top: 18px; }
.stop.end .then { margin-top: -4px; color: #2E2A28; }
.panel { position: relative; padding: 18px 0 6px; }
.chapter { position: relative; }
.chapter::after { content: ''; display: block; clear: both; }
.polaroid {
  float: right; position: relative; z-index: 2; width: 132px; margin: -22px -4px 10px 16px; padding: 7px 7px 0;
  background: #FFFDF8; box-shadow: 0 10px 24px rgba(46,42,40,.18), 0 1px 2px rgba(46,42,40,.2);
  border: 0; text-align: center; transform: rotate(3deg);
  animation: develop 2.2s cubic-bezier(.2,.7,.2,1) .25s backwards;
}
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #E4DCD0; }
.polaroid figcaption { font-family: var(--serif); font-style: italic; font-size: 14px; color: #4A4440; padding: 5px 0 7px; }
.city { font-family: var(--serif); font-size: 30px; line-height: 1; }
.when { font-size: 10px; font-weight: 500; letter-spacing: .22em; color: #6E665F; margin-top: 6px; }
.places { font-size: 9px; font-weight: 500; letter-spacing: .22em; line-height: 1.7; color: #7A5F3E; margin-top: 8px; }
.body { font-size: 13px; font-weight: 300; line-height: 1.6; color: #4A4440; margin-top: 8px; }
.swipe-hint { font-size: 11px; font-weight: 300; color: #857C74; text-align: center; margin-top: -8px; }

/* ---------- 04 venue ---------- */
.map { position: relative; height: 170px; background: #E1E3D9; overflow: hidden; }
.facts { position: relative; display: flex; flex-direction: column; }
.fact { display: flex; gap: 16px; padding: 12px 0; border-top: .6px solid #DCD2C4; }
.fact:first-child { border-top-color: #A88A5C; }
.fact:last-child { border-bottom: .6px solid #A88A5C; }
.fact .label { width: 72px; flex-shrink: 0; padding-top: 3px; letter-spacing: .24em; }
.fact .val { font-size: 13px; font-weight: 300; line-height: 1.5; }
.fact .val.serif { font-size: 19px; line-height: 1.25; font-weight: 400; }
.linkline {
  position: relative; align-self: flex-start; min-height: 44px; display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 10px; font-weight: 500; letter-spacing: .3em; border-bottom: 1px solid #2E2A28;
}

.vblock { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: .6px solid #A88A5C; }
.vname { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.vname i { font-style: italic; }
.vblock .val { font-size: 13px; font-weight: 300; line-height: 1.5; }
.vblock .linkline { margin-top: 2px; }

/* ---------- 05 rsvp ---------- */
.rgroups { position: relative; display: flex; flex-direction: column; gap: 26px; }
.rgroup { display: flex; flex-direction: column; gap: 14px; }
.glabel { font-size: 9px; font-weight: 500; letter-spacing: .24em; line-height: 1.6; color: #7A5F3E; }
.choices.compact .choice { min-height: 52px; }
.choices.compact .choice .t { font-size: 22px; }
.field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.field input, .field textarea {
  border: 0; border-bottom: .8px solid #2E2A28; background: transparent; color: #2E2A28; padding: 0;
  font-family: var(--serif); box-sizing: border-box; width: 100%;
}
.field input { min-height: 46px; font-size: 21px; }
.field textarea { padding: 8px 0; font-size: 18px; resize: none; }
.choices { position: relative; display: flex; flex-direction: column; border-top: .6px solid #DCD2C4; }
.choice {
  min-height: 58px; border: 0; border-bottom: .6px solid #DCD2C4; background: transparent; padding: 0; color: #2E2A28;
  display: flex; align-items: center; justify-content: space-between;
}
.choice .t { font-family: var(--serif); font-size: 25px; transition: all .35s ease; }
.choice .dot { width: 18px; height: 18px; border-radius: 999px; box-sizing: border-box; border: .8px solid #2E2A28; transition: all .3s; }
.choice[aria-pressed="true"] .t { font-style: italic; transform: translateX(6px); }
.choice[aria-pressed="true"] .dot { background: #2E2A28; box-shadow: inset 0 0 0 3px #F3EDE4; }
.guests { position: relative; display: flex; align-items: center; justify-content: space-between; }
.guests[hidden] { display: none; }
.seg { display: inline-flex; border: .8px solid #2E2A28; border-radius: 999px; padding: 3px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #2E2A28; font-family: var(--serif); font-size: 18px; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: #2E2A28; color: #F3EDE4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- finale ---------- */
.done-photo {
  position: relative; flex-shrink: 0; height: 46%; min-height: 240px; margin: 0 -32px -30px; pointer-events: none;
  background-size: cover; background-position: center 80%;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%);
  mask-image: linear-gradient(#000 60%, transparent 100%);
  animation: fade 2s ease backwards;
}
.done.has-photo { justify-content: flex-start; padding-top: 0; }
.done { position: relative; z-index: 1; flex-grow: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 70px 32px 40px; box-sizing: border-box; scrollbar-width: none; }
.done::-webkit-scrollbar { display: none; }
.done .glow { position: absolute; left: 50%; top: 34%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 999px; background: radial-gradient(circle, rgba(226,197,143,.22), rgba(226,197,143,0) 70%); pointer-events: none; }
.done h1 { position: relative; margin: 0; font-family: var(--serif); font-weight: 300; font-size: 50px; line-height: .98; color: #F3EDE4; }
.done .msg { position: relative; font-size: 14px; font-weight: 300; line-height: 1.65; color: #D2CEDD; max-width: 290px; }
.done .meta { position: relative; padding-top: 14px; display: flex; justify-content: space-between; font-size: 9px; font-weight: 500; letter-spacing: .28em; color: #BDB8CC; }
.pill {
  position: relative; min-height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 10px; font-weight: 500; letter-spacing: .3em; box-sizing: border-box;
}
.pill.gold { background: var(--gold); color: #1C1A18; border: 0; }
.pill.ghostline { background: transparent; color: #F3EDE4; border: .8px solid rgba(201,168,106,.7); width: 100%; }
.textlink { position: relative; align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: #F3EDE4; font-family: var(--serif); font-style: italic; font-size: 17px; text-decoration: underline; }

/* ---------- photo dump + lightbox ---------- */
.dump { position: absolute; inset: 0; background: #14162A; color: #F3EDE4; overflow-y: auto; scrollbar-width: none; animation: fade .6s ease both; }
.dump::-webkit-scrollbar { display: none; }
.dump-head {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 30px 24px 16px; background: linear-gradient(#14162A 70%, rgba(20,22,42,0));
}
.dump-title { font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1; }
.dump-title i { color: var(--gold); }
.xbtn { width: 40px; height: 40px; border-radius: 999px; border: .8px solid rgba(243,237,228,.5); background: transparent; color: #F3EDE4; font-size: 18px; padding: 0; }
.grid { columns: 2; column-gap: 10px; padding: 4px 16px 40px; }
.grid button { display: block; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: #22263E; break-inside: avoid; }
.grid img { display: block; width: 100%; height: auto; }
.lb { position: absolute; inset: 0; z-index: 3; background: rgba(10,11,20,.97); display: flex; align-items: center; justify-content: center; animation: fade .3s ease both; touch-action: pan-y; }
.lb img { max-width: calc(100% - 24px); max-height: 78%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb .xbtn { position: absolute; top: 30px; right: 20px; }
.lb .nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(243,237,228,.08); color: #F3EDE4; font-size: 18px; }
.lb .prev { left: 10px; } .lb .nextp { right: 10px; }
.lb .ct { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .3em; color: #BDB8CC; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise, .fade, .twinkle, .pulse, .drift, .sweep, .polaroid { animation: none !important; }
  .stop { opacity: 1; transform: none; transition: none; }
  .stop:not(.in) .polaroid { opacity: 1; }
  .draw, .draw2 { animation: none !important; stroke-dashoffset: 0; }
  .fall, .flood-out { display: none; }
}
