:root {
    --color-ivory: #111111;
    --color-white: #F4F0E8;
    --color-blush: #24211D;
    --color-blush-soft: #181818;
    --color-dusty-rose: #C9BDAA;
    --color-champagne: #C5A46D;
    --color-gold: #C5A46D;
    --color-wine: #F4F0E8;
    --color-wine-deep: #0B0B0B;
    --color-ink: #F4F0E8;
    --color-muted: #B7AEA1;
    --color-dark-text: #181818;
    --color-dark-panel: #151515;
    --color-line: rgba(197, 164, 109, 0.22);
    --color-overlay: rgba(0, 0, 0, 0.58);
    --color-header-bg: rgba(17, 17, 17, 0.82);
    --color-form-bg: #F4F0E8;
    --color-form-border: rgba(24, 24, 24, 0.22);
    --color-focus: #C5A46D;
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.42);
    --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.26);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Montserrat", Arial, sans-serif;
    --section-padding: clamp(76px, 10vw, 142px);
    --ease-noir: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--color-ivory);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

body.nav-locked,
body.lightbox-open {
    overflow: hidden;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--color-white);
    color: var(--color-dark-text);
    border-radius: 4px;
    transform: translateY(-140%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 74px;
    padding: 14px clamp(18px, 4vw, 54px);
    color: var(--color-white);
    transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.scrolled,
.site-header.nav-open {
    background: var(--color-header-bg);
    border-bottom: 1px solid rgba(197, 164, 109, 0.16);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(197, 164, 109, 0.72);
    color: var(--color-champagne);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0;
}

.nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    place-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 240, 232, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
    position: fixed;
    inset: 74px 12px auto;
    display: grid;
    gap: 2px;
    max-height: calc(100svh - 90px);
    padding: 18px;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
    color: var(--color-champagne);
}

.primary-nav .nav-rsvp {
    color: var(--color-champagne);
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 10px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.language-selector span {
    opacity: 0.45;
}

.language-option {
    min-width: 42px;
    min-height: 36px;
    padding: 7px 8px;
    background: transparent;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-pressed="true"] {
    color: var(--color-champagne);
    border-color: rgba(197, 164, 109, 0.44);
}

.language-announcement {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    place-items: end start;
    padding: clamp(112px, 13vw, 170px) clamp(18px, 6vw, 88px) clamp(76px, 8vw, 120px);
    color: var(--color-white);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    z-index: -2;
    object-fit: cover;
    object-position: 50% 38%;
    transform: scale(1.025);
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 54%, rgba(0, 0, 0, 0.18)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.78));
}

.hero-content {
    width: min(980px, 100%);
}

.hero-kicker,
.section-kicker,
.card-label {
    margin: 0 0 14px;
    color: var(--color-champagne);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.45;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0;
}

h1 {
    max-width: 100%;
    color: var(--color-white);
    font-size: clamp(4.4rem, 18vw, 15.5rem);
    line-height: 0.75;
}

h2 {
    color: var(--color-white);
    font-size: clamp(2.55rem, 8.5vw, 6.2rem);
    line-height: 0.95;
}

h3 {
    color: var(--color-white);
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    line-height: 1;
}

p {
    margin-top: 0;
}

.hero-milestone {
    max-width: 720px;
    margin: clamp(18px, 3vw, 34px) 0 0;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 5rem);
    line-height: 0.98;
}

.hero-date {
    width: fit-content;
    max-width: 100%;
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(197, 164, 109, 0.78);
    color: var(--color-muted);
    font-size: clamp(0.78rem, 2.2vw, 0.96rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.45;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    background: var(--color-white);
    color: var(--color-dark-text);
    border: 1px solid var(--color-white);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.button:hover,
.button:focus-visible {
    background: var(--color-champagne);
    border-color: var(--color-champagne);
    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;
    color: var(--color-champagne);
    border-color: rgba(197, 164, 109, 0.64);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--color-champagne);
    color: var(--color-dark-text);
    border-color: var(--color-champagne);
}

.button[disabled],
.button[aria-disabled="true"] {
    background: rgba(244, 240, 232, 0.28);
    border-color: rgba(244, 240, 232, 0.22);
    color: rgba(244, 240, 232, 0.68);
    cursor: not-allowed;
    transform: none;
}

.hero-cta {
    margin-top: 28px;
}

.scroll-indicator {
    position: absolute;
    right: clamp(18px, 4vw, 56px);
    bottom: 28px;
    display: grid;
    width: 28px;
    height: 48px;
    border: 1px solid rgba(244, 240, 232, 0.58);
    border-radius: 999px;
    place-items: start center;
}

.scroll-indicator span {
    width: 4px;
    height: 4px;
    margin-top: 10px;
    background: var(--color-champagne);
    border-radius: 50%;
    animation: scrollDot 1.9s ease-in-out infinite;
}

.section {
    padding: var(--section-padding) 0;
}

.section-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100% - 36px));
    text-align: center;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto clamp(34px, 6vw, 68px);
    text-align: center;
}

