:root {
    --bg: #caa2c9;
    --bg-soft: #e1bddf;
    --ink: #1a1a1a;
    --ink-soft: #323232;
    --accent: #f1902f;
    --mint: #58c7b5;
    --rose: #f2a7c8;
    --sky: #c9e3ff;
    --card: #f6f0f4;
    --border: #1c1c1c;
    --shadow: rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #d7b4d6 0%, var(--bg) 35%, #b884b7 100%);
    letter-spacing: 0.2px;
}

html.wave-gradient-bg {
    background-color: var(--bg);
    background-image: linear-gradient(130deg, #ebbfe9 0%, #c79ac6 40%, #a668a6 100%);
    position: relative;
    isolation: isolate;
}

html.wave-gradient-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 8% 16%, rgba(255, 225, 250, 0.95) 0%, rgba(255, 225, 250, 0.2) 34%, rgba(255, 225, 250, 0) 56%),
        radial-gradient(circle at 90% 76%, rgba(128, 216, 255, 0.75) 0%, rgba(128, 216, 255, 0.18) 38%, rgba(128, 216, 255, 0) 60%),
        radial-gradient(circle at 50% 8%, rgba(255, 170, 220, 0.4) 0%, rgba(255, 170, 220, 0) 52%);
    background-size: 230% 230%, 220% 220%, 200% 200%;
    background-repeat: no-repeat;
    background-position: 0% 0%, 100% 100%, 50% 0%;
    opacity: 0.75;
    animation: wave-gradient-fade-a 5s ease-in-out infinite;
}

html.wave-gradient-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 22% 80%, rgba(255, 190, 231, 0.45) 0%, rgba(255, 190, 231, 0) 58%),
        radial-gradient(circle at 78% 24%, rgba(175, 221, 255, 0.45) 0%, rgba(175, 221, 255, 0) 56%);
    background-size: 210% 210%, 220% 220%;
    background-repeat: no-repeat;
    background-position: 0% 100%, 100% 0%;
    opacity: 0.45;
    animation: wave-gradient-fade-b 6s ease-in-out infinite;
}

html.wave-gradient-bg body {
    background: transparent;
}

@keyframes wave-gradient-fade-a {
    0% {
        opacity: 0.58;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.62;
    }
}

