:root {
  --bg: #120c17;
  --bg-2: #1a1220;
  --surface: #221829;
  --line: rgba(233, 208, 160, 0.16);
  --gold: #d9b77a;
  --gold-2: #f1ddb0;
  --text: #f6efe6;
  --muted: #b3a6b0;
  --bride: #eda6b4;
  --groom: #9db8e8;
  --couple: #d9b77a;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', 'Brush Script MT', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(217, 183, 122, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(157, 120, 200, .10), transparent 60%);
  background-attachment: fixed;
}
body.lb-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.1; letter-spacing: .01em; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(217, 183, 122, .35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ic { display: inline-flex; }
.ic svg, .search svg, .field svg, .hero-search svg, .tile-dl svg, .tile-check svg, .lb-nav svg, .modal-x svg {
  width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
svg.fill { fill: currentColor !important; stroke: none !important; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.eyebrow { font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.lede { color: var(--muted); max-width: 46rem; font-size: 1.05rem; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .72em 1.25em; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font-size: .93rem; font-weight: 400;
  letter-spacing: .03em; white-space: nowrap; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-2px); border-color: rgba(233, 208, 160, .5); background: rgba(255, 255, 255, .08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.gold { background: linear-gradient(135deg, #f3dfae, #cfa765 55%, #b98d4a); color: #2a1b0c; border-color: transparent; font-weight: 500; box-shadow: 0 8px 26px -10px rgba(217, 183, 122, .7); }
.btn.gold:hover { box-shadow: 0 12px 34px -10px rgba(217, 183, 122, .95); filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.sm { padding: .5em 1em; font-size: .84rem; }
.btn.lg { padding: .95em 2em; font-size: 1.02rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--gold-2); border-bottom: 1px solid rgba(233, 208, 160, .35); padding-bottom: 2px; transition: border-color .2s, color .2s; font-weight: 400; }
.link:hover { border-color: var(--gold); color: #fff; }

/* ── top bar ── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 12px clamp(14px, 3vw, 36px);
  transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.topbar.solid, body:not([data-page="home"]) .topbar { background: rgba(18, 12, 23, .78); backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.brand-mark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; color: var(--gold-2); }
.brand-mark i { font-family: var(--script); font-size: 1.1em; color: var(--gold); margin: 0 .12em; font-style: normal; }
.nav { display: flex; gap: clamp(10px, 2vw, 26px); margin-left: 8px; }
.nav a { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 6px 0; position: relative; font-weight: 400; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav a:hover, .nav a.on { color: var(--text); } .nav a:hover::after, .nav a.on::after { right: 0; }
.search { margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); width: min(280px, 34vw); transition: border-color .2s, width .3s var(--ease); }
.search:focus-within { border-color: var(--gold); }
.search svg { color: var(--gold); flex: none; }
input { font: inherit; color: var(--text); background: none; border: 0; outline: 0; min-width: 0; width: 100%; }
input::placeholder { color: rgba(179, 166, 176, .75); }
input[type=search]::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, 92vw); background: rgba(30, 21, 37, .97); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 30px 60px -20px #000; animation: pop .25s var(--ease); }
.sr { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sr:hover { background: rgba(255, 255, 255, .06); }
.sr img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; } .sr img.sq { border-radius: 10px; }
.sr span { display: flex; flex-direction: column; line-height: 1.25; } .sr b { font-weight: 500; } .sr small { color: var(--muted); }
.sr-empty { padding: 14px; display: grid; gap: 8px; color: var(--muted); }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 96px clamp(18px, 5vw, 72px) 60px; }
.hero-bg { position: absolute; inset: -6%; z-index: 0; }
.hero-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(46px) saturate(1.25) brightness(.5); opacity: 0; transition: opacity 2.2s ease; transform: scale(1.15); }
.hero-back.on { opacity: 1; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 12, 23, .55), rgba(18, 12, 23, .25) 40%, var(--bg) 97%); }
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero-copy > * { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .15s; } .hero-copy > :nth-child(2) { animation-delay: .3s; } .hero-copy > :nth-child(3) { animation-delay: .5s; }
.hero-copy > :nth-child(4) { animation-delay: .62s; } .hero-copy > :nth-child(5) { animation-delay: .78s; } .hero-copy > :nth-child(6) { animation-delay: .92s; }
.names { font-family: var(--script); font-weight: 400; font-size: clamp(3.6rem, 9.5vw, 8.2rem); line-height: .95; margin: .18em 0 .1em; color: var(--gold-2);
  background: linear-gradient(100deg, #fff3d6 0%, #e2c283 35%, #fff6df 50%, #c99f5c 70%, #f3dfae 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rise 1s var(--ease) .3s forwards, sheen 9s linear infinite; padding: .1em .22em .18em .05em; }
.names span { display: inline-block; } .names i { font-style: normal; font-size: .62em; margin: 0 .18em; opacity: .9; }
.hero-date { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
.rule { display: inline-block; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); } .rule:last-child { transform: scaleX(-1); }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: #e6dbd0; margin-top: 18px; max-width: 30rem; }
.hero-search { margin-top: 30px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 20px; max-width: 520px; border-radius: 999px; border: 1px solid rgba(233, 208, 160, .38); background: rgba(18, 12, 23, .5); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -24px #000; }
.hero-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 183, 122, .14), 0 20px 50px -24px #000; }
.hero-search > svg { color: var(--gold); flex: none; width: 1.3em; height: 1.3em; }
.hero-cta { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.hero-arch { position: relative; justify-self: center; width: min(420px, 78vw); aspect-ratio: 3 / 4.3; animation: floaty 9s ease-in-out infinite; }
.arch { position: absolute; inset: 0; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 208, 160, .35); animation: archIn 1.4s var(--ease) both .2s; }
.arch-ring { position: absolute; inset: -14px; border-radius: 999px 999px 26px 26px; border: 1px solid rgba(233, 208, 160, .3); pointer-events: none; animation: archIn 1.6s var(--ease) both .35s; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transform: scale(1.02); transition: opacity 1.8s ease; }
.hero-slide.on { opacity: 1; animation: ken 7s ease-out forwards; }

.stats { display: flex; justify-content: center; gap: clamp(22px, 6vw, 84px); flex-wrap: wrap; padding: 26px 20px 8px; text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-2); letter-spacing: .02em; line-height: 1.1; }

/* ── sections ── */
.section { width: min(1320px, 100%); margin: 0 auto; padding: clamp(50px, 8vw, 100px) clamp(14px, 3vw, 36px) 0; }
.section-head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: clamp(26px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-style: italic; font-weight: 400; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(12px, 1.8vw, 24px); }
.album { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--surface); isolation: isolate; box-shadow: 0 24px 50px -30px #000; }
.album:first-child { grid-column: span 2; aspect-ratio: auto; min-height: 320px; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.4s var(--ease), filter .6s; }
.album::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 38%, rgba(12, 7, 16, .9)); transition: opacity .5s; }
.album::after { content: ''; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(233, 208, 160, 0); border-radius: 13px; transition: border-color .5s, inset .5s var(--ease); pointer-events: none; }
.album:hover img { transform: scale(1.07); } .album:hover::after { border-color: rgba(233, 208, 160, .55); inset: 14px; }
.album-meta { position: absolute; z-index: 3; inset: auto 0 0 0; padding: 24px; display: grid; gap: 4px; transition: transform .5s var(--ease); }
.album-meta h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-style: italic; font-weight: 400; }
.album-meta p { color: #d9cdd0; font-size: .92rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s; }
.album:hover .album-meta p { max-height: 3em; opacity: 1; }
.album-count { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 400; }

.who { padding-bottom: 30px; }
.facewall { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1.4vw, 16px); margin: 0 auto 34px; max-width: 1100px; }
.facewall-item { width: clamp(62px, 8vw, 96px); text-align: center; font-size: .78rem; color: var(--muted); display: grid; gap: 6px; }
.facewall-item img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.facewall-item:hover img { transform: scale(1.1) rotate(-2deg); border-color: var(--gold); box-shadow: 0 12px 26px -10px rgba(217, 183, 122, .7); }
.facewall-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── pages ── */
.page { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(8px, 2vw, 28px) 60px; animation: fade .5s ease; }
.page.narrow { width: min(1180px, 100%); padding-top: 96px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; font-weight: 400; }
.back:hover { color: var(--gold-2); }
.banner { position: relative; margin: 0 calc(-1 * clamp(8px, 2vw, 28px)) 22px; padding: 120px clamp(18px, 4vw, 56px) 34px; overflow: hidden; isolation: isolate; }
.banner-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; object-position: 50% 28%; z-index: -2; filter: blur(3px) brightness(.5) saturate(1.1); transform: scale(1.04); animation: bannerIn 1.6s var(--ease); }
.banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 12, 23, .5), rgba(18, 12, 23, .35) 45%, var(--bg)); }
.banner-inner { width: min(1440px, 100%); margin: 0 auto; display: grid; gap: 10px; justify-items: start; }
.banner h1, .pagehead h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-style: italic; font-weight: 400; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pagehead { display: grid; gap: 12px; margin-bottom: 22px; }
.pagehead-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.field { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); flex: 1 1 260px; max-width: 460px; }
.field:focus-within { border-color: var(--gold); } .field svg { color: var(--gold); flex: none; }
.nextalbum { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 50px auto 0; padding: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.nextalbum b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--gold-2); transition: letter-spacing .4s var(--ease); }
.nextalbum:hover b { letter-spacing: .04em; }
.empty { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty h1 { color: var(--text); }

/* ── grid ── */
.grid { display: flex; flex-direction: column; gap: var(--gap, 8px); min-height: 40vh; }
.grid-row { display: flex; gap: var(--gap, 8px); }
.tile { position: relative; flex: none; overflow: hidden; border-radius: 6px; cursor: zoom-in; animation: tileIn .7s var(--ease) both; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform 1s var(--ease); }
.tile img.on { opacity: 1; }
.tile:hover img { transform: scale(1.045); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 30%, transparent 60%, rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover .tile-shade { opacity: 1; }
.tile-names { position: absolute; left: 10px; right: 46px; bottom: 8px; font-size: .78rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); text-shadow: 0 1px 3px #000; }
.tile:hover .tile-names { opacity: 1; transform: none; }
.tile-dl, .tile-check { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(18, 12, 23, .6); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); transition: .25s var(--ease); }
.tile-dl { right: 8px; bottom: 8px; opacity: 0; transform: translateY(6px); cursor: pointer; }
.tile:hover .tile-dl { opacity: 1; transform: none; } .tile-dl:hover { background: var(--gold); color: #2a1b0c; border-color: transparent; }
.tile-check { left: 8px; top: 8px; opacity: 0; color: transparent; }
.selecting .tile { cursor: pointer; } .selecting .tile-check { opacity: 1; } .selecting .tile-dl { display: none; }
.tile.sel .tile-check { background: var(--gold); color: #2a1b0c; border-color: transparent; }
.tile.sel img { transform: scale(.94); border-radius: 6px; } .tile.sel { box-shadow: inset 0 0 0 2px var(--gold); }
.tile-play { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(18, 12, 23, .65); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 400; z-index: 1; }
.sentinel { height: 1px; }
.selectbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 14px 10px 20px; border-radius: 22px; background: rgba(30, 21, 37, .94); border: 1px solid rgba(233, 208, 160, .4); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -16px #000; animation: pop .35s var(--ease); max-width: calc(100vw - 20px); }
.selectbar-n { font-weight: 400; font-size: .92rem; }

/* ── people ── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; transition: .25s; font-weight: 400; }
.tab:hover { color: var(--text); } .tab.on { background: var(--gold); color: #2a1b0c; border-color: transparent; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 12px; }
.person { display: grid; justify-items: center; text-align: center; gap: 4px; animation: tileIn .6s var(--ease) both; }
.person-face { width: min(112px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, rgba(233, 208, 160, .5), rgba(233, 208, 160, .08)); transition: transform .4s var(--ease), box-shadow .4s; margin-bottom: 6px; }
.person.bride .person-face { background: linear-gradient(135deg, var(--bride), rgba(237, 166, 180, .15)); }
.person.groom .person-face { background: linear-gradient(135deg, var(--groom), rgba(157, 184, 232, .15)); }
.person.couple .person-face { background: linear-gradient(135deg, #fff3d6, var(--gold)); }
.person-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); }
.person:hover .person-face { transform: translateY(-5px) scale(1.05); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .8); }
.person-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.15; }
.person-name.muted { font-style: italic; font-weight: 400; font-size: 1.05rem; color: var(--gold); opacity: .8; }
.person-meta { font-size: .76rem; color: var(--muted); }

.personhead { padding: 96px clamp(8px, 2vw, 20px) 22px; display: grid; gap: 14px; }
.personhead-main { display: flex; gap: clamp(16px, 3vw, 34px); align-items: center; flex-wrap: wrap; }
.avatar { width: clamp(110px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--gold-2), rgba(233, 208, 160, .1)); flex: none; animation: archIn .9s var(--ease) both; }
.personhead.bride .avatar { background: linear-gradient(135deg, var(--bride), rgba(237, 166, 180, .1)); } .personhead.groom .avatar { background: linear-gradient(135deg, var(--groom), rgba(157, 184, 232, .1)); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.personhead-info { display: grid; gap: 10px; flex: 1 1 300px; min-width: 0; }
.name-input { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); font-style: italic; border-bottom: 1px dashed rgba(233, 208, 160, .35); padding: 2px 0 6px; transition: border-color .25s; width: 100%; }
.name-input:hover, .name-input:focus { border-bottom: 1px solid var(--gold); }
.sides { display: flex; gap: 8px; flex-wrap: wrap; }
.side { padding: .42em 1em; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); transition: .25s; font-weight: 400; }
.side::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--c); }
.side.bride { --c: var(--bride); } .side.groom { --c: var(--groom); } .side.couple { --c: var(--couple); }
.side:hover { border-color: var(--c); color: var(--text); } .side.on { background: var(--c); border-color: transparent; color: #24161d; }
.side.on::before { background: #24161d; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.co { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.co > .muted { flex: none; margin-right: 4px; }
.co-item { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; transition: .25s; }
.co-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.co-item:hover, .co-item.on { border-color: var(--gold); background: rgba(217, 183, 122, .12); }

/* ── modal ── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 11, .72); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; overflow-y: auto; }
.modal.on { opacity: 1; }
.modal-card { position: relative; width: min(440px, 100%); background: linear-gradient(180deg, #2a1e33, #1c1423); border: 1px solid rgba(233, 208, 160, .28); border-radius: 26px; padding: 30px 26px 24px; box-shadow: 0 50px 100px -30px #000; transform: translateY(18px) scale(.97); transition: transform .4s var(--ease); }
.modal.wide .modal-card { width: min(560px, 100%); }
.modal.on .modal-card { transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.namer { display: grid; gap: 16px; justify-items: center; text-align: center; }
.namer h3 { font-size: 1.9rem; font-style: italic; font-weight: 400; }
.namer .name-input { text-align: center; font-size: 2rem; }
.namer .sides { justify-content: center; }
.namer-faces { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.namer-faces img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.namer-faces img.big { width: 150px; height: 150px; border: 3px solid var(--gold); flex-basis: 150px; margin: 0 calc(50% - 75px) 6px; box-shadow: 0 20px 40px -18px rgba(217, 183, 122, .6); }
.namer-ctx { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--gold-2); padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.namer-ctx img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.namer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.progress { width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .6s var(--ease); }
.picker { display: grid; gap: 14px; } .picker h3 { font-size: 1.6rem; font-style: italic; font-weight: 400; padding-right: 30px; } .picker .field { max-width: none; flex: none; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 6px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.picker-item { display: grid; justify-items: center; gap: 4px; font-size: .82rem; padding: 6px 2px; border-radius: 14px; }
.picker-item:hover { background: rgba(255, 255, 255, .07); }
.picker-item img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; } .picker-item small { color: var(--muted); font-size: .72rem; }
.picker-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── lightbox ── */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(7, 4, 9, .97); display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s ease; }
.lb-top { display: flex; align-items: center; gap: 8px; padding: 10px clamp(10px, 2vw, 22px); z-index: 3; }
.lb-count { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-2); } .lb-time { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.lb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; font-size: .86rem; color: #ddd3d6; border: 1px solid transparent; transition: .2s; font-weight: 400; }
.lb-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; } .lb-btn.on { border-color: var(--gold); color: var(--gold-2); }
.lb-btn.gold { background: linear-gradient(135deg, #f3dfae, #c99f5c); color: #2a1b0c; font-weight: 500; } .lb-btn.gold:hover { filter: brightness(1.08); color: #2a1b0c; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(0px, 5vw, 76px); overflow: hidden; }
.lb-frame { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 100px -30px #000; animation: lbIn .45s var(--ease) both; }
.lb-frame.from-r { animation-name: lbInR; } .lb-frame.from-l { animation-name: lbInL; }
.lb-frame img, .lb-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-low { filter: blur(12px); transform: scale(1.04); } .lb-img { opacity: 0; transition: opacity .35s; } .lb-img.on { opacity: 1; }
.lb-frame.kenburns .lb-img { animation: ken 6s ease-out forwards; }
.lb-frame video { background: #000; }
.lb-faces { position: absolute; inset: 0; }
.facebox { position: absolute; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); transition: .2s; animation: fade .4s ease both; }
.facebox.named { border-color: var(--gold); } .facebox.bride { border-color: var(--bride); } .facebox.groom { border-color: var(--groom); }
.facebox span { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: rgba(18, 12, 23, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.facebox:not(.named) span { color: var(--gold-2); border-style: dashed; }
.facebox:hover { background: rgba(255, 255, 255, .12); z-index: 2; } .facebox:hover span { background: var(--gold); color: #2a1b0c; }
.lb-nav { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 1.2rem; transition: .25s var(--ease); }
.lb-nav:hover { background: var(--gold); color: #2a1b0c; transform: scale(1.08); } .lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-bottom { padding: 10px clamp(10px, 2vw, 22px) 14px; min-height: 58px; z-index: 3; }
.lb-people { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; background: rgba(255, 255, 255, .04); transition: .2s; font-weight: 400; min-height: 36px; }
.chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; } .chip:hover { border-color: var(--gold); }
.chip.bride { border-color: rgba(237, 166, 180, .55); } .chip.groom { border-color: rgba(157, 184, 232, .55); } .chip.couple { border-color: rgba(217, 183, 122, .7); }
.chip.add { padding-left: 12px; color: var(--muted); border-style: dashed; }

/* ── music player ── */
.player { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px; background: rgba(30, 21, 37, .88); border: 1px solid rgba(233, 208, 160, .3); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px #000; max-width: 46px; overflow: hidden; transition: max-width .5s var(--ease); }
.player:hover, .player:focus-within { max-width: 330px; }
.player-btn { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f3dfae, #c99f5c); color: #2a1b0c; position: relative; }
.player-btn svg { width: 16px; height: 16px; fill: currentColor; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; } .eq i { width: 3px; background: #2a1b0c; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.player.playing .eq { display: flex; } .player.playing .ic-play { display: none; }
.player.playing .player-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: ring 2.2s ease-out infinite; }
.player-info { display: grid; gap: 2px; min-width: 150px; } .player-title { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.player input[type=range] { accent-color: var(--gold); height: 12px; width: 150px; }
.player-next { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--muted); } .player-next:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.player-next svg { width: 16px; height: 16px; fill: currentColor; }
.lb-open .player { display: none; }

/* ── intro ── */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; text-align: center; background: radial-gradient(900px 600px at 50% 40%, #2c1d36, #120c17 70%); transition: opacity 1s ease, transform 1.1s var(--ease), visibility 1.1s; }
.intro.out { opacity: 0; transform: scale(1.08); visibility: hidden; }
.intro-card { display: grid; gap: 14px; justify-items: center; }
.intro-card > * { opacity: 0; animation: rise 1s var(--ease) forwards; }
.intro-card > :nth-child(1) { animation-delay: .1s; } .intro-card > :nth-child(2) { animation-delay: .35s; } .intro-card > :nth-child(3) { animation-delay: .5s; }
.intro-card > :nth-child(4) { animation-delay: .75s; } .intro-card > :nth-child(5) { animation-delay: 1s; margin-top: 16px; } .intro-card > :nth-child(6) { animation-delay: 1.2s; }
.intro .names { font-size: clamp(3.4rem, 12vw, 7.5rem); }
.seal { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--gold); font-family: var(--serif); font-size: 1.8rem; color: var(--gold-2); box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px rgba(233, 208, 160, .35); position: relative; }
.seal i { font-family: var(--script); font-style: normal; color: var(--gold); font-size: .9em; }
.seal::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(233, 208, 160, .35); animation: spin 40s linear infinite; }
.seal.sm { width: 64px; height: 64px; font-size: 1.25rem; }
button.link { background: none; }

.footer { margin-top: 70px; padding: 44px 20px 90px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: center; text-align: center; font-family: var(--serif); font-size: 1.15rem; }
.footer .muted { font-family: var(--sans); }
.toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { padding: 11px 20px; border-radius: 999px; background: #f3e6c8; color: #2a1b0c; font-size: .9rem; font-weight: 400; box-shadow: 0 16px 40px -14px #000; animation: pop .4s var(--ease); transition: opacity .4s, transform .4s; text-align: center; }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ── HV Technologies credit ── */
.hvt { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px; font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; color: var(--muted);
  border: 1px solid rgba(126, 103, 249, .35); background: linear-gradient(135deg, rgba(109, 220, 255, .08), rgba(127, 96, 249, .12)); transition: .3s var(--ease); white-space: nowrap; }
.hvt img { width: 22px; height: 19px; transition: transform .6s var(--ease); }
.hvt b { font-weight: 500; background: linear-gradient(90deg, #6DDCFF, #7F60F9 60%, #C084FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hvt:hover { border-color: #7F60F9; box-shadow: 0 10px 30px -12px rgba(127, 96, 249, .8); transform: translateY(-2px); color: var(--text); }
.hvt:hover img { transform: rotate(360deg); }
.footer .hvt { margin-top: 14px; }
.intro .hvt { margin-top: 18px; animation-delay: 1.4s !important; }
.hero-brand { position: absolute; z-index: 2; right: clamp(14px, 3vw, 36px); bottom: 18px; opacity: 0; animation: rise 1s var(--ease) 1.3s forwards; }

/* ── motion ── */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
@keyframes lbInR { from { opacity: 0; transform: translateX(46px); } }
@keyframes lbInL { from { opacity: 0; transform: translateX(-46px); } }
@keyframes ken { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
@keyframes sheen { to { background-position: -220% 0; } }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes archIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes bannerIn { from { transform: scale(1.2); opacity: 0; } }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes ring { to { transform: scale(1.5); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.selectbar { animation-name: popc; } @keyframes popc { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 860px) {
  .hero { padding-top: 84px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-arch { order: -1; width: min(250px, 58vw); }
  .hero-brand { position: static; display: flex; justify-content: center; margin-top: 26px; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-date, .hero-cta { justify-content: center; }
  .hero-search { width: 100%; }
  .album:first-child { grid-column: auto; aspect-ratio: 3 / 4; min-height: 0; }
  .albums { grid-template-columns: repeat(2, 1fr); }
  .album-meta { padding: 14px; } .album-meta p { display: none; }
  .lbl { display: none; } .lb-btn { padding: 9px; } .lb-nav { display: none; }
  .nav a[data-nav="all"] { display: none; }
  .personhead-main { justify-content: center; text-align: center; } .personhead-info { justify-items: center; } .name-input { text-align: center; }
  .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .topbar { gap: 10px; } .nav { gap: 12px; margin-left: 0; } .nav a { font-size: .68rem; letter-spacing: .12em; }
  .search { width: 40px; padding: 8px 11px; } .search:focus-within { position: absolute; left: 10px; right: 10px; width: auto; background: var(--bg-2); z-index: 2; }
  .people { grid-template-columns: repeat(3, 1fr); gap: 18px 6px; }
  .player { left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-copy > *, .intro-card > * { opacity: 1; transform: none; }
}
