:root {
    --color-ivory: #FAF8F3;
    --color-white: #FFFFFF;
    --color-blush: #E8E9ED;
    --color-blush-soft: #F3F4F7;
    --color-dusty-rose: #4F6FAE;
    --color-champagne: #C5C8CF;
    --color-gold: #236BFF;
    --color-wine: #1859D9;
    --color-wine-deep: #163C84;
    --color-ink: #202228;
    --color-muted: #606671;
    --color-line: rgba(32, 34, 40, 0.14);
    --next-bg: #FAF8F3;
    --next-surface: #FFFFFF;
    --next-primary: #236BFF;
    --next-primary-deep: #163C84;
    --next-charcoal: #202228;
    --next-gray: #E8E9ED;
    --next-silver: #C5C8CF;
    --next-text: #202228;
    --next-muted: #606671;
    --next-line: rgba(32, 34, 40, 0.14);
    --next-focus: rgba(35, 107, 255, 0.72);
    --shadow-soft: 0 24px 70px rgba(22, 60, 132, 0.14);
    --shadow-card: 0 18px 44px rgba(22, 60, 132, 0.1);
    --font-display: "Space Grotesk", "Inter", Arial, sans-serif;
    --font-body: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--next-bg);
    color: var(--next-text);
    font-family: var(--font-body);
    line-height: 1.55;
}

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

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

button,
a,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--next-focus);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 10px 14px;
    background: var(--next-charcoal);
    color: var(--color-white);
    font-weight: 800;
    text-decoration: none;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(18px, 4vw, 42px);
    color: var(--next-charcoal);
    transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.scrolled,
.site-header.nav-open {
    background: rgba(250, 248, 243, 0.94);
    box-shadow: 0 12px 40px rgba(32, 34, 40, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 2px solid currentColor;
    background: var(--next-primary);
    color: var(--color-white);
    font-size: 0.78rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--next-line);
    background: var(--next-surface);
    color: var(--next-charcoal);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
}

.primary-nav a,
.language-option {
    color: var(--next-charcoal);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a {
    position: relative;
}

.primary-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--next-primary);
    content: "";
    transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    transform: scaleX(1);
}

.primary-nav .nav-rsvp {
    padding: 10px 14px;
    border: 1px solid var(--next-charcoal);
    background: var(--next-charcoal);
    color: var(--color-white);
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--next-muted);
}

.language-option {
    min-width: 34px;
    min-height: 34px;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--next-muted);
    cursor: pointer;
}

.language-option[aria-pressed="true"] {
    color: var(--next-primary);
}

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr) minmax(320px, min(38vw, 560px));
    align-items: end;
    gap: clamp(18px, 3vw, 54px);
    overflow: hidden;
    padding: clamp(104px, 12vh, 144px) clamp(18px, 5vw, 70px) clamp(42px, 7vh, 82px);
    background: linear-gradient(90deg, var(--next-bg) 0%, var(--next-bg) 56%, var(--next-primary) 56%, var(--next-primary) 100%);
}

.hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0 68%, rgba(255, 255, 255, 0.24) 68% 69%, transparent 69%);
    content: "";
    pointer-events: none;
}

.year-motif {
    color: transparent;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.8;
    -webkit-text-stroke: 2px rgba(35, 107, 255, 0.24);
    text-stroke: 2px rgba(35, 107, 255, 0.24);
}

.hero-year {
    position: absolute;
    top: 12vh;
    left: 3vw;
    font-size: clamp(8rem, 22vw, 24rem);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    max-width: 56vw;
}

.hero-class,
.final-class,
.section-kicker,
.card-label {
    margin: 0 0 14px;
    color: var(--next-primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-statement {
    display: grid;
    margin: 0;
    color: var(--next-charcoal);
    font-family: var(--font-display);
    font-size: clamp(4.8rem, 10.5vw, 11.25rem);
    font-weight: 900;
    line-height: 0.78;
    text-transform: uppercase;
}

html[lang="es"] .hero-statement {
    font-size: clamp(4.6rem, 9.2vw, 10rem);
    line-height: 1.02;
    row-gap: 0.04em;
}

.hero-intro {
    max-width: 34rem;
    margin: 28px 0 0;
    color: var(--next-charcoal);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
}

.hero-photo {
    position: relative;
    z-index: 2;
    align-self: stretch;
    min-height: min(76svh, 780px);
    margin: 0;
    overflow: hidden;
    background: var(--next-charcoal);
    box-shadow: var(--shadow-soft);
}

.hero-image,
.final-image,
.photo-story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    right: clamp(18px, 4vw, 48px);
    bottom: 24px;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: var(--color-white);
    text-decoration: none;
}

.scroll-indicator span {
    width: 2px;
    height: 24px;
    background: currentColor;
}

.section {
    padding: clamp(72px, 10vw, 132px) 0;
}

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

.achievement-layout,
.celebrate-layout,
.event-layout,
.rsvp-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.78fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: start;
}

