/* ============ ACCESS GATE ============ */
.gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}
.gate.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(197, 160, 89, 0.18), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(197, 160, 89, 0.12), transparent 55%),
        linear-gradient(180deg, #080604 0%, #000 100%);
    animation: gateBgShift 18s ease-in-out infinite alternate;
}
@keyframes gateBgShift {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(12deg); }
}
.gate-card {
    position: relative;
    max-width: 480px;
    width: calc(100% - 2.4rem);
    text-align: center;
    padding: 3rem 2rem;
    z-index: 2;
}
.gate-overline {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.65rem;
    color: rgba(197, 160, 89, 0.85);
    margin-bottom: 1rem;
}
.gate-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    color: #f3e7cc;
    line-height: 1.15;
    margin: 0 0 1.2rem;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 0 30px rgba(197, 160, 89, 0.2);
}
.gate-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #c9bb9a;
    margin: 0 0 2rem;
}
.gate-form {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}
.gate-input {
    flex: 1 1 220px;
    min-width: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 2px;
    padding: 0.9rem 1.1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #f3e7cc;
    letter-spacing: 0.1em;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.gate-input::placeholder { color: rgba(243, 231, 204, 0.35); letter-spacing: 0.25em; font-style: italic; }
.gate-input:focus {
    border-color: rgba(218, 178, 110, 0.9);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.12);
}
.gate-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: 0.9rem 1.6rem;
    background: transparent;
    border: 1px solid rgba(218, 178, 110, 0.9);
    color: #f3e7cc;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.gate-btn:hover { background: rgba(197,160,89,0.2); }
.gate-btn:active { transform: scale(0.97); }
.gate-error {
    min-height: 1.1em;
    margin: 0.8rem 0 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #d08079;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gate-error.show { opacity: 1; }
.gate-footer {
    margin-top: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(197, 160, 89, 0.5);
}
.gate-card.shake { animation: gateShake 0.45s ease; }
@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
@media (max-width: 480px) {
    .gate-card { padding: 2rem 1.2rem; }
    .gate-title { font-size: 1.9rem; }
    .gate-sub { font-size: 1.05rem; }
    .gate-input { flex-basis: 100%; }
    .gate-btn { flex-basis: 100%; }
}

/* ============ HEADPHONES SCREEN ============ */
.hp-screen {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hp-screen.hp-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.hp-screen.hp-done  { opacity: 0; visibility: hidden; pointer-events: none; }
.hp-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(197, 160, 89, 0.12), transparent 50%),
        linear-gradient(180deg, #0a0806 0%, #000 100%);
}
/* Floating golden particles (CSS only) */
.hp-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hp-particles span {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(218, 178, 110, 0.85);
    box-shadow: 0 0 8px rgba(218, 178, 110, 0.6), 0 0 20px rgba(197, 160, 89, 0.3);
    animation: hpFloat linear infinite;
}
.hp-particles span:nth-child(1)  { left: 12%; animation-duration: 8s;  animation-delay: 0s;    width: 2px; height: 2px; }
.hp-particles span:nth-child(2)  { left: 28%; animation-duration: 10s; animation-delay: -2s;   width: 4px; height: 4px; }
.hp-particles span:nth-child(3)  { left: 42%; animation-duration: 7s;  animation-delay: -4s;   width: 2px; height: 2px; }
.hp-particles span:nth-child(4)  { left: 55%; animation-duration: 11s; animation-delay: -1s;   width: 3px; height: 3px; }
.hp-particles span:nth-child(5)  { left: 68%; animation-duration: 9s;  animation-delay: -3s;   width: 2px; height: 2px; }
.hp-particles span:nth-child(6)  { left: 78%; animation-duration: 8s;  animation-delay: -5s;   width: 4px; height: 4px; }
.hp-particles span:nth-child(7)  { left: 35%; animation-duration: 12s; animation-delay: -6s;   width: 2px; height: 2px; }
.hp-particles span:nth-child(8)  { left: 85%; animation-duration: 9s;  animation-delay: -7s;   width: 3px; height: 3px; }
.hp-particles span:nth-child(9)  { left: 20%; animation-duration: 10s; animation-delay: -8s;   width: 2px; height: 2px; }
.hp-particles span:nth-child(10) { left: 60%; animation-duration: 7s;  animation-delay: -3.5s; width: 3px; height: 3px; }
@keyframes hpFloat {
    0%   { bottom: -5%; opacity: 0; transform: translateX(0); }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { bottom: 105%; opacity: 0; transform: translateX(30px); }
}
.hp-card {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 420px;
    width: calc(100% - 2rem);
    padding: 2.5rem 1.5rem;
}
.hp-icon {
    width: 90px; height: 90px;
    margin: 0 auto 2rem;
    color: rgba(218, 178, 110, 0.95);
    filter: drop-shadow(0 0 18px rgba(197, 160, 89, 0.5));
    animation: hpPulse 2.5s ease-in-out infinite;
}
.hp-icon svg { width: 100%; height: 100%; }
@keyframes hpPulse {
    0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 18px rgba(197,160,89,0.5)); }
    50%      { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(218,178,110,0.7)); }
}
.hp-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    color: #f3e7cc;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 0 30px rgba(197,160,89,0.2);
}
.hp-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #c9bb9a;
    margin: 0 0 2.5rem;
}
.hp-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    background: transparent;
    border: 1px solid rgba(218,178,110,0.9);
    color: #f3e7cc;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.hp-btn:hover { background: rgba(197,160,89,0.2); }
