:root {
    --ink: #302827;
    --ink-soft: #5e514d;
    --paper: #f4ecdf;
    --paper-light: #fbf8f2;
    --copper: #a85f42;
    --copper-dark: #75402f;
    --sand: #d7b27d;
    --line: rgba(48, 40, 39, .17);
    --shadow: 0 30px 80px rgba(48, 30, 24, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 5%, rgba(215, 178, 125, .2), transparent 25rem),
        #211c1b;
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.65;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}
a { color: inherit; }
.page-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 0 100px rgba(0, 0, 0, .42);
}
.hero {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}
.hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 24%;
    background: linear-gradient(transparent, rgba(24, 18, 17, .55));
    pointer-events: none;
}
.hero-cta {
    position: absolute;
    z-index: 1;
    right: clamp(24px, 5vw, 72px);
    bottom: clamp(20px, 4vw, 55px);
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 14px 22px;
    color: white;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: .25s ease;
}
.hero-cta:hover { background: white; color: var(--ink); transform: translateY(-2px); }
main { background: var(--paper); }
.intro {
    padding: clamp(70px, 10vw, 140px) clamp(28px, 9vw, 120px);
    text-align: center;
    background:
        linear-gradient(rgba(244,236,223,.94), rgba(244,236,223,.94)),
        url("../images/top.png") center 78% / cover;
}
.eyebrow {
    margin: 0 0 20px;
    color: var(--copper);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
h1, h2 {
    margin: 0;
    font-family: "Archivo Black", "Arial Black", sans-serif;
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.045em;
    text-transform: uppercase;
}
h1 { font-size: clamp(1.89rem, 4.9vw, 4.2rem); }
h1 em {
    color: var(--copper);
    font-style: normal;
    font-weight: 400;
}
.lead {
    max-width: 760px;
    margin: 38px auto 25px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.text-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
}
.event-card {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    color: var(--paper-light);
    background: var(--ink);
}
.event-place, .agenda { padding: clamp(45px, 7vw, 88px); }
.event-place {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(117, 64, 47, .94), rgba(168, 95, 66, .86)),
        url("../images/top.png") left center / auto 100%;
}
.event-place::after {
    content: "25";
    position: absolute;
    right: -25px;
    bottom: -80px;
    color: rgba(255,255,255,.08);
    font-family: "Archivo Black", "Arial Black", sans-serif;
    font-size: 17rem;
    line-height: 1;
}
.section-number {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 60px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
}
.event-place .eyebrow { color: #f0d2a8; }
.event-place h2, .registration-heading h2 { font-size: clamp(1.75rem, 3.5vw, 3.29rem); }
.event-place p:not(.eyebrow) { margin: 28px 0; color: rgba(255,255,255,.75); }
.event-place a { position: relative; z-index: 1; font-weight: 700; }
.map-trigger {
    position: relative;
    z-index: 1;
    padding: 0 0 4px;
    color: inherit;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    font: 700 .9rem "Montserrat", sans-serif;
    cursor: pointer;
}
.map-trigger:hover { color: var(--sand); }
.agenda { background: #342b2a; }
.agenda-day { display: grid; grid-template-columns: 80px 1fr; gap: 32px; }
.agenda-day--next { margin-top: 42px; padding-top: 42px; border-top: 1px solid rgba(255,255,255,.14); }
.date-badge {
    display: flex;
    width: 70px;
    height: 78px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--sand);
}
.date-badge strong { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 1.8rem; font-weight: 400; line-height: 1; }
.date-badge span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.timeline p {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.timeline time { color: var(--sand); font-weight: 800; font-size: .82rem; }
.registration {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(40px, 7vw, 95px);
    padding: clamp(70px, 10vw, 135px) clamp(28px, 7vw, 95px);
    background: var(--paper-light);
}
.registration-heading { position: sticky; top: 35px; align-self: start; }
.registration-heading .section-number { margin-bottom: 50px; }
.registration-heading p:last-child { margin-top: 30px; color: var(--ink-soft); }
.form-panel {
    padding: clamp(25px, 5vw, 58px);
    background: white;
    box-shadow: var(--shadow);
}
form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .choice-field legend {
    display: block;
    margin-bottom: 9px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .025em;
}
.field label > span, .choice-field legend span { color: var(--copper); }
input[type="text"], input[type="tel"], select, textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bfb3aa;
    border-radius: 0;
    padding: 12px 2px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
select { cursor: pointer; }
textarea { border: 1px solid #cfc4ba; padding: 14px; resize: vertical; }
input:focus, select:focus { border-color: var(--copper); box-shadow: 0 2px 0 var(--copper); }
textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(168,95,66,.15); }
.choice-field { margin: 0; padding: 0; border: 0; }
.choice { display: flex !important; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.choice input { width: 18px; height: 18px; accent-color: var(--copper); }
.choice span { color: var(--ink) !important; font-size: .92rem; font-weight: 600; }
.phone-number-field { display: none; }
.phone-number-field.is-visible { display: block; animation: fieldIn .35s ease both; }
.phone-optional {
    display: none !important;
    margin: 0 0 0 7px !important;
    color: var(--copper) !important;
    font-size: .66rem !important;
    font-weight: 700;
}
.phone-number-field.is-private .phone-required { display: none; }
.phone-number-field.is-private .phone-optional { display: inline !important; }
.privacy-note {
    display: none;
    margin-top: 18px;
    padding: 16px 18px;
    color: var(--copper-dark);
    border-left: 3px solid var(--copper);
    background: #f8eee8;
    font-size: .78rem;
    line-height: 1.55;
}
.privacy-note.is-visible { display: block; }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { margin-bottom: 4px; }
.roommate-field { display: none; }
.roommate-field.is-visible { display: block; animation: fieldIn .35s ease both; }
.field small { display: block; margin-top: 10px; color: #7b6e68; font-size: .73rem; line-height: 1.5; }
.form-divider {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
    font-family: "Archivo Black", "Arial Black", sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.form-divider small { color: var(--copper); font-family: "Montserrat", sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.passion-intro {
    margin-top: 12px;
    padding: 30px;
    color: white;
    background:
        linear-gradient(125deg, rgba(117, 64, 47, .96), rgba(48, 40, 39, .94)),
        url("../images/top.png") center / cover;
}
.passion-kicker {
    color: var(--sand);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.passion-intro h3 {
    margin: 8px 0 12px;
    font: 400 clamp(1.65rem, 3vw, 2.35rem)/1.02 "Archivo Black", "Arial Black", sans-serif;
    letter-spacing: -.035em;
    text-transform: uppercase;
}
.passion-intro p {
    max-width: 580px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: .84rem;
}
.match-question {
    margin: 0;
    padding: 0 0 26px;
    border: 0;
    border-bottom: 1px solid var(--line);
}
.match-question legend {
    width: 100%;
    margin-bottom: 16px;
    font-size: .84rem;
    font-weight: 800;
}
.match-question legend > span {
    display: inline-grid;
    width: 31px;
    height: 31px;
    margin-right: 10px;
    place-items: center;
    color: var(--copper);
    border: 1px solid var(--copper);
    border-radius: 50%;
    font-size: .62rem;
}
.match-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.match-options label { margin: 0; cursor: pointer; }
.match-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.match-options label > span {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--ink) !important;
    border: 1px solid #d8cec5;
    background: var(--paper-light);
    font-size: .86rem;
    text-align: center;
    transition: .2s ease;
}
.match-options label:hover > span {
    border-color: var(--copper);
    transform: translateY(-1px);
}
.match-options input:checked + span {
    color: white !important;
    border-color: var(--copper);
    background: var(--copper);
    box-shadow: 0 8px 20px rgba(117,64,47,.18);
}
.match-options input:focus-visible + span {
    outline: 3px solid rgba(168,95,66,.25);
    outline-offset: 2px;
}
.submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 20px 24px;
    color: white;
    border: 0;
    background: var(--copper);
    font: 800 .9rem "Montserrat", sans-serif;
    cursor: pointer;
    transition: .25s ease;
}
.submit-button:hover { background: var(--copper-dark); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(117,64,47,.22); }
.message { margin-bottom: 30px; padding: 20px 24px; border-left: 4px solid; }
.message strong, .message span { display: block; }
.message--success { color: #285d3b; background: #edf7ef; }
.message--error { color: #7d2d26; background: #fff0ee; }
.message ul { margin: 8px 0 0; padding-left: 20px; }
.hp-field { position: absolute; left: -9999px; }
footer {
    display: flex;
    justify-content: space-between;
    padding: 30px clamp(28px, 7vw, 95px);
    color: rgba(255,255,255,.7);
    background: #211c1b;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.map-modal {
    width: min(920px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    color: var(--ink);
    border: 0;
    background: transparent;
    box-shadow: var(--shadow);
}
.map-modal::backdrop {
    background: rgba(24, 18, 17, .78);
    backdrop-filter: blur(5px);
}
.map-modal__panel { background: var(--paper-light); }
.map-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 26px 30px;
}
.map-modal__header .eyebrow { margin-bottom: 8px; }
.map-modal__header h2 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.05;
}
.map-modal__close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    color: white;
    border: 0;
    border-radius: 50%;
    background: var(--copper);
    font: 400 1.75rem/1 Arial, sans-serif;
    cursor: pointer;
}
.map-modal__close:hover { background: var(--copper-dark); }
.map-modal__map {
    height: min(58vh, 520px);
    background: #ddd3c8;
}
.map-modal__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.map-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 30px;
    color: var(--ink-soft);
    font-size: .78rem;
}
.map-modal__footer a {
    color: var(--copper-dark);
    font-weight: 800;
}
.map-modal[open] { animation: modalIn .25s ease both; }
.reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity .85s ease, transform .85s cubic-bezier(.2,.75,.25,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
}

@media (max-width: 820px) {
    .page-shell { width: 100%; }
    .hero-cta { font-size: .75rem; padding: 10px 15px; }
    .event-card, .registration { grid-template-columns: 1fr; }
    .registration-heading { position: static; }
    .registration-heading .section-number, .event-place .section-number { margin-bottom: 35px; }
    .event-place, .agenda { padding: 55px 28px; }
}
@media (max-width: 560px) {
    h1 { font-size: 1.785rem; }
    .intro { padding-left: 22px; padding-right: 22px; }
    .agenda-day { grid-template-columns: 58px 1fr; gap: 20px; }
    .date-badge { width: 56px; height: 66px; }
    .timeline p { grid-template-columns: 58px 1fr; gap: 10px; }
    .registration { padding-left: 16px; padding-right: 16px; }
    .form-panel { padding: 28px 20px; }
    form { grid-template-columns: 1fr; }
    .field--wide { grid-column: auto; }
    .form-divider { grid-column: auto; font-size: 1.45rem; }
    .match-options { grid-template-columns: 1fr; }
    .map-modal__header { padding: 20px; }
    .map-modal__footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }
    .map-modal__map { height: 55vh; }
    footer { gap: 20px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
