:root {
    --forest: #0c2a1c;
    --forest-deep: #06160f;
    --fern: #1f583b;
    --sage: #9caf8c;
    --moss: #6f8b62;
    --cream: #f4efe2;
    --paper: #fbf7eb;
    --ink: #173125;
    --gold: #b89a5d;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 300px;
    scroll-behavior: smooth;
    background: var(--forest-deep);
}

body {
    min-width: 300px;
    margin: 0;
    color: var(--cream);
    background: var(--forest-deep);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: var(--cream);
    background: var(--fern);
}

a {
    color: inherit;
}

button {
    font: inherit;
}

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

.skipLink {
    position: fixed;
    z-index: 200;
    top: 14px;
    left: 50%;
    padding: 11px 16px;
    color: var(--forest-deep);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    transform: translate(-50%, -180%);
    transition: transform 180ms ease;
}

.skipLink:focus {
    transform: translate(-50%, 0);
}

.siteHeader {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 60px);
}

.monogram {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--cream);
    font-size: 1.05rem;
    text-decoration: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.monogram span:nth-child(2) {
    color: #d9c79e;
    font-size: 0.7rem;
    font-style: italic;
}

.languageSwitcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(5, 24, 15, 0.56);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.languageButton {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 5px 11px 5px 7px;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.languageButton:hover,
.languageButton:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.languageButton.isSelected {
    color: var(--forest-deep);
    background: var(--cream);
}

.flag {
    font-size: 1.1rem;
    line-height: 1;
}

.languageCode {
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

.invitationScene {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: clamp(90px, 10vw, 126px) 18px clamp(74px, 7vw, 96px);
    overflow: hidden;
    isolation: isolate;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.sceneShade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 20, 11, 0.68), rgba(4, 22, 12, 0.34) 42%, rgba(2, 15, 8, 0.82)),
        radial-gradient(circle at center, transparent 0, rgba(1, 12, 6, 0.1) 40%, rgba(1, 12, 6, 0.62) 100%);
}

.invitationScene::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.24;
    pointer-events: none;
    background-image: repeating-radial-gradient(circle at 10% 20%, transparent 0, rgba(255, 255, 255, 0.5) 0.5px, transparent 0.8px, transparent 5px);
    background-size: 8px 8px;
    mix-blend-mode: soft-light;
}

.leaf {
    position: absolute;
    z-index: -1;
    width: 200px;
    height: 420px;
    opacity: 0.52;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
}

.leaf::before,
.leaf::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 16%, #4c774c 0 14%, transparent 15%),
        radial-gradient(ellipse at 74% 29%, #355e3e 0 15%, transparent 16%),
        radial-gradient(ellipse at 18% 43%, #446f47 0 15%, transparent 16%),
        radial-gradient(ellipse at 77% 57%, #2f5a39 0 15%, transparent 16%),
        radial-gradient(ellipse at 22% 72%, #3e6942 0 14%, transparent 15%),
        linear-gradient(88deg, transparent 48%, #54714a 49% 51%, transparent 52%);
}

.leafOne {
    bottom: -156px;
    left: -44px;
    transform: rotate(26deg);
}

.leafTwo {
    top: -174px;
    right: -34px;
    transform: rotate(205deg);
}

.envelopeStage,
.invitationCard {
    grid-area: 1 / 1;
}

.envelopeStage {
    display: none;
}

.js .envelopeStage {
    display: flex;
    z-index: 3;
    flex-direction: column;
    align-items: center;
    width: min(760px, 96vw);
    text-align: center;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
}

.envelopeKicker,
.openingStatus {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(0.68rem, 1.4vw, 0.84rem);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.74);
}

.envelopeKicker {
    margin-bottom: clamp(8px, 1vw, 16px);
}

.envelopeImage {
    width: min(680px, 92vw);
    filter: drop-shadow(0 32px 45px rgba(0, 0, 0, 0.46));
}

.openingStatus {
    display: flex;
    align-items: center;
    min-height: 22px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.92);
}

.openingLine {
    position: relative;
    width: min(260px, 60vw);
    height: 1px;
    margin-top: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
}

.openingLine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--cream);
    transform: translateX(-100%);
    animation: openingLine 1.5s linear forwards;
}

