/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Capri Stingrays — matched from school logo */
    --primary: #e8611a;         /* Capri orange (logo ring + lettering) */
    --primary-light: #f27432;   /* Hover/lighter orange */
    --primary-dark: #c85210;    /* Pressed/darker orange */
    --secondary: #9cc5d4;       /* Stingray blue (logo body) */
    --secondary-light: #b5d6e1; /* Lighter stingray blue */
    --secondary-dark: #6a9aad;  /* Darker stingray blue */
    --grey: #8c8c8c;            /* Logo text grey */
    --accent: #f5f5f0;          /* Warm off-white */
    --bg: #fafafa;              /* Clean neutral bg */
    --bg-white: #ffffff;
    --text: #1a1a1a;
    --text-light: #555555;
    --text-muted: #888888;
    --border: #d4d4d4;
    --border-light: #e8e8e8;
    --error: #c4342d;
    --success: #2d7d46;
    --radius: 2px;              /* Sharp corners — minimal radius */
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Language Toggle ===== */
.lang-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    display: flex;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn.active {
    background: var(--secondary-dark);
    color: white;
}

.lang-btn:not(.active):hover {
    background: var(--border-light);
}

/* ===== Hero ===== */
.hero {
    background: var(--primary);
    color: white;
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Geometric accent — diagonal slash of orange */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-dark);
}

/* Subtle texture overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 40%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.hero-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.15s ease;
    text-decoration: none;
    margin: 0 -96px;
}

.hero-logo-link:hover {
    opacity: 0.85;
    animation-play-state: paused;
}

.hero-logo {
    height: auto;
    width: auto;
    max-height: 330px;
    object-fit: contain;
}

.hero-text {
    text-align: center;
    flex: 1;
    padding: 0 32px;
}

/* ===== Logo dance animations ===== */
.hero-logo-link {
    animation: logoDance 6s ease-in-out infinite;
}

.hero-logo-link.hero-logo-right {
    animation: logoDanceRight 7s ease-in-out infinite;
}

/* Invisible stand-in where the PTA logo used to be, so the title stays centered */
.hero-logo-link.hero-logo-spacer {
    visibility: hidden;
    animation: none;
}

@media (max-width: 900px) {
    .hero-logo-spacer { display: none !important; }
}

@keyframes logoDance {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-2deg) translateY(-4px); }
    50% { transform: rotate(1deg) translateY(2px); }
    75% { transform: rotate(-1deg) translateY(-2px); }
}

@keyframes logoDanceRight {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    20% { transform: rotate(1.5deg) translateY(-3px); }
    45% { transform: rotate(-2deg) translateY(4px); }
    70% { transform: rotate(1deg) translateY(-2px); }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.theme {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 24px;
    font-weight: 400;
}

.event-details {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1px;
    background: rgba(255,255,255,0.1);
    justify-content: center;
}

.detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
}

.detail-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.detail-link:hover {
    text-decoration: underline;
}

.detail-icon {
    font-size: 16px;
}

/* ===== Page Layout: Rail Sidebar + Main ===== */
.page-layout {
    padding: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 80vh;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 16px 0;
}

.info-stack {
    display: flex;
    flex-direction: column;
}

.info-card {
    background: var(--bg-white);
    padding: 16px 20px;
    text-align: left;
    transition: background 0.2s ease;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    border-left: 3px solid transparent;
}

.info-card:hover {
    background: var(--bg);
    border-left-color: var(--primary);
}

.info-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.info-card h2,
.info-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.info-card p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.6;
}

.info-card .info-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.info-card .info-link:hover {
    text-decoration: underline;
}

/* ===== Sidebar Schedule ===== */
/* Sidebar Guide Link */
.sidebar-guide {
    border-bottom: 1px solid var(--border-light);
}

.guide-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s ease;
    border-left: 3px solid var(--primary);
}

.guide-link:hover {
    background: #fff8f0;
}

.guide-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.guide-link strong {
    display: block;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 2px;
}

.guide-link small {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 0;
}

.sidebar-schedule {
    margin-top: 0;
    background: var(--bg-white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-schedule h2,
.sidebar-schedule h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}

.timeline {
    width: 100%;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child {
    border-bottom: none;
}

.time {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    min-width: 90px;
    text-align: right;
}

.event {
    font-size: 14px;
    color: var(--text);
}

/* ===== Form Section ===== */
.main-content {
    min-width: 0;
    padding: 48px 48px 80px 48px;
}

.form-section {
    padding: 0;
    position: relative;
    overflow: visible;
}

.form-section h2 {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    color: var(--text);
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 15px;
}

/* Deadline Banner */
.deadline-banner {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 16px 24px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.deadline-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-dark);
}

.deadline-icon {
    margin-right: 4px;
}

.countdown {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Closed */
.form-closed {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.form-closed h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--error);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Success */
.success-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.success-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.guide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--primary-dark);
    transition: background 0.15s ease;
}

.guide-btn:hover {
    background: var(--primary-dark);
}

/* Printable Confirmation Card */
.success-intro {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.confirmation-card {
    background: var(--bg-white);
    border: 2px solid var(--primary);
    padding: 28px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow);
}

.conf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.conf-logo {
    width: 64px;
    height: auto;
    flex-shrink: 0;
}

.conf-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.conf-tagline {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 4px 0 0;
}

.conf-event {
    background: var(--bg);
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 3px solid var(--secondary);
}

.conf-event > div {
    margin: 4px 0;
}

.conf-event strong {
    color: var(--secondary-dark);
    margin-right: 6px;
}

.confirmation-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.conf-details {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 14px;
    font-size: 13px;
    margin: 0;
}

.conf-details dt {
    font-weight: 600;
    color: var(--text-light);
}

.conf-details dd {
    margin: 0;
    color: var(--text);
    word-break: break-word;
}

.conf-bring,
.conf-schedule {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}

.conf-schedule {
    list-style: none;
    padding-left: 0;
}

.conf-schedule li {
    padding: 2px 0;
}

.conf-schedule strong {
    color: var(--primary);
    display: inline-block;
    min-width: 70px;
}

.conf-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.action-btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.action-btn.primary:hover {
    background: var(--primary-dark);
}

.action-btn.secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary-dark);
}

.success-message h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--success);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Form Styles */
form {
    background: var(--bg-white);
    padding: 0;
    box-shadow: var(--shadow);
    overflow: visible;
    border: 1px solid var(--border-light);
}

fieldset {
    border: none;
    padding: 32px 32px 24px;
    border-bottom: none;
    position: relative;
}