.hp-btn:active { transform: scale(0.97); }

/* ============ GUIDE OVERLAY ============ */
.guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.guide-overlay.guide-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(12px);
}
.guide-card {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: calc(100% - 2rem);
    padding: 2.5rem 2rem;
    text-align: center;
}
.guide-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    color: #f3e7cc;
    margin: 0 0 2rem;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4), 0 0 20px rgba(197,160,89,0.15);
    line-height: 1.2;
}
.guide-tips {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
    margin-bottom: 2.2rem;
}
.guide-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 4px;
    background: rgba(197, 160, 89, 0.04);
}
.guide-tip-icon {
    flex-shrink: 0;
    color: rgba(218, 178, 110, 0.9);
    margin-top: 2px;
    filter: drop-shadow(0 0 6px rgba(197,160,89,0.4));
}
.guide-tip p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #d4c9a8;
    line-height: 1.5;
    margin: 0;
}
.guide-tip p strong {
    color: #f3e7cc;
    font-weight: 600;
}
.guide-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    background: transparent;
    border: 1px solid rgba(218,178,110,0.9);
    color: #f3e7cc;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
}
.guide-btn:hover { background: rgba(197,160,89,0.2); }
.guide-btn:active { transform: scale(0.97); }
@media (max-width: 480px) {
    .hp-icon { width: 70px; height: 70px; margin-bottom: 1.5rem; }
    .hp-title { font-size: 1.7rem; }
    .hp-sub { font-size: 1.05rem; margin-bottom: 2rem; }
    .guide-card { padding: 2rem 1.2rem; }
    .guide-title { font-size: 1.4rem; }
    .guide-tip { padding: 0.7rem 0.8rem; gap: 0.7rem; }
    .guide-tip p { font-size: 1rem; }
}

:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --bg-card: #0d0d0d;
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --text-soft: #b8b8b8;
    --accent-gold: #c5a059;
    --accent-gold-soft: rgba(197, 160, 89, 0.3);
    --accent-blue: #569cd6;
    --border-subtle: rgba(245, 245, 245, 0.08);
    --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.85);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-elegant: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hidden { display: none !important; }

/* ============ HERO ============ */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-darker);
    position: relative;
    transition: opacity 1.5s var(--ease-smooth);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(197, 160, 89, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    animation: heroFadeIn 2s var(--ease-smooth);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-overline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-soft);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.hero-dates {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    margin-bottom: 3.5rem;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.start-btn svg { transition: transform 0.4s var(--ease-smooth); }

.start-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    letter-spacing: 0.25em;
}

.start-btn:hover svg { transform: translateX(4px); }

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============ LATERAL GROWTH SIDEBAR (Option C) ============ */
#sideGrowthCanvas {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
#sideGrowthCanvas.visible {
    opacity: 1;
}
@media (max-width: 640px) {
    #sideGrowthCanvas { width: 60px; }
}
@media (max-width: 380px) {
    #sideGrowthCanvas { width: 50px; }
}

/* ============ YEAR NAV ============ */
.year-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.year-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.year-nav-inner {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.year-nav button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.year-nav button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.year-nav button:hover,
.year-nav button.active {
    color: var(--accent-gold);
}

.year-nav button.active::after { width: 60%; }

#timeline { padding-top: 0; }

/* ============ NARRATIVE CHAPTERS ============ */
.narrative-chapter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 2rem 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.narrative-chapter.visible {
    opacity: 1;
    transform: translateY(0);
}

.chapter-number {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.5;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 400;
    line-height: 1;
    display: block;
    will-change: transform;
}

.narrative-chapter h2 {
    margin-bottom: 1.2rem;
}

.narrative-chapter p {
    max-width: 780px;
    margin: 0 auto;
}

/* ============ YEAR SECTIONS ============ */
.year-section {
    padding: 0.5rem 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.year-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.year-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.year-header::before,
.year-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold-soft), transparent);
}

.year-header::before { left: 50%; transform: translateX(-180px); }
.year-header::after { right: 50%; transform: translateX(180px); }