.invitationCard {
    position: relative;
    z-index: 2;
    width: min(720px, 94vw);
    min-height: min(740px, 80svh);
    padding: clamp(48px, 6vw, 78px) clamp(28px, 7vw, 88px) clamp(42px, 5vw, 66px);
    overflow: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 16%, rgba(63, 91, 57, 0.055) 0 1px, transparent 1.8px),
        radial-gradient(circle at 77% 61%, rgba(102, 76, 42, 0.055) 0 1px, transparent 1.7px),
        linear-gradient(135deg, #fcf9ef, #f3ecda);
    background-size: 13px 13px, 17px 17px, auto;
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.46), inset 0 0 0 8px rgba(255, 255, 255, 0.24);
    text-align: center;
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.js .invitationCard {
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px) rotate(0.8deg) scale(0.96);
    transition: opacity 1200ms ease 420ms, transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) 420ms;
}

.js body.invitationRevealed .envelopeStage {
    pointer-events: none;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-14px) scale(1.035);
}

.js body.invitationRevealed .invitationCard {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

.cardEyebrow,
.formalInvitation,
.dateDay,
.timeNotice,
.detailsNotice {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.cardEyebrow {
    margin: 0 0 24px;
    color: #53705b;
    font-size: clamp(0.62rem, 1.2vw, 0.73rem);
    font-weight: 600;
}

.invitationCard h1 {
    margin: 0;
    color: var(--fern);
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.formalInvitation {
    max-width: 420px;
    margin: 24px auto 16px;
    color: #506356;
    font-size: clamp(0.6rem, 1.15vw, 0.72rem);
    line-height: 1.7;
}

.coupleNames {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 28px);
    margin: 5px 0 22px;
    color: #173f2b;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.coupleNames i {
    color: var(--gold);
    font-size: 0.6em;
    font-weight: 400;
}

.dateLockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.3vw, 1.42rem);
}

.dateDay {
    padding-right: 14px;
    border-right: 1px solid rgba(23, 49, 37, 0.34);
    color: #5b765f;
    font-size: 0.57em;
    font-weight: 700;
}

.dateLockup time {
    letter-spacing: 0.02em;
}

.cardRule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(22px, 3vw, 32px) 0;
    color: var(--gold);
}

.cardRule::before,
.cardRule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(23, 49, 37, 0.2);
}

.venueAddress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-style: normal;
}

.venueAddress strong {
    color: #214b34;
    font-size: clamp(1.06rem, 2.1vw, 1.4rem);
    font-weight: 400;
}

.venueAddress span {
    color: #5e6a62;
    font-family: var(--sans);
    font-size: clamp(0.68rem, 1.3vw, 0.78rem);
    line-height: 1.5;
}

.timeNotice {
    margin: 18px 0 0;
    color: #314d3a;
    font-size: clamp(0.62rem, 1.15vw, 0.72rem);
    font-weight: 700;
}

.detailsNotice {
    margin: 8px 0 0;
    color: #7c705b;
    font-size: clamp(0.57rem, 1vw, 0.67rem);
}

html[lang="ja"] .invitationCard h1 {
    font-size: clamp(2.45rem, 5.5vw, 4.15rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    white-space: pre-line;
}

html[lang="ja"] .cardEyebrow,
html[lang="ja"] .formalInvitation,
html[lang="ja"] .timeNotice,
html[lang="ja"] .detailsNotice {
    text-transform: none;
    letter-spacing: 0.08em;
}

.cardBotanical {
    position: absolute;
    width: 150px;
    height: 160px;
    opacity: 0.32;
}

.cardBotanical::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 1px;
    height: 166px;
    background: var(--fern);
    transform: rotate(31deg);
    transform-origin: center;
}

