nav.is-night {
    background-color: rgba(8, 15, 28, 0.88);
    box-shadow: 0 1px 0 rgba(196, 216, 244, 0.08);
}

nav.is-night .logo,
nav.is-night .nav-links a {
    color: #e5eaf3;
}

.conference {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100svh;
    overflow: hidden;
    padding: calc(var(--site-nav-height, 64px) + 2rem) 5vw 7rem;
    color: #f1f4fa;
    background: #0a111f;
}

.conference-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 28% 65%, #20344b 0, #101c30 38%, #080f1d 78%);
}

.conference-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: #d9e7fc;
}

.stars-still {
    opacity: 0.45;
}

.stars-twinkle {
    animation: star-twinkle 5s ease-in-out infinite alternate;
}

.stars-twinkle-late {
    animation-delay: -3s;
    animation-duration: 7s;
}

.conference-sparkle {
    fill: rgba(205, 226, 255, 0.04);
    stroke: #b7d0ef;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}

.conference-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 57%;
    min-height: 260px;
}

.mountain-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.distant-line {
    stroke: #7c96b5;
    stroke-width: 1.5;
    opacity: 0.5;
}

.middle-line {
    stroke: #90a8c7;
    stroke-width: 1.6;
    opacity: 0.45;
}

.near-line {
    stroke: #546f91;
    stroke-width: 1.25;
    opacity: 0.25;
}

.conference-meteor {
    position: absolute;
    width: 170px;
    height: 1.5px;
    border-radius: 100%;
    background: linear-gradient(to right, #e7f3ff, #95b8e0 12%, transparent);
    opacity: 0;
    transform: rotate(-27deg);
    animation: meteor-flight 11s linear infinite;
}

.meteor-one { top: 27%; left: 43%; animation-delay: -2s; }
.meteor-two { top: 17%; left: 75%; animation-delay: -6s; animation-duration: 15s; }
.meteor-three { top: 45%; left: 30%; animation-delay: -9s; animation-duration: 18s; width: 110px; }

@keyframes star-twinkle {
    from { opacity: 0.25; }
    to { opacity: 0.95; }
}

@keyframes meteor-flight {
    0% { opacity: 0; transform: translate(0, 0) rotate(-27deg); }
    2% { opacity: 0.85; }
    11% { opacity: 0; transform: translate(-340px, 173px) rotate(-27deg); }
    100% { opacity: 0; transform: translate(-340px, 173px) rotate(-27deg); }
}

.conference-content {
    width: min(100%, 1440px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.conference-mascot {
    display: block;
    width: clamp(100px, 10vw, 164px);
    height: auto;
    margin: 0 0 1rem;
}

.conference-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin: 0;
    font-weight: 400;
}

.conference-community {
    font-size: clamp(1rem, 1.8vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

.conference-wordmark {
    border-left: 3px solid #c6d5e9;
    padding-left: 1.25rem;
    font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace;
    font-size: clamp(3rem, 6.8vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.conference-status {
    margin-top: 0.5rem;
    font-family: inherit;
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.conference-date {
    margin-top: 0.5rem;
    color: #c5d4e9;
    font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace;
    font-size: clamp(1.1rem, 2.3vw, 2rem);
    line-height: 1.5;
}

.conference-join {
    min-width: 12rem;
    min-height: 3.25rem;
    margin-top: 1.75rem;
    padding: 0.75rem 2.5rem;
    border: 1px solid #c9d5e5;
    border-radius: 0.65rem;
    background: #e1e8f3;
    color: #18263c;
    font: inherit;
    font-size: 1.125rem;
}

.conference-join:disabled {
    cursor: not-allowed;
}

.conference-scroll {
    color: #d6e3f6;
}

.conference-scroll:hover {
    background: rgba(198, 217, 244, 0.1);
    color: #ffffff;
}

.conference-scroll:focus-visible {
    outline-color: #c5dcff;
}

.conference.is-offscreen .conference-sky * { animation-play-state: paused; }

@media (max-width: 900px) {
    .conference { padding-right: 6vw; padding-left: 6vw; }
    .conference-heading { flex-direction: column; align-items: flex-end; gap: 1.25rem; }
    .conference-community { font-size: 1.1rem; }
    .conference-wordmark { font-size: clamp(2.3rem, 8.5vw, 4.75rem); padding-left: 0.75rem; border-left-width: 2px; }
    .conference-status { font-size: clamp(2.75rem, 6.5vw, 4rem); }
    .conference-mascot { width: 108px; }
    .conference-mountains { height: 46%; }
}

@media (max-width: 480px) {
    .conference { padding-top: calc(var(--site-nav-height, 64px) + 1.5rem); padding-bottom: 6rem; }
    .conference-mascot { width: 88px; margin-bottom: 1.25rem; }
    .conference-community { font-size: 0.95rem; }
    .conference-wordmark { font-size: 9vw; }
    .conference-heading { gap: 1rem; }
    .conference-status { font-size: 2.8rem; }
    .conference-date { font-size: clamp(1rem, 5vw, 1.35rem); }
    .conference-join { min-width: 10rem; min-height: 3rem; margin-top: 1.25rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .conference-sky * { animation: none !important; }
    .stars-twinkle { opacity: 0.65; }
    .conference-meteor { display: none; }
}
