:root {
    --bg: #fffaf8;
    --bg-2: #fff6f2;
    --bg-3: #fff0f3;
    --surface: rgba(255, 255, 255, 0.62);
    --surface-strong: rgba(255, 255, 255, 0.82);
    --surface-solid: #fffdfc;
    --line: rgba(135, 94, 106, 0.12);
    --line-strong: rgba(135, 94, 106, 0.18);
    --text: #312126;
    --text-soft: #6f5a61;
    --accent: #e48da0;
    --accent-strong: #cc5f78;
    --accent-2: #f0b7c0;
    --peach: #f6d8c9;
    --lavender: #ead9f5;
    --shadow-sm: 0 12px 30px rgba(124, 86, 97, 0.08);
    --shadow-md: 0 20px 50px rgba(124, 86, 97, 0.12);
    --shadow-lg: 0 35px 90px rgba(124, 86, 97, 0.16);
    --shadow-xl: 0 50px 120px rgba(124, 86, 97, 0.2);
    --radius-xs: 14px;
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --radius-2xl: 52px;
    --container: 1220px;
    --transition-fast: 0.22s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(244, 200, 214, 0.45), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(246, 216, 201, 0.45), transparent 26%),
        radial-gradient(circle at 25% 82%, rgba(234, 217, 245, 0.34), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, #fffaf8 100%);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.2)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 40%);
    opacity: 0.8;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(124, 86, 97, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 86, 97, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
}

::selection {
    background: rgba(228, 141, 160, 0.24);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.45);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(228, 141, 160, 0.7), rgba(204, 95, 120, 0.7));
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.65);
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.bg-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(110px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.75;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 360px;
    height: 360px;
    top: -90px;
    left: -40px;
    background: rgba(243, 182, 201, 0.75);
}

.bg-glow-2 {
    width: 460px;
    height: 460px;
    top: 14%;
    right: -130px;
    background: rgba(246, 216, 201, 0.75);
    animation-delay: 2s;
}

.bg-glow-3 {
    width: 320px;
    height: 320px;
    bottom: 8%;
    left: 18%;
    background: rgba(221, 202, 245, 0.58);
    animation-delay: 4s;
}

@keyframes floatGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(20px, -18px, 0) scale(1.08);
    }
}

.entry-screen,
.waiting-screen {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
}

.entry-screen.active,
.waiting-screen.active {
    display: flex;
}

.entry-screen::before,
.waiting-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), transparent 32%),
        radial-gradient(circle at 20% 80%, rgba(244, 200, 214, 0.18), transparent 18%),
        radial-gradient(circle at 80% 15%, rgba(246, 216, 201, 0.22), transparent 20%);
    pointer-events: none;
}

.entry-card,
.waiting-card {
    position: relative;
    width: min(600px, 100%);
    padding: 40px 34px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 30px 80px rgba(124, 86, 97, 0.14);
    text-align: center;
    overflow: hidden;
    animation: gateRise 0.8s cubic-bezier(.18, .89, .32, 1.1);
}

.entry-card::before,
.waiting-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.75);
    pointer-events: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(228, 141, 160, 0.08);
}

@keyframes gateRise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.entry-badge,
.section-kicker,
.secret-message-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(228, 141, 160, 0.14), rgba(246, 216, 201, 0.26));
    border: 1px solid rgba(228, 141, 160, 0.14);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    box-shadow: 0 10px 24px rgba(228, 141, 160, 0.08);
}

