/* ================================================
   THE 2024 AWARDS
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #1a1a18;
    --bg-mid:      #1e1e1c;
    --bg-alt:      #222220;
    --black:       #0a0a0a;

    --gold:        #d4a61e;
    --gold-bright: #e8bb28;
    --gold-dark:   #9a7610;

    --cream:       #f0ebe0;
    --text:        #aca69f;
    --text-muted:  #525050;

    --border-gold: rgba(212, 166, 30, 0.2);
    --border-dim:  rgba(255, 255, 255, 0.055);

    --font-display: 'Bebas Neue', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

    --container:   1200px;
    --section-pad: clamp(4.5rem, 9vw, 8rem);
    --gutter:      clamp(1.25rem, 4vw, 3rem);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Offset anchor scroll targets so fixed nav doesn't cover headings */
#about, #event, #key-dates, #vote, #rsvp, #photos, #updates {
    scroll-margin-top: 80px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 6vw, 5.5rem);
    line-height: 0.95;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
}

.section-heading--dark { color: var(--black); }

/* ================================================
   BUTTONS
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.btn--lg { padding: 1.15rem 2.6rem; font-size: 0.72rem; }

.btn--gold {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn--outline {
    background: transparent;
    color: var(--cream);
    border-color: rgba(240, 235, 224, 0.22);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--dark {
    background: var(--black);
    color: var(--cream);
    border-color: var(--black);
}
.btn--dark:hover { background: #181818; border-color: #181818; }

/* ================================================
   NAV
   ================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.nav--scrolled {
    background: rgba(26, 26, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-gold);
}

/* When mobile menu is open, lock the nav to solid (prevents backdrop-filter glitch) */
.nav--menu-open {
    background: var(--black) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--border-gold) !important;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    transition: padding 0.3s ease;
}

.nav--scrolled .nav__inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: opacity 0.18s ease;
}
.nav__logo:hover { opacity: 0.8; }

.nav__logo-img {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.nav__logo span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    white-space: nowrap;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav__link {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.18s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__link--active { color: var(--gold); }

.nav__link--cta {
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 0.4rem 1.1rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav__link--cta:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 400;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream);
    transition: transform 0.24s ease, opacity 0.24s ease;
    will-change: transform;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-gold);
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.13;
    filter: saturate(0.2) brightness(0.45);
}

/* Media wall texture */
.hero__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/media-wall.png') repeat;
    background-size: 420px;
    opacity: 0.055;
}

/* Edge vignette for depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(10, 10, 10, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Bottom fade */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: clamp(80px, 16vw, 180px);
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 2;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 7rem var(--gutter) 6rem;
    gap: 2.5rem;
    width: 100%;
}

.hero__logo-wrap {
    display: inline-block;
}

.hero__logo {
    width: min(640px, 78vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 0 60px rgba(212, 166, 30, 0.45)) drop-shadow(0 0 120px rgba(212, 166, 30, 0.2));
    animation: logo-glow-in 2s ease-out 0.2s both;
}

@keyframes logo-glow-in {
    from {
        filter: drop-shadow(0 0 0px rgba(212, 166, 30, 0)) drop-shadow(0 0 0px rgba(212, 166, 30, 0));
    }
    55% {
        filter: drop-shadow(0 0 90px rgba(212, 166, 30, 0.7)) drop-shadow(0 0 200px rgba(212, 166, 30, 0.35));
    }
    to {
        filter: drop-shadow(0 0 60px rgba(212, 166, 30, 0.45)) drop-shadow(0 0 120px rgba(212, 166, 30, 0.2));
    }
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ================================================
   ABOUT
   ================================================ */

.about {
    background: linear-gradient(to bottom, var(--bg), var(--bg-mid));
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: stretch;
}

.about__content { padding-right: 4rem; }

.about__body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about__body p {
    font-size: 0.97rem;
    line-height: 1.86;
    color: var(--text);
    max-width: 58ch;
}

.about__stat {
    border-left: 1px solid var(--border-gold);
    padding-left: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
}

.about__roman {
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 9vw, 9rem);
    color: var(--gold);
    line-height: 0.88;
    letter-spacing: 0.01em;
    text-shadow: 0 0 80px rgba(212, 166, 30, 0.35);
}

.about__years-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ================================================
   EVENT DETAILS
   ================================================ */

.event {
    background: var(--bg-alt);
    box-shadow: inset 0 1px 0 var(--border-gold), inset 0 -1px 0 var(--border-gold);
}

