* { box-sizing: border-box; }

:root {
    color-scheme: dark;
    --ink: #f8fafc;
    --muted: #a5adbf;
    --panel: rgba(18, 23, 40, .66);
    --panel-strong: rgba(13, 17, 31, .88);
    --line: rgba(255, 255, 255, .1);
    --shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #0c101f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--secondary) 30%, transparent), transparent 34rem),
        radial-gradient(circle at 85% 75%, color-mix(in srgb, var(--primary) 25%, transparent), transparent 32rem),
        linear-gradient(145deg, #10162c, #090c17 72%);
    background-position: center;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.ambient {
    position: fixed;
    width: 320px;
    height: 320px;
    z-index: -1;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .22;
    pointer-events: none;
}
.ambient-one { background: var(--primary); top: 10%; left: -140px; }
.ambient-two { background: var(--secondary); right: -140px; bottom: 8%; }

.glass {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-header {
    width: min(1160px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 14px;
    z-index: 40;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.brand img, .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    object-fit: cover;
}
.brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 34%, transparent);
}

.site-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.nav-link {
    color: var(--muted);
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    transition: .2s ease;
}
.nav-link:hover { color: white; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.07); }
.nav-link.active {
    color: white;
    border-color: color-mix(in srgb, var(--primary) 48%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 72%, transparent), color-mix(in srgb, var(--secondary) 72%, transparent));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 24%, transparent);
}

.site-main {
    width: min(1160px, calc(100% - 32px));
    margin: 38px auto 72px;
    min-height: calc(100vh - 230px);
}

.page-enter { animation: page-enter .42s ease both; }
@keyframes page-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.eyebrow {
    margin: 0 0 8px;
    color: color-mix(in srgb, var(--primary) 76%, white);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }

.home-grid {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.55fr);
    gap: 24px;
    align-items: stretch;
}

.profile-card, .donation-card, .page-hero, .wife-hero, .story-card, .about-card {
    border-radius: 30px;
}

.profile-card {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    padding: 46px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-glow {
    position: absolute;
    inset: 0 0 auto;
    height: 190px;
    background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--secondary) 55%, transparent), transparent 72%);
    opacity: .55;
}

.avatar {
    position: relative;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 8px rgba(255,255,255,.035), 0 22px 52px color-mix(in srgb, var(--primary) 30%, transparent);
    margin-bottom: 25px;
}
.avatar-placeholder {
    display: grid;
    place-items: center;
    font-size: 3.2rem;
    font-weight: 950;
    background: linear-gradient(145deg, var(--secondary), var(--primary));
}

.profile-card h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.game-id {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d5d9e5;
    background: rgba(255,255,255,.045);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9rem;
}
.profile-bio { color: var(--muted); line-height: 1.75; margin: 24px 0 28px; }