fieldset::after {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    margin-top: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 20' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 Q10,2 20,10 Q30,18 40,10 Q50,2 60,10 Q70,18 80,10 Q90,2 100,10 Q110,18 120,10 Q130,2 140,10 Q150,18 160,10 Q170,2 180,10 Q190,18 200,10 Q210,2 220,10 Q230,18 240,10 Q250,2 260,10 Q270,18 280,10 Q290,2 300,10 Q310,18 320,10 Q330,2 340,10 Q350,18 360,10 Q370,2 380,10 Q390,18 400,10' fill='none' stroke='%23e8611a' stroke-width='1.8' opacity='0.3'/%3E%3Cpath d='M0,10 Q10,18 20,10 Q30,2 40,10 Q50,18 60,10 Q70,2 80,10 Q90,18 100,10 Q110,2 120,10 Q130,18 140,10 Q150,2 160,10 Q170,18 180,10 Q190,2 200,10 Q210,18 220,10 Q230,2 240,10 Q250,18 260,10 Q270,2 280,10 Q290,18 300,10 Q310,2 320,10 Q330,18 340,10 Q350,2 360,10 Q370,18 380,10 Q390,2 400,10' fill='none' stroke='%239cc5d4' stroke-width='1.8' opacity='0.3'/%3E%3Cg opacity='0.2'%3E%3Cline x1='10' y1='6' x2='10' y2='14' stroke='%23888' stroke-width='1'/%3E%3Ccircle cx='10' cy='6' r='1.2' fill='%23e8611a'/%3E%3Ccircle cx='10' cy='14' r='1.2' fill='%239cc5d4'/%3E%3Cline x1='30' y1='6' x2='30' y2='14' stroke='%23888' stroke-width='1'/%3E%3Ccircle cx='30' cy='14' r='1.2' fill='%23e8611a'/%3E%3Ccircle cx='30' cy='6' r='1.2' fill='%239cc5d4'/%3E%3Cline x1='50' y1='6' x2='50' y2='14' stroke='%23888' stroke-width='1'/%3E%3Ccircle cx='50' cy='6' r='1.2' fill='%23e8611a'/%3E%3Ccircle cx='50' cy='14' r='1.2' fill='%239cc5d4'/%3E%3Cline x1='70' y1='6' x2='70' y2='14' stroke='%23888' stroke-width='1'/%3E%3Ccircle cx='70' cy='14' r='1.2' fill='%23e8611a'/%3E%3Ccircle cx='70' cy='6' r='1.2' fill='%239cc5d4'/%3E%3Cline x1='90' y1='6' x2='90' y2='14' stroke='%23888' stroke-width='1'/%3E%3Ccircle cx='90' cy='6' r='1.2' fill='%23e8611a'/%3E%3Ccircle cx='90' cy='14' r='1.2' fill='%239cc5d4'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 200px 20px;
}

fieldset:last-of-type::after {
    display: none;
}

fieldset:last-of-type {
    border-bottom: none;
}

legend {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 24px;
    display: block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(91,125,138,0.1);
}

input.error,
textarea.error,
select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(196, 52, 45, 0.08);
}

.error-text {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

input.error + .error-text,
textarea.error + .error-text,
select.error + .error-text {
    display: block;
}

small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* Radio */
.radio-group {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    overflow: hidden;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 11px 16px;
    border: none;
    border-radius: 0;
    transition: all 0.15s ease;
    flex: 1;
    min-width: 140px;
    border-right: 1px solid var(--border);
    margin-bottom: 0;
}

.radio-label:last-child {
    border-right: none;
}

.radio-label:has(input:checked) {
    background: var(--secondary-dark);
    color: white;
}

.radio-label:has(input:checked) span {
    color: white;
}

input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Group Members */
.group-note {
    margin-bottom: 16px;
}

.group-note small {
    font-style: italic;
    color: var(--text-muted);
}

.group-member-row {
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--secondary);
    padding: 16px;
    margin-bottom: 12px;
}

.group-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--secondary-dark);
}

.remove-member-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.remove-member-btn:hover {
    border-color: var(--error);
    color: var(--error);
}

.add-member-btn {
    background: none;
    border: 1px dashed var(--border);
    color: var(--secondary-dark);
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.15s ease;
    margin-top: 4px;
}

.add-member-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff8f0;
}

/* Privacy & Consent */
.privacy-fieldset {
    background: #f8f8f6;
}

.privacy-notice {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--secondary);
    margin-bottom: 18px;
}

.privacy-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.privacy-notice strong {
    display: block;
    font-size: 13px;
    color: var(--secondary-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.privacy-notice p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.consent-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* Donate / Support STEM — compact strip */
.donate-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    background: #fafaf6;
    border-top: 1px solid var(--border-light);
}

.donate-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.donate-links {
    display: flex;
    gap: 8px;
}

.donate-chip {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-dark);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.donate-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff8f0;
}

/* Full-viewport lightning strike */
.lightning-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}

.lightning-full.struck {
    visibility: visible;
    animation: lightningFullFlash 0.8s ease-out forwards;
}

.lightning-full-svg {
    display: none;
}

.bolt-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.lightning-full.struck .bolt-path {
    animation: boltDraw 0.15s linear forwards;
}

.lightning-full.struck .bolt-branch {
    animation: boltDraw 0.1s linear 0.08s forwards;
}

.lightning-full.struck .bolt-outer {
    animation: boltDraw 0.12s linear forwards, boltFlicker 0.5s ease-out 0.12s forwards;
}

.lightning-full.struck .bolt-mid {
    animation: boltDraw 0.12s linear forwards, boltFlicker 0.5s ease-out 0.12s forwards;
}

.lightning-full.struck .bolt-core {
    animation: boltDraw 0.12s linear forwards, boltFlicker 0.5s ease-out 0.12s forwards;
}

@keyframes boltDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes boltFlicker {
    0% { opacity: 1; }
    20% { opacity: 0.2; }
    40% { opacity: 0.8; }
    60% { opacity: 0.1; }
    80% { opacity: 0.5; }
    100% { opacity: 0; }
}

@keyframes lightningFullFlash {
    0% { opacity: 1; background: rgba(0,0,0,0.4); }
    3% { background: rgba(200,200,255,0.25); }
    6% { background: rgba(0,0,0,0.3); }
    9% { background: rgba(180,180,255,0.15); }
    12% { background: rgba(0,0,0,0.2); }
    20% { background: rgba(0,0,0,0.1); }
    50% { opacity: 1; background: transparent; }
    100% { opacity: 0; visibility: hidden; }
}