.event .section-heading { margin-bottom: 0; }

.event__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-gold);
    margin-top: 2rem;
}

.event__cell {
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: background 0.2s ease;
}

.event__cell:hover { background: rgba(212, 166, 30, 0.04); }

.event__cell + .event__cell {
    border-left: 1px solid var(--border-gold);
}

.event__label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.event__value {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.8vw, 4.8rem);
    line-height: 0.9;
    color: var(--cream);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Subtle pulse on TBA values to signal pending */
.event__value--tba {
    color: var(--text-muted);
    animation: tba-pulse 3s ease-in-out infinite;
}

@keyframes tba-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ================================================
   VOTE + RSVP
   ================================================ */

.vote {
    background: var(--bg-mid);
    position: relative;
    overflow: hidden;
}

/* Subtle media wall texture on vote section */
.vote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/media-wall.png') repeat;
    background-size: 300px;
    opacity: 0.025;
    pointer-events: none;
}

.vote .container { position: relative; z-index: 1; }

.rsvp { background: var(--gold); }

.cta-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.cta-block .section-heading { margin-bottom: 1.25rem; }

.cta-block__body {
    font-size: 0.97rem;
    line-height: 1.82;
    color: var(--text);
    max-width: 52ch;
}

.cta-block__body--dark { color: rgba(10, 10, 10, 0.65); }

.cta-block__action { flex-shrink: 0; }

/* ================================================
   PHOTOS PREVIEW (home page)
   ================================================ */

.photos-preview {
    background: var(--bg);
    padding-bottom: 0;
}

.photos-preview__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    gap: 2rem;
}

.photos-preview__header .section-heading {
    margin-bottom: 0.4rem;
}

.photos-preview__sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.photos-preview__footer {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: var(--section-pad);
    display: flex;
    justify-content: center;
}

/* ================================================
   GALLERY (shared: preview + full)
   ================================================ */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.gallery__item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 3 / 4;
}

.gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 166, 30, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.gallery__item:hover::after { background: rgba(212, 166, 30, 0.1); }

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.55s ease;
}

.gallery__item:hover .gallery__img { transform: scale(1.04); }

/* ================================================
   LIGHTBOX
   ================================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(10, 10, 10, 0.97);
    align-items: center;
    justify-content: center;
}

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

.lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(88vw, 900px);
    max-height: 90vh;
}

.lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: fixed;
    background: none;
    border: 1px solid var(--border-gold);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    z-index: 501;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.lightbox__close { top: 1.5rem; right: 1.5rem; width: 42px; height: 42px; }
.lightbox__close svg { width: 15px; height: 15px; }

.lightbox__prev { top: 50%; left: 1.5rem; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__next { top: 50%; right: 1.5rem; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__prev svg, .lightbox__next svg { width: 20px; height: 20px; }

.lightbox__counter {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ================================================
   UPDATES
   ================================================ */

.updates { background: var(--bg-mid); }

.updates__feed {
    border-top: 1px solid var(--border-gold);
    margin-top: 0.25rem;
}

.update-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

.update-item--pinned::after {
    content: 'Pinned';
    position: absolute;
    top: 3rem;
    right: 0;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 0.25rem 0.65rem;
}

.update-item__left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.3rem;
}

.update-item__date {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.update-item__tag {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.update-item__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--cream);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.update-item__body {
    font-size: 0.94rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 60ch;
}

.updates__empty {
    padding: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.88rem;
}

/* ================================================
   EMAIL SIGNUP
   ================================================ */

.email-signup {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-gold);
}

.email-signup__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.email-signup__heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 0.95;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.email-signup__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 46ch;
}

.email-signup__row {
    display: flex;
    gap: 0.6rem;
}

.email-signup__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    padding: 0.9rem 1.25rem;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    caret-color: var(--gold);
    transition: border-color 0.2s ease, background 0.2s ease;
    min-width: 0;
}

.email-signup__input::placeholder { color: var(--text-muted); }

.email-signup__input:focus {
    border-color: rgba(212, 166, 30, 0.6);
    background: rgba(212, 166, 30, 0.03);
}

.email-signup__note {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.85rem;
}

.email-signup__success {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--gold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.email-signup__error {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: rgba(220, 80, 80, 0.8);
    margin-top: 0.6rem;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    background: var(--black);
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--border-gold);
}

.footer__inner { display: flex; flex-direction: column; gap: 2rem; }

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
}

.footer__nav { display: flex; gap: 2rem; }