.year-title {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.year-age {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.year-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* ============ MASONRY GALLERY ============ */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px;
    gap: 0.7rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #1a1a1a 25%, #272727 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.8s var(--ease-smooth), transform 0.6s var(--ease-smooth);
    box-shadow: var(--shadow-card);
    /* default span */
    grid-column: span 3;
    grid-row: span 3;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.gallery-item img[src], .gallery-item video {
    animation: none;
    background: none;
}

.gallery-item.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Masonry variants */
.gallery-item.is-landscape {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item.is-portrait {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery-item.is-square {
    grid-column: span 3;
    grid-row: span 3;
}

.gallery-item.is-featured {
    grid-column: span 6;
    grid-row: span 5;
}

.gallery-item.is-wide {
    grid-column: span 6;
    grid-row: span 3;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth), filter 0.5s ease;
}

.gallery-item img {
    filter: grayscale(15%) brightness(0.95);
    transition: transform 0.8s var(--ease-smooth), filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1.05);
}

.gallery-item video {
    filter: grayscale(15%) brightness(0.95);
}

.gallery-item:hover video {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item .item-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    z-index: 2;
    font-weight: 500;
}

.gallery-item:hover .item-date {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.video-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-item.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: white;
    pointer-events: none;
}

.gallery-item.video-item:hover::before {
    transform: translate(-50%, -50%) scale(1.15);
}

.gallery-item.videocall-item {
    border: 1px solid rgba(197, 160, 89, 0.25);
}

.gallery-item.videocall-item::before {
    background: rgba(86, 156, 214, 0.9);
}

.gallery-item.videocall-item:hover::before {
    background: var(--accent-blue);
}

.videocall-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--accent-gold);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    pointer-events: none;
}

/* ============ MONTH DIVIDER ============ */
.month-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.5rem 0 0.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--accent-gold);
    opacity: 0.7;
    grid-row: span 1;
}

.month-divider::before {
    content: '';
    flex: 0 0 40px;
    height: 1px;
    background: var(--accent-gold-soft);
}

.month-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold-soft), transparent);
}

/* ============ VIDEOCALL HIGHLIGHT ============ */
.videocall-highlight {
    max-width: 1100px;
    margin: 1rem auto 2rem;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.videocall-highlight.visible {
    opacity: 1;
    transform: translateY(0);
}

.videocall-highlight-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: var(--bg-card);
    cursor: pointer;
}

.videocall-highlight-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.5s ease;
}

.videocall-highlight-inner:hover video {
    filter: brightness(1);
}

.videocall-highlight-label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.videocall-highlight-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.videocall-highlight-caption {
    margin-top: 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============ ABRAZO CINEMATIC SECTION ============ */
.abrazo-section {
    padding: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #000 50%, var(--bg-dark) 100%);
    opacity: 0;
    transition: opacity 1.5s var(--ease-smooth);
    position: relative;
}

.abrazo-section.visible {
    opacity: 1;
}

.abrazo-overline {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.abrazo-video-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9);
    background: #000;
    aspect-ratio: 16 / 9;
}

.abrazo-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.abrazo-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.abrazo-play-overlay::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.85);
    backdrop-filter: blur(10px);
    animation: abrazoRipple 2.5s infinite;
}

@keyframes abrazoRipple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.abrazo-play-overlay svg {
    z-index: 2;
    position: relative;
}

.abrazo-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.abrazo-caption {
    margin-top: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--accent-gold);
    text-align: center;
    letter-spacing: 0.03em;
    padding: 0 2rem;
}

/* ============ TOGETHER SECTION (conmigo) ============ */
.together-section {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 1rem auto 1.5rem;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.together-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.together-photo {
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: var(--bg-card);
    cursor: pointer;
    position: relative;
}

.together-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(5%);
    transition: transform 0.8s var(--ease-smooth), filter 0.5s ease;
}

.together-photo:hover img {
    transform: scale(1.03);
    filter: grayscale(0);
}

.together-overline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.together-text h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.together-body {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--text-soft);
    line-height: 1.7;
    font-weight: 400;
}

/* ============ ESENCIAL SECTION ============ */
.esencial-section {
    max-width: 900px;
    margin: 1rem auto 1.5rem;
    padding: 0 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.esencial-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.esencial-frame {
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
}

.esencial-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s var(--ease-smooth);
}

.esencial-frame:hover img {
    transform: scale(1.03);
}

.esencial-caption {
    margin-top: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

/* ============ FINAL MESSAGE ============ */
.final-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s var(--ease-smooth), transform 1.5s var(--ease-smooth);
}

.final-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.final-decoration {
    color: var(--accent-gold);
    font-size: 2rem;
    margin: 2rem 0;
    opacity: 0.6;
}

.final-message h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    color: var(--accent-gold);
    line-height: 1.1;
}

.final-message p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-weight: 300;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem) !important;
    color: var(--accent-gold) !important;
    margin-top: 3rem !important;
    line-height: 1.8;
    font-weight: 400;
}

