:root {
    --navy: #0c1220;
    --navy-2: #151c2c;
    --gold: #b0893e;
    --gold-soft: #d4b56a;
    --cream: #f4f0e8;
    --paper: #fffcf7;
    --ink: #16181d;
    --muted: #5f6570;
    --line: #e4ddd0;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #f3efe6;
    font-family: var(--sans);
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}

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

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

.req {
    color: #b42318;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 7vw;
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(12, 18, 32, 0.96);
    border-bottom: 1px solid rgba(176, 137, 62, 0.22);
    backdrop-filter: blur(12px);
}

.brand-logo {
    height: 52px;
    width: auto;
}

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

.reg-no {
    color: rgba(243, 239, 230, 0.62);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    color: #f3efe6;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-cta:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 128px 6vw 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 70% at 78% 42%, rgba(176, 137, 62, 0.12), transparent 62%),
        linear-gradient(180deg, #0b1220 0%, #0a101c 100%);
}

.hero-glow {
    position: absolute;
    inset: auto auto 8% 6%;
    width: 420px;
    height: 420px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(176, 137, 62, 0.1), transparent 68%);
    filter: blur(8px);
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.92fr);
    gap: 56px;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero-visual {
    position: relative;
}

.hero-visual-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-height: min(74vh, 680px);
    border: 1px solid rgba(196, 163, 90, 0.38);
    border-radius: 18px;
    background: #0b1322;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 42%;
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(48px, 6.4vw, 84px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #f3efe6;
    animation: fadeRise 0.9s ease both;
}

.subtitle {
    margin: 14px 0 28px;
    color: rgba(243, 239, 230, 0.72);
    font-size: 15px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: fadeRise 0.9s ease 0.18s both;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    animation: fadeRise 0.8s ease both;
}

.lede {
    margin: 0 0 22px;
    max-width: 36em;
    color: rgba(243, 239, 230, 0.78);
    font-size: 18px;
    line-height: 1.7;
}

.featured {
    margin: 0;
    color: rgba(243, 239, 230, 0.62);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured span {
    color: var(--gold-soft);
    font-weight: 600;
}

.hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 18px 20px;
    margin: 28px 0 32px;
    padding: 22px 0;
    border-top: 1px solid rgba(196, 163, 90, 0.28);
    border-bottom: 1px solid rgba(196, 163, 90, 0.28);
    animation: fadeRise 0.9s ease 0.28s both;
}

.hero-meta dt {
    margin-bottom: 7px;
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-meta dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #f3efe6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: var(--gold);
    color: #14110c;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gold-soft);
}

.btn-primary:disabled {
    opacity: 0.75;
    cursor: wait;
}

.hero-note {
    color: rgba(243, 239, 230, 0.5);
    font-size: 13px;
}

/* Intro */
.intro {
    padding: 0 7vw 24px;
}

.intro-inner {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 36px 0 8px;
    border-top: 1px solid rgba(212, 181, 106, 0.18);
    text-align: center;
}

.intro p {
    margin: 0;
    color: rgba(243, 239, 230, 0.68);
    font-size: 17px;
    line-height: 1.8;
}

/* Form */
.invite {
    padding: 40px 7vw 100px;
}

.form-wrap {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 48px 48px 44px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.form-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.eyebrow.dark {
    color: var(--gold);
}

.form-header h2 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
}

.form-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
}

.invite-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.field,
.field-block {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.field {
    display: grid;
    gap: 8px;
}

.field-block {
    display: flow-root;
}

.field label,
.field-block legend {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.field-block legend {
    float: left;
    margin-bottom: 8px;
}

.field-block > :not(legend) {
    clear: both;
}

.optional {
    margin-left: 6px;
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid #d8d2c6;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.4;
    outline: none;
}

.field textarea {
    min-height: 108px;
    padding: 14px 16px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 137, 62, 0.15);
}

.field select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6570' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.pills,
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pills.compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.pill,
.chip {
    position: relative;
    cursor: pointer;
}

.pill input,
.chip input,
.option-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill span,
.chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #d8d2c6;
    border-radius: 12px;
    background: #fff;
    color: #2a2e35;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.pill:hover span,
.chip:hover span,
.option-row:hover {
    border-color: var(--gold);
}

.pill:has(input:checked) span,
.chip:has(input:checked) span {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.option-list {
    display: grid;
    gap: 8px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #d8d2c6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.option-row span {
    position: relative;
    padding-left: 26px;
}

.option-row span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 1px solid #b8b2a6;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #fff;
}

.option-row:has(input:checked) {
    border-color: var(--navy);
    background: #f7f4ee;
}

.option-row:has(input:checked) span::before {
    border-color: var(--navy);
    background: radial-gradient(circle, var(--navy) 0 5px, #fff 6px);
}

.error {
    color: #b42318;
    font-size: 12px;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.alert.success {
    background: #eef6ee;
    color: #215c2e;
}

.alert.error {
    background: #fdecec;
    color: #8a1f1f;
}

.submit {
    width: 100%;
    margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy h1,
    .subtitle,
    .eyebrow,
    .hero-meta {
        animation: none;
    }
}

/* Footer */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 20px 48px;
    border-top: 1px solid rgba(212, 181, 106, 0.18);
}

.site-footer img {
    height: 44px;
    width: auto;
}

.footer-event {
    text-align: center;
}

.footer-event-name {
    margin: 0;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    color: #f3efe6;
}

.footer-event-tagline {
    margin: 8px 0 0;
    color: rgba(243, 239, 230, 0.55);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(196, 163, 90, 0.38);
    border-radius: 50%;
    color: var(--gold-soft);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 980px) {
    .hero-shell {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-visual-frame {
        max-height: 420px;
    }

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

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

    .reg-no,
    .header-cta {
        display: none;
    }

    .hero,
    .invite,
    .intro {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        padding-top: 108px;
        min-height: auto;
    }

    .form-wrap {
        padding: 28px 18px;
    }

    .form-grid,
    .pills.compact {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-meta div + div {
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}