.footer__nav a {
    font-size: 0.67rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.18s ease;
}
.footer__nav a:hover { color: var(--gold); }

.footer__divider { height: 1px; background: var(--border-dim); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy { font-size: 0.73rem; color: var(--text-muted); }

.footer__policy {
    color: var(--text-muted);
    transition: color 0.18s ease;
}
.footer__policy:hover { color: var(--gold); }

.footer__credit {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.18s ease;
}
.footer__credit:hover { color: var(--gold); }

/* ================================================
   PRIVACY PAGE
   ================================================ */

.privacy-page__hero {
    padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
    border-bottom: 1px solid var(--border-gold);
}

.privacy-page__hero-content { position: relative; }

.privacy-page__back {
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    transition: color 0.18s ease;
    margin-bottom: 2rem;
}
.privacy-page__back:hover { color: var(--gold); }

.privacy-page__meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 1.25rem;
}

.privacy-page__body { background: var(--bg); }

.privacy-content {
    max-width: 72ch;
}

.privacy-block {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.privacy-block:first-child { padding-top: 0; }
.privacy-block:last-child { border-bottom: none; }

.privacy-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.privacy-block p {
    font-size: 0.95rem;
    line-height: 1.82;
    color: var(--text);
    margin-bottom: 1rem;
}

.privacy-block p:last-child { margin-bottom: 0; }

.privacy-block ul {
    margin: 0.75rem 0 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.privacy-block li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.privacy-block strong { color: var(--cream); font-weight: 500; }

.privacy-block a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(212, 166, 30, 0.4);
    transition: text-decoration-color 0.18s ease;
}
.privacy-block a:hover { text-decoration-color: var(--gold); }

/* ================================================
   PHOTOS PAGE — page-specific
   ================================================ */

.photos-page__hero {
    position: relative;
    padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
    overflow: hidden;
    border-bottom: 1px solid var(--border-gold);
}

.photos-page__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.photos-page__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.1;
    filter: saturate(0.15) brightness(0.4);
}

.photos-page__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10, 10, 10, 0.85) 100%);
}

.photos-page__content {
    position: relative;
    z-index: 1;
}

.photos-page__edition {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

.photos-page__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.9;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.photos-page__back {
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.18s ease;
}

.photos-page__back:hover { color: var(--gold); }

.photos-page__back svg { width: 14px; height: 14px; }

.photos-page__gallery {
    padding: 0;
}

/* ================================================
   CATEGORIES PAGE
   ================================================ */

.categories-page__hero {
    position: relative;
    padding: calc(var(--section-pad) + 4rem) 0 0;
    border-bottom: 1px solid var(--border-gold);
    overflow: hidden;
    min-height: 420px;
}

.categories-page__hero-texture {
    position: absolute;
    inset: 0;
    background: url('../assets/media-wall.png') repeat;
    background-size: 280px;
    opacity: 0.03;
    pointer-events: none;
}

.categories-page__hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.7) 100%);
    pointer-events: none;
}

.categories-page__hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: var(--section-pad);
}

.categories-page__back {
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    transition: color 0.18s ease;
    margin-bottom: 2rem;
}

.categories-page__back:hover { color: var(--gold); }

.categories-page__subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

/* ── Trophy fan ── */

.trophies-fan {
    position: absolute;
    right: 20%;
    bottom: -100px;
    width: 660px;
    height: 530px;
    pointer-events: none;
    z-index: 2;
}

.trophies-fan__trophy {
    position: absolute;
    bottom: 0;
    left: 34%;
    transform-origin: bottom center;
    opacity: 0;
}

.trophies-fan__trophy img {
    height: 480px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 32px rgba(212, 166, 30, 0.45));
}