.align-left {
    margin-left: 0;
    text-align: left;
}

.lead {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.6vw, 3.3rem);
    line-height: 1.08;
}

.invitation-section {
    background: var(--color-ivory);
}

.invitation-section h2 {
    line-height: 1.04;
}

.editorial-split {
    display: grid;
    gap: clamp(34px, 7vw, 90px);
}

.intro-copy {
    max-width: 650px;
    color: var(--color-muted);
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

.countdown-section {
    padding: clamp(88px, 12vw, 150px) 0;
    background: var(--color-blush-soft);
    color: var(--color-white);
}

.countdown-inner {
    display: grid;
    gap: clamp(28px, 5vw, 54px);
    text-align: center;
}

.countdown-composition {
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    padding: clamp(34px, 7vw, 72px) 0;
}

.countdown {
    display: block;
}

.countdown div {
    min-width: 0;
}

.countdown-secondary {
    display: none;
}

.countdown strong {
    display: block;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 24vw, 15rem);
    font-weight: 500;
    line-height: 0.78;
}

.countdown span {
    display: block;
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.countdown-date {
    margin: clamp(26px, 5vw, 44px) 0 0;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.4rem);
    line-height: 1.04;
}

.countdown-time {
    margin: 14px auto 0;
    color: var(--color-muted);
    font-size: clamp(0.78rem, 2.3vw, 0.98rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.45;
    text-transform: uppercase;
}

.countdown-complete {
    margin: clamp(26px, 5vw, 44px) 0 0;
    color: var(--color-champagne);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.calendar-button {
    gap: 9px;
    margin-top: 32px;
}

.venue-section {
    position: relative;
    display: grid;
    min-height: 86svh;
    overflow: hidden;
    align-items: end;
    padding: 0;
    background: var(--color-wine-deep);
}

.venue-media {
    position: absolute;
    inset: 0;
}

.venue-media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86));
    content: "";
}

.venue-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 48%;
    transform: scale(1.04);
}

.venue-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    padding: clamp(96px, 15vw, 170px) clamp(18px, 6vw, 88px);
}

.venue-copy .lead {
    margin-top: 22px;
}

#venue-address {
    margin: 24px 0;
    color: var(--color-muted);
}

.details-section {
    background: var(--color-blush-soft);
}

.details-grid {
    display: grid;
    gap: 1px;
    background: var(--color-line);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.detail-card {
    position: relative;
    min-width: 0;
    padding: clamp(34px, 6vw, 68px);
    background: var(--color-blush-soft);
}

.detail-card[hidden] {
    display: none;
}

.dress-card {
    display: grid;
    gap: 16px;
}

.dress-card .lead {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: clamp(1.45rem, 3.8vw, 2.45rem);
}

.dress-swatches {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.dress-swatches span {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(244, 240, 232, 0.28);
}

.dress-swatches span:nth-child(1) {
    background: #111111;
}

.dress-swatches span:nth-child(2) {
    background: #C5A46D;
}

.dress-swatches span:nth-child(3) {
    background: #C9BDAA;
}

.registry-card p:not(.section-kicker):not(.small-note) {
    max-width: 540px;
    margin-top: clamp(22px, 4vw, 36px);
    color: var(--color-muted);
}

.placeholder-button {
    margin-top: 8px;
}

.small-note {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.gallery-section {
    background: var(--color-ivory);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gallery-item {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    padding: 0;
    background: var(--color-dark-panel);
    border: 1px solid rgba(197, 164, 109, 0.16);
    border-radius: 0;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 900ms var(--ease-noir), filter 900ms var(--ease-noir);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.035);
}

.rsvp-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.88)),
        var(--image-rsvp-background, url("images/gallery-3-placeholder.svg")) center / cover;
    color: var(--color-white);
}

.rsvp-layout {
    display: grid;
    gap: clamp(32px, 6vw, 68px);
    align-items: start;
}

.rsvp-copy {
    max-width: 650px;
}