/* ============ BIRTHDAY AUDIO CARD ============ */
.birthday-audio-card {
    margin: 2.5rem auto 1rem;
    width: 100%;
    max-width: 420px;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 1.2rem 1.5rem 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.birthday-audio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.birthday-audio-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.birthday-audio-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.birthday-audio-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.birthday-audio-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
}

.birthday-audio-date {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 500;
}

.birthday-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.birthday-play-btn:hover {
    transform: scale(1.1);
    background: #e0bb74;
}

.birthday-progress-bar {
    margin-top: 1rem;
    height: 2px;
    background: rgba(197, 160, 89, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.birthday-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: width 0.5s linear;
}

.music-credit {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.1em;
    margin-top: 2rem !important;
    opacity: 0.5;
    font-weight: 300 !important;
}

/* ============ MODAL ============ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.modal:not(.hidden) { opacity: 1; }

.modal-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalZoom 0.5s var(--ease-smooth);
}

@keyframes modalZoom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: var(--shadow-deep);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.modal-prev { left: 2rem; }
.modal-next { right: 2rem; }

.modal-caption {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-soft);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 90%;
}

.modal-counter {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    color: var(--accent-gold);
    cursor: pointer;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.music-toggle:hover {
    opacity: 1;
    transform: scale(1.08);
    border-color: var(--accent-gold);
}

/* ============ VOICE TOAST ============ */
#voiceToast {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.85rem 1.3rem;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 280px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(197,160,89,0.1);
}

#voiceToast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-wave {
    color: var(--accent-gold);
    animation: toastPulse 1s ease infinite;
}

@keyframes toastPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============ PROGRESS BAR ============ */
#progressBar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), #fff8e7, var(--accent-gold));
    z-index: 300;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.6);
    pointer-events: none;
}

/* ============ HERO PARTICLES ============ */
#heroParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============ HERO COUNTER ============ */
.hero-counter {
    position: absolute;
    bottom: 5rem;
    right: 3rem;
    text-align: right;
    z-index: 10;
    opacity: 0;
    animation: heroFadeIn 2.5s var(--ease-smooth) 0.8s forwards;
}

.hero-counter-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    color: var(--accent-gold);
    opacity: 0.08;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-counter-label {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.4;
    font-weight: 500;
}

/* ============ SIDE TIMELINE ============ */
#sideTimeline {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#sideTimeline.visible { opacity: 1; }

.side-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.side-dot:hover { background: var(--accent-gold); transform: scale(1.4); }
.side-dot.active {
    background: var(--accent-gold);
    transform: scale(1.6);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}

.side-dot .side-dot-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.side-dot:hover .side-dot-label { opacity: 1; }