.social-row {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
}
.social-row a {
    flex: 1 1 98px;
    min-width: 98px;
    max-width: 150px;
    min-height: 46px;
    padding: 6px 12px 6px 7px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    background: rgba(255,255,255,.055);
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 24px rgba(0,0,0,.12);
    font-size: .78rem;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.social-row a strong { font-weight: 800; letter-spacing: -.01em; }
.social-row a span { width: 32px; height: 32px; flex: 0 0 32px; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; color: white; background: rgba(255,255,255,.1); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.social-row a span img { width: 18px; height: 18px; display: block; object-fit: contain; }
.social-row a.social-facebook span,
.social-row a.social-spotify span { background: transparent; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.social-row a.social-facebook span img,
.social-row a.social-spotify span img { width: 32px; height: 32px; }
.social-row a.social-instagram span { background: linear-gradient(145deg, #6228d7 6%, #ee2a7b 52%, #f9ce34 100%); }
.social-row a.social-instagram span img { width: 17px; height: 17px; }
.social-row a.social-discord span { background: #5865f2; }
.social-row a.social-discord span img { width: 20px; height: 15px; }
.social-row a:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.095); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.social-row a.support-link {
    color: white;
    border-color: color-mix(in srgb, var(--primary) 38%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 30%, transparent), color-mix(in srgb, var(--secondary) 24%, transparent));
}
.social-row a.support-link span { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.profile-card .social-row {
    width: min(100%, 310px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.profile-card .social-row a {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 50px;
    padding: 7px 14px 7px 8px;
}
.profile-card .social-row a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 150px);
    justify-self: center;
}
.profile-card .social-row a.social-facebook:hover { border-color: rgba(24,119,242,.56); box-shadow: 0 14px 30px rgba(24,119,242,.14); }
.profile-card .social-row a.social-instagram:hover { border-color: rgba(238,42,123,.5); box-shadow: 0 14px 30px rgba(238,42,123,.13); }
.profile-card .social-row a.social-spotify:hover { border-color: rgba(29,185,84,.5); box-shadow: 0 14px 30px rgba(29,185,84,.13); }
.profile-card .social-row a.social-discord:hover { border-color: rgba(88,101,242,.55); box-shadow: 0 14px 30px rgba(88,101,242,.15); }

.donation-card { padding: clamp(24px, 4vw, 40px); min-height: 610px; }
.spotlight-panel { display: grid; gap: 20px; }
.spotlight-panel .section-heading > p:last-child { margin-bottom: 0; }
.spotlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spotlight-grid.is-single { grid-template-columns: 1fr; }
.spotlight-item { position: relative; min-width: 0; }
.spotlight-item .photo-card { height: 100%; border-color: rgba(255,255,255,.12); background: linear-gradient(165deg, rgba(236,72,153,.08), rgba(139,92,246,.08)), #101627; }
.spotlight-item .photo-media { aspect-ratio: 4 / 4.35; }
.spotlight-grid.is-single .photo-media { aspect-ratio: 16 / 8.5; }
.spotlight-item .photo-main { width: 100%; height: 100%; object-fit: cover; }
.spotlight-badge { position: absolute; left: 11px; top: 11px; z-index: 5; max-width: calc(100% - 56px); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 8px 11px; display: grid; gap: 2px; color: white; background: rgba(8,12,23,.76); box-shadow: 0 10px 28px rgba(0,0,0,.28); backdrop-filter: blur(12px); pointer-events: none; }
.spotlight-badge strong { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.spotlight-badge small { color: #fbcfe8; font-size: .68rem; font-weight: 800; }
.spotlight-empty { min-height: 390px; border: 1px dashed rgba(255,255,255,.14); border-radius: 24px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 28px; color: var(--muted); text-align: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 55%); }
.spotlight-empty span { color: var(--primary); font-size: 3.2rem; }
.spotlight-empty h3, .spotlight-empty p { margin: 0; }
.section-heading h2 { margin-bottom: 9px; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.section-heading > p:last-child { color: var(--muted); margin: 0 0 30px; }
.bank-layout { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(250px, 1.28fr); gap: 24px; align-items: start; }
.qr-wrap { min-width: 0; }
.qr-button { width: 100%; border: 0; padding: 12px; background: white; border-radius: 22px; cursor: zoom-in; box-shadow: 0 20px 48px rgba(0,0,0,.28); transition: .22s ease; }
.qr-button:hover { transform: translateY(-4px) scale(1.01); }
.qr-button img { width: 100%; border-radius: 13px; }
.qr-placeholder {
    min-height: 280px;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: 22px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: var(--muted);
    background: rgba(255,255,255,.03);
    text-align: center;
    padding: 25px;
}
.qr-placeholder span { font-size: 4rem; color: var(--primary); }
.qr-placeholder p { margin: 0; line-height: 1.5; }
.bank-info { display: grid; gap: 12px; }
.info-box, .transfer-note {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 16px 18px;
    background: rgba(255,255,255,.045);
}
.info-box span, .transfer-note span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.info-box strong { display: block; font-size: 1.18rem; letter-spacing: .03em; }
.info-copy { padding-right: 92px; }
.info-copy button, .transfer-note button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    min-height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: white;
    padding: 8px 10px;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.info-copy button:hover, .transfer-note button:hover { border-color: color-mix(in srgb, var(--primary) 58%, white); background: var(--primary); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 26%, transparent); }
.transfer-note { margin-top: 4px; padding-right: 92px; background: color-mix(in srgb, var(--primary) 12%, rgba(0,0,0,.24)); border-color: color-mix(in srgb, var(--primary) 34%, transparent); }
.transfer-note code { color: #fde68a; font-size: .96rem; font-weight: 800; }

.card-donation { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.card-donation summary { cursor: pointer; font-weight: 850; color: color-mix(in srgb, var(--primary) 70%, white); }
.card-donation form { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { color: #cbd2df; font-size: .82rem; font-weight: 700; }
.form-grid input, .form-grid select {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0,0,0,.28);
    color: white;
    padding: 11px 12px;
}
.primary-button {
    margin-top: 15px;
    border: 0;
    border-radius: 13px;
    padding: 12px 18px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 850;
    cursor: pointer;
}
.primary-button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 1.4em; color: var(--muted); font-size: .84rem; }

.spotify-card {
    margin-top: 24px;
    border-radius: 26px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(320px, 1.45fr);
    align-items: center;
    gap: 22px;
}
.spotify-card h2 { margin-bottom: 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.spotify-card > div > p:last-child { margin: 0; color: var(--muted); font-size: .88rem; }
.spotify-card iframe { width: 100%; height: 152px; border: 0; border-radius: 16px; background: #121212; }

.page-hero { padding: clamp(30px, 6vw, 68px); text-align: center; margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2.3rem, 6vw, 4.5rem); }
.page-hero > p:not(.eyebrow) { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.family-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 20rem),
        radial-gradient(circle at 88% 80%, color-mix(in srgb, var(--secondary) 26%, transparent), transparent 20rem),
        var(--panel);
}
.family-hero::before, .family-hero::after { position: absolute; color: rgba(255,255,255,.1); font-size: 4rem; pointer-events: none; }
.family-hero::before { content: "♡"; left: 7%; top: 18%; transform: rotate(-12deg); }
.family-hero::after { content: "✦"; right: 8%; bottom: 15%; transform: rotate(12deg); }
.family-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.family-chips span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #e7eaf2; background: rgba(255,255,255,.045); font-size: .78rem; font-weight: 750; }

.family-album-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.family-album-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    padding: 0;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.family-album-card:hover, .family-album-card.active { transform: translateY(-5px); border-color: color-mix(in srgb, var(--album-accent) 68%, white); box-shadow: 0 22px 58px color-mix(in srgb, var(--album-accent) 18%, rgba(0,0,0,.45)); }
.family-album-cover { position: relative; display: grid; width: 100%; aspect-ratio: 1.15; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--album-accent) 65%, white), var(--album-accent)); }
.family-album-cover::after { content: ""; position: absolute; inset: auto -20% -50% -20%; height: 75%; border-radius: 50%; background: rgba(255,255,255,.13); }
.family-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.family-album-cover i { position: relative; z-index: 1; font-size: clamp(2.5rem, 5vw, 4.4rem); font-style: normal; filter: drop-shadow(0 12px 20px rgba(0,0,0,.22)); }
.family-album-copy { display: grid; gap: 4px; padding: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--album-accent) 11%, rgba(10,14,27,.96)), rgba(10,14,27,.96)); }
.family-album-copy small, .family-album-copy strong, .family-album-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-album-copy small { color: color-mix(in srgb, var(--album-accent) 52%, white); font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.family-album-copy strong { font-size: 1.04rem; }
.family-album-copy em { color: var(--muted); font-size: .7rem; font-style: normal; }
.album-filter {
    position: sticky;
    top: 98px;
    z-index: 20;
    margin-bottom: 34px;
    padding: 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.album-filter button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 750;
}
.album-filter button:hover { color: white; background: rgba(255,255,255,.06); }
.album-filter button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.album-filter-avatar { width: 25px; height: 25px; flex: 0 0 25px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.album-filter-avatar img { width: 100%; height: 100%; object-fit: cover; }

.album-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.album-sections.is-filtered .album-section { grid-column: 1 / -1; }
.wife-gallery { display: grid; gap: 28px; }
.album-section[hidden] { display: none; }
.album-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 34px;
    padding: clamp(24px, 4vw, 36px);
    background: linear-gradient(145deg, color-mix(in srgb, var(--album-accent) 9%, rgba(18,23,40,.9)), rgba(12,16,31,.88));
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.album-section:not(.is-empty) { grid-column: 1 / -1; }
.album-section.is-empty:last-child:nth-child(odd) { grid-column: 1 / -1; }
.album-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--album-accent), color-mix(in srgb, var(--album-accent) 26%, transparent) 58%, transparent); }
.album-section::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -80px; top: -90px; border-radius: 50%; background: color-mix(in srgb, var(--album-accent) 12%, transparent); filter: blur(5px); }
.album-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.075); }
.album-heading h2 { margin-bottom: 5px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.album-heading p { margin: 0; color: var(--muted); }
.album-heading > span { white-space: nowrap; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.album-title-wrap { display: flex; align-items: center; gap: 14px; }
.album-title-wrap > span { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--album-accent) 36%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--album-accent) 16%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); font-size: 1.65rem; }
.album-title-wrap > span { overflow: hidden; }
.album-title-wrap > span img { width: 100%; height: 100%; object-fit: cover; }
.album-title-wrap small { display: block; margin-bottom: 4px; color: color-mix(in srgb, var(--album-accent) 58%, white); font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.album-section.is-empty { min-height: 255px; }
.album-empty { min-height: 92px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; border: 1px dashed color-mix(in srgb, var(--album-accent) 38%, var(--line)); border-radius: 24px; padding: 18px; color: var(--muted); background: rgba(255,255,255,.028); text-align: left; }
.album-empty > span { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--album-accent) 16%, transparent); font-size: 1.45rem; }
.album-empty strong, .album-empty small { display: block; }
.album-empty strong { color: #f1f5f9; margin-bottom: 5px; font-size: .92rem; }
.album-empty small { line-height: 1.5; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr));
    gap: var(--gallery-gap);
}
.photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #13192b, #0e1423);
    box-shadow: 0 12px 34px rgba(0,0,0,.2);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.photo-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 48%, white); box-shadow: 0 20px 48px rgba(0,0,0,.34); }