.celebrate-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.58fr);
    gap: clamp(44px, 8vw, 128px);
}

.achievement-copy h2,
.celebrate-title h2,
.event-heading h2,
.rsvp-copy h2,
.final-content h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
}

.achievement-copy h2 {
    font-size: clamp(3rem, 8vw, 8rem);
}

.achievement-lead,
.lead {
    max-width: 36rem;
    margin: 24px 0 0;
    color: var(--next-muted);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    font-weight: 650;
}

.credential-list {
    display: grid;
    gap: 22px;
    margin: 0;
    padding-top: 10px;
}

.credential-list div,
.event-details-panel dl div {
    border-top: 1px solid var(--next-line);
    padding-top: 18px;
}

.credential-list dt,
.event-details-panel dt {
    color: var(--next-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.credential-list dd,
.event-details-panel dd {
    margin: 5px 0 0;
    color: var(--next-charcoal);
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 800;
}

.celebrate-band {
    overflow: hidden;
    padding: clamp(78px, 11vw, 150px) 0;
    background: var(--next-charcoal);
    color: var(--color-white);
}

.celebrate-title h2 {
    color: var(--color-white);
    max-width: 7.4ch;
    font-size: clamp(4rem, 8.8vw, 9.8rem);
}

html[lang="es"] .celebrate-title h2 {
    max-width: 10ch;
}

.celebrate-copy {
    align-self: end;
    max-width: 34rem;
    justify-self: end;
}

.celebrate-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.celebrate-copy .lead {
    color: var(--color-white);
}

.photo-story {
    padding-top: clamp(36px, 5vw, 72px);
    background: var(--next-bg);
}

.photo-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.62fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: end;
}

.photo-story-item {
    margin: 0;
    overflow: hidden;
    background: var(--next-gray);
    box-shadow: var(--shadow-card);
}

.photo-feature {
    aspect-ratio: 16 / 10;
}

.photo-detail {
    aspect-ratio: 4 / 5;
    transform: translateY(42px);
}

@media (min-width: 901px) {
    .photo-story-grid {
        grid-auto-rows: clamp(420px, 38vw, 560px);
        align-items: stretch;
    }

    .photo-feature,
    .photo-detail {
        aspect-ratio: auto;
        height: 100%;
    }
}

.event-section {
    background: var(--color-white);
}

.event-heading {
    position: sticky;
    top: 110px;
}

.event-heading h2 {
    font-size: clamp(3.2rem, 8vw, 8rem);
}

.event-time {
    margin: 24px 0 0;
    color: var(--next-primary);
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
}

.event-details-panel {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--next-line);
    background: var(--next-bg);
}

.event-details-panel h3 {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.event-details-panel dl {
    display: grid;
    gap: 18px;
    margin: 0 0 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    min-width: max-content;
    padding: 13px 18px;
    border: 1px solid var(--next-charcoal);
    background: var(--next-charcoal);
    color: var(--color-white);
    cursor: pointer;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
}

.button:hover {
    background: var(--next-primary);
    border-color: var(--next-primary);
}

.button-secondary {
    background: transparent;
    color: var(--next-charcoal);
}

.button-secondary:hover {
    color: var(--color-white);
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-actions .button {
    flex: 1 1 190px;
    min-width: 0;
}

.calendar-button {
    border-color: var(--next-primary);
    background: var(--next-primary);
}

.countdown-section {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 11vw, 150px) 0;
    background: var(--next-primary-deep);
    color: var(--color-white);
}

.countdown-year {
    position: absolute;
    right: -0.08em;
    bottom: -0.05em;
    font-size: clamp(8rem, 28vw, 26rem);
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.16);
    text-stroke-color: rgba(255, 255, 255, 0.16);
}

.countdown-inner {
    position: relative;
    z-index: 2;
}

.countdown-inner h2 {
    margin: 0 0 28px;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 9vw, 9rem);
    line-height: 0.86;
    text-transform: uppercase;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.24);
}