@keyframes wave-gradient-fade-b {
    0% {
        opacity: 0.22;
    }
    50% {
        opacity: 0.56;
    }
    100% {
        opacity: 0.24;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.wave-gradient-bg::before,
    html.wave-gradient-bg::after {
        animation: none;
    }
}

.participants-page {
    min-height: 100vh;
    padding: 40px 24px 60px;
    background: transparent;
    color: var(--ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.participants-header {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.participants-header h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 56px);
}

.participants-header p {
    margin: 0;
    font-size: 18px;
    color: var(--ink-soft);
}

.participants-slug {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .participants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .participants-grid {
        grid-template-columns: 1fr;
    }
}

.participant-card {
    background: #fff5b8;
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
    padding: 14px;
    display: grid;
    gap: 10px;
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.participant-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.participant-card h2 {
    margin: 0;
    font-size: 18px;
}

.participant-card p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
}


.participant-card a {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    text-decoration: none;
    color: var(--ink);
    border: 2px solid var(--border);
    padding: 4px 8px;
    display: inline-block;
    background: #ffd8b1;
    box-shadow: 3px 3px 0 var(--border);
    width: fit-content;
}

.participant-card:hover {
    transform: rotate(var(--tilt, 0deg)) translateY(-4px);
    box-shadow: 8px 8px 0 var(--border);
}

.profile-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff5b8;
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
    padding: 18px;
    display: grid;
    gap: 12px;
}

.profile-card--wide {
    max-width: 820px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: start;
}

.profile-preview img {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 10px;
    display: block;
}

@media (max-width: 720px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-card label {
    display: grid;
    gap: 6px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.profile-card .profile-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.profile-card .profile-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.profile-card input,
.profile-card textarea {
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: "IBM Plex Mono", monospace;
}

.profile-card button {
    background: var(--accent);
    border: 2px solid var(--border);
    padding: 8px 12px;
    font-family: "IBM Plex Mono", monospace;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--border);
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.profile-status {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.profile-events {
    margin-top: 16px;
    padding: 12px;
    border: 2px solid var(--border);
    background: #fff;
    font-family: "IBM Plex Mono", monospace;
}

.profile-events h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.profile-events ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.profile-events li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.profile-event-link {
    text-decoration: none;
    color: var(--ink);
    border: 2px solid var(--border);
    padding: 2px 6px;
    background: #ffd8b1;
    box-shadow: 2px 2px 0 var(--border);
}

.profile-view-link {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    text-decoration: none;
    color: #111;
    background: var(--accent);
    border: 2px solid var(--border);
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--border);
}

.participant-card:nth-child(6n + 1) { --tilt: -2.5deg; }
.participant-card:nth-child(6n + 2) { --tilt: 1.8deg; }
.participant-card:nth-child(6n + 3) { --tilt: -1.2deg; }
.participant-card:nth-child(6n + 4) { --tilt: 2.2deg; }
.participant-card:nth-child(6n + 5) { --tilt: -1.8deg; }
.participant-card:nth-child(6n + 6) { --tilt: 1.1deg; }



.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 32px;
}

.poster {
    width: min(1100px, 100%);
    background: var(--bg-soft);
    border: 2px solid var(--border);
    box-shadow: 0 20px 45px var(--shadow);
    display: grid;
    gap: 0;
}

.topbar {
    display: grid;
    grid-template-columns: 80px 1.2fr 1fr;
    border-bottom: 2px solid var(--border);
}

.topbar > div {
    padding: 16px 18px;
    border-right: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topbar > div:last-child {
    border-right: none;
}

.brand {
    font-size: 14px;
    text-transform: none;
    line-height: 1.2;
}

.brand strong {
    display: block;
    font-size: 26px;
    letter-spacing: 2px;
}

.title-area {
    padding: 28px 32px 10px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    border-bottom: 2px solid var(--border);
}

.title-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-copy .present {
    font-family: "IBM Plex Mono", monospace;
    font-size: 18px;
}

.title-copy h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 86px);
    line-height: 0.95;
    letter-spacing: -1px;
}

.title-copy h2 {
    margin: 0;
    font-weight: 500;
}

.title-copy p {
    margin: 0;
    font-size: 22px;
    color: var(--ink-soft);
}

.window {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--border);
}

.art-float {
    justify-self: end;
    align-self: start;
    display: grid;
    pointer-events: none;
}

.art-folders {
    width: 190px;
    max-width: 60vw;
    display: block;
    margin: 0 0 -20px auto;
}

.art-clouds {
    width: 260px;
    max-width: 70vw;
    display: block;
    margin-left: auto;
}