/* Impact flash at landing point */
.lightning-impact {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(180,180,255,0.5) 25%, rgba(100,100,255,0.2) 50%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, 50%);
}

.lightning-full.struck .lightning-impact {
    animation: impactFlash 0.5s ease-out 0.12s forwards;
}

@keyframes impactFlash {
    0% { opacity: 0; transform: translate(-50%, 50%) scale(0.3); }
    20% { opacity: 1; transform: translate(-50%, 50%) scale(1.5); }
    40% { opacity: 0.3; }
    60% { opacity: 0.7; }
    100% { opacity: 0; transform: translate(-50%, 50%) scale(2); }
}

/* Smoke / smolder after lightning */
/* Smoke is now canvas-rendered — CSS puffs hidden */
.smoke-puff { display: none; }

/* Submit */
.submit-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(224,107,31,0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 32px 32px;
}

/* ===== Footer ===== */
footer {
    background: var(--secondary-dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 36px 20px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

footer p + p {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .main-content {
        padding: 32px 20px 60px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 64px 16px 52px;
    }

    .hero-layout {
        flex-direction: column;
        gap: 16px;
    }

    .hero-logo {
        max-height: 100px;
    }

    .hero-text {
        text-align: center;
        padding: 0 12px;
    }

    .hero-logo-link {
        margin: 0;
    }

    .hero-logo-right {
        display: none;
    }

    .donate-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 20px;
    }

    .donate-links {
        flex-wrap: wrap;
    }

    .event-details {
        flex-direction: column;
        gap: 1px;
    }

    .detail {
        justify-content: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    fieldset {
        padding: 24px 20px 16px;
    }

    .submit-btn {
        width: calc(100% - 40px);
        margin: 8px 20px 20px;
    }

    .form-footer {
        padding: 0 20px 20px;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-label {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .radio-label:last-child {
        border-bottom: none;
    }

    .lang-toggle {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .timeline-item {
        gap: 16px;
    }

    .time {
        min-width: 75px;
        font-size: 0.9rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeInUp 0.4s ease-out both;
}

.info-card:nth-child(2) {
    animation-delay: 0.08s;
}

.info-card:nth-child(3) {
    animation-delay: 0.16s;
}

/* ===== Hero Entrance Animation ===== */

/* All hero elements start invisible */
.hero-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, text-shadow 0.6s ease;
}

.hero-anim.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* Title — materializes with glow */
.hero-anim-title {
    transform: scale(0.8) translateY(30px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease, text-shadow 1s ease;
}

.hero-anim-title.anim-in {
    transform: scale(1) translateY(0);
    filter: blur(0);
    text-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 80px rgba(156,197,212,0.3), 0 2px 8px rgba(0,0,0,0.15);
}

/* Glow fades out after landing */
.hero-anim-title.anim-in {
    animation: titleGlowFade 2s ease 0.8s forwards;
}

@keyframes titleGlowFade {
    0% { text-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 80px rgba(156,197,212,0.3), 0 2px 8px rgba(0,0,0,0.15); }
    100% { text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
}

/* Badge slides down from above */
.hero-anim-badge {
    transform: translateY(-20px);
}

/* Theme fades in with slight scale */
.hero-anim-theme {
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-anim-theme.anim-in {
    transform: translateY(0) scale(1);
}

/* Details pop in with a slight bounce */
.hero-anim-detail-1,
.hero-anim-detail-2,
.hero-anim-detail-3 {
    transform: scale(0.5) translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-anim-detail-1.anim-in,
.hero-anim-detail-2.anim-in,
.hero-anim-detail-3.anim-in {
    transform: scale(1) translateY(0);
}

/* Logos slide in from the sides */
.hero-anim-logo-left {
    transform: translateX(-80px) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-anim-logo-left.anim-in {
    transform: translateX(0) scale(1);
}

.hero-anim-logo-right {
    transform: translateX(80px) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-anim-logo-right.anim-in {
    transform: translateX(0) scale(1);
}

/* Flash explosion */
.hero-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(156,197,212,0.4) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.hero-flash.flash-active {
    animation: flashBoom 1s ease-out forwards;
}

@keyframes flashBoom {
    0% { width: 0; height: 0; opacity: 1; }
    30% { width: 600px; height: 600px; opacity: 0.8; }
    100% { width: 1200px; height: 1200px; opacity: 0; }
}

/* Sparks */
.sparks-container {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    pointer-events: none;
}

.spark {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

.sparks-active .spark {
    animation: sparkFly 0.8s ease-out forwards;
}

@keyframes sparkFly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    70% { opacity: 0.8; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ===== Science-Themed Elements ===== */

/* Floating particles in hero */
.science-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
}

/* Particle shapes */
.atom {
    background: rgba(156,197,212,0.55);
    box-shadow: 0 0 0 3px rgba(156,197,212,0.2), 0 0 0 7px rgba(156,197,212,0.08);
}

.molecule {
    background: rgba(255,255,255,0.45);
    box-shadow: 14px -6px 0 rgba(255,255,255,0.32), 8px 12px 0 rgba(255,255,255,0.25);
}

.molecule::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 12px; height: 1px;
    background: rgba(255,255,255,0.2);
    transform: rotate(-25deg);
    transform-origin: left center;
}

.molecule::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 10px; height: 1px;
    background: rgba(255,255,255,0.17);
    transform: rotate(65deg);
    transform-origin: left center;
}

/* Hexagon — benzene ring shape */
.hexagon {
    width: 14px;
    height: 14px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 2px;
    transform: rotate(30deg);
}

/* === SLOW particles (18-25s) — large, lazy drift === */
.p-slow-1 { width: 14px; height: 14px; top: 15%; left: 5%; animation: floatA 22s ease-in-out infinite; }
.p-slow-2 { width: 10px; height: 10px; top: 55%; right: 8%; animation: floatB 25s ease-in-out infinite; }
.p-slow-3 { width: 12px; height: 12px; bottom: 20%; left: 12%; animation: floatC 20s ease-in-out infinite; }
.p-slow-4 { width: 6px; height: 6px; top: 30%; right: 15%; animation: floatA 24s ease-in-out infinite reverse; }
.p-slow-5 { width: 5px; height: 5px; bottom: 35%; left: 22%; animation: floatB 21s ease-in-out infinite; }
.p-slow-6 { width: 8px; height: 8px; top: 70%; left: 8%; animation: floatC 23s ease-in-out infinite reverse; }
.p-slow-7 { top: 40%; right: 5%; animation: floatA 19s ease-in-out infinite; }
.p-slow-8 { width: 5px; height: 5px; bottom: 10%; right: 20%; animation: floatB 24s ease-in-out infinite reverse; }
.p-slow-9 { width: 9px; height: 9px; top: 80%; right: 30%; animation: floatC 22s ease-in-out infinite; }

/* === MEDIUM particles (12-16s) — mid-size, moderate drift === */
.p-med-1 { width: 10px; height: 10px; top: 25%; left: 18%; animation: floatB 14s ease-in-out infinite; }
.p-med-2 { width: 5px; height: 5px; top: 45%; right: 22%; animation: floatC 13s ease-in-out infinite reverse; }
.p-med-3 { width: 8px; height: 8px; bottom: 30%; right: 10%; animation: floatA 15s ease-in-out infinite; }
.p-med-4 { top: 60%; left: 28%; animation: floatB 12s ease-in-out infinite reverse; }
.p-med-5 { width: 4px; height: 4px; top: 18%; right: 30%; animation: floatC 16s ease-in-out infinite; }
.p-med-6 { width: 7px; height: 7px; bottom: 45%; left: 6%; animation: floatA 14s ease-in-out infinite reverse; }
.p-med-7 { width: 5px; height: 5px; top: 75%; right: 15%; animation: floatB 13s ease-in-out infinite; }
.p-med-8 { width: 11px; height: 11px; bottom: 15%; left: 30%; animation: floatC 15s ease-in-out infinite reverse; }
.p-med-9 { top: 35%; left: 35%; animation: floatA 12s ease-in-out infinite; }

/* === FAST particles (7-10s) — small, gentle quick movement === */
.p-fast-1 { width: 6px; height: 6px; top: 20%; left: 25%; animation: floatC 9s ease-in-out infinite; }
.p-fast-2 { width: 4px; height: 4px; top: 50%; right: 18%; animation: floatA 8s ease-in-out infinite reverse; }
.p-fast-3 { width: 7px; height: 7px; bottom: 25%; left: 15%; animation: floatB 10s ease-in-out infinite; }
.p-fast-4 { width: 5px; height: 5px; top: 65%; right: 25%; animation: floatC 7s ease-in-out infinite reverse; }
.p-fast-5 { width: 3px; height: 3px; top: 35%; left: 10%; animation: floatA 9s ease-in-out infinite; }
.p-fast-6 { top: 50%; left: 20%; animation: floatB 8s ease-in-out infinite reverse; }
.p-fast-7 { width: 5px; height: 5px; bottom: 40%; right: 5%; animation: floatC 10s ease-in-out infinite; }
.p-fast-8 { width: 4px; height: 4px; top: 10%; right: 35%; animation: floatA 7s ease-in-out infinite reverse; }
.p-fast-9 { width: 6px; height: 6px; bottom: 50%; left: 32%; animation: floatB 9s ease-in-out infinite; }

/* Float animations — 3 distinct paths */
@keyframes floatA {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(90deg); }
    50% { transform: translate(-10px, -35px) rotate(180deg); }
    75% { transform: translate(20px, -15px) rotate(270deg); }
}

@keyframes floatB {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(120deg); }
    66% { transform: translate(10px, -20px) rotate(240deg); }
}

@keyframes floatC {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.45; }
    25% { transform: translate(18px, -12px) rotate(60deg); opacity: 0.75; }
    50% { transform: translate(-8px, -28px) rotate(180deg); opacity: 0.55; }
    75% { transform: translate(12px, 8px) rotate(300deg); opacity: 0.65; }
}

/* Wider drift path used by the generated particles (script.js addHeroParticles) */
@keyframes floatD {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(40px, -25px) rotate(70deg); }
    45% { transform: translate(-30px, -55px) rotate(160deg); }
    70% { transform: translate(35px, -30px) rotate(250deg); }
    85% { transform: translate(-15px, 10px) rotate(320deg); }
}

/* Large Erlenmeyer flask behind form header */
#form-header {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding-top: 24px;
    padding-bottom: 12px;
}

.flask-bg {
    position: absolute;
    top: -93px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 380px;
    z-index: 0;
    pointer-events: none;
}

.flask-svg {
    width: 100%;
    height: 100%;
}

#form-header h2,
#form-header .form-subtitle {
    position: relative;
    z-index: 1;
}

/* Flask bubble animations */
.flask-bubble {
    animation: flaskBubble 3s ease-in infinite;
}

.flask-b1 { animation-delay: 0s; }
.flask-b2 { animation-delay: 0.6s; }
.flask-b3 { animation-delay: 1.2s; }
.flask-b4 { animation-delay: 1.8s; }
.flask-b5 { animation-delay: 2.4s; }

@keyframes flaskBubble {
    0% { transform: translateY(0) scale(1); opacity: 0.1; }
    40% { opacity: 0.15; }
    100% { transform: translateY(-60px) scale(0.3); opacity: 0; }
}

/* Steam rising from flask */
.flask-steam {
    animation: steamRise 4s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 1.3s; }
.steam-3 { animation-delay: 2.6s; }

@keyframes steamRise {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.12; }
    100% { transform: translateY(-20px); opacity: 0; }
}

/* DNA helix divider — SVG-based repeating pattern */
.dna-divider {
    width: 100%;
    height: 28px;
    overflow: hidden;
    padding: 0 8px;
}

.dna-divider svg {
    width: 100%;
    height: 100%;
}

/* Molecule chain border on form — SVG top border */
.form-dna-border {
    width: 100%;
    height: 32px;
    overflow: hidden;
    margin-bottom: -1px;
}

.form-dna-border svg {
    width: 100%;
    height: 100%;
}

/* Orbital electrons on submit button — 4 orbiting dots */
.submit-orbit-wrap {
    position: relative;
    margin: 8px 32px 32px;
}

.submit-btn {
    position: relative;
    width: 100%;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
}

.orbit-dot-1 {
    background: var(--secondary);
    box-shadow: 0 0 8px rgba(156,197,212,0.7);
    animation: orbit1 3s linear infinite;
}

.orbit-dot-2 {
    background: var(--primary-light);
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px rgba(232,97,26,0.6);
    animation: orbit2 4s linear infinite;
}

.orbit-dot-3 {
    background: #ffffff;
    width: 5px;
    height: 5px;
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
    animation: orbit3 3.5s linear infinite;
}

.orbit-dot-4 {
    background: var(--secondary-light);
    width: 7px;
    height: 7px;
    box-shadow: 0 0 8px rgba(156,197,212,0.5);
    animation: orbit4 5s linear infinite;
}

@keyframes orbit1 {
    0% { top: -4px; left: 20%; }
    25% { top: 50%; left: calc(100% + 6px); }
    50% { top: calc(100% + 4px); left: 70%; }
    75% { top: 50%; left: -8px; }
    100% { top: -4px; left: 20%; }
}

@keyframes orbit2 {
    0% { top: calc(100% + 4px); left: 60%; }
    25% { top: 50%; left: -8px; }
    50% { top: -4px; left: 40%; }
    75% { top: 50%; left: calc(100% + 6px); }
    100% { top: calc(100% + 4px); left: 60%; }
}

@keyframes orbit3 {
    0% { top: 50%; left: calc(100% + 6px); }
    25% { top: -4px; left: 50%; }
    50% { top: 50%; left: -8px; }
    75% { top: calc(100% + 4px); left: 30%; }
    100% { top: 50%; left: calc(100% + 6px); }
}

@keyframes orbit4 {
    0% { top: -4px; left: 80%; }
    25% { top: 50%; left: -8px; }
    50% { top: calc(100% + 4px); left: 20%; }
    75% { top: 50%; left: calc(100% + 6px); }
    100% { top: -4px; left: 80%; }
}

/* Science watermark background pattern on main content */
.main-content {
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3C!-- atom --%3E%3Ccircle cx='30' cy='30' r='3' fill='%239cc5d4' opacity='0.06'/%3E%3Cellipse cx='30' cy='30' rx='12' ry='6' fill='none' stroke='%239cc5d4' stroke-width='0.5' opacity='0.05'/%3E%3Cellipse cx='30' cy='30' rx='6' ry='12' fill='none' stroke='%239cc5d4' stroke-width='0.5' opacity='0.05'/%3E%3C!-- beaker --%3E%3Cpath d='M85,75 L85,90 L75,95 L75,75' fill='none' stroke='%23e8611a' stroke-width='0.5' opacity='0.05'/%3E%3Cline x1='73' y1='75' x2='87' y2='75' stroke='%23e8611a' stroke-width='0.5' opacity='0.05'/%3E%3C!-- molecule --%3E%3Ccircle cx='90' cy='25' r='2' fill='%239cc5d4' opacity='0.05'/%3E%3Ccircle cx='100' cy='18' r='2' fill='%23e8611a' opacity='0.04'/%3E%3Cline x1='90' y1='25' x2='100' y2='18' stroke='%239cc5d4' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
}

/* Sine wave SVG border on footer */
.footer-wave {
    width: 100%;
    height: 16px;
    display: block;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

/* ===== Test-tube progress meter (sticky on top of the form) ===== */
.tube-meter {
    position: sticky;
    top: 58px;                   /* pins just below the fixed language toggle so it never covers the label */
    z-index: 50;                 /* below the fixed language toggle (100) */
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 16px;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Tube stretches across the whole bar; label sits on the right */
.tube {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* Rubber stopper in Capri orange */
.tube-stopper {
    flex: 0 0 auto;
    width: 14px;
    height: 28px;
    margin-right: -2px;
    position: relative;
    z-index: 1;
    border-radius: 3px 2px 2px 3px;
    background: linear-gradient(180deg, #f2894f 0%, var(--primary) 50%, #c24f12 100%);
    box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.18);
}

/* Glass body: open on the stopper side, rounded bottom on the right */
.tube-glass {
    position: relative;
    flex: 1 1 auto;
    height: 22px;
    overflow: hidden;
    border: 2px solid rgba(26, 26, 26, 0.32);
    border-left: none;
    border-radius: 0 13px 13px 0;
    background: linear-gradient(180deg, #ffffff 0%, #eef6f9 100%);
}

.tube-liquid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #c3e0ea 0%, var(--secondary) 45%, #7fb0c3 100%);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Meniscus highlight on the liquid's leading edge */
.tube-liquid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.55);
}

/* Measurement marks every 10% along the top edge */
.tube-ticks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    pointer-events: none;
    background: repeating-linear-gradient(90deg,
        transparent 0, transparent calc(10% - 1px),
        rgba(26, 26, 26, 0.22) calc(10% - 1px), rgba(26, 26, 26, 0.22) 10%);
}

/* Glass shine */
.tube-shine {
    position: absolute;
    top: 3px;
    left: 4px;
    right: 14px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

/* Bubbles rise up through the liquid while the form is in progress */
.tube-bubble {
    position: absolute;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    opacity: 0;
}

.tube-b1 { left: 12%; width: 5px; height: 5px; }
.tube-b2 { left: 38%; width: 4px; height: 4px; animation-delay: 0.5s !important; }
.tube-b3 { left: 63%; width: 6px; height: 6px; animation-delay: 1s !important; }
.tube-b4 { left: 86%; width: 3px; height: 3px; animation-delay: 1.4s !important; }

.tube-meter.tube-active .tube-bubble {
    animation: tubeRise 1.8s ease-in infinite;
}

@keyframes tubeRise {
    0% { transform: translateY(0); opacity: 0; }
    25% { opacity: 0.9; }
    100% { transform: translateY(-24px); opacity: 0; }
}

.tube-label {
    flex: 0 0 auto;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

/* Full tube: liquid turns Capri orange and foams over */
.tube-meter.tube-full .tube-liquid {
    background: linear-gradient(180deg, #f2894f 0%, var(--primary) 50%, #c24f12 100%);
}
.tube-meter.tube-full .tube-bubble { animation: tubeRise 1.2s ease-in infinite; }
.tube-meter.tube-full .tube-label { color: var(--primary); }
.tube-meter.tube-full { animation: tubeFoam 0.6s ease-out; }

@keyframes tubeFoam {
    0% { box-shadow: 0 0 0 0 rgba(232, 97, 26, 0.5); }
    100% { box-shadow: 0 0 0 14px rgba(232, 97, 26, 0); }
}

/* Big flask liquid rises with the meter */
#flask-liquid {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 600px) {
    .tube-meter { top: 50px; }   /* mobile toggle sits at top: 10px */
    /* 420px flask overflowed 375px phones (sideways scroll) — scale it to fit */
    .flask-bg { width: 320px; height: 290px; top: -71px; }
    .tube-label { font-size: 13px; }
    .tube-label .tube-long { display: none; }   /* "38%" instead of "Experiment 38% complete" */
    .tube-label .tube-next {                    /* keep the hint short so the tube keeps its room */
        display: inline-block;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
    .tube-meter { gap: 12px; padding: 8px 12px; }
}

/* ===== Mystery question ticker (hero) ===== */
.hero-question {
    position: relative;
    z-index: 1;
    min-height: 1.6em;
    margin: 6px 0 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.hq-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.12em;
    background: rgba(255, 255, 255, 0.85);
    animation: hqBlink 1s steps(1) infinite;
}

@keyframes hqBlink { 50% { opacity: 0; } }

@media (max-width: 600px) {
    .hero-question { font-size: 15px; margin: 4px 0 10px; min-height: 2.6em; }  /* room for 2 lines so the hero doesn't jump */
}

/* ===== Rocket countdown (deadline banner) ===== */
.rocket-track {
    position: relative;
    display: block;
    max-width: 640px;
    height: 68px;
    margin: 10px auto 0;
}

.rocket-track::before {          /* dotted flight path */
    content: '';
    position: absolute;
    left: 0;
    right: 54px;
    top: 50%;
    border-top: 4px dotted rgba(255, 255, 255, 0.6);
}

.rocket-trail {                  /* glowing trail behind the rocket */
    position: absolute;
    left: 0;
    top: calc(50% - 5px);
    height: 10px;
    width: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 230, 150, 0.9));
}

.rocket {
    position: absolute;
    top: 50%;
    left: 0;
    font-size: 60px;
    line-height: 1;
    transform: translate(-50%, -50%) rotate(45deg);   /* emoji points up-right; tilt to point right */
    animation: rocketHover 1.6s ease-in-out infinite;
}

@keyframes rocketHover {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -6px; }
}

.rocket-goal {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
}

/* Phones: smaller rocket (must come after the base rocket rules to win) */
@media (max-width: 600px) {
    .rocket-track { height: 52px; }
    .rocket-track::before { right: 40px; }
    .rocket { font-size: 44px; }
    .rocket-goal { font-size: 32px; }
}

/* ===== Catch-an-atom easter egg ===== */
.science-particles .particle.atom {
    transition: opacity 0.25s ease, transform 0.25s ease, scale 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

/* Hints: an atom "winks" now and then; near the mouse it glows and the cursor becomes a crosshair */
.science-particles .particle.atom.wink { scale: 1.9; background: rgba(255,255,255,0.95); box-shadow: 0 0 0 3px rgba(255,255,255,0.45), 0 0 16px 4px rgba(156,197,212,0.9); }
.science-particles .particle.atom.near { scale: 1.5; background: rgba(255,255,255,0.9); box-shadow: 0 0 0 3px rgba(255,255,255,0.4), 0 0 12px 3px rgba(156,197,212,0.8); }
.hero.atom-aim { cursor: crosshair; }

.science-particles .particle.caught {
    opacity: 0 !important;
    transform: scale(2.2) !important;
}

.atom-pop {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 300;
}

.atom-pop span {
    position: absolute;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #9cc5d4;
    animation: atomPop 0.6s ease-out forwards;
}

@keyframes atomPop {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0.3); opacity: 0; }
}

.atom-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 300;
    max-width: min(92vw, 520px);
    padding: 10px 18px;
    border-radius: 2px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.atom-toast.show { opacity: 1; transform: translate(-50%, 0); }
.atom-toast.atom-toast-big { background: var(--primary); font-size: 16px; padding: 14px 22px; }

/* Make the tube meter feel tappable (tapping jumps to the next missing field) */
.tube-meter { cursor: pointer; }
.tube-next { font-weight: 500; opacity: 0.75; }
.tube-meter.tube-full { cursor: default; }

/* ===== Draft restored banner ===== */
.draft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid #b9d7e2;
    border-left: 4px solid var(--secondary);
    border-radius: 2px;
    background: #eef6f9;
    font-size: 14px;
}
.draft-banner[hidden] { display: none; }
.draft-reset {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid var(--text);
    border-radius: 2px;
    background: #fff;
    font: 600 13px 'Outfit', sans-serif;
    cursor: pointer;
}
.draft-reset:hover { background: var(--text); color: #fff; }

/* ===== Share the fair ===== */
.sidebar-share {
    padding: 12px 20px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.share-btn {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--primary);
    border-radius: 2px;
    background: #fff;
    color: var(--primary);
    font: 700 13px 'Outfit', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.share-btn:hover, .share-btn:focus-visible { background: var(--primary); color: #fff; }

/* ===== Native scroll reveal (replaces the old AOS script) =====
   Browsers without scroll-driven animations simply show the content. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: revealUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

/* ===== Smooth page-to-page transitions (cross-document View Transitions) ===== */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}

/* Balanced line breaks for headings */
h1, h2, h3, .form-subtitle, .hero-question { text-wrap: balance; }

/* ===== Volcano eruption on submit ===== */
.volcano-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 200;
}

.volcano-lava {
    position: absolute;
    width: 160px;
    height: 160px;
    margin-left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 97, 26, 0.9) 0%, rgba(232, 97, 26, 0.35) 45%, rgba(232, 97, 26, 0) 70%);
    animation: lavaBurst 0.8s ease-out forwards;
}

@keyframes lavaBurst {
    0% { transform: scale(0.2) translateY(0); opacity: 1; }
    100% { transform: scale(2.4) translateY(-60px); opacity: 0; }
}

.volcano-bit {
    position: absolute;
    border-radius: 50%;
    animation: volcanoFly 0.9s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

/* Molecule bits get a little bond line */
.volcano-bit.molecule::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 8px;
    height: 2px;
    background: currentColor;
}

@keyframes volcanoFly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0.4) rotate(var(--rot, 180deg)); opacity: 0; }
}