/* Trophy 1 — frontmost, scaled up heaps, arrives first */
.trophies-fan__trophy--1 {
    z-index: 5;
    animation: t-fan-1 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.trophies-fan__trophy--2 {
    z-index: 4;
    animation: t-fan-2 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.trophies-fan__trophy--3 {
    z-index: 3;
    animation: t-fan-3 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}
.trophies-fan__trophy--4 {
    z-index: 2;
    animation: t-fan-4 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.87s both;
}
.trophies-fan__trophy--5 {
    z-index: 1;
    animation: t-fan-5 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.0s both;
}

@keyframes t-fan-1 {
    from { opacity: 0; transform: translateX(-50%) translateY(28px) scale(0.9); }
    to   { opacity: 1; transform: translateX(-50%) scale(1.18); }
}
@keyframes t-fan-2 {
    from { opacity: 0; transform: translateX(-50%); }
    to   { opacity: 1; transform: translateX(calc(-50% + 65px)) rotate(6deg) scale(0.96); }
}
@keyframes t-fan-3 {
    from { opacity: 0; transform: translateX(-50%); }
    to   { opacity: 1; transform: translateX(calc(-50% + 122px)) rotate(11deg) scale(0.92); }
}
@keyframes t-fan-4 {
    from { opacity: 0; transform: translateX(-50%); }
    to   { opacity: 1; transform: translateX(calc(-50% + 172px)) rotate(15deg) scale(0.88); }
}
@keyframes t-fan-5 {
    from { opacity: 0; transform: translateX(-50%); }
    to   { opacity: 1; transform: translateX(calc(-50% + 214px)) rotate(18deg) scale(0.84); }
}

@keyframes t-fan-mobile {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Categories pending state */
.categories-section { background: var(--bg); }

.categories__pending {
    border-top: 1px solid var(--border-gold);
    padding: 4rem 0;
    text-align: center;
}

.categories__pending-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.categories__pending-sub {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ── Keep category item styles for when categories are added ── */
.categories__list {
    border-top: 1px solid var(--border-gold);
    margin-top: 1rem;
}

.category-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.category-item__name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1;
    color: var(--cream);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.category-item__status {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-dim);
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

/* ================================================
   KEY DATES / TIMELINE
   ================================================ */

.key-dates { background: var(--bg-mid); }

.timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 1px;
    background: var(--border-gold);
}

.timeline__item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

.timeline__item:last-child { border-bottom: none; }

.timeline__item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: calc(2rem + 0.55em);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
    transform: translateX(-4px);
    box-shadow: 0 0 0 3px var(--bg-mid);
}

.timeline__item--event::before {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(212, 166, 30, 0.6), 0 0 0 3px var(--bg-mid);
}

.timeline__date {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 0.1rem;
}

.timeline__item--event .timeline__date { color: var(--gold); }

.timeline__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.timeline__item--event .timeline__title { color: var(--cream); }

.timeline__detail {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text);
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* ================================================
   EVENT SCHEDULE STRIP
   ================================================ */

.event__sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.event__schedule {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-dim);
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.event__schedule span {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.event__schedule-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-gold);
    flex-shrink: 0;
}

/* ================================================
   PASSWORD GATE
   ================================================ */

.gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s ease;
}

.gate--open { opacity: 0; pointer-events: none; }
.gate--gone { display: none; }

.gate__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gate__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.08;
    filter: saturate(0.2);
}

.gate__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(10, 10, 10, 0.88) 100%);
}

.gate__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 2rem var(--gutter);
    animation: gate-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

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

.gate__logo {
    width: min(200px, 52vw);
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(212, 166, 30, 0.4));
}

.gate__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 0.95;
    color: var(--cream);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.gate__divider {
    width: 40px;
    height: 1px;
    background: var(--border-gold);
    margin-bottom: 2rem;
}

.gate__sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3rem;
}