/* ============ HANDWRITTEN TEXT REVEAL (letter by letter) ============ */
/* Titles: formal elegant script. Body: elegant italic serif for readability. */
.narrative-chapter h2 {
    font-family: 'Cinzel Decorative', serif;
    position: relative;
    font-weight: 400;
    font-style: normal;
    color: #f3e7cc;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 0 28px rgba(197, 160, 89, 0.2);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: 0.03em;
}
.narrative-chapter p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #ead7ad;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
}
.narrative-chapter .word {
    display: inline-block;
    white-space: nowrap; /* keep each word intact when wrapping */
}
.narrative-chapter .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
    transition-delay: calc(var(--ci, 0) * 28ms);
}
.narrative-chapter.visible .char {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ============ CONFETTI CANVAS ============ */
#confettiCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#confettiCanvas.active { opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 90px;
    }

    .gallery-item,
    .gallery-item.is-square,
    .gallery-item.is-portrait,
    .gallery-item.is-landscape {
        grid-column: span 3;
        grid-row: span 3;
    }

    .gallery-item.is-featured,
    .gallery-item.is-wide {
        grid-column: span 6;
        grid-row: span 4;
    }

    .gallery-item.is-portrait {
        grid-row: span 4;
    }

    .together-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-overline { font-size: 0.65rem; letter-spacing: 0.3em; }
    .start-btn { padding: 0.9rem 2rem; font-size: 0.8rem; }
    .year-nav button { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
    .year-header::before, .year-header::after { display: none; }

    .gallery-masonry {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 80px;
        gap: 0.6rem;
    }

    .gallery-item,
    .gallery-item.is-square,
    .gallery-item.is-landscape {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item.is-portrait {
        grid-column: span 2;
        grid-row: span 3;
    }

    .gallery-item.is-featured,
    .gallery-item.is-wide {
        grid-column: span 4;
        grid-row: span 3;
    }

    .narrative-chapter { padding: 3rem 1.5rem; }
    .chapter-number { font-size: 3.5rem; }

    .abrazo-section { padding: 3rem 1rem 4rem; }
    .abrazo-overline { letter-spacing: 0.3em; margin-bottom: 2rem; }

    .together-section { padding: 0 1.5rem; margin: 4rem auto; }
    .esencial-section { padding: 0 1.5rem; margin: 4rem auto; }

    .modal { padding: 1rem; }
    .modal-prev { left: 0.5rem; }
    .modal-next { right: 0.5rem; }
    .modal-nav { width: 44px; height: 44px; }
    .modal-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
    .music-toggle { bottom: 1rem; right: 1rem; }
}

/* ============================================================
   MOBILE DENSITY FIX — Android/small screens
   Reduce crowded UI, hide/simplify secondary elements
   ============================================================ */
@media (max-width: 640px) {
    /* Hero — más contenido */
    .hero h1 { font-size: clamp(4rem, 18vw, 6rem); }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 0.6rem; }
    .hero-dates { font-size: 0.8rem; letter-spacing: 0.3em; }
    .hero-counter { display: none; } /* Oculta contador del 10 (redundante con live-counter) */
    .hero-scroll-hint { font-size: 0.6rem; letter-spacing: 0.25em; bottom: 1.5rem; }

    /* Live counter — versión compacta */
    .live-counter {
        padding: 0.7rem 0.8rem;
        margin: 1.2rem auto 1rem;
        max-width: 320px;
    }
    .live-counter-row { gap: 0.4rem; }
    .lc-value { font-size: 1.1rem; min-width: 1.2ch; }
    .lc-small { display: none; } /* Oculta horas/min/seg — queda solo años/meses/días */
    .lc-unit { font-size: 0.55rem; margin-right: 0.15rem; }
    .lc-label { font-size: 0.55rem; letter-spacing: 0.2em; margin-top: 0.3rem; }

    /* Birth video */
    .birth-section { padding: 0.3rem 0.8rem; margin: 0.5rem auto 1rem; }
    .birth-overline { font-size: 0.6rem; letter-spacing: 0.3em; margin-bottom: 0.4rem; }
    .birth-title { font-size: 1.3rem; margin-bottom: 0.8rem; }
    .birth-caption { font-size: 0.8rem; margin-top: 0.8rem; }

    /* Narrative chapters */
    .narrative-chapter { padding: 1.2rem 1rem 1rem; }
    .chapter-number { font-size: 2.2rem; margin-bottom: 0.3rem; }
    .narrative-chapter h2 { font-size: 1.6rem; margin-bottom: 0.5rem; line-height: 1.2; }
    .chapter-content p { font-size: 1.05rem; line-height: 1.7; }

    /* Year header */
    .year-header {
        margin-bottom: 0.5rem;
        padding: 0.2rem 0;
    }
    .year-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .year-age { font-size: 0.55rem; letter-spacing: 0.25em; }
    .year-subtitle { font-size: 0.8rem; margin-top: 0.2rem; }
    .year-section { padding: 0.2rem 0.8rem 0.5rem; }

    /* Gallery — grilla más densa, fotos más pequeñas */
    .gallery-masonry {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 55px;
        gap: 0.35rem;
    }
    .gallery-item,
    .gallery-item.is-square,
    .gallery-item.is-landscape { grid-column: span 2; grid-row: span 2; }
    .gallery-item.is-portrait { grid-column: span 2; grid-row: span 3; }
    .gallery-item.is-featured, .gallery-item.is-wide {
        grid-column: span 4;
        grid-row: span 4;
    }
    .item-date { display: none; } /* Oculta fecha para limpiar */

    /* Month dividers — ocultar en móvil para ahorrar espacio */
    .month-divider { font-size: 0.8rem; padding: 0.3rem 0 0.1rem; }
    .month-divider::before { flex: 0 0 20px; }

    /* Videocall highlight */
    .videocall-highlight { margin: 0.5rem auto 1rem; padding: 0 0.8rem; }
    .videocall-highlight-caption { font-size: 0.8rem; margin-top: 0.8rem; }
    .videocall-highlight-label { font-size: 0.6rem; padding: 0.3rem 0.6rem; top: 0.8rem; left: 0.8rem; }

    /* Calls counter — compacto */
    .calls-counter { margin: 1.5rem auto 2rem; padding: 1rem; }
    .calls-counter-big { font-size: 3rem; }
    .calls-counter-label { font-size: 0.7rem; letter-spacing: 0.2em; }
    .calls-counter-sub { font-size: 0.85rem; }

    /* Moments carousel */
    .moments-carousel { margin: 1.5rem auto; padding: 1rem 0.5rem; }
    .moments-overline { font-size: 0.6rem; letter-spacing: 0.3em; }
    .moments-title { font-size: 1.3rem; margin-bottom: 1rem; }
    .moments-caption { font-size: 0.85rem; padding: 1.2rem 1rem 0.8rem; }
    .moments-dots { margin-top: 0.6rem; }

    /* Abrazo */
    .abrazo-section { padding: 0.5rem 0 1rem; }
    .abrazo-overline { letter-spacing: 0.25em; font-size: 0.6rem; margin-bottom: 0.5rem; }
    .abrazo-caption { font-size: 0.95rem; margin-top: 1rem; }

    /* Together & Esencial */
    .together-section { margin: 1rem auto; padding: 0 0.8rem; gap: 1rem; }
    .together-text h3 { font-size: 1.3rem; }
    .together-body { font-size: 0.85rem; line-height: 1.6; }
    .together-overline { font-size: 0.6rem; letter-spacing: 0.3em; }
    .esencial-section { margin: 1rem auto; padding: 0 0.8rem; }
    .esencial-caption { font-size: 1rem; margin-top: 0.8rem; }

    /* Final message card — COMPACT */
    .final-message-card {
        padding: 1rem 0.8rem 0.8rem;
        margin: 0 auto 1.5rem;
    }
    .final-message-icon { width: 40px; height: 40px; }
    .final-message-icon svg { width: 22px; height: 22px; }
    .final-message-overline { font-size: 0.55rem; letter-spacing: 0.25em; margin-bottom: 0.2rem; }
    .final-message-title { font-size: 0.95rem; }
    .final-message-btn { width: 42px; height: 42px; }
    .final-message-btn svg { width: 18px; height: 18px; }
    .final-message-bar { margin-top: 0.8rem; }
    .final-message-wave { height: 12px; }

    /* Final message section */
    .final-message { padding: 1rem 1rem 2rem; }
    .final-message h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
    .final-message p { font-size: 0.9rem; line-height: 1.6; }
    .final-decoration { font-size: 1.2rem; margin: 0.8rem 0; }

    /* Birthday audio card */
    .birthday-audio-card { padding: 0.8rem; margin-top: 1rem; }
    .birthday-audio-title { font-size: 0.85rem; }
    .birthday-audio-date { font-size: 0.6rem; }
    .birthday-audio-icon { font-size: 1.3rem; }

    /* Candle — más pequeña en móvil */
    .candle-stage { width: 140px; margin: 1.2rem auto 1rem; }
    .candle-cake { width: 110px; height: 130px; }
    .candle-base { width: 110px; height: 55px; }
    .candle-stick { height: 48px; width: 14px; }
    .candle-flame { top: -34px; width: 14px; height: 26px; }
    .flame-glow { width: 60px; height: 60px; }
    .candle-hint { font-size: 0.65rem; letter-spacing: 0.2em; margin-top: 0.5rem; }

    /* Year-nav (navegación sticky) */
    .year-nav { padding: 0.4rem 0; }
    .year-nav button { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
    .year-nav-inner { gap: 0.2rem; }

    /* Oculta side timeline en móvil — ya hay year-nav arriba */
    #sideTimeline { display: none; }

    /* Hide custom cursor/ring on mobile */
    #customCursor, #customCursorRing { display: none; }

    /* Reduce bloom/shadows */
    .gallery-item { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

    /* Signature / music credit */
    .signature { font-size: 0.8rem; }
    .music-credit { font-size: 0.65rem; letter-spacing: 0.2em; margin-top: 1rem; }
}

/* Even smaller screens (≤380px — phones estrechos) */
@media (max-width: 380px) {
    .hero h1 { font-size: 4rem; }
    .year-title { font-size: 2.5rem; }
    .gallery-masonry { grid-auto-rows: 48px; gap: 0.3rem; }
    .chapter-number { font-size: 1.8rem; }
    .narrative-chapter h2 { font-size: 1rem; }
    .chapter-content p { font-size: 0.85rem; }
    .calls-counter-big { font-size: 2.4rem; }
}

/* ============================================================
   NEW: LIVE AGE COUNTER
   ============================================================ */
.live-counter {
    margin: 2.5rem auto 2rem;
    max-width: 520px;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.25);
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    animation: lcFadeIn 1.2s var(--ease-smooth) 1.6s forwards;
}
@keyframes lcFadeIn { to { opacity: 1; transform: translateY(0); } }

.live-counter-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1rem;
    font-variant-numeric: tabular-nums;
}
.live-counter-row.lc-small { margin-top: 0.4rem; opacity: 0.75; }
.lc-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 1.5ch;
    text-align: right;
    display: inline-block;
}
.lc-small .lc-value { font-size: 1.05rem; min-width: 1.2ch; }
.lc-unit {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-left: -0.4rem;
    margin-right: 0.3rem;
}
.lc-small .lc-unit { font-size: 0.6rem; }
.lc-label {
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .live-counter { padding: 0.9rem; margin: 1.8rem auto 1.5rem; }
    .lc-value { font-size: 1.3rem; }
    .lc-small .lc-value { font-size: 0.9rem; }
    .live-counter-row { gap: 0.6rem; }
}