.photo-open { display: block; width: 100%; min-width: 0; border: 0; padding: 0; color: inherit; background: transparent; cursor: zoom-in; }
.photo-media { position: relative; display: block; overflow: hidden; background: #080b13; }
.photo-main { width: 100%; height: auto; display: block; object-fit: cover; transition: transform .35s ease; }
.photo-blur { display: none; }
.photo-open:hover .photo-main { transform: scale(1.035); }
.photo-song-badge { position: absolute; z-index: 2; top: 9px; right: 9px; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 24px rgba(0,0,0,.3); font-weight: 950; }
.photo-card.ratio-square .photo-main { aspect-ratio: 1; }
.photo-card.ratio-portrait .photo-main { aspect-ratio: 4 / 5; }
.photo-card.ratio-landscape .photo-main { aspect-ratio: 16 / 10; }
.wife-gallery .photo-card.ratio-natural .photo-media { aspect-ratio: 4 / 5; isolation: isolate; display: grid; place-items: center; background: #0a0e1a; }
.wife-gallery .photo-card.ratio-natural .photo-blur { position: absolute; inset: -14%; z-index: 0; width: 128%; height: 128%; display: block; object-fit: cover; opacity: .58; filter: blur(25px) saturate(.88) brightness(.72); transform: scale(1.08); }
.wife-gallery .photo-card.ratio-natural .photo-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8,12,24,.08), rgba(8,12,24,.2)); box-shadow: inset 0 0 42px rgba(4,7,14,.42); }
.wife-gallery .photo-card.ratio-natural .photo-main { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.wife-gallery .photo-card.ratio-natural .photo-song-badge { z-index: 3; }
.photo-social-meta { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 12px 13px 14px; border-top: 1px solid rgba(255,255,255,.055); }
.photo-author { min-width: 0; display: flex; align-items: center; gap: 9px; }
.photo-avatar { width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--photo-accent) 52%, white); border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--photo-accent) 22%, #151a2c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--photo-accent) 11%, transparent); font-size: .92rem; }
.photo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-author > span:last-child { min-width: 0; }
.photo-author strong, .photo-author small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-author strong { color: #f8fafc; font-size: .78rem; }
.photo-author small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.photo-like { min-width: 58px; height: 36px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; color: #aab2c3; background: rgba(255,255,255,.035); cursor: pointer; font-weight: 850; transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease; }
.photo-like:hover { color: #fbcfe8; border-color: rgba(244,114,182,.38); background: rgba(244,114,182,.09); }
.photo-like svg { width: 18px; height: 18px; fill: transparent; stroke: currentColor; stroke-width: 1.9; transition: fill .18s ease, transform .18s ease; }
.photo-like span { font-size: .72rem; }
.photo-like.liked { color: #fb4f93; border-color: rgba(251,79,147,.42); background: rgba(251,79,147,.12); }
.photo-like.liked svg { fill: currentColor; }
.photo-like.is-loading { opacity: .55; cursor: wait; }
.photo-like.popping svg { animation: heart-pop .34s ease; }
@keyframes heart-pop { 50% { transform: scale(1.4) rotate(-8deg); } }
.photo-caption { grid-column: 1 / -1; margin: 0; color: #c9cfdb; font-size: .78rem; line-height: 1.55; overflow-wrap: anywhere; }
.photo-caption strong { color: #fff; margin-right: 4px; }

.empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    padding: 36px;
    border-radius: 26px;
}
.empty-state > span { font-size: 3.4rem; color: var(--primary); }
.empty-state h2, .empty-state p { margin: 0; }
.empty-state p { color: var(--muted); }

.wife-page { display: grid; gap: 24px; }
.wife-hero {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(300px, 1.1fr);
    min-height: 540px;
}
.wife-photo { min-height: 460px; background: rgba(255,255,255,.025); }
.wife-photo img { width: 100%; height: 100%; object-fit: cover; }
.wife-placeholder {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 32%, transparent), transparent 55%), linear-gradient(145deg, #222a49, #13172a);
}
.wife-placeholder span { font-size: 8rem; color: color-mix(in srgb, var(--primary) 72%, white); filter: drop-shadow(0 14px 32px color-mix(in srgb, var(--primary) 36%, transparent)); }
.wife-copy { padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.wife-copy h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 6vw, 5.4rem); }
.wife-intro { color: #d5d9e3; line-height: 1.8; font-size: 1.05rem; }
.anniversary { align-self: flex-start; margin-top: 13px; padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); border-radius: 999px; color: #fbcfe8; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.wife-copy blockquote { margin: 34px 0 0; color: color-mix(in srgb, var(--primary) 66%, white); font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 2rem); font-style: italic; }
.wife-social { margin-top: 26px; justify-content: flex-start; }
.wife-social a { flex: 0 1 145px; text-align: center; }
.story-card { padding: clamp(28px, 5vw, 52px); }
.story-card > p:last-child { margin: 0; color: #d0d6e2; line-height: 1.9; font-size: 1.02rem; }
.wife-gallery { margin-top: 26px; }

.about-card {
    min-height: 520px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr);
    align-items: stretch;
}
.about-photo { min-height: 440px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: grid;
    place-items: center;
    color: white;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 950;
    letter-spacing: -.07em;
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 72%, #11172a), color-mix(in srgb, var(--primary) 68%, #11172a));
}
.about-card > div:last-child { padding: clamp(32px, 6vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.about-card h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 22px; }
.about-card > div:last-child > p:not(.eyebrow) { color: #d1d6e1; line-height: 1.9; font-size: 1.02rem; }
.about-social { margin-top: 28px; justify-content: flex-start; }
.about-social a { flex: 0 1 150px; text-align: center; }

.music-page { display: grid; gap: 24px; }
.music-hero { margin-bottom: 0; background: radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 30rem), var(--panel); }
.music-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.track-card { min-width: 0; overflow: hidden; border-radius: 25px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); }
.track-cover { position: relative; min-height: 255px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 65%, white), var(--secondary)); }
.track-cover::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.16); border-radius: 50%; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover > span { position: relative; z-index: 1; font-size: 5rem; text-shadow: 0 14px 28px rgba(0,0,0,.3); }
.track-copy { min-width: 0; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.track-copy h2 { margin-bottom: 7px; font-size: clamp(1.35rem, 3vw, 2rem); }
.track-artist { margin: 0 0 18px; color: var(--muted); }
.track-copy audio { width: 100%; min-height: 42px; accent-color: var(--primary); }
.track-copy iframe { width: 100%; height: 152px; border: 0; border-radius: 14px; background: #121212; }
.spotify-out { align-self: flex-start; margin-top: 12px; color: #c4b5fd; font-size: .8rem; font-weight: 800; }
.spotify-out:hover { color: white; }

footer { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 34px; color: #7f8798; text-align: center; font-size: .83rem; }

.visitor-counter {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 34;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px 9px 9px;
    border-radius: 999px;
    box-shadow: 0 14px 42px rgba(0,0,0,.35);
}
.visitor-eye { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.visitor-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.visitor-counter > span:last-child { min-width: 0; }
.visitor-counter strong, .visitor-counter small { display: block; }
.visitor-counter strong { font-size: .8rem; }
.visitor-counter small { color: var(--muted); font-size: .61rem; }

.music-player {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100% - 32px));
    padding: 10px 12px;
    border-radius: 999px;
}
.music-disc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 24%, transparent);
}
.music-disc.has-image { padding: 2px; }
.music-disc img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.music-player.playing .music-disc { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-player div { min-width: 0; }
.music-player small, .music-player strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-player small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.music-player strong { max-width: 170px; font-size: .78rem; }
.music-player button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.09); cursor: pointer; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 54px 22px 26px;
    background: rgba(2,4,10,.94);
    display: grid;
    place-items: center;
    backdrop-filter: blur(14px);
}
.lightbox[hidden] { display: none; }
.lightbox-shell { width: min(1320px, 96vw); max-height: 88vh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
.lightbox-shell.has-music { grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); }
.lightbox figure { min-width: 0; max-height: 88vh; margin: 0; display: grid; place-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 18px; box-shadow: 0 25px 100px rgba(0,0,0,.72); }
.lightbox figcaption { width: min(700px, 100%); border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 12px 14px; color: #d5d9e4; background: rgba(17,22,38,.88); text-align: left; }
.lightbox figcaption > p { grid-column: 1 / -1; margin: 0; color: #d5d9e4; line-height: 1.55; }
.lightbox-photo-author { min-width: 0; display: flex; align-items: center; gap: 9px; }
.lightbox-photo-author[hidden] { display: none; }
.lightbox-photo-author > span:first-child { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.055); }
.lightbox-photo-author > span:last-child { min-width: 0; }
.lightbox-photo-author strong, .lightbox-photo-author small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-photo-author strong { color: white; font-size: .84rem; }
.lightbox-photo-author small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.lightbox-like { justify-self: end; }
.lightbox-close { position: absolute; top: 12px; right: 18px; border: 0; background: transparent; color: white; font-size: 2.6rem; cursor: pointer; }
.lightbox-music { min-width: 0; border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: rgba(17,22,38,.9); box-shadow: var(--shadow); }
.lightbox-music[hidden] { display: none; }
.lightbox-track { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.lightbox-track-cover { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.lightbox-track-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.lightbox-track-cover span { font-size: 1.6rem; }
.lightbox-track small, .lightbox-track strong, .lightbox-track span { display: block; }
.lightbox-track small { color: #f9a8d4; font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.lightbox-track strong { margin-top: 3px; font-size: 1rem; }
.lightbox-track > div:last-child > span { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.lightbox-music audio, .lightbox-music iframe, .lightbox-spotify { width: 100%; }
.lightbox-music iframe, .lightbox-spotify { height: 152px; border: 0; border-radius: 13px; overflow: hidden; background: #121212; }
.lightbox-spotify[hidden] { display: none; }
.lightbox-spotify > div, .lightbox-spotify iframe { width: 100% !important; height: 152px !important; }
.lightbox-music p { margin: 10px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 120;
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    padding: 11px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: white;
    background: rgba(12,16,31,.94);
    box-shadow: var(--shadow);
    transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 940px) {
    .home-grid { grid-template-columns: 1fr; }
    .profile-card { min-height: auto; }
    .wife-hero, .about-card { grid-template-columns: 1fr; }
    .wife-photo, .about-photo { max-height: 620px; }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .family-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .music-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .site-header { position: relative; top: 0; align-items: flex-start; flex-direction: column; }
    .site-header nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .nav-link { white-space: nowrap; }
    .site-main { margin-top: 24px; }
    .bank-layout { grid-template-columns: 1fr; }
    .qr-wrap { max-width: 330px; margin: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .spotify-card { grid-template-columns: 1fr; }
    .album-filter { position: static; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .album-filter button { white-space: nowrap; }
    .album-sections { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lightbox-shell, .lightbox-shell.has-music { grid-template-columns: 1fr; overflow: auto; }
    .lightbox figure { max-height: none; }
    .lightbox img { max-height: 58vh; }
    .lightbox-music { width: min(500px, 100%); justify-self: center; }
    .photo-card { border-radius: 17px; }
    .photo-social-meta { gap: 8px; padding: 9px; }
    .photo-avatar { width: 29px; height: 29px; flex-basis: 29px; }
    .photo-author strong { font-size: .7rem; }
    .photo-author small { font-size: .6rem; }
    .photo-like { min-width: 48px; height: 32px; padding: 0 8px; }
    .photo-like svg { width: 16px; height: 16px; }
    .photo-caption { font-size: .71rem; }
    .album-heading { align-items: flex-start; }
    .album-section, .album-section.is-empty { min-height: 0; border-radius: 28px; padding: 22px; }
    .wife-copy { padding: 32px 24px; }
    .visitor-counter { bottom: 82px; }
}

@media (max-width: 420px) {
    .site-header, .site-main, footer { width: min(100% - 20px, 1160px); }
    .site-header { margin-top: 10px; border-radius: 18px; }
    .brand span:last-child { font-size: .9rem; }
    .profile-card, .donation-card, .page-hero, .wife-hero, .story-card, .about-card { border-radius: 22px; }
    .donation-card { padding: 20px; }
    .spotlight-grid { grid-template-columns: 1fr; }
    .spotlight-item .photo-media, .spotlight-grid.is-single .photo-media { aspect-ratio: 4 / 4.2; }
    .info-copy, .transfer-note { padding-right: 74px; }
    .info-copy button, .transfer-note button { font-size: .64rem; padding: 7px; }
    .music-player { left: 10px; right: 10px; bottom: 10px; max-width: none; }
    .visitor-counter { left: 10px; bottom: 78px; padding: 7px 10px 7px 7px; }
    .visitor-eye { width: 32px; height: 32px; }
    .visitor-counter small { display: none; }
    .lightbox { padding: 48px 10px 18px; }
    .lightbox figcaption { border-radius: 15px; padding: 10px; }
    .family-album-grid { gap: 9px; }
    .family-album-card { border-radius: 22px; }
    .family-album-copy { padding: 11px; }
    .track-card { grid-template-columns: 1fr; }
    .track-cover { min-height: 210px; }
    .album-title-wrap { align-items: flex-start; }
    .album-title-wrap > span { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; }
    .album-empty { align-items: flex-start; padding: 18px; }
    .social-row a { min-width: 0; flex: 1 1 132px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