/* ===== Reduced motion: keep the content, drop the flashes and motion ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-anim,
    .hero-anim-title,
    .hero-anim-badge,
    .hero-anim-theme,
    .hero-anim-detail-1,
    .hero-anim-detail-2,
    .hero-anim-detail-3,
    .hero-anim-logo-left,
    .hero-anim-logo-right {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }

    .lightning-full,
    .sparks-container,
    .hero-flash,
    .science-particles,
    .flask-bubble,
    .flask-steam,
    .volcano-layer {
        display: none !important;
    }

    .hero-logo-link,
    .tube-bubble,
    .tube-meter.tube-full,
    .rocket,
    .hq-caret {
        animation: none !important;
    }

    .tube-liquid,
    #flask-liquid {
        transition: none !important;
    }
}

/* Print styles for QR code flyer */
@media print {
    /* Reset everything */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Hide everything by default */
    body > * {
        display: none !important;
    }

    /* Show only the success message wrapper, but make it position-friendly */
    .form-section,
    .main-content,
    .page-layout,
    .content-grid {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
    }

    /* Hide everything inside form-section except the success message */
    .form-section > *:not(#success-message) {
        display: none !important;
    }

    /* Hide everything inside success-message except the confirmation card */
    #success-message > *:not(.confirmation-card) {
        display: none !important;
    }

    #success-message {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        box-shadow: none !important;
    }

    .confirmation-card {
        display: block !important;
        position: static !important;
        margin: 0 !important;
        padding: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        font-size: 11px;
    }

    .confirmation-card h4 { font-size: 14px !important; }
    .confirmation-card h5 { font-size: 11px !important; margin: 12px 0 6px !important; }
    .conf-header { padding-bottom: 10px !important; margin-bottom: 12px !important; }
    .conf-logo { width: 50px !important; }
    .conf-event { padding: 10px 14px !important; margin-bottom: 12px !important; }
    .conf-details { font-size: 11px !important; gap: 4px 12px !important; }
    .conf-bring, .conf-schedule { font-size: 11px !important; line-height: 1.5 !important; }

    .no-print {
        display: none !important;
    }

    @page {
        margin: 0.5in;
        size: letter;
    }
}

