/* ==========================================================================
   IGOS 2026 — Realm of Greater Exploit
   Public site styles. Mobile-first; Bootstrap 5 provides the reset and grid.
   ========================================================================== */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------------------------------------------------------------- Tokens */
:root {
    --night: #120a2b;
    --night-2: #1a0f3c;
    --realm: #2b1760;
    --realm-2: #3d2384;
    --gold: #d9a94a;
    --gold-light: #f3d58b;
    --gold-deep: #a97a22;
    --ivory: #f8f2e4;
    --ivory-2: #efe5cd;
    --mist: #bdb2da;
    --line: rgba(243, 213, 139, .22);
    --danger: #ff8a7a;
    --ok: #7fe0a8;

    --display: "Marcellus", "Times New Roman", serif;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --shadow: 0 18px 50px -20px rgba(5, 2, 18, .75);
    --gutter: 16px;
    --nav-h: 64px;
}

/* ---------------------------------------------------------------- Base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
    margin: 0;
    background: var(--night);
    color: var(--ivory);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
::selection { background: var(--gold); color: var(--night); }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }

.container-site { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
h2.section-title { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0 0 .6rem; color: var(--ivory); }
.section-lede { color: var(--mist); max-width: 62ch; font-size: 1.05rem; }
section { position: relative; }
.section { padding: 72px 0; }
@media (min-width: 992px) { .section { padding: 112px 0; } }

/* ---------------------------------------------------------------- Buttons */
.btn-realm, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
    -webkit-tap-highlight-color: transparent; cursor: pointer; border: 0;
}
.btn-realm {
    color: var(--night);
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #c8932f);
    box-shadow: 0 10px 26px -10px rgba(217, 169, 74, .8), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-realm:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(217, 169, 74, .95), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-realm:active, .btn-ghost:active { transform: translateY(0) scale(.98); }
.btn-realm[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { color: var(--ivory); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: #fff; background: rgba(243,213,139,.1); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- Announcement bar + navigation */
.announce {
    background: linear-gradient(90deg, #2a1650, #3a2170 50%, #2a1650);
    color: var(--gold-light); font-size: .88rem; text-align: center; padding: .5rem var(--gutter);
    border-bottom: 1px solid var(--line);
}

.site-nav {
    position: sticky; top: 0; z-index: 1030; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(18, 10, 43, .55);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease, border-color .3s ease;
}
.site-nav.is-scrolled { background: rgba(18, 10, 43, .92); border-bottom-color: var(--line); }
.site-nav .container-site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory); min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: var(--night); font-family: var(--display); font-size: .82rem; letter-spacing: .02em;
    box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { line-height: 1.1; min-width: 0; }
.brand-text strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.brand-text small { display: block; color: var(--mist); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }

.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--ivory); text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; color: var(--gold-light); }
.nav-cta { display: none; min-height: 44px; padding: .55rem 1.2rem; font-size: .92rem; }

.nav-toggle {
    width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--ivory);
    display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 1020;
    background: rgba(18, 10, 43, .98); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-menu li a { display: block; padding: 14px 4px; color: var(--ivory); text-decoration: none; font-size: 1.15rem; font-family: var(--display); border-bottom: 1px solid rgba(255,255,255,.06); }

@media (min-width: 992px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .nav-toggle, .mobile-menu { display: none; }
    .brand-text small { max-width: none; }
}

/* ---------------------------------------------------------------- Footer */
.site-footer { background: #0c0620; padding: 56px 0 28px; color: var(--mist); font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.site-footer h4 { font-family: var(--display); font-weight: 400; color: var(--ivory); font-size: 1.2rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer a.btn-realm, .site-footer a.btn-realm:hover { color: var(--night); }
.footer-cta { margin-top: 1rem; }
.social { display: flex; gap: 10px; margin-top: .8rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); font-size: 1.1rem; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }

/* ---------------------------------------------------------------- Simple content pages */
.page-simple { padding: 56px 0 80px; }
.page-simple .prose { max-width: 68ch; color: var(--ivory); }
.page-simple .prose p { color: var(--mist); }

/* ==================================================================== HERO: the threshold */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 28px 0 56px;
    background:
        radial-gradient(120% 70% at 50% 0%, #3a2077 0%, rgba(43,23,96,.6) 38%, transparent 70%),
        linear-gradient(180deg, var(--night-2), var(--night) 80%);
    text-align: center;
}
/* Optional photo uploaded by the admin, sitting behind everything */
.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.8); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,10,43,.55), rgba(18,10,43,.85) 70%, var(--night)); }