/* (legacy word reveal removed — now handled by .char letter-by-letter) */
.narrative-chapter p { position: relative; }

/* Cursor pen effect at end of each chapter while typing */
.narrative-chapter.visible p::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-gold);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: penBlink 0.8s 3;
    opacity: 0;
}
@keyframes penBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Narration pulse indicator */
.chapter-narrating {
    position: relative;
}
.chapter-narrating::before {
    content: '♪';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.3rem;
    color: var(--accent-gold);
    animation: narrPulse 1.4s ease-in-out infinite;
}
@keyframes narrPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ============================================================
   NEW: VIDEOCALL DAYS COUNTER
   ============================================================ */
.calls-counter {
    max-width: 720px;
    margin: 3rem auto 4rem;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}
.calls-counter.visible { opacity: 1; transform: translateY(0); }

.calls-counter-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.calls-counter-big {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(197, 160, 89, 0.35);
}
.calls-counter-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.calls-counter-label {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
}
.calls-counter-sub {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--text-soft);
}

/* ============================================================
   NEW: MOMENTS CAROUSEL
   ============================================================ */
.moments-carousel {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}
.moments-carousel.visible { opacity: 1; transform: translateY(0); }

.moments-overline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}
.moments-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 2.5rem;
    font-style: italic;
}
.moments-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-deep);
}
.moments-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s var(--ease-smooth), transform 8s linear;
}
.moments-slide.active {
    opacity: 1;
    transform: scale(1);
}
.moments-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.moments-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    text-align: left;
}
.moments-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}
.moments-dot {
    width: 28px;
    height: 2px;
    background: rgba(197, 160, 89, 0.3);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.moments-dot.active { background: var(--accent-gold); }

/* ============================================================
   NEW: CANDLE + BLOW-OUT
   ============================================================ */
.candle-stage {
    margin: 2rem auto 1.5rem;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.candle-cake {
    width: 140px;
    height: 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.candle-body { position: relative; }
.candle-stick {
    width: 16px;
    height: 60px;
    background: linear-gradient(180deg, #f5e6d3 0%, #e8cfa4 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
    margin: 0 auto;
}
.candle-stick::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #2a1a0a;
}
.candle-flame {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 32px;
    background: radial-gradient(ellipse at 50% 70%, #fff6c8 0%, #ffb84d 45%, #ff6b1a 85%, transparent 100%);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    animation: flameFlicker 0.4s ease-in-out infinite alternate;
    transform-origin: center bottom;
    filter: blur(0.5px);
    z-index: 3;
}
.flame-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 80, 0.55) 0%, transparent 65%);
    animation: glowPulse 1.6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes flameFlicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); filter: blur(0.4px) brightness(1); }
    100% { transform: translateX(-50%) scale(0.96, 1.06) rotate(2deg); filter: blur(0.6px) brightness(1.1); }
}
@keyframes glowPulse {
    0% { opacity: 0.6; transform: translateX(-50%) scale(0.92); }
    100% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}