.cardBotanical span {
    position: absolute;
    width: 46px;
    height: 22px;
    border: 1px solid var(--fern);
    border-radius: 100% 0 100% 0;
}

.cardBotanical span:nth-child(1) {
    top: 28px;
    left: 61px;
    transform: rotate(25deg);
}

.cardBotanical span:nth-child(2) {
    top: 58px;
    left: 31px;
    transform: rotate(200deg);
}

.cardBotanical span:nth-child(3) {
    top: 89px;
    left: 70px;
    transform: rotate(19deg);
}

.cardBotanical span:nth-child(4) {
    top: 119px;
    left: 42px;
    transform: rotate(205deg);
}

.cardBotanicalTop {
    top: -35px;
    right: -25px;
    transform: rotate(-14deg);
}

.cardBotanicalBottom {
    bottom: -36px;
    left: -32px;
    transform: rotate(165deg);
}

.scrollPrompt {
    position: absolute;
    z-index: 5;
    bottom: 20px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.22em;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 500ms ease 1700ms, transform 500ms ease 1700ms;
}

.invitationRevealed .scrollPrompt {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scrollArrow {
    font-size: 0.95rem;
    animation: scrollArrow 1.8s ease-in-out infinite;
}

.photoWall {
    position: relative;
    min-height: 100svh;
    padding: clamp(90px, 11vw, 150px) clamp(20px, 5vw, 80px) clamp(110px, 12vw, 170px);
    overflow: hidden;
    color: var(--cream);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 16% 20%, rgba(147, 177, 120, 0.16), transparent 30%),
        radial-gradient(circle at 82% 74%, rgba(115, 145, 94, 0.15), transparent 28%),
        #173c2b;
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.photoWall::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    background-image: repeating-radial-gradient(circle at 24% 36%, transparent 0, #fff 0.6px, transparent 0.9px, transparent 4px);
    background-size: 6px 6px;
    mix-blend-mode: overlay;
}

.wallHeading {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto clamp(60px, 8vw, 110px);
    text-align: center;
}

.wallHeading p,
.venueEyebrow {
    margin: 0 0 16px;
    color: #c7d5b9;
    font-family: var(--sans);
    font-size: clamp(0.62rem, 1.2vw, 0.76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.wallHeading h2 {
    margin: 0 0 20px;
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.wallHeading > span {
    display: block;
    max-width: 580px;
    margin: 0 auto;
    color: rgba(245, 240, 226, 0.72);
    font-family: var(--sans);
    font-size: clamp(0.88rem, 1.6vw, 1.04rem);
    line-height: 1.7;
}

.pinnedPhotos {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: clamp(20px, 4vw, 64px);
    max-width: 1320px;
    margin: 0 auto;
}

.pinnedPhoto {
    position: relative;
    margin: 0;
    padding: clamp(12px, 1.5vw, 18px) clamp(12px, 1.5vw, 18px) clamp(42px, 4vw, 62px);
    color: #213126;
    background: #f7f3e8;
    box-shadow: 0 26px 55px rgba(1, 13, 7, 0.35), 0 3px 8px rgba(1, 13, 7, 0.24);
    transform-origin: center top;
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 450ms ease;
}

.pinnedPhoto:hover {
    z-index: 4;
    box-shadow: 0 34px 75px rgba(1, 13, 7, 0.46), 0 4px 10px rgba(1, 13, 7, 0.3);
}

.pinnedPhotoOne {
    transform: rotate(-5deg) translateY(16px);
}

.pinnedPhotoOne:hover {
    transform: rotate(-2deg) translateY(2px) scale(1.025);
}

.pinnedPhotoTwo {
    transform: rotate(2.5deg) translateY(-18px);
}

.pinnedPhotoTwo:hover {
    transform: rotate(0.8deg) translateY(-28px) scale(1.025);
}

.pinnedPhotoThree {
    transform: rotate(-1.5deg) translateY(25px);
}

.pinnedPhotoThree:hover {
    transform: rotate(0deg) translateY(12px) scale(1.025);
}

.pinnedPhotoFour {
    transform: rotate(3.5deg) translateY(28px);
}

.pinnedPhotoFour:hover {
    transform: rotate(1deg) translateY(14px) scale(1.025);
}

.pinnedPhotoFive {
    transform: rotate(-2.5deg) translateY(-8px);
}

.pinnedPhotoFive:hover {
    transform: rotate(-0.5deg) translateY(-20px) scale(1.025);
}

.pinnedPhotoSix {
    transform: rotate(4deg) translateY(18px);
}

.pinnedPhotoSix:hover {
    transform: rotate(1.5deg) translateY(5px) scale(1.025);
}

.photoMat {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d4d8ca;
}

.pinnedPhotoLandscape .photoMat {
    aspect-ratio: 5 / 4;
}

.photoMat::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(12, 36, 23, 0.24);
    pointer-events: none;
}

.photoMat img {
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(0.96) sepia(0.06);
}

.pinnedPhotoOne img {
    object-position: 54% center;
}

.pinnedPhotoTwo img {
    object-position: 45% center;
}

.pinnedPhotoThree img {
    object-position: center;
}

.pinnedPhotoFour img {
    object-position: center 45%;
}

.pinnedPhotoFive img {
    object-position: center;
}

.pinnedPhotoSix img {
    object-position: center 42%;
}

.pinnedPhoto figcaption {
    position: absolute;
    right: 14px;
    bottom: 15px;
    left: 14px;
    font-size: clamp(0.96rem, 1.8vw, 1.25rem);
    font-style: italic;
    text-align: center;
}

.pin {
    position: absolute;
    z-index: 2;
    top: -8px;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid #bc9c52;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f8e8ad, #b68d3f 58%, #75541f);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
}

.venueSection {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 96svh;
    padding: clamp(70px, 8vw, 120px) clamp(20px, 7vw, 110px);
    isolation: isolate;
    background-image: var(--venue-image);
    background-position: center;
    background-size: cover;
}

.venueSection::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 18, 10, 0.16), rgba(3, 19, 10, 0.34) 42%, rgba(2, 16, 8, 0.74));
}