/* =====================================================================
   Two doors + Explore hub (round 3)
   ===================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ----- Path chooser ----- */
.path-chooser {
    background: var(--bg);
    padding: 28px 24px 4px;
}
.door-row {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.door {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 100px;
    padding: 20px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
/* faint graph paper */
.door::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
    background-size: 18px 18px;
}
.door-enter {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(232, 97, 26, 0.32);
}
.door-enter:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(232, 97, 26, 0.38); }
.door-explore {
    background: var(--bg-white);
    color: var(--text);
    border: 2px solid var(--secondary-dark);
    box-shadow: var(--shadow);
}
.door-explore::after {
    background-image:
        linear-gradient(rgba(106,154,173,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106,154,173,0.08) 1px, transparent 1px);
}
.door-explore:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background: #f4fafc; }
.door-explore[aria-current] { background: #eef6f9; box-shadow: inset 0 -4px 0 var(--secondary-dark); }
.door:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.door-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.18);
}
.door-icon > span { display: inline-block; }
.door-explore .door-icon { background: rgba(156, 197, 212, 0.28); }
.door-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.door-text small {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    opacity: 0.92;
}
.door-enter .door-text small { color: #fff; font-weight: 600; }
.door-explore .door-text small { color: var(--secondary-dark); font-weight: 600; opacity: 1; }
body.signups-closed .door-enter { display: none; }
body.signups-closed .door-row { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: no-preference) {
    .door-enter .door-icon { animation: doorGlow 2.8s ease-in-out infinite; }
    .door-explore .door-icon > span { animation: scopeSweep 5s ease-in-out infinite; }
}
@keyframes doorGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16); }
}
@keyframes scopeSweep {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(12deg); }
}