.entry-title,
.waiting-title,
.hero-title,
.section-title {
    margin: 16px 0 12px;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.entry-title {
    font-size: clamp(42px, 7vw, 76px);
}

.waiting-title {
    font-size: clamp(36px, 6vw, 60px);
}

.entry-text,
.waiting-text,
.waiting-subtext,
.section-text,
.hero-lead {
    color: var(--text-soft);
    line-height: 1.78;
}

.entry-text,
.waiting-text,
.waiting-subtext {
    max-width: 460px;
    margin: 0 auto;
}

.password-form {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.password-field {
    position: relative;
}

.password-input {
    width: 100%;
    height: 62px;
    padding: 0 120px 0 20px;
    border-radius: 18px;
    outline: none;
    border: 1px solid rgba(124, 86, 97, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 30px rgba(124, 86, 97, 0.06);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.password-input:focus {
    border-color: rgba(204, 95, 120, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 0 0 5px rgba(228, 141, 160, 0.12),
        0 16px 34px rgba(124, 86, 97, 0.08);
    transform: translateY(-1px);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(124, 86, 97, 0.12);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    box-shadow: 0 10px 20px rgba(124, 86, 97, 0.06);
}

.password-toggle:hover {
    color: var(--text);
    background: #ffffff;
    transform: translateY(-50%) translateY(-1px);
}

.password-toggle:active {
    transform: translateY(-50%);
}

.primary-button,
.ghost-button,
.audio-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 700;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast),
        background var(--transition-fast);
}

.primary-button::before,
.ghost-button::before,
.audio-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 40%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
}

.primary-button:hover::before,
.ghost-button:hover::before,
.audio-button:hover::before {
    transform: translateX(120%);
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #ea98aa 0%, #cf667f 55%, #c45a73 100%);
    box-shadow:
        0 20px 40px rgba(201, 91, 115, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ghost-button {
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(124, 86, 97, 0.1);
    box-shadow:
        0 16px 34px rgba(124, 86, 97, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.audio-button {
    width: 100%;
    color: var(--accent-strong);
    background: linear-gradient(180deg, rgba(228, 141, 160, 0.12), rgba(246, 216, 201, 0.28));
    border: 1px solid rgba(228, 141, 160, 0.16);
    box-shadow: 0 14px 30px rgba(228, 141, 160, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.audio-button:hover {
    transform: translateY(-3px);
    filter: saturate(1.04);
}

.primary-button:active,
.ghost-button:active,
.audio-button:active {
    transform: translateY(0);
}

.audio-button.playing {
    color: #fff;
    background: linear-gradient(135deg, #ea98aa 0%, #cf667f 55%, #c45a73 100%);
    box-shadow:
        0 22px 42px rgba(201, 91, 115, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.error-text {
    min-height: 22px;
    margin: 0;
    color: #c34662;
    font-size: 14px;
    font-weight: 600;
}

.waiting-heart {
    font-size: 58px;
    line-height: 1;
    color: var(--accent-strong);
    animation: pulseHeart 2.2s ease-in-out infinite;
}

@keyframes pulseHeart {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.92;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.countdown {
    margin-top: 22px;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-strong);
    letter-spacing: 0.02em;
}

.site {
    display: none;
}

.site.active {
    display: block;
    animation: siteFadeIn 0.9s ease;
}

@keyframes siteFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(255, 250, 248, 0.78), rgba(255, 250, 248, 0.56));
    border-bottom: 1px solid rgba(124, 86, 97, 0.08);
    box-shadow: 0 10px 30px rgba(124, 86, 97, 0.04);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    position: relative;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(228, 141, 160, 0.26), transparent);
    border-radius: 999px;
    pointer-events: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--text-soft);
    font-weight: 600;
    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.nav a.active {
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
    box-shadow:
        0 10px 24px rgba(124, 86, 97, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(228, 141, 160, 0.95), rgba(204, 95, 120, 0.95));
}

.nav-toggle {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle span:first-child {
    top: 19px;
}

.nav-toggle span:last-child {
    top: 29px;
}

.section {
    position: relative;
    padding: 108px 0;
}

section[id] {
    scroll-margin-top: 110px;
}

.section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(1120px, calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(124, 86, 97, 0.1), transparent);
}

.section:first-of-type::before {
    display: none;
}

.soft-section {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4), transparent 22%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.28), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16));
}

.hero {
    padding: 82px 0 104px;
}

.hero-grid,
.excited-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(58px, 9vw, 112px);
}

.hero-lead {
    max-width: 670px;
    margin-top: 18px;
    font-size: 18px;
}

.hero-dates {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.date-card,
.story-card,
.poem-card,
.voice-card,
.excited-photo-card,
.final-card,
.playlist-card,
.contract-image-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.64));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        var(--shadow-md);
}

.date-card {
    padding: 18px 18px 19px;
    border-radius: 22px;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.date-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        var(--shadow-lg);
    border-color: rgba(228, 141, 160, 0.16);
}

.date-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.date-value {
    display: block;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-side {
    display: flex;
    justify-content: center;
}

.hero-photo-stack {
    position: relative;
    width: min(540px, 100%);
    min-height: 610px;
    perspective: 1200px;
}

.hero-photo-card {
    position: absolute;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-xl);
    background: #fff;
    animation: floatingCard 7s ease-in-out infinite;
}

.hero-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 35%, transparent 70%, rgba(0, 0, 0, 0.08));
    pointer-events: none;
}