.window .window-bar {
    background: var(--rose);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

.window .content {
    padding: 12px;
}

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

.icon {
    height: 32px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    font-family: "IBM Plex Mono", monospace;
}

.cloud {
    height: 60px;
    background: linear-gradient(135deg, #8bd3f0, #e3b6f5);
    border: 2px solid var(--border);
    border-radius: 18px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 26px 32px 30px;
    border-bottom: 2px solid var(--border);
}

.date-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    box-shadow: -10px 10px 0 var(--mint);
    padding: 18px 20px;
    display: grid;
    gap: 8px;
}

.date-card h3 {
    margin: 0;
    font-size: 28px;
}

.date-card p {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
}

.date-card .meta {
    font-size: 18px;
}

.date-card .status {
    font-weight: 600;
    color: #1a1a1a;
}

.register-link {
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
    background: #ffd8b1;
    border: 2px solid var(--border);
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.register-link:hover {
    background: #ffc98f;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--border);
}

.modal__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal__submit .loader {
    width: 14px;
    height: 14px;
    border: 2px solid #111;
    border-top-color: transparent;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}

.modal__submit.is-loading .loader {
    opacity: 1;
}

.modal__submit.is-loading .submit-text {
    opacity: 0.6;
}

.photo {
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #256d4c, #8bd07e);
    min-height: 240px;
    position: relative;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo::after {
    content: "Dr. Andy Quitmeyer";
    position: absolute;
    bottom: 12px;
    left: 16px;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 10px;
    font-family: "IBM Plex Mono", monospace;
    border: 2px solid var(--border);
    font-size: 12px;
}

.logistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.logistics div {
    padding: 12px 16px;
    border-right: 2px solid var(--border);
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    text-align: center;
}

.logistics div:last-child {
    border-right: none;
}

.details {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    padding: 24px 32px 28px;
    border-bottom: 2px solid var(--border);
}

.details--full {
    display: block;
    grid-template-columns: 1fr;
}

.details p {
    margin: 0 0 14px;
    font-size: 18px;
    text-align: justify;
}

.details .lead {
    font-size: 18px;
}

.about {
    border-bottom: 2px solid var(--border);
    padding: 22px 32px 26px;
    background: #f6d6e6;
}

.about h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.about p {
    margin: 0 0 12px;
    font-size: 16px;
    text-align: justify;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-links a {
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    background: #ffd8b1;
    border: 2px solid var(--border);
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.about-links a:hover {
    background: #ffc98f;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--border);
}

.faq {
    display: grid;
    gap: 12px;
}

.faq .faq-item {
    border: 2px solid var(--border);
    background: #ffd8b1;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--border);
}

.faq .faq-item h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.faq .faq-item div {
    font-size: 14px;
    text-align: justify;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 14px 22px;
    font-family: "IBM Plex Mono", monospace;
}

.footer strong {
    letter-spacing: 1px;
    font-size: 16px;
}

.footer-note {
    text-align: center;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    padding: 6px 0 18px;
}

.footer-note a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--border);
}

.footer-note a:hover {
    animation: strobe 0.12s steps(2, end) infinite;
}

@keyframes strobe {
    0% {
        color: #111;
        background: #fff;
    }
    50% {
        color: #fff;
        background: #111;
    }
    100% {
        color: #111;
        background: #fff;
    }
}

.spin {
    display: inline-block;
    animation: spin 10s linear infinite;
    transform-origin: center;
    will-change: transform;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 24, 0.45);
}

.modal__panel {
    position: relative;
    background: var(--bg-soft);
    border: 2px solid var(--border);
    box-shadow: 8px 8px 0 var(--border);
    width: min(520px, 92vw);
    z-index: 1;
}

.modal__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f2a7c8;
    font-family: "IBM Plex Mono", monospace;
    border-bottom: 2px solid var(--border);
}

.modal__close {
    background: #fff;
    border: 2px solid var(--border);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    padding: 2px 6px;
    cursor: pointer;
}

.modal__body {
    padding: 16px 18px 20px;
}

.modal__body h3 {
    margin: 0 0 12px;
}

.modal__form {
    display: grid;
    gap: 12px;
    font-family: "IBM Plex Mono", monospace;
}

.modal__form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.modal__form input {
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: "IBM Plex Mono", monospace;
}

.modal__submit {
    background: var(--accent);
    border: 2px solid var(--border);
    color: #111;
    padding: 8px 12px;
    font-family: "IBM Plex Mono", monospace;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--border);
}

.modal__submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #fff2a6;
    border: 2px solid var(--border);
    padding: 10px 14px;
    font-family: "IBM Plex Mono", monospace;
    box-shadow: 4px 4px 0 var(--border);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.language-switch {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 12px 0 24px;
    font-family: "IBM Plex Mono", monospace;
}

.flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 10px;
    border: 2px solid var(--border);
    background: #fff;
    box-shadow: 3px 3px 0 var(--border);
    animation: wave 2.6s ease-in-out infinite;
}

.flag--ca {
    animation-delay: 0.2s;
}

.flag__emoji {
    font-size: 20px;
    line-height: 1;
}

.flag__cat {
    width: 22px;
    height: 14px;
    border: 2px solid var(--border);
    display: inline-block;
    background: repeating-linear-gradient(
        to bottom,
        #f7d63a 0,
        #f7d63a 3px,
        #cf2e2e 3px,
        #cf2e2e 6px
    );
}

.flag__text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes wave {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 900px) {
    .title-area,
    .info-row,
    .details {
        grid-template-columns: 1fr;
    }

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

    .logistics div {
        border-right: none;
        border-bottom: 2px solid var(--border);
    }

    .logistics div:last-child {
        border-bottom: none;
    }

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

    .topbar > div {
        border-right: none;
        border-bottom: 2px solid var(--border);
    }

    .topbar > div:last-child {
        border-bottom: none;
    }
}