/* ----- Views ----- */
body.view-explore .page-layout { display: none; }
body.view-joined .path-chooser,
body.view-joined .sidebar { display: none; }
body.view-joined .content-grid { grid-template-columns: 1fr; min-height: 0; }
body.view-joined .main-content { padding-bottom: 24px; }
body.view-joined .hub-head { margin-top: 0; }
body.signups-closed .hub-cta { display: none; }

/* ----- Explore hub ----- */
.explore-hub {
    background: var(--bg);
    padding: 20px 24px 56px;
    scroll-margin-top: 8px;
}
.hub-inner { max-width: 1120px; margin: 0 auto; }
.hub-head { text-align: center; margin: 12px 0 24px; }
.hub-kicker { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.hub-head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
}
.hub-sub { max-width: 640px; margin: 8px auto 0; color: var(--text-light); font-size: 1.05rem; }

.hub-band {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.hub-band .sidebar-schedule { background: none; border: 0; padding: 20px 24px 24px; }
.hub-band .sidebar-schedule h3 { margin-bottom: 8px; }
.hub-night { border-top-color: var(--secondary-dark); }

/* Important dates: left-to-right ribbon */
#hub-dates .timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 72px;
}
#hub-dates .timeline::before,
#hub-dates .timeline::after {
    content: '';
    position: absolute;
    top: 44px;
    left: 0;
    height: 0;
}
#hub-dates .timeline::before { right: 0; border-top: 2px dotted var(--border); }
#hub-dates .timeline::after {
    top: 43px;
    height: 4px;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, rgba(232, 97, 26, 0), var(--primary));
    border-radius: 2px;
}
#hub-dates .timeline-item {
    position: relative;
    display: block;
    padding: 0 12px;
    border: 0;
    text-align: center;
}
#hub-dates .timeline-item::before {
    content: '';
    position: absolute;
    top: -35px;
    left: 50%;
    width: 16px; height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border);
    box-sizing: border-box;
    z-index: 1;
    font-size: 9px;
    font-weight: 900;
    line-height: 10px;
    color: #fff;
    text-align: center;
}
#hub-dates .timeline-item.done::before { content: '✓'; background: var(--primary); border-color: var(--primary); }
#hub-dates .timeline-item.next::before { border-color: var(--primary); box-shadow: 0 0 0 6px rgba(232, 97, 26, 0.16); }
#hub-dates .time { min-width: 0; text-align: center; font-size: 1.2rem; margin-bottom: 4px; }
#hub-dates .event { font-size: 14px; color: var(--text-light); }
#hub-dates .timeline-item.done .event { color: var(--text-muted); }
.next-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    font: 700 11px 'Outfit', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius);
}
.hub-rocket {
    position: absolute;
    top: 0;
    left: var(--progress, 0%);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}