/* Light coming through the doorway */
.hero::before {
    content: ""; position: absolute; z-index: -2; left: 50%; top: 4%;
    width: min(760px, 120vw); height: min(760px, 120vw); transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(243,213,139,.30), rgba(217,169,74,.12) 45%, transparent 72%);
    filter: blur(6px);
}
.hero-rays {
    position: absolute; z-index: -1; left: 50%; top: 0; width: 900px; height: 620px; transform: translateX(-50%);
    background: repeating-conic-gradient(from 180deg at 50% 0%, rgba(243,213,139,.07) 0deg 3deg, transparent 3deg 14deg);
    -webkit-mask-image: radial-gradient(closest-side at 50% 0%, #000 0%, transparent 85%);
            mask-image: radial-gradient(closest-side at 50% 0%, #000 0%, transparent 85%);
    pointer-events: none;
}

.threshold { position: relative; margin: 8px auto 0; width: min(560px, 100%); padding: 0 6px; }
.threshold svg.arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* The arch "draws itself": a long dash that slides to 0 */
.arch-line { fill: none; stroke: url(#archGold); stroke-width: 1.4; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.2s .15s cubic-bezier(.6,.05,.2,1) forwards; }
.arch-line.inner { stroke-width: .8; opacity: .55; animation-delay: .45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.threshold-inner { position: relative; padding: 92px 18px 26px; }
@media (min-width: 576px) { .threshold-inner { padding: 104px 40px 30px; } }

.hero-org { color: var(--gold-light); font-size: .92rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 .9rem; }
.hero-title {
    font-family: var(--display); margin: 0; line-height: .95;
    font-size: clamp(3.4rem, 17vw, 7.2rem); letter-spacing: .04em;
    background: linear-gradient(180deg, #fff9ea 0%, var(--gold-light) 48%, var(--gold) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-theme {
    font-family: var(--display); margin: .9rem auto 0; max-width: 16ch;
    font-size: clamp(1.25rem, 5.6vw, 2.1rem); letter-spacing: .14em; line-height: 1.3; color: var(--ivory);
}
.hero-rule { width: 64px; height: 1px; margin: 1.4rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-meta { display: flex; flex-direction: column; gap: .3rem; color: var(--ivory); font-weight: 600; }
.hero-meta .when { font-size: 1.1rem; }
.hero-meta .where { color: var(--mist); font-weight: 500; font-size: .95rem; }
.hero-intro { color: var(--mist); max-width: 46ch; margin: 1.2rem auto 0; font-size: 1rem; }
.hero-actions { display: grid; gap: .75rem; margin: 1.6rem auto 0; max-width: 420px; }
@media (min-width: 576px) { .hero-actions { grid-template-columns: 1fr 1fr; } }

/* One orchestrated entrance on page load */
.rise { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: .25s; } .rise.d2 { animation-delay: .45s; } .rise.d3 { animation-delay: .65s; }
.rise.d4 { animation-delay: .85s; } .rise.d5 { animation-delay: 1.05s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==================================================================== Reveal on scroll (subtle, once) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==================================================================== About */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.about-intro p { font-size: 1.12rem; color: var(--ivory); max-width: 60ch; }
.about-figure { margin: 28px 0 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-list { margin: 0; padding: 0; }
.about-list > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.about-list > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .about-list > div { grid-template-columns: 200px 1fr; gap: 24px; } }
.about-list dt { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--gold-light); }
.about-list dd { margin: 0; color: var(--mist); }
.about-list dd p:last-child { margin-bottom: 0; }

/* ==================================================================== Theme (the one light section) */
.theme { background: radial-gradient(90% 120% at 50% 0%, #fffaf0, var(--ivory) 45%, var(--ivory-2)); color: var(--realm); text-align: center; overflow: hidden; }
.theme-kicker { font-weight: 700; color: var(--gold-deep); margin-bottom: 1rem; }
.theme-words { font-family: var(--display); margin: 0 auto; line-height: 1; color: var(--realm); }
.theme-words span { display: block; }
.theme-words .w1 { font-size: clamp(1.3rem, 5vw, 2rem); letter-spacing: .3em; color: var(--gold-deep); }
.theme-words .w2 { font-size: clamp(3.4rem, 15vw, 8.5rem); letter-spacing: .02em; margin: .08em 0; }
.theme-words .w3 { font-size: clamp(2rem, 9vw, 5rem); letter-spacing: .12em; }
.theme-desc { max-width: 58ch; margin: 2rem auto 0; font-size: 1.12rem; color: #3b2a63; }
.theme-desc p:last-child { margin: 0; }
.theme-mark { width: 120px; margin: 0 auto 1.2rem; display: block; }

/* ==================================================================== Programme */
.programme { background: linear-gradient(180deg, var(--night), #170d36); }
.day-jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 28px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.day-jump::-webkit-scrollbar { display: none; }
.day-jump a {
    flex: 0 0 auto; scroll-snap-align: start; text-decoration: none; text-align: center;
    min-width: 64px; padding: 8px 10px; border-radius: var(--r-md); color: var(--ivory);
    box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.03);
}
.day-jump a:hover, .day-jump a:focus-visible { box-shadow: inset 0 0 0 1.5px var(--gold); color: #fff; }
.day-jump small { display: block; font-size: .72rem; color: var(--mist); font-weight: 700; }
.day-jump strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.tl-day { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.07); }
@media (min-width: 768px) { .tl-day { grid-template-columns: 150px 1fr; gap: 40px; } }
.tl-date .dow { color: var(--gold-light); font-weight: 700; font-size: .85rem; }
.tl-date .dnum { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: #fff; }
.tl-date .mon { color: var(--mist); font-size: .85rem; }
.tl-sessions { display: grid; gap: 10px; align-content: start; }
.tl-session {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline;
    padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.035);
    border-left: 3px solid var(--gold);
}
.tl-session.is-evening { border-left-color: #9c86e0; }
.tl-time { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-title { font-family: var(--display); font-size: 1.2rem; color: var(--ivory); }
.tl-desc { grid-column: 2; color: var(--mist); font-size: .95rem; }
.tl-desc p { margin: 0; }
.tl-note { color: var(--gold-light); font-size: .92rem; margin: 4px 0 0; display: flex; gap: .5rem; align-items: baseline; }
.tl-tba { color: var(--mist); font-style: italic; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed var(--line); }

/* ==================================================================== Highlights */
.highlights { background: #170d36; }
.hl-grid { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .hl-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1200px) { .hl-grid { grid-template-columns: repeat(3, 1fr); } }
.hl-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.hl-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold); background: radial-gradient(circle, rgba(217,169,74,.14), transparent 70%); overflow: hidden; }
.hl-icon img { width: 100%; height: 100%; object-fit: cover; }
.hl-item h3 { font-size: 1.25rem; margin: 2px 0 6px; color: var(--ivory); }
.hl-item p { margin: 0; color: var(--mist); font-size: .97rem; }

/* ==================================================================== Venue */
.venue { background: linear-gradient(180deg, #170d36, var(--night)); }
.venue-grid { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 992px) { .venue-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: stretch; } }
.venue-card { padding: 28px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(61,35,132,.55), rgba(43,23,96,.35)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.venue-card h3 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 .6rem; color: #fff; }
.venue-card address { font-style: normal; color: var(--ivory); font-size: 1.05rem; margin: 0 0 1.4rem; }
.venue-notes { color: var(--mist); font-size: .95rem; }
.venue-actions { display: grid; gap: 10px; }
.venue-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 300px; background: #1d1142; position: relative; }
.venue-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
    background:
      linear-gradient(rgba(243,213,139,.06) 1px, transparent 1px) 0 0 / 34px 34px,
      linear-gradient(90deg, rgba(243,213,139,.06) 1px, transparent 1px) 0 0 / 34px 34px,
      radial-gradient(circle at 50% 45%, rgba(217,169,74,.18), transparent 55%); }
.map-fallback i { font-size: 2.6rem; color: var(--gold); }
.map-fallback p { color: var(--mist); margin: .6rem 0 1rem; }

/* ==================================================================== Registration */
.register { background: radial-gradient(80% 60% at 50% 0%, #2c1862, var(--night) 70%); }
.reg-wrap { display: grid; gap: 32px; }
@media (min-width: 992px) { .reg-wrap { grid-template-columns: 4fr 6fr; gap: 64px; align-items: start; } .reg-aside { position: sticky; top: calc(var(--nav-h) + 24px); } }
.reg-aside ol { padding-left: 1.2rem; color: var(--mist); }
.reg-aside li { margin-bottom: .5rem; }
.reg-aside li::marker { color: var(--gold); font-weight: 700; }

/* The form sits on an ivory "paper" panel: easier to read and fill than light-on-dark */
.reg-panel { background: var(--ivory); color: #24164d; border-radius: var(--r-lg); padding: 24px 18px; box-shadow: var(--shadow); }
@media (min-width: 576px) { .reg-panel { padding: 36px 34px; } }
.reg-panel h3 { color: var(--realm); font-size: 1.6rem; margin-bottom: .3rem; }
.reg-panel .muted { color: #5c4d86; font-size: .95rem; }
.reg-panel a { color: #3d2384; font-weight: 700; }
.form-row-2 { display: grid; gap: 0 16px; }
@media (min-width: 576px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 18px; }
.field > label, .field .flabel { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: #24164d; float: none; }
.field .req { color: #a3341f; margin-left: 2px; }
.field .opt { color: #7a6ca3; font-weight: 500; font-size: .85rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=date], .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 12px 14px;
    font-size: 16px;                       /* 16px stops iPhones zooming in on focus */
    border: 1.5px solid #cfc3e6; border-radius: var(--r-sm); background: #fff; color: #1b1238;
    transition: border-color .2s, box-shadow .2s; font-family: var(--body);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--realm-2); box-shadow: 0 0 0 4px rgba(61,35,132,.15); }
.field .help { font-size: .85rem; color: #6a5c95; margin-top: 4px; }
.field .error { display: none; color: #a3341f; font-size: .88rem; font-weight: 600; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2412b; background: #fff8f6; }
.field.has-error .error { display: block; }

.choices { display: grid; gap: 8px; }
.choices.inline { grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cfc3e6; border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--realm-2); background: #f3eefd; }
.choice input { width: 20px; height: 20px; accent-color: var(--realm-2); flex: 0 0 20px; }

.field > label.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .95rem; color: #3b2a63; margin: 0; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--realm-2); flex: 0 0 22px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; }
.form-alert.error { background: #fdebe7; color: #8a2a17; border: 1px solid #f3c2b6; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(18,10,43,.25); border-top-color: var(--night); animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.closed-panel { text-align: center; padding: 32px 18px; }
.closed-panel i { font-size: 2.4rem; color: var(--realm-2); }

/* Success overlay: a gold seal draws itself, then we go to the ticket */
.success-overlay { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(18,10,43,.92); opacity: 0; visibility: hidden; transition: opacity .3s; padding: 24px; text-align: center; }
.success-overlay.show { opacity: 1; visibility: visible; }
.success-overlay h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); color: #fff; margin: 18px 0 6px; }
.success-overlay p { color: var(--mist); }
.seal { width: 112px; height: 112px; margin: 0 auto; display: block; }
.seal circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; }
.seal path { fill: none; stroke: var(--gold-light); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.show .seal circle { animation: dash .7s ease forwards; }
.show .seal path { animation: dash .45s .55s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* Floating register button on phones */
.mobile-register-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1010; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(18,10,43,.96) 30%); transform: translateY(110%); transition: transform .3s ease; }
.mobile-register-bar.show { transform: none; }
@media (min-width: 992px) { .mobile-register-bar { display: none; } }

/* ==================================================================== Countdown: the step below the doorway */
.countdown {
    margin: 26px auto 0; width: min(560px, 100%);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 16px 0 14px; position: relative;
}
/* Small gold diamonds at the centre of each rule */
.countdown::before, .countdown::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.countdown::before { top: -4px; }
.countdown::after { bottom: -4px; }
.cd-label { color: var(--gold-light); font-size: .9rem; font-weight: 600; margin: 0 0 10px; }
.cd-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-num {
    font-family: var(--display); font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 1; color: #fff;
    font-variant-numeric: tabular-nums; min-width: 2ch; display: inline-block; height: 1em; overflow: hidden; position: relative;
}
.cd-num .digit { display: inline-block; }
.cd-num .digit.tick { animation: tick .45s cubic-bezier(.2,.8,.2,1); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-cap { margin-top: 8px; font-size: .72rem; letter-spacing: .16em; color: var(--mist); font-weight: 700; }
.cd-target { margin: 12px 0 0; color: var(--mist); font-size: .85rem; }
.cd-message { font-family: var(--display); font-size: clamp(1.2rem, 5vw, 1.6rem); color: var(--gold-light); margin: 6px 0; }
.cd-message:empty { display: none; }
/* After the opening: hide the numbers, show the message */
.countdown[data-state="live"] .cd-units, .countdown[data-state="ended"] .cd-units,
.countdown[data-state="live"] .cd-label, .countdown[data-state="ended"] .cd-label,
.countdown[data-state="live"] .cd-target, .countdown[data-state="ended"] .cd-target { display: none; }

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    html { scroll-behavior: auto; }
    .rise, .reveal { opacity: 1 !important; transform: none !important; }
    .arch-line { stroke-dashoffset: 0 !important; }
}