.rsvp-copy p {
    color: var(--color-muted);
    font-size: 1.04rem;
}

.deadline {
    display: inline-block;
    margin: 10px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(197, 164, 109, 0.56);
    color: var(--color-champagne) !important;
    font-weight: 700;
}

.rsvp-form,
.rsvp-closed {
    display: grid;
    gap: 14px;
    padding: clamp(22px, 4.6vw, 40px);
    background: var(--color-form-bg);
    color: var(--color-dark-text);
    border: 1px solid rgba(244, 240, 232, 0.22);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.rsvp-closed[hidden] {
    display: none;
}

.rsvp-closed h3 {
    color: var(--color-dark-text);
    font-size: clamp(2rem, 5vw, 3rem);
}

.rsvp-closed p {
    margin: 0;
    color: #5F574E;
}

.field-group {
    display: grid;
    gap: 6px;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rsvp-form label,
.attendance-group legend {
    color: var(--color-dark-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.attendance-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.attendance-group legend {
    margin-bottom: 8px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 13px;
    background: #FFFFFF;
    border: 1px solid var(--color-form-border);
    border-radius: 4px;
    cursor: pointer;
}

.radio-card input {
    width: 18px;
    min-height: 18px;
    accent-color: #111111;
}

.radio-card span {
    color: var(--color-dark-text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.radio-card:has(input:checked) {
    border-color: var(--color-champagne);
    box-shadow: 0 0 0 3px rgba(197, 164, 109, 0.2);
}

.rsvp-form input,
.rsvp-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    color: var(--color-dark-text);
    background: #FFFFFF;
    border: 1px solid var(--color-form-border);
    border-radius: 4px;
    outline: 0;
}

.rsvp-form .radio-card input {
    width: 18px;
    min-height: 18px;
    padding: 0;
}

.rsvp-form textarea {
    resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    border-color: #8A6C3D;
    box-shadow: 0 0 0 4px rgba(197, 164, 109, 0.2);
}

.rsvp-form input[aria-invalid="true"],
.rsvp-form textarea[aria-invalid="true"] {
    border-color: #9C2A3B;
}

.field-error,
.field-help,
.form-note {
    min-height: 22px;
    margin: 0;
    font-size: 0.9rem;
}

.field-error {
    color: #8F2431;
}

.field-help {
    color: #5F574E;
}

.form-note {
    color: var(--color-dark-text);
    text-align: center;
}

.turnstile-wrapper {
    display: grid;
    gap: 6px;
    min-height: 0;
}

.button-large {
    width: 100%;
    min-height: 58px;
    background: var(--color-dark-text);
    color: var(--color-white);
    border-color: var(--color-dark-text);
}

.button-large:hover,
.button-large:focus-visible {
    background: var(--color-champagne);
    color: var(--color-dark-text);
    border-color: var(--color-champagne);
}

.music-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    background: rgba(17, 17, 17, 0.92);
    color: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.music-toggle[hidden] {
    display: none;
}

.music-icon {
    font-size: 1.1rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
    padding: 72px 14px 24px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox figure {
    display: grid;
    gap: 12px;
    justify-items: center;
    min-width: 0;
    margin: 0;
}

.lightbox img {
    max-width: 100%;
    max-height: 78svh;
    object-fit: contain;
}

.lightbox figcaption {
    color: var(--color-white);
    font-size: 0.92rem;
    text-align: center;
}

.lightbox-close,
.lightbox-control {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-control {
    font-size: 2.5rem;
    line-height: 1;
}

.final-section {
    display: grid;
    min-height: 52vh;
    padding: var(--section-padding) 0;
    place-items: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.92)),
        var(--image-final-background, url("images/hero-placeholder.svg")) center / cover;
    color: var(--color-white);
    text-align: center;
}

.final-section h2 {
    margin-top: 8px;
    color: var(--color-white);
    font-size: clamp(3.3rem, 13vw, 9rem);
}

.final-section span {
    display: block;
    margin-top: 18px;
    color: var(--color-champagne);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    padding: 24px 18px;
    background: #0B0B0B;
    color: rgba(244, 240, 232, 0.72);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.footer-credit {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35em;
    align-items: center;
    justify-content: center;
}

.footer-heart {
    display: inline-block;
    color: #C83E4D;
}

.site-footer .footer-brand {
    color: var(--color-white);
    font-weight: 700;
    text-decoration-color: rgba(197, 164, 109, 0.56);
    text-underline-offset: 4px;
}

.hero-kicker,
.hero-milestone,
.hero-date,
.hero-cta,
.scroll-indicator {
    opacity: 0;
    transform: translateY(18px);
    animation: heroReveal 850ms var(--ease-noir) forwards;
}

.hero h1 {
    text-indent: 0.06em;
    margin: 0;
    padding: 0;
    line-height: 0.82;
    overflow-wrap: normal;
    word-break: normal;
    clip-path: inset(100% 0 0 0);
    animation: heroNameReveal 1100ms var(--ease-noir) 180ms forwards;
}

.hero h1.hero-name-final {
    animation: none;
    clip-path: none;
}

.hero-kicker {
    animation-delay: 40ms;
}

.hero-milestone {
    animation-delay: 420ms;
}

.hero-date {
    animation-delay: 560ms;
}

.hero-cta {
    animation-delay: 700ms;
}

.scroll-indicator {
    animation-delay: 900ms;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 760ms var(--ease-noir), transform 760ms var(--ease-noir);
}

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

.gallery-item.reveal {
    transform: translateY(24px) scale(0.985);
}

.gallery-item.reveal.visible {
    transform: translateY(0) scale(1);
}

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

@keyframes heroNameReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes scrollDot {
    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    45% {
        opacity: 1;
        transform: translateY(15px);
    }
}

@supports (animation-timeline: view()) {
    .venue-media img {
        animation: venueDrift linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
    }
}

@keyframes venueDrift {
    from {
        transform: scale(1.06) translateY(-1.5%);
    }

    to {
        transform: scale(1.06) translateY(1.5%);
    }
}

@media (min-width: 560px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 260px;
    }

    .gallery-item {
        min-height: auto;
    }

    .gallery-feature {
        grid-row: span 2;
    }

    .gallery-wide {
        grid-column: span 2;
    }
}

@media (min-width: 820px) {
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        display: flex;
        align-items: center;
        width: auto;
        max-height: none;
        padding: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .primary-nav a {
        padding: 8px 10px;
        font-size: 0.68rem;
    }

    .primary-nav .nav-rsvp {
        margin-left: 4px;
        padding-inline: 16px;
        border: 1px solid rgba(197, 164, 109, 0.7);
        border-radius: 999px;
    }

    .language-selector {
        margin-left: 2px;
        padding-inline: 6px;
        font-size: 0.68rem;
    }

    .editorial-split,
    .rsvp-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    }

    .details-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    .dress-card {
        min-height: 420px;
    }

    .venue-copy {
        margin-left: 0;
    }
}

@media (min-width: 1080px) {
    .gallery-grid {
        grid-template-columns: 1.15fr 0.78fr 0.78fr;
        grid-auto-rows: 250px;
    }

    .gallery-feature {
        grid-row: span 2;
    }

    .gallery-offset {
        margin-top: 42px;
    }

    .gallery-wide {
        grid-column: span 2;
    }
}

@media (min-width: 1280px) {
    .site-header {
        padding-inline: 64px;
    }

    .hero {
        padding-inline: 96px;
    }
}

@media (max-width: 430px) {
    body {
        font-size: 0.97rem;
    }

    .brand span:last-child {
        display: none;
    }

    h1 {
        font-size: clamp(4.1rem, 23vw, 5.8rem);
    }

    h2 {
        font-size: clamp(2.35rem, 13vw, 3.35rem);
    }

    .hero {
        min-height: 94svh;
        padding-bottom: 86px;
    }

    .hero-milestone {
        font-size: clamp(2rem, 11vw, 2.9rem);
    }

    .hero-date {
        letter-spacing: 0.1em;
    }

    .button {
        width: 100%;
        padding-inline: 16px;
    }

    .scroll-indicator {
        right: 18px;
    }

    .detail-card,
    .rsvp-form,
    .rsvp-closed {
        padding-inline: 22px;
    }

    .lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding-inline: 8px;
    }

    .lightbox-close,
    .lightbox-control {
        width: 42px;
        height: 42px;
    }
}

@media (hover: none), (max-width: 767px) {
    .venue-media img {
        animation: none;
        transform: scale(1.02);
    }
}

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

    .hero-image,
    .venue-media img,
    .reveal,
    .gallery-item.reveal,
    .hero-kicker,
    .hero-milestone,
    .hero-date,
    .hero-cta,
    .scroll-indicator {
        opacity: 1;
        transform: none;
    }

    .hero h1 {
        animation: none;
        clip-path: none;
    }
}