.gate__preview {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.gate__preview-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gate__code {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    width: min(220px, 78vw);
    text-align: center;
    padding: 0.75rem 1rem;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.88rem;
    letter-spacing: 0.25em;
    outline: none;
    caret-color: var(--gold);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.gate__code::placeholder {
    color: var(--text-muted);
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.gate__code:focus {
    border-color: rgba(212, 166, 30, 0.6);
    background: rgba(212, 166, 30, 0.04);
}

.gate__submit {
    width: min(220px, 78vw);
    justify-content: center;
}

.gate__code-error {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(220, 80, 80, 0.75);
    min-height: 1em;
}

/* ================================================
   RESPONSIVE — TABLET (≤960px)
   ================================================ */

@media (max-width: 960px) {
    .nav__logo span { font-size: 1.05rem; }
    .nav__logo-img { height: 32px; }

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

    .about__content { padding-right: 0; }

    .about__stat {
        border-left: none;
        border-top: 1px solid var(--border-gold);
        padding-left: 0;
        padding-top: 2.5rem;
        flex-direction: row;
        align-items: baseline;
        gap: 1.5rem;
    }

    .about__roman { font-size: clamp(4rem, 10vw, 6rem); }
    .about__years-label { margin-top: 0; }

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

    .event__cell {
        padding: 1.75rem 0;
        border-left: none !important;
        border-bottom: 1px solid var(--border-gold);
    }
    .event__cell:last-child { border-bottom: none; }

    .cta-block { grid-template-columns: 1fr; gap: 2.5rem; }
    .email-signup__inner { grid-template-columns: 1fr; gap: 2rem; }

    .update-item { grid-template-columns: 1fr; gap: 0.75rem; }
    .update-item--pinned::after { display: none; }

    .footer__top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer__nav { flex-wrap: wrap; gap: 1rem 1.5rem; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

    .gallery { grid-template-columns: repeat(3, 1fr); }
    .gallery__item--wide { grid-column: span 3; aspect-ratio: 16 / 7; }

    .photos-preview__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    /* Trophies: 3 on tablet — keep scale on trophy 1 */
    .trophies-fan__trophy--4,
    .trophies-fan__trophy--5 { display: none; }
    .trophies-fan__trophy img { height: 360px; }
    .trophies-fan { right: 12%; width: 500px; height: 420px; bottom: -80px; }
}

/* ================================================
   RESPONSIVE — MOBILE (≤640px)
   ================================================ */

@media (max-width: 640px) {
    /* Mobile nav — dropdown below nav bar (avoids backdrop-filter stacking context bug) */
    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black);
        border-bottom: 1px solid var(--border-gold);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2.5rem 1.5rem 3rem;
        gap: 2rem;
        list-style: none;
        display: flex;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

    .nav__toggle {
        display: flex;
        z-index: 400;
    }

    .nav__link { font-size: 0.95rem; letter-spacing: 0.18em; }
    .nav__link--cta { padding: 0.75rem 2.5rem; font-size: 0.85rem; }

    .nav__logo span { font-size: 1rem; }
    .nav__logo-img { height: 32px; }

    /* Tighten vertical rhythm on phone */
    .section { padding: clamp(2.75rem, 8vw, 4rem) 0; }
    .section-heading { margin-bottom: 1.75rem; }

    /* Hero */
    .hero__content { padding: 5rem var(--gutter) 3.5rem; gap: 1.5rem; }
    .hero__logo { width: min(280px, 82vw); }

    /* About stat — stack vertically again on phone */
    .about__stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding-top: 1.75rem;
    }
    .about__roman { font-size: clamp(3.5rem, 14vw, 5rem); }

    /* Event cells — less vertical padding when stacked */
    .event__cell { padding: 1.25rem 0; }

    /* Updates — tighten the 2-col grid row gap */
    .update-item { padding: 2rem 0; gap: 0.75rem; }

    /* Footer */
    .footer { padding: 2.5rem 0 2rem; }
    .footer__inner { gap: 1.5rem; }
    .footer__nav { gap: 0.6rem 1.1rem; font-size: 0.62rem; }

    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }

    .photos-preview__header .btn { display: none; }

    /* Gate — mobile keyboard fix */
    .gate {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gate__content {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
        width: 100%;
    }
    /* Prevent iOS auto-zoom on input focus (triggered when font-size < 16px) */
    .gate__code,
    .email-signup__input { font-size: 1rem; }

    .lightbox__prev { left: 0.75rem; }
    .lightbox__next { right: 0.75rem; }
    .lightbox__prev, .lightbox__next { width: 40px; height: 40px; }
    .lightbox__stage { max-width: 96vw; }

    /* Mobile: single large watermark trophy — right side, head above back button */
    .trophies-fan {
        top: 90px;
        right: 5%;
        bottom: auto;
        left: auto;
        transform: none;
        width: 300px;
        height: 75svh;
    }
    .trophies-fan__trophy--2,
    .trophies-fan__trophy--3,
    .trophies-fan__trophy--4,
    .trophies-fan__trophy--5 { display: none; }
    .trophies-fan__trophy--1 {
        top: 0;
        bottom: auto;
        left: 0;
        animation: t-fan-mobile 1.2s ease-out 0.3s both;
    }
    .trophies-fan__trophy img {
        height: 75svh;
        width: auto;
        max-width: none;
        opacity: 0.16;
        filter: drop-shadow(0 0 24px rgba(212, 166, 30, 0.2));
    }
    .categories-page__hero {
        min-height: 500px;
        padding-bottom: 2rem;
    }

    /* Timeline stacks */
    .timeline__item { grid-template-columns: 80px 1fr; gap: 1.5rem; }

    /* Event schedule wraps */
    .event__schedule { gap: 0.75rem; }
}

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