.hub-rocket-label {
    font: 700 10px 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}
.hub-rocket-icon {
    display: inline-block;
    font-size: 26px;
    line-height: 1;
    transform: rotate(45deg);
}

/* Fair night: time chips in a row */
#hub-night .timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
#hub-night .timeline-item {
    display: block;
    padding: 14px 16px;
    background: #f4fafc;
    border: 0;
    border-left: 3px solid var(--secondary-dark);
}
#hub-night .time { min-width: 0; text-align: left; font-size: 1.15rem; margin-bottom: 4px; }
#hub-night .event { font-size: 13.5px; line-height: 1.45; }

.hub-share { max-width: 520px; margin: 4px auto 24px; }
.hub-share .sidebar-share { background: none; border: 0; padding: 0; }
.hub-share .share-btn { padding: 14px 16px; font-size: 15px; }

/* Tabs */
.hub-tablist {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-light);
}
.hub-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
    padding: 14px 20px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--text-light);
    font: 700 1rem 'Outfit', sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.hub-tab:hover { color: var(--text); }
.hub-tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.hub-tab:focus-visible { outline: 3px solid var(--secondary-dark); outline-offset: -3px; }
.hub-panel {
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-top: 0;
    box-shadow: var(--shadow);
}
.hub-panel:focus-visible { outline: 3px solid var(--secondary-dark); outline-offset: -3px; }
.hub-cards,
.hub-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.hub-links { margin-top: 16px; }
.hub-panel-intro { color: var(--text-light); margin-bottom: 14px; }
.explore-hub .info-card {
    opacity: 1;
    animation: none;
    height: 100%;
    padding: 20px 22px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--secondary);
}
.explore-hub .info-card p,
.explore-hub .info-card .info-link { font-size: 14px; }
.explore-hub .info-card h3 { font-size: 0.95rem; }
.explore-hub .sidebar-guide { border: 1px solid var(--border-light); }
.explore-hub .guide-link { height: 100%; padding: 18px 20px; }
.explore-hub .guide-link strong { font-size: 15px; }
.explore-hub .guide-link small { font-size: 13px; }