.countdown div {
    min-width: 0;
    padding: clamp(18px, 4vw, 34px) 12px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.countdown strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 6rem);
    line-height: 0.9;
}

.countdown span {
    display: block;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.countdown-complete {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
}

.rsvp-section {
    position: relative;
    overflow: hidden;
    background: var(--next-bg);
}

.rsvp-section::before {
    position: absolute;
    inset: auto 0 0 auto;
    width: min(48vw, 620px);
    height: min(52vw, 620px);
    background-image: var(--image-rsvp-background);
    background-position: var(--image-rsvp-position, 50% 50%);
    background-size: cover;
    opacity: 0.12;
    content: "";
}

.rsvp-copy h2 {
    font-size: clamp(3rem, 8vw, 7.8rem);
}

.rsvp-copy p {
    max-width: 32rem;
    color: var(--next-muted);
    font-size: 1.1rem;
    font-weight: 650;
}

.deadline {
    color: var(--next-charcoal) !important;
}

.rsvp-form,
.rsvp-closed {
    position: relative;
    display: grid;
    gap: 18px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--next-line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.field-group {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.field-group label,
.field-group legend {
    color: var(--next-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--next-line);
    background: var(--color-white);
    color: var(--next-charcoal);
    padding: 13px 14px;
}

textarea {
    min-height: 118px;
    max-height: 118px;
    overflow-y: auto;
    resize: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #B42318;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--next-line);
    background: var(--next-bg);
    cursor: pointer;
}

.radio-card input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--next-primary);
}

.field-help,
.field-error,
.form-note,
.small-note {
    margin: 0;
    color: var(--next-muted);
    font-size: 0.86rem;
}

.field-error,
.form-note {
    color: #B42318;
    font-weight: 700;
}

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

.turnstile-wrapper {
    min-height: 28px;
}

.button-large {
    min-height: 58px;
    background: var(--next-primary);
    border-color: var(--next-primary);
}

.button-large:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.final-section {
    position: relative;
    min-height: 92svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--next-charcoal);
    color: var(--color-white);
}

.final-image,
.final-overlay {
    position: absolute;
    inset: 0;
}

.final-overlay {
    background: linear-gradient(90deg, rgba(32, 34, 40, 0.88), rgba(32, 34, 40, 0.36)), linear-gradient(0deg, rgba(24, 89, 217, 0.55), transparent 54%);
}

.final-content {
    position: relative;
    z-index: 2;
    padding: clamp(72px, 12vw, 150px) 0;
}

.final-content h2 {
    display: grid;
    max-width: 920px;
    font-size: clamp(3.2rem, 9vw, 9rem);
}

.final-content p {
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 800;
}

.final-content strong {
    display: inline-block;
    margin-top: 22px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.music-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--next-line);
    background: var(--next-surface);
    color: var(--next-charcoal);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(32, 34, 40, 0.88);
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    width: min(960px, 100%);
    margin: 0;
}

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

.lightbox figcaption {
    margin-top: 12px;
    color: var(--color-white);
    text-align: center;
}

.lightbox button {
    position: absolute;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    cursor: pointer;
    font-size: 2rem;
}