.candle-base {
    width: 140px;
    height: 70px;
    background: linear-gradient(180deg, #c2845a 0%, #8b4a27 100%);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 14px 30px rgba(0,0,0,0.5);
}
.candle-base::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(255,255,255,0.06) 8px, rgba(255,255,255,0.06) 9px);
}

/* Smoke after blow */
.candle-stage.blown .candle-flame,
.candle-stage.blown .flame-glow { opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.candle-stage.blown .candle-hint { opacity: 0; }
.candle-stage.blown .candle-stick::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: smokeRise 2.5s ease-out forwards;
    filter: blur(3px);
    pointer-events: none;
}
@keyframes smokeRise {
    0% { opacity: 0.8; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -80px) scale(2); }
}
.candle-hint {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-align: center;
    animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ============================================================
   NEW: EASTER EGG
   ============================================================ */
.easter-egg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.easter-egg:not(.hidden) { opacity: 1; }
.easter-egg.hidden { pointer-events: none; display: flex !important; opacity: 0; }
.easter-egg-inner {
    max-width: 520px;
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--accent-gold-soft);
    background: rgba(10, 10, 10, 0.9);
    transform: scale(0.92);
    transition: transform 0.6s var(--ease-elegant);
}
.easter-egg:not(.hidden) .easter-egg-inner { transform: scale(1); }
.easter-egg-sparkle {
    font-size: 3rem;
    animation: sparkleSpin 4s linear infinite;
    margin-bottom: 1rem;
}
@keyframes sparkleSpin { to { transform: rotate(360deg); } }
.easter-egg h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}
.easter-egg p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 2rem;
}
.easter-egg-close {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.7rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}
.easter-egg-close:hover {
    background: var(--accent-gold);
    color: #000;
}

/* ============================================================
   NEW: PARALLAX HOOK
   ============================================================ */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================================
   BIRTH SECTION — opening video
   ============================================================ */