.quick-facts {
    padding: 20px 22px;
    background: #fff8f0;
    border-left: 3px solid var(--primary);
}
.quick-facts h3 {
    font: 700 0.95rem 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.quick-facts ul { list-style: none; padding: 0; margin: 0; }
.quick-facts li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 14px;
    color: var(--text-light);
}
.quick-facts li::before {
    content: '';
    position: absolute;
    left: 2px; top: 11px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.18);
}

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
    display: inline-block;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cat-chip:hover, .cat-chip:focus-visible { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.live-count { font-size: 1.1rem; margin-bottom: 10px; }
.live-count strong { font: 800 2.4rem 'Outfit', sans-serif; color: var(--primary); margin-right: 6px; vertical-align: -4px; }

.hub-cta { margin: 32px 0 24px; text-align: center; }
.hub-cta-btn {
    display: inline-block;
    padding: 18px 34px;
    background: var(--primary);
    color: #fff;
    font: 800 1.2rem 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(232, 97, 26, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}
.hub-cta-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hub-cta-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.hub-donate .donate-strip { justify-content: center; border: 1px solid var(--border-light); }

/* ----- Laser pointer ----- */
.laser-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}
.laser-target {
    border-color: #ff2a2a !important;
    box-shadow: 0 0 0 4px rgba(255, 42, 42, 0.16), 0 0 18px rgba(255, 42, 42, 0.3) !important;
}
.start-here-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius);
    background: #ff2a2a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ----- Phones ----- */
@media (max-width: 700px) {
    .path-chooser { padding: 18px 16px 2px; }
    .door-row { grid-template-columns: 1fr; gap: 12px; }
    .door { min-height: 0; padding: 16px 18px; gap: 14px; }
    .door-icon { width: 48px; height: 48px; font-size: 1.7rem; }
    .door-text strong { font-size: 1.12rem; }
    .door-text small { font-size: 0.92rem; }

    .explore-hub { padding: 12px 16px 40px; }

    .hub-head h2 { font-size: 1.45rem; }
    .hub-sub { font-size: 0.98rem; }

    /* dates become a vertical stepper */
    #hub-dates .timeline { grid-template-columns: 1fr; padding: 4px 0 0 34px; }
    #hub-dates .timeline::before { top: 6px; bottom: 6px; left: 13px; right: auto; border-top: 0; border-left: 2px dotted var(--border); }
    #hub-dates .timeline::after,
    .hub-rocket { display: none; }
    #hub-dates .timeline-item { text-align: left; padding: 0 0 18px; }
    #hub-dates .timeline-item:last-child { padding-bottom: 0; }
    #hub-dates .timeline-item::before { top: 3px; left: -29px; margin-left: 0; }
    #hub-dates .time { text-align: left; }
    .next-badge { margin: 6px 0 0; }

    #hub-night .timeline { grid-template-columns: 1fr 1fr; gap: 10px; }
    #hub-night .timeline-item { padding: 12px; }

    /* tabs become a 2x2 grid of buttons */
    .hub-tablist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 0; margin-bottom: 12px; }
    .hub-tab { justify-content: center; margin: 0; padding: 12px 8px; font-size: 0.88rem; border: 1.5px solid var(--border); white-space: normal; text-align: center; }
    .hub-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
    .hub-panel { padding: 18px 16px; border-top: 1px solid var(--border-light); }
    .hub-cta-btn { display: block; padding: 16px 18px; font-size: 1.02rem; }
    .hub-donate .donate-strip { flex-direction: column; padding: 14px 16px; }
    .hub-donate .donate-links { flex-wrap: wrap; justify-content: center; }
}

/* ----- Live Stats tab: embedded dashboard ----- */
.stats-embed { margin-top: 8px; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stats-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
.stats-full-link { margin: 10px 0 0; text-align: right; font-size: 0.9rem; }
.stats-full-link a { color: var(--primary); font-weight: 600; }

/* Laser on/off toggle under Student Name */
/* Sits on the right of the "Student Information" title row, above its orange line */
fieldset.has-laser-toggle { position: relative; }
.laser-toggle {
    position: absolute;
    top: -64px;     /* up past the legend's 24px margin and line, centered on the title text */
    right: 32px;    /* the fieldset's side padding, so it ends where the line ends */
    display: flex;
    gap: 6px;
}
.laser-toggle[hidden] { display: none; }
.laser-toggle button {
    padding: 4px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-light);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.laser-toggle button:hover { border-color: var(--primary); color: var(--primary); }
.laser-toggle button[aria-pressed="true"] { border-color: #ff2a2a; background: rgba(255, 42, 42, 0.07); color: var(--text); font-weight: 600; }
.laser-toggle button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 700px) {
    /* no room beside the title on phones: just the 🔴 / 😎 (the words stay for screen readers) */
    .laser-toggle { right: 20px; gap: 4px; }
    .laser-toggle button { padding: 1px 6px; font-size: 0.9rem; }
    fieldset.has-laser-toggle > legend { letter-spacing: 0.04em; }   /* room for the longer Spanish title */
    .laser-toggle .lt-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