.venuePanel {
    width: min(600px, 100%);
    padding: clamp(34px, 5vw, 68px);
    background: rgba(7, 32, 19, 0.83);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(14px);
}

.venuePanel h2 {
    margin: 0 0 26px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

.venuePanel > p:not(.venueEyebrow) {
    max-width: 480px;
    margin: 0;
    color: rgba(244, 239, 226, 0.76);
    font-family: var(--sans);
    font-size: clamp(0.9rem, 1.6vw, 1.02rem);
    line-height: 1.7;
}

.venueMeta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: clamp(30px, 5vw, 52px) 0 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.venueMeta p {
    margin: 0;
}

.venueMeta span {
    display: block;
    margin-bottom: 8px;
    color: #c3d4b3;
    font-family: var(--sans);
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.venueMeta strong {
    font-size: clamp(0.88rem, 1.5vw, 1rem);
    font-weight: 400;
    line-height: 1.5;
}

.mapLink {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.14em;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.mapLink:hover,
.mapLink:focus-visible {
    color: var(--forest-deep);
    background: var(--cream);
    transform: translateY(-2px);
}

.siteFooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(70px, 8vw, 110px) 20px 34px;
    color: var(--cream);
    background: #071b12;
    text-align: center;
}

.footerNames {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.footerNames span {
    color: var(--gold);
    font-size: 0.64em;
    font-style: italic;
}

.siteFooter > p:nth-child(2) {
    margin: 18px 0 22px;
    color: rgba(244, 239, 226, 0.68);
    font-family: var(--sans);
    font-size: 0.86rem;
}

.footerDate {
    margin: 0 0 42px;
    color: #c7d5b9;
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.photoCredit {
    color: rgba(244, 239, 226, 0.34);
    font-family: var(--sans);
    font-size: 0.57rem;
    line-height: 1.5;
    text-decoration: none;
}

.photoCredit:hover,
.photoCredit:focus-visible {
    color: rgba(244, 239, 226, 0.72);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.isVisible {
    opacity: 1;
    transform: translateY(0);
}

.pinnedPhotoOne.reveal.isVisible {
    transform: rotate(-5deg) translateY(16px);
}

.pinnedPhotoTwo.reveal.isVisible {
    transform: rotate(2.5deg) translateY(-18px);
}

.pinnedPhotoThree.reveal.isVisible {
    transform: rotate(-1.5deg) translateY(25px);
}

.pinnedPhotoFour.reveal.isVisible {
    transform: rotate(3.5deg) translateY(28px);
}

.pinnedPhotoFive.reveal.isVisible {
    transform: rotate(-2.5deg) translateY(-8px);
}

.pinnedPhotoSix.reveal.isVisible {
    transform: rotate(4deg) translateY(18px);
}

@keyframes openingLine {
    to {
        transform: translateX(0);
    }
}

@keyframes scrollArrow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@media (max-width: 820px) {
    .siteHeader {
        align-items: flex-start;
    }

    .languageCode {
        display: none;
    }

    .languageButton {
        justify-content: center;
        width: 36px;
        padding: 5px;
    }

    .pinnedPhotos {
        grid-template-columns: minmax(0, 430px);
        justify-content: center;
        gap: 58px;
    }

    .pinnedPhotoOne,
    .pinnedPhotoOne.reveal.isVisible {
        transform: rotate(-3.5deg);
    }

    .pinnedPhotoTwo,
    .pinnedPhotoTwo.reveal.isVisible {
        transform: rotate(2deg);
    }

    .pinnedPhotoThree,
    .pinnedPhotoThree.reveal.isVisible {
        transform: rotate(-1.5deg);
    }

    .pinnedPhotoFour,
    .pinnedPhotoFour.reveal.isVisible {
        transform: rotate(2.5deg);
    }

    .pinnedPhotoFive,
    .pinnedPhotoFive.reveal.isVisible {
        transform: rotate(-2deg);
    }

    .pinnedPhotoSix,
    .pinnedPhotoSix.reveal.isVisible {
        transform: rotate(2deg);
    }

    .photoMat {
        aspect-ratio: 4 / 5;
    }

    .pinnedPhotoLandscape .photoMat {
        aspect-ratio: 5 / 4;
    }

    .venueSection {
        align-items: flex-end;
        justify-content: center;
        padding: 58svh 18px 24px;
    }

    .venueSection::before {
        background: linear-gradient(180deg, rgba(3, 18, 10, 0.04), rgba(3, 19, 10, 0.22) 36%, rgba(2, 16, 8, 0.74) 66%);
    }
}

@media (max-width: 560px) {
    .invitationScene {
        min-height: 100svh;
        padding: 84px 12px 60px;
    }

    .envelopeImage {
        width: 105vw;
        max-width: none;
    }

    .invitationCard {
        min-height: auto;
        padding: 46px 22px 36px;
        box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45), inset 0 0 0 5px rgba(255, 255, 255, 0.24);
    }

    .formalInvitation {
        margin-top: 18px;
        line-height: 1.55;
    }

    .coupleNames {
        flex-wrap: wrap;
        gap: 3px 10px;
        margin-bottom: 18px;
    }

    .coupleNames i {
        font-size: 0.48em;
    }

    .dateLockup {
        gap: 10px;
    }

    .dateDay {
        padding-right: 10px;
    }

    .cardRule {
        margin: 19px 0;
    }

    .cardBotanical {
        width: 120px;
        opacity: 0.2;
    }

    .wallHeading h2 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .photoWall {
        padding-right: 26px;
        padding-left: 26px;
    }

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

    .venuePanel {
        padding: 34px 24px;
    }
}

@media (max-height: 740px) and (min-width: 561px) {
    .invitationScene {
        min-height: 820px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