.birth-section {
    max-width: 1100px;
    margin: 1.5rem auto -1rem;   /* negative margin so the fade merges into Chapter I */
    padding: 1rem 2rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
    position: relative;
    z-index: 2;
}
.birth-section.visible { opacity: 1; transform: translateY(0); }
/* The section right after the birth video gets pulled up into the fade */
.birth-section + .narrative-chapter { padding-top: 1.5rem; }

.birth-overline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.birth-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-style: italic;
    margin-bottom: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
}
.birth-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(197, 160, 89, 0.15);
    overflow: hidden;
}
.birth-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Soft fade at the bottom of the birth video so it blends into Chapter I */
.birth-fade-bottom {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom,
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, 0.55) 70%,
        rgba(10, 10, 10, 0.95) 100%);
    pointer-events: none;
    z-index: 3;
}
.birth-unmute {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 89, 0.4);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(197, 160, 89, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.birth-unmute:hover { background: rgba(197, 160, 89, 0.2); color: #fff; transform: scale(1.05); }
.birth-unmute.is-muted { opacity: 0.75; }

.birth-caption {
    margin-top: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-soft);
}

@media (max-width: 768px) {
    .birth-section { padding: 0.5rem 1rem; margin: 1rem auto 1.5rem; }
    .birth-title { font-size: 1.5rem; margin-bottom: 1.2rem; }
    .birth-play-overlay::before { width: 60px; height: 60px; }
}

/* ============================================================
   VOICE CARD (risa bebé, etc.)
   ============================================================ */
.voice-card {
    max-width: 520px;
    margin: 1.5rem auto 2rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.08), rgba(5, 5, 5, 0.7));
    border: 1px solid rgba(197, 160, 89, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 3px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.voice-card.visible { opacity: 1; transform: translateY(0); }

.voice-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.voice-card-icon { font-size: 1.8rem; }
.voice-card-text { flex: 1; display: flex; flex-direction: column; }
.voice-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
}
.voice-card-date {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-top: 0.15rem;
}
.voice-card-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.voice-card-btn:hover {
    background: var(--accent-gold);
    color: #000;
}
.voice-card-btn.playing {
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.25);
}
.voice-card-bar {
    height: 2px;
    background: rgba(197, 160, 89, 0.15);
    margin-top: 0.8rem;
    overflow: hidden;
}
.voice-card-fill {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================================
   FINAL MESSAGE CARD (narración de papá)
   ============================================================ */
.final-message-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    padding: 1.8rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(10, 10, 10, 0.85));
    border: 1px solid rgba(197, 160, 89, 0.4);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(197, 160, 89, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    position: relative;
}
.final-message-card.visible { opacity: 1; transform: translateY(0); }

.final-message-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.final-message-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    animation: micPulse 2.5s ease-in-out infinite;
}
@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
}
.final-message-text { flex: 1; display: flex; flex-direction: column; }
.final-message-overline {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}
.final-message-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-light);
}
.final-message-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background: var(--accent-gold);
    color: #000;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.final-message-btn:hover { transform: scale(1.06); }
.final-message-btn.playing {
    box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.3);
}
.final-message-bar {
    height: 3px;
    background: rgba(197, 160, 89, 0.2);
    margin-top: 1.2rem;
    overflow: hidden;
    border-radius: 3px;
}
.final-message-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #e8d5a3);
    width: 0%;
    transition: width 0.1s linear;
}
.final-message-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    margin-top: 0.8rem;
    height: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.final-message-card.is-playing .final-message-wave { opacity: 1; }
.final-message-wave span {
    display: inline-block;
    width: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: waveBounce 1s ease-in-out infinite;
}
.final-message-wave span:nth-child(1) { animation-delay: 0.0s; height: 30%; }
.final-message-wave span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.final-message-wave span:nth-child(3) { animation-delay: 0.2s; height: 90%; }
.final-message-wave span:nth-child(4) { animation-delay: 0.3s; height: 70%; }
.final-message-wave span:nth-child(5) { animation-delay: 0.4s; height: 50%; }
.final-message-wave span:nth-child(6) { animation-delay: 0.5s; height: 80%; }
.final-message-wave span:nth-child(7) { animation-delay: 0.6s; height: 40%; }
@keyframes waveBounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

@media (max-width: 600px) {
    .final-message-card { padding: 1.3rem 1rem 1rem; }
    .final-message-icon { width: 44px; height: 44px; }
    .final-message-title { font-size: 1.05rem; }
    .final-message-btn { width: 46px; height: 46px; }
}

/* Birthday button pulse when autoplay blocked */
.birthday-play-btn.pulse-prompt {
    animation: bdayPulse 1.5s ease-in-out infinite;
}
@keyframes bdayPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
}

.hero h1 { will-change: transform; }
.hero-bg { will-change: transform, opacity; }

@media (max-width: 600px) {
    .calls-counter-inner { flex-direction: column; }
    .calls-counter-text { text-align: center; }
    .moments-carousel { padding: 1rem; }
}