.lightbox-close {
    top: 18px;
    right: 18px;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.language-announcement {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 26px clamp(18px, 4vw, 42px);
    background: var(--next-charcoal);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

#footer-honoree {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.footer-credit {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.footer-heart {
    color: #E5484D;
}

.footer-brand {
    color: var(--color-white);
    font-weight: 900;
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.directional-reveal {
    transform: translateX(34px);
}

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

@media (min-width: 1440px) {
    .section-inner {
        width: min(1240px, calc(100% - 72px));
    }

    .hero {
        gap: clamp(42px, 4.5vw, 84px);
        padding-left: clamp(56px, 5vw, 96px);
        padding-right: clamp(56px, 5vw, 96px);
    }

    .hero-content {
        max-width: 52vw;
    }

    .hero-year {
        left: clamp(40px, 4vw, 84px);
        font-size: clamp(18rem, 20vw, 24rem);
    }

    .hero-statement {
        font-size: clamp(8.5rem, 9.6vw, 11.25rem);
    }

    .celebrate-layout {
        grid-template-columns: minmax(0, 0.78fr) minmax(390px, 0.5fr);
    }

    html[lang="es"] .celebrate-title h2 {
        font-size: clamp(5.8rem, 6.4vw, 6.5rem);
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 40vw);
    }

    .hero-content {
        max-width: 58vw;
    }

    .hero-statement {
        font-size: clamp(6.8rem, 10vw, 8.8rem);
    }

    .hero-year {
        font-size: clamp(12rem, 21vw, 16rem);
    }

    .celebrate-layout {
        grid-template-columns: minmax(0, 0.74fr) minmax(320px, 0.56fr);
        gap: clamp(36px, 6vw, 76px);
    }

    .celebrate-title h2 {
        font-size: clamp(5.6rem, 8vw, 7.6rem);
    }

    html[lang="es"] .celebrate-title h2 {
        font-size: clamp(4.2rem, 6.4vw, 5.2rem);
    }
}

@media (min-width: 1181px) and (max-width: 1439px) {
    html[lang="es"] .celebrate-title h2 {
        font-size: clamp(5.2rem, 6.4vw, 6.5rem);
    }
}

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

    .primary-nav {
        position: fixed;
        top: 76px;
        left: 18px;
        right: 18px;
        display: grid;
        gap: 4px;
        padding: 18px;
        border: 1px solid var(--next-line);
        background: var(--next-surface);
        box-shadow: var(--shadow-card);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease, transform 160ms ease;
    }

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

    .primary-nav a,
    .language-selector {
        display: flex;
        min-height: 46px;
        align-items: center;
    }

    .primary-nav a {
        padding: 0 10px;
    }

    .primary-nav a::after {
        display: none;
    }

    .primary-nav a.active {
        background: rgba(35, 107, 255, 0.08);
        color: var(--next-primary);
        font-weight: 900;
    }

    .hero {
        --hero-mobile-year-size: clamp(6rem, 30vw, 11rem);
        grid-template-columns: 1fr;
        align-items: start;
        min-height: auto;
        padding-top: 96px;
        background: linear-gradient(180deg, var(--next-bg) 0 72%, var(--next-primary) 72% 100%);
    }

    .hero-year {
        top: clamp(122px, 15vw, 138px);
        left: 16px;
        font-size: var(--hero-mobile-year-size);
    }

    .hero-content {
        width: 100%;
        max-width: none;
    }

    .hero-statement {
        margin-top: calc(var(--hero-mobile-year-size) * 0.8 + 1.25rem);
        font-size: clamp(4.1rem, 24vw, 7.2rem);
    }

    html[lang="es"] .hero-statement {
        font-size: clamp(4rem, 22vw, 6.8rem);
    }

    html[lang="es"] .celebrate-title h2 {
        font-size: clamp(3.6rem, 8.8vw, 5.3rem);
    }

    .hero-statement span {
        white-space: nowrap;
    }

    .hero-photo {
        min-height: 520px;
        width: min(100%, 520px);
        justify-self: end;
    }

    .achievement-layout,
    .celebrate-layout,
    .event-layout,
    .rsvp-layout,
    .photo-story-grid {
        grid-template-columns: 1fr;
    }

    .photo-detail {
        transform: none;
    }

    .event-heading {
        position: static;
    }

    .calendar-button {
        margin: 0;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 14px 16px;
    }

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

    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-statement {
        font-size: clamp(3.7rem, 24vw, 5.8rem);
        line-height: 0.82;
    }

    html[lang="es"] .hero-statement {
        font-size: clamp(3.55rem, 22vw, 5.6rem);
        line-height: 1.02;
        row-gap: 0.04em;
    }

    html[lang="es"] .celebrate-title h2 {
        font-size: clamp(2.85rem, 14.5vw, 4.1rem);
    }

    .hero-intro {
        font-size: 1rem;
    }

    .hero-photo {
        min-height: 430px;
    }

    .section-inner {
        width: min(100% - 32px, 1160px);
    }

    .achievement-copy h2,
    .celebrate-title h2,
    .event-heading h2,
    .rsvp-copy h2,
    .final-content h2 {
        font-size: clamp(2.8rem, 18vw, 4.8rem);
    }

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

    .countdown div {
        padding-left: 8px;
        padding-right: 8px;
    }

    .button,
    .calendar-button {
        width: 100%;
    }

    .site-footer {
        display: grid;
    }
}

@media (max-width: 340px) {
    .hero-statement,
    .achievement-copy h2,
    .celebrate-title h2,
    .event-heading h2,
    .rsvp-copy h2,
    .final-content h2 {
        font-size: 3.15rem;
    }

    html[lang="es"] .hero-statement {
        font-size: 3.55rem;
    }

    .countdown strong {
        font-size: 2.1rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal,
    .directional-reveal {
        opacity: 1;
        transform: none;
    }
}