.hero-photo-card img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-photo-card.large {
    width: 78%;
    height: 540px;
    left: 10%;
    top: 30px;
    z-index: 2;
    animation-delay: 0.4s;
}

.hero-photo-card.small {
    width: 38%;
    height: 220px;
    z-index: 3;
}

.hero-photo-card.small.top {
    top: 0;
    left: 0;
    transform: rotate(-7deg);
}

.hero-photo-card.small.bottom {
    right: 0;
    bottom: 0;
    transform: rotate(8deg);
    animation-delay: 1.5s;
}

@keyframes floatingCard {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

.section-heading {
    max-width: 780px;
    margin-bottom: 36px;
}

.section-title {
    font-size: clamp(36px, 5vw, 64px);
}

.story-grid,
.voice-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card,
.voice-card,
.poem-card,
.contract-image-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.story-card:hover,
.voice-card:hover,
.poem-card:hover,
.excited-photo-card:hover,
.final-card:hover,
.playlist-card:hover,
.contract-image-card:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        var(--shadow-xl);
    border-color: rgba(228, 141, 160, 0.18);
}

.story-image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%, rgba(20, 10, 12, 0.1));
}

.story-image img,
.excited-photo-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.agreement-image {
    object-fit: contain !important;
    background: #f7f1ef;
    padding: 10px;
}

.story-card:hover .story-image img,
.excited-photo-card:hover img {
    transform: scale(1.05);
}

.story-card-body,
.voice-card,
.poem-card,
.final-card {
    padding: 26px;
}

.story-card-body h3,
.voice-card h3,
.poem-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.story-card-body p,
.voice-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.78;
}

.timeline {
    position: relative;
    display: grid;
    gap: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(228, 141, 160, 0), rgba(228, 141, 160, 0.34), rgba(228, 141, 160, 0));
}

.timeline-item {
    position: relative;
    padding-left: 56px;
}

.timeline-dot {
    position: absolute;
    top: 14px;
    left: 7px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea98aa, #cc5f78);
    box-shadow:
        0 0 0 7px rgba(228, 141, 160, 0.13),
        0 10px 24px rgba(204, 95, 120, 0.18);
}

.timeline-content {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(228, 141, 160, 0.1);
}

.timeline-content h3 {
    margin: 14px 0 10px;
    font-size: 24px;
}

.timeline-content p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.78;
}

.gallery-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-auto-rows: 270px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-card.tall {
    grid-row: span 2;
}

.gallery-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.24), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%, rgba(20, 10, 12, 0.55));
    z-index: 1;
}

.gallery-card figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.excited-grid {
    gap: 44px;
}

.excited-copy {
    position: relative;
}

.excited-copy::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 160px;
    height: 14px;
    background: linear-gradient(90deg, rgba(228, 141, 160, 0.22), transparent);
    border-radius: 999px;
}

.excited-note {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(228, 141, 160, 0.1), rgba(246, 216, 201, 0.18));
    border: 1px solid rgba(228, 141, 160, 0.14);
    color: var(--accent-strong);
    font-weight: 600;
    line-height: 1.75;
    box-shadow: var(--shadow-sm);
}

.excited-photo-card {
    min-height: 560px;
    border-radius: 36px;
    overflow: hidden;
}

.poems-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poem-card {
    display: flex;
    flex-direction: column;
}

.poem-body {
    position: relative;
    max-height: 390px;
    overflow: auto;
    margin-bottom: 18px;
    padding-right: 6px;
    mask-image: linear-gradient(180deg, black 88%, transparent 100%);
}

.poem-body p {
    margin: 0 0 6px;
    line-height: 1.78;
}

.poem-body br {
    display: block;
    content: "";
    margin-bottom: 10px;
}

.poem-body::-webkit-scrollbar {
    width: 10px;
}

.poem-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
}

.poem-body::-webkit-scrollbar-thumb {
    background: rgba(228, 141, 160, 0.36);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.poem-audio {
    margin-top: auto;
}

.voice-grid audio {
    width: 100%;
    margin-top: 18px;
}

.contract-images {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
}

.contract-image-card {
    padding: 14px;
}

.contract-image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.playlist-card {
    padding: 18px;
    border-radius: 32px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.playlist-card iframe {
    display: block;
    width: 100%;
    border-radius: 22px;
    background: #fff;
}

.final-card {
    border-radius: 40px;
    text-align: center;
    padding: 42px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at center, rgba(50, 26, 33, 0.24), rgba(18, 9, 12, 0.78));
    backdrop-filter: blur(14px);
}

.modal.active {
    display: flex;
    animation: modalFade 0.26s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: min(1120px, 100%);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.28);
    transform: translateY(8px);
    animation: modalRise 0.32s ease forwards;
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.image-modal-content {
    padding: 14px;
}

.image-modal-content img {
    max-height: 82vh;
    object-fit: contain;
    border-radius: 20px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.03);
    background: #fff;
}

.secret-message {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.secret-message.active {
    display: flex;
}

.secret-message-card {
    max-width: 620px;
    padding: 28px 24px;
    border-radius: 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-xl);
    animation: secretPop 0.5s ease;
}

.secret-message-text {
    margin-top: 14px;
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.03em;
}

@keyframes secretPop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.heart-rain {
    position: fixed;
    inset: 0;
    z-index: 135;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    top: -40px;
    font-size: 18px;
    opacity: 0.88;
    animation: fallHeart linear forwards;
}

@keyframes fallHeart {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0.9);
        opacity: 0;
    }

    10% {
        opacity: 0.95;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) scale(1.15);
        opacity: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.9s cubic-bezier(.16, 1, .3, 1),
        transform 0.9s cubic-bezier(.16, 1, .3, 1),
        filter 0.9s cubic-bezier(.16, 1, .3, 1);
    filter: blur(12px);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1120px) {

    .hero-grid,
    .excited-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        order: -1;
    }

    .hero-photo-stack {
        min-height: 520px;
    }

    .hero-dates,
    .story-grid,
    .voice-grid,
    .poems-grid,
    .contract-images {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-card.tall {
        grid-row: span 1;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 249, 0.9));
        border: 1px solid rgba(124, 86, 97, 0.08);
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        display: flex;
        animation: navDrop 0.28s ease;
    }

    @keyframes navDrop {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-dates,
    .story-grid,
    .voice-grid,
    .poems-grid,
    .gallery-grid,
    .contract-images {
        grid-template-columns: 1fr;
    }

    .hero-photo-stack {
        min-height: 450px;
    }

    .hero-photo-card.large {
        width: 76%;
        height: 400px;
    }

    .hero-photo-card.small {
        width: 35%;
        height: 170px;
    }

    .section {
        padding: 86px 0;
    }

    .entry-card,
    .waiting-card {
        padding: 34px 22px;
        border-radius: 30px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 22px));
    }

    .header-inner {
        min-height: 76px;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-photo-stack {
        min-height: 370px;
    }

    .hero-photo-card.large {
        width: 78%;
        height: 330px;
        left: 11%;
    }

    .hero-photo-card.small {
        width: 36%;
        height: 128px;
    }

    .section {
        padding: 74px 0;
    }

    .section-title {
        font-size: 34px;
    }

    .timeline-item {
        padding-left: 44px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-dot {
        left: 3px;
    }

    .story-card-body,
    .voice-card,
    .poem-card,
    .final-card {
        padding: 22px 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .audio-button {
        width: 100%;
    }

    .poem-body {
        max-height: 330px;
    }

    .password-input {
        padding-right: 108px;
    }

    .password-toggle {
        padding: 0 12px;
    }
}