html,
body {
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    background: #f7fbff;
    font-family: "Assistant", "Heebo", Arial, sans-serif;
}

body.loading-entrance #main-content {
    display: none;
}

#intro-sequence {
    transition: opacity 650ms ease, visibility 650ms ease;
}

#intro-sequence .intro-bg {
    background: #ffffff !important;
}

#intro-sequence.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-sequence.is-hidden .intro-bg {
    display: none;
}

.intro-content-wrapper {
    width: min(92vw, 940px);
    padding: 18px 24px;
    display: grid;
    place-items: center;
    gap: clamp(18px, 4vh, 34px);
}

.intro-logo {
    width: clamp(92px, 13vw, 132px) !important;
    height: auto !important;
    object-fit: contain;
}

.school-logo {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.intro-school-name {
    margin: 12px 0 6px;
    color: #0B214F;
    font-family: "Heebo", "Assistant", sans-serif;
    font-size: clamp(1.65rem, 3.4vw, 2.9rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0 !important;
    text-shadow: none;
}

#intro-text1,
.intro-poem {
    font-size: clamp(1.62rem, 4.2vw, 3.15rem) !important;
    letter-spacing: 0 !important;
}

#intro-text2 {
    font-size: clamp(1.1rem, 2.4vw, 1.55rem) !important;
    letter-spacing: 0 !important;
}

.intro-poem {
    display: grid;
    gap: 0.28em;
    margin: 0;
    color: #0B214F;
    font-family: "Varela Round", "Assistant", "Heebo", Arial, sans-serif;
    font-weight: 900;
    line-height: 1.22;
    max-width: min(940px, 92vw);
    text-align: center;
    text-shadow: none;
}

.intro-poem p {
    margin: 0;
}

.intro-poem.is-typing::after {
    content: "";
    justify-self: center;
    width: 0.78em;
    height: 3px;
    background: #ffffff;
    animation: typingCursor 700ms steps(1) infinite;
}

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

.intro-subtitle {
    margin: 0 0 6px !important;
    color: #0B214F !important;
    font-weight: 900 !important;
}

.intro-credits {
    color: rgba(11, 33, 79, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0 !important;
}

mark {
    color: inherit;
    background: linear-gradient(180deg, transparent 48%, rgba(79, 209, 217, 0.62) 48%, rgba(79, 209, 217, 0.62) 87%, transparent 87%);
    padding: 0 0.12em;
    border-radius: 4px;
}

#intro-countdown {
    font-size: clamp(5rem, 18vw, 13rem) !important;
    line-height: 1;
}

.intro-btn {
    border-radius: 8px !important;
}

.intro-arrow-btn {
    width: 60px;
    height: 60px;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 2rem !important;
    display: inline-grid;
    place-items: center;
    animation: arrowFloat 1.8s ease-in-out infinite;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 18px 50px rgba(255, 255, 255, 0.2) !important;
}

@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.gate-transition {
    position: fixed;
    inset: 0;
    z-index: 25000;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(11, 33, 79, 0.72) 48%, rgba(255, 255, 255, 0) 100%);
    animation: gateLift 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.gate-transition span {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4px;
    height: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #4FD1D9);
    box-shadow: 0 0 34px rgba(79, 209, 217, 0.72);
    animation: gateRoad 1.05s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes gateLift {
    0% { opacity: 1; transform: translateY(0); }
    62% { opacity: 0.94; transform: translateY(-18vh); }
    100% { opacity: 0; transform: translateY(-100vh); }
}

@keyframes gateRoad {
    0% { height: 0; transform: translateX(-50%) scaleX(1); }
    60% { height: 78vh; transform: translateX(-50%) scaleX(1); }
    100% { height: 100vh; transform: translateX(-50%) scaleX(9); opacity: 0; }
}

#main-content {
    width: 100vw;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ffffff;
}

.principal-slide {
    box-sizing: border-box;
    scroll-snap-align: start;
    opacity: 1 !important;
    transform: none !important;
}

.principal-slide .slide-content,
.principal-slide.swiper-slide-active .slide-content {
    opacity: 1 !important;
    transform: none !important;
}

#hero h1 { color: #0B214F; 
    font-size: clamp(1.75rem, 4.4vw, 3.05rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    position: relative;
    z-index: 2;
}

#hero img {
    width: clamp(118px, 18vw, 190px) !important;
    height: auto;
}

.hero-school-logo {
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    max-height: 180px;
    object-fit: contain;
    animation: logoFloat 4.8s ease-in-out infinite;
}

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

#typewriter-container {
    font-size: clamp(1.18rem, 2.8vw, 1.8rem) !important;
    min-height: 13rem !important;
    padding-inline: 10px;
    position: relative;
    z-index: 2;
}

.hero-poem {
    display: grid;
    gap: 0.32em;
    align-content: center;
}

.typing-line,
.hero-poem p {
    margin-block: 0.25em;
}

.hero-poem mark {
    background: linear-gradient(180deg, transparent 50%, rgba(79, 209, 217, 0.58) 50%, rgba(79, 209, 217, 0.58) 88%, transparent 88%);
}

.hero-badge {
    justify-self: center;
    width: fit-content;
    padding: 6px 14px;
    border: 1px solid rgba(79, 209, 217, 0.44);
    border-radius: 999px;
    color: #4FD1D9;
    background: rgba(79, 209, 217, 0.08);
    font-size: clamp(0.82rem, 2vw, 1.08rem);
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    animation: badgeGlow 2.6s ease-in-out infinite;
}

.hero-hook {
    justify-self: center;
    width: fit-content;
    margin: 0.15em 0;
    color: #0B214F;
    font-size: clamp(3.15rem, 13vw, 6.4rem) !important;
    font-weight: 900;
    line-height: 0.95;
    white-space: nowrap;
    text-wrap: nowrap;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    animation: hookPop 1.15s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-subhook {
    justify-self: center;
    margin: 0;
    color: #0B214F;
    font-size: clamp(1.16rem, 3vw, 1.62rem) !important;
    font-weight: 800;
    line-height: 1.24;
    word-break: keep-all;
    overflow-wrap: normal;
}

#typewriter-container .hero-hook {
    font-size: clamp(3.15rem, 13vw, 6.4rem) !important;
}

#typewriter-container .hero-subhook {
    font-size: clamp(1.16rem, 3vw, 1.62rem) !important;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(79, 209, 217, 0); }
    50% { box-shadow: 0 0 34px rgba(79, 209, 217, 0.22); }
}

@keyframes hookPop {
    0% { opacity: 0; transform: translateY(18px) scale(0.96); }
    65% { opacity: 1; transform: translateY(0) scale(1.035); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-credit {
    color: rgba(11, 33, 79, 0.78);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.atara-speech-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 50px);
    background:
        radial-gradient(circle at 18% 24%, rgba(79, 209, 217, 0.18), transparent 34%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 42%, #eef7ff 100%);
    position: relative;
    overflow: hidden;
}

.atara-speech-slide::before {
    content: "";
    position: absolute;
    width: min(70vw, 720px);
    aspect-ratio: 1;
    left: -18%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 42px solid rgba(18, 48, 104, 0.06);
    box-shadow: inset 0 0 0 1px rgba(79, 209, 217, 0.22);
}

.speech-shell {
    position: relative;
    z-index: 1;
    width: min(1140px, calc(100vw - 96px));
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 0.95fr);
    direction: ltr;
    align-items: center;
    gap: 0;
}

.speech-shell *,
.speech-shell *::before,
.speech-shell *::after {
    box-sizing: border-box;
}

.atara-portrait-wrap {
    position: relative;
    min-height: min(76vh, 680px);
    margin: 0;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 30px 80px rgba(11, 33, 79, 0.26);
    background: #0B214F;
}

.atara-portrait-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.94) 100%);
}

.atara-portrait {
    width: 100%;
    height: 100%;
    min-height: min(76vh, 680px);
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.06);
}

.atara-portrait-wrap figcaption {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 22px;
    right: 22px;
    display: grid;
    gap: 4px;
    direction: rtl;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.atara-portrait-wrap figcaption strong {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
}

.atara-portrait-wrap figcaption span {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 700;
}

.speech-card {
    position: relative;
    direction: rtl;
    min-height: min(64vh, 560px);
    max-height: calc(100dvh - 72px);
    margin-inline-start: -58px;
    padding: clamp(30px, 4vw, 54px) clamp(52px, 5vw, 72px) clamp(78px, 7vw, 96px);
    border-radius: 8px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.99) 52%, rgba(244, 251, 255, 0.96));
    box-shadow: 0 24px 70px rgba(11, 33, 79, 0.18);
    border: 1px solid rgba(18, 48, 104, 0.08);
    overflow: hidden;
}

.speech-orbit {
    position: absolute;
    inset: auto -76px -88px auto;
    width: 230px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(79, 209, 217, 0.34);
    box-shadow: inset 0 0 0 34px rgba(79, 209, 217, 0.06);
    animation: orbitBreath 7s ease-in-out infinite;
    pointer-events: none;
}

.speech-orbit span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4FD1D9;
    box-shadow: 0 0 20px rgba(79, 209, 217, 0.7);
}

.speech-orbit span:nth-child(1) { top: 8%; left: 48%; }
.speech-orbit span:nth-child(2) { top: 48%; left: 8%; }
.speech-orbit span:nth-child(3) { bottom: 8%; left: 48%; }
.speech-orbit span:nth-child(4) { top: 48%; right: 8%; }

@keyframes orbitBreath {
    0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.76; }
    50% { transform: scale(1.08) rotate(24deg); opacity: 1; }
}

.speech-kicker,
.speech-reading-time {
    margin: 0 0 10px;
    color: #416177;
    font-weight: 900;
}

.speech-part-label {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    margin: 0 0 12px;
    padding: 7px 13px;
    color: #0B214F;
    background: rgba(79, 209, 217, 0.22);
    border: 1px solid rgba(79, 209, 217, 0.42);
    border-radius: 999px;
    font-weight: 900;
}

.speech-pull-quote {
    display: block;
    margin: 10px 0 18px;
    color: rgba(18, 48, 104, 0.66);
    font-family: "Varela Round", "Assistant", "Heebo", Arial, sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    background: transparent;
    border-inline-start: 5px solid rgba(79, 209, 217, 0.72);
    padding-inline-start: 18px;
    transform-origin: right center;
}

.speech-pull-quote.pulse-a { animation: keyPulseA 2.8s ease-in-out both; }
.speech-pull-quote.pulse-b { animation: keyPulseB 2.8s ease-in-out both; }
.speech-pull-quote.pulse-c { animation: keyPulseC 2.8s ease-in-out both; }

@keyframes keyPulseA {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(1.055); }
}

@keyframes keyPulseB {
    0%, 100% { transform: scale(1); }
    36% { transform: scale(0.97); }
    70% { transform: scale(1.045); }
}

@keyframes keyPulseC {
    0%, 100% { transform: scale(1); }
    28% { transform: scale(1.035); }
    58% { transform: scale(0.985); }
}

.speech-body {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #123068;
    font-size: clamp(1.05rem, 1.28vw, 1.18rem);
    font-weight: 700;
    line-height: 1.58;
    max-height: min(31vh, 310px);
    overflow-y: auto;
    padding-inline-end: 8px;
    scroll-behavior: smooth;
}

.speech-body p {
    margin: 0 0 0.72em;
}

.speech-body mark {
    font-weight: 900;
    background: linear-gradient(180deg, transparent 46%, rgba(79, 209, 217, 0.64) 46%, rgba(79, 209, 217, 0.64) 88%, transparent 88%);
}

.speech-body::-webkit-scrollbar {
    width: 8px;
}

.speech-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(18, 48, 104, 0.22);
}

.speech-card.is-switching .speech-body,
.speech-card.is-switching .speech-pull-quote {
    animation: speechSwap 520ms ease both;
}

@keyframes speechSwap {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reaction-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.reaction-collector {
    min-height: 34px;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 12px;
}

.reaction-collector span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(11, 33, 79, 0.12);
    animation: collectedPop 420ms ease both;
}

@keyframes collectedPop {
    0% { transform: scale(0.2); opacity: 0; }
    80% { transform: scale(1.14); opacity: 1; }
    100% { transform: scale(1); }
}

.collect-particle {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20000;
    pointer-events: none;
    font-size: 1.6rem;
    transform: translate(var(--from-x), var(--from-y));
    animation: collectFlight 850ms cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes collectFlight {
    0% { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(0.7); }
    18% { opacity: 1; transform: translate(calc(var(--from-x) - 12px), calc(var(--from-y) - 42px)) scale(1.18); }
    100% { opacity: 0; transform: translate(var(--to-x), var(--to-y)) scale(0.35); }
}

.reaction-bubble {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #e9f6ff);
    box-shadow: 0 12px 28px rgba(11, 33, 79, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 1.55rem;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.reaction-bubble:hover,
.reaction-bubble.is-active {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 18px 36px rgba(11, 33, 79, 0.22), 0 0 0 4px rgba(79, 209, 217, 0.22);
}

.speech-controls {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    pointer-events: none;
}

.speech-nav {
    position: absolute;
    top: 50%;
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #071326, #183d68);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(11, 33, 79, 0.34), 0 0 0 6px rgba(79, 209, 217, 0.2);
    font-size: 1.45rem;
    pointer-events: auto;
    transform: translateY(-50%);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#speech-prev {
    right: 12px;
}

#speech-next {
    left: 12px;
}

.speech-nav::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(79, 209, 217, 0.2);
}

.speech-nav:hover,
.speech-nav:focus-visible {
    transform: translateY(-50%) scale(1.08);
    background: #0B214F;
    box-shadow: 0 22px 48px rgba(11, 33, 79, 0.38), 0 0 0 8px rgba(79, 209, 217, 0.26);
}

.speech-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(11, 33, 79, 0.14);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.speech-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 0;
    background: #b8c7d8;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.speech-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #4FD1D9;
}

#scroll-arrow {
    font-size: clamp(1rem, 2vw, 1.5rem) !important;
    max-width: calc(100vw - 40px);
}

#main-content .reading-text {
    font-size: clamp(1.45rem, 4vw, 2.5rem) !important;
    line-height: 1.35 !important;
    max-width: min(1000px, 92vw) !important;
}

.speech-side-note {
    position: absolute;
    left: clamp(18px, 4vw, 58px);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: min(230px, 24vw);
    display: grid;
    gap: 10px;
    padding: 18px 16px;
    border-inline-start: 5px solid #4FD1D9;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 45px rgba(11, 33, 79, 0.12);
    color: #0B214F;
    text-align: right;
    border-radius: 8px;
}

.speech-side-note span {
    font-size: 0.9rem;
    font-weight: 800;
    color: #416177;
}

.speech-side-note mark {
    justify-self: start;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(180deg, transparent 46%, rgba(79, 209, 217, 0.72) 46%, rgba(79, 209, 217, 0.72) 88%, transparent 88%);
}

.speech-side-note strong {
    font-size: 1.05rem;
    color: #123068;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .speech-shell {
        grid-template-columns: minmax(245px, 0.78fr) minmax(320px, 1fr);
        width: min(720px, calc(100vw - 112px));
    }

.speech-card {
        margin-inline-start: -34px;
        padding: 52px 64px 88px;
    }

    .speech-pull-quote {
        font-size: clamp(1.75rem, 4.8vw, 3.1rem);
    }

    .speech-body {
        font-size: clamp(1.12rem, 2.65vw, 1.6rem);
    }
}

@media (max-width: 760px) {
    .speech-side-note {
        position: static;
        transform: none;
        width: min(100%, 360px);
        margin: 0 auto 22px;
        padding: 14px 16px;
    }

    .speech-shell {
        grid-template-columns: 1fr;
        width: min(760px, 94vw);
    }

    .atara-portrait-wrap {
        min-height: 330px;
        border-radius: 8px 8px 0 0;
    }

    .atara-portrait,
    .atara-portrait-wrap {
        min-height: 330px;
    }

    .atara-portrait-wrap::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.96) 100%);
    }

    .speech-card {
        margin-inline-start: 0;
        margin-top: 0;
        min-height: auto;
        max-height: none;
        padding: 28px 22px 96px;
    }
}

.atara-portrait {
    width: 100% !important;
    height: 100% !important;
}

.events-hub-section .container {
    width: min(1180px, 94vw);
    margin-inline: auto;
}

#events-hub {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    z-index: auto !important;
    opacity: 1 !important;
}

#events-hub .reveal,
#events-hub .container {
    opacity: 1 !important;
    transform: none !important;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    line-height: 1.1;
    letter-spacing: 0 !important;
}

.events-swiper {
    min-height: 500px;
    padding: 42px 0 64px !important;
}

.event-slide {
    width: clamp(230px, 30vw, 340px) !important;
    height: clamp(330px, 52vh, 470px) !important;
    border-radius: 8px !important;
    perspective: 1200px;
    opacity: 0.42;
    filter: saturate(0.72) brightness(0.92);
    transition: opacity 300ms ease, filter 300ms ease, transform 300ms ease;
}

.swiper-slide-active.event-slide {
    opacity: 1;
    filter: saturate(1.05) brightness(1);
}

.swiper-slide-prev.event-slide,
.swiper-slide-next.event-slide {
    opacity: 0.78;
}

.event-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px !important;
    box-shadow: 0 18px 45px rgba(11, 33, 79, 0.24) !important;
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(.2, .8, .2, 1), box-shadow 240ms ease;
    cursor: pointer;
}

.event-card-inner.is-flipped {
    transform: translateY(-6px) scale(1.015);
}

.event-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: visible;
    overflow: hidden;
    border-radius: 8px;
}

.event-card-front img,
.event-card-front video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #dfe8f2;
    filter: none;
    image-rendering: auto;
}

.event-card-back {
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 22px;
    text-align: center;
    color: #0B214F;
    background: #102033;
    transition: opacity 300ms ease, transform 300ms ease;
}

.event-card-inner.is-flipped .event-card-back {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.event-back-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) contrast(1.04) saturate(1.08);
    transform: scale(1);
}

.event-back-glass {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(92%, 310px);
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
}

.events-tap-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #0B214F;
    background: rgba(79, 209, 217, 0.24);
    border: 1px solid rgba(79, 209, 217, 0.42);
    font-weight: 900;
    text-align: center;
    box-shadow: 0 10px 26px rgba(11, 33, 79, 0.08);
}

.events-tap-hint::before {
    content: "\f25a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    background: #0B214F;
    animation: tapFinger 1.45s ease-in-out infinite;
}

@keyframes tapFinger {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(4px) scale(0.92); }
    68% { transform: translateY(0) scale(1.08); }
}

.event-expand-btn {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 5;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(11, 33, 79, 0.82);
    box-shadow: 0 12px 26px rgba(11, 33, 79, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.event-expand-btn i {
    font-size: 1.05rem;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(4, 12, 24, 0.88);
    backdrop-filter: blur(12px);
}

.image-lightbox figure {
    margin: 0;
    width: min(calc(100vw - 36px), 980px);
    display: grid;
    gap: 10px;
}

.image-lightbox img {
    width: 100%;
    max-width: calc(100vw - 36px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    background: #ffffff;
}

.image-lightbox figcaption {
    color: #ffffff;
    text-align: center;
    font-weight: 900;
}

.image-lightbox-close {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #0B214F;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

body.lightbox-open {
    overflow: hidden !important;
}

.speech-friendly-note {
    margin: 1.3em auto 0 !important;
    padding: clamp(16px, 4vw, 24px);
    max-width: 760px;
    text-align: center;
    border-radius: 8px;
    color: #0B214F;
    background: linear-gradient(135deg, rgba(79, 209, 217, 0.18), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(79, 209, 217, 0.38);
    box-shadow: 0 16px 40px rgba(11, 33, 79, 0.1);
    font-weight: 900;
}

.speech-final-note {
    display: grid;
    grid-template-columns: minmax(96px, 0.36fr) 1fr;
    gap: clamp(14px, 3vw, 22px);
    align-items: center;
    margin: 1.4em auto 0;
    padding: clamp(16px, 4vw, 24px);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(79, 209, 217, 0.16), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(79, 209, 217, 0.36);
    box-shadow: 0 18px 46px rgba(11, 33, 79, 0.12);
}

.speech-final-note img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(11, 33, 79, 0.18);
}

.speech-final-note p {
    margin: 0 0 14px !important;
    font-weight: 900;
    text-align: center;
}

.speech-gallery-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    color: #0B214F;
    background: #4FD1D9;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(79, 209, 217, 0.26);
}

.atara-summary-slide {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(26px, 6vw, 72px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(79, 209, 217, 0.28), transparent 28%),
        radial-gradient(circle at 82% 70%, rgba(79, 209, 217, 0.22), transparent 28%),
        linear-gradient(135deg, #071326, #0B214F 46%, #123b5a);
    animation: journeyColorShift 10s ease-in-out infinite alternate;
}

.atara-summary-slide::before {
    content: "";
    position: absolute;
    inset: -28%;
    background:
        conic-gradient(from 0deg, transparent, rgba(79, 209, 217, 0.16), transparent, rgba(79, 209, 217, 0.12), transparent);
    animation: journeyOrbit 16s linear infinite;
}

.atara-summary-slide::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 50%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #4FD1D9, #4FD1D9, transparent);
    box-shadow: 0 0 28px rgba(79, 209, 217, 0.52);
    animation: journeyPath 3.4s ease-in-out infinite;
}

.atara-summary-card {
    position: relative;
    z-index: 1;
    width: min(880px, 94vw);
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: clamp(20px, 4vw, 44px);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(79, 209, 217, 0.16), rgba(79, 209, 217, 0.12)),
        rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(79, 209, 217, 0.26);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    animation: summaryCardIn 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.atara-summary-card img {
    display: none;
}

.atara-summary-copy {
    display: grid;
    gap: clamp(20px, 4vw, 34px);
    text-align: center;
    justify-items: center;
}

.atara-summary-copy p {
    margin: 0 !important;
    color: #ffffff;
    max-width: 18ch;
    font-size: clamp(1.68rem, 4.2vw, 3.05rem);
    line-height: 1.35;
    font-weight: 900;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.speech-signature {
    margin-top: clamp(18px, 4vw, 30px);
    padding-top: 18px;
    display: grid;
    gap: 4px;
    justify-items: center;
    color: #0B214F;
    border-top: 1px solid rgba(11, 33, 79, 0.16);
}

.speech-signature strong {
    font-size: clamp(1.26rem, 4.4vw, 1.72rem);
    font-weight: 900;
}

.speech-signature span {
    font-size: clamp(1rem, 3.4vw, 1.18rem);
    font-weight: 800;
    color: #516174;
}

.gallery-transition-veil {
    position: fixed;
    inset: 0;
    z-index: 40000;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(79, 209, 217, 0.32), transparent 28%),
        radial-gradient(circle at 24% 30%, rgba(79, 209, 217, 0.22), transparent 22%),
        linear-gradient(135deg, #0B214F 0%, #112b44 48%, #0B214F 100%);
    animation: veilIn 1.25s cubic-bezier(.2, .8, .2, 1) both;
}

.gallery-transition-veil .journey-ring {
    position: absolute;
    width: min(64vmin, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(79, 209, 217, 0.64);
    box-shadow: 0 0 44px rgba(79, 209, 217, 0.24), inset 0 0 44px rgba(79, 209, 217, 0.12);
    animation: ringJourney 1.45s ease-in-out infinite;
}

.gallery-transition-veil .journey-line {
    position: absolute;
    width: min(82vw, 720px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #4FD1D9, #4FD1D9, #4FD1D9, transparent);
    box-shadow: 0 0 30px rgba(79, 209, 217, 0.52);
    animation: lineJourney 1.15s ease-in-out infinite;
}

.gallery-transition-veil strong {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 8vw, 5.2rem);
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.gallery-transition-veil.is-done {
    animation: veilOut 480ms ease forwards;
}

.atara-summary-slide.is-launching-gallery .atara-summary-card {
    animation: summaryLaunch 850ms cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes journeyColorShift {
    0% { filter: hue-rotate(0deg) saturate(1); }
    50% { filter: hue-rotate(12deg) saturate(1.12); }
    100% { filter: hue-rotate(-10deg) saturate(1.05); }
}

@keyframes journeyOrbit {
    to { transform: rotate(360deg); }
}

@keyframes journeyPath {
    0%, 100% { opacity: 0.42; transform: translateY(-10px) scaleY(0.86); }
    50% { opacity: 1; transform: translateY(10px) scaleY(1.08); }
}

@keyframes summaryCardIn {
    from { opacity: 0; transform: translateY(34px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes summaryLaunch {
    to { opacity: 0; transform: translateY(-32px) scale(1.04); filter: blur(8px); }
}

@keyframes veilIn {
    from { opacity: 0; transform: scale(1.04); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes veilOut {
    to { opacity: 0; transform: scale(0.98); filter: blur(10px); }
}

@keyframes ringJourney {
    0%, 100% { transform: scale(0.82) rotate(0deg); opacity: 0.72; }
    50% { transform: scale(1.05) rotate(130deg); opacity: 1; }
}

@keyframes lineJourney {
    0%, 100% { transform: translateX(-8vw) scaleX(0.64); opacity: 0.72; }
    50% { transform: translateX(8vw) scaleX(1); opacity: 1; }
}

.event-card-back h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.1;
}

.event-card-back p {
    margin: 0;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    font-weight: 800;
    line-height: 1.38;
}

.event-original-title {
    color: #416177;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
}

.event-back-label,
.event-back-hint {
    justify-self: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #416177;
    background: rgba(79, 209, 217, 0.16);
    font-weight: 900;
}

.event-back-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: #60758a;
    background: rgba(11, 33, 79, 0.06);
}

.event-chip {
    display: inline-block;
    margin: 0 0 8px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #0B214F;
    background: rgba(79, 209, 217, 0.82);
    font-size: 0.84rem;
    font-weight: 900;
}

.event-overlay {
    padding: 70px 18px 18px !important;
    background: linear-gradient(to top, rgba(5, 14, 28, 0.92), rgba(5, 14, 28, 0.45), transparent) !important;
}

.event-title {
    color: #ffffff;
    font-size: clamp(1.15rem, 2vw, 1.7rem) !important;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0 !important;
}

.heart-btn {
    width: auto !important;
    min-width: 62px !important;
    height: 46px !important;
    border-radius: 8px !important;
    gap: 7px;
    padding: 0 10px !important;
    font-size: 1.05rem !important;
}

.like-count {
    font-size: 0.88rem;
    font-weight: 900;
}

.heart-btn.liked,
.heart-btn.active {
    color: #ff4d7d;
    background: rgba(255, 255, 255, 0.92) !important;
}

.swiper-button-next,
.swiper-button-prev {
    display: grid !important;
    place-items: center;
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px !important;
    background: rgba(11, 33, 79, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(11, 33, 79, 0.22), 0 0 0 5px rgba(79, 209, 217, 0.16);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.35rem !important;
    font-weight: 900;
}

.floating-tools-sidebar {
    z-index: 10000 !important;
    top: auto !important;
    right: 18px !important;
    bottom: 18px;
    transform: none !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
}

.floating-tools-sidebar .tooltip-text {
    display: none !important;
}

#youtube-music-player {
    position: fixed;
    left: -24px;
    bottom: -24px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.music-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 10001;
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #0B214F;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(11, 33, 79, 0.22);
    font-family: "Assistant", "Heebo", Arial, sans-serif;
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.9);
    transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}

.music-toggle.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.music-toggle[data-state="loading"] {
    opacity: 0.72;
}

.music-toggle[data-state="playing"] {
    color: #063f34;
    background: rgba(79, 209, 217, 0.92);
}

.music-toggle i {
    animation: musicPulse 1.6s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

.lang-select,
.tool-btn {
    border-radius: 8px !important;
}

body.high-contrast #main-content,
body.high-contrast .principal-slide {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .reading-text,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast p {
    color: #ffffff !important;
}

body.high-contrast .speech-card,
body.high-contrast .atara-typed-card,
body.high-contrast .event-back-glass,
body.high-contrast .speech-final-note,
body.high-contrast .atara-summary-card {
    background: #050505 !important;
    color: #ffffff !important;
    border-color: #4FD1D9 !important;
}

body.high-contrast .speech-card *,
body.high-contrast .atara-typed-card *,
body.high-contrast .event-back-glass *,
body.high-contrast .speech-final-note *,
body.high-contrast .atara-summary-card * {
    color: #ffffff !important;
}

body.high-contrast mark {
    color: #ffffff !important;
    background: linear-gradient(180deg, transparent 42%, rgba(79, 209, 217, 0.82) 42%, rgba(79, 209, 217, 0.82) 88%, transparent 88%) !important;
}

body.large-text .speech-body,
body.large-text .speech-body p {
    font-size: clamp(1.38rem, 5.9vw, 1.78rem) !important;
    line-height: 1.64 !important;
}

body.large-text .event-card-back p,
body.large-text .event-title,
body.large-text .events-tap-hint {
    font-size: 1.18rem !important;
}

/* Home screen rebuilt to match the approved mobile gate design. */
#hero {
    min-height: 100svh !important;
    padding: clamp(24px, 5vh, 54px) 18px clamp(28px, 5vh, 44px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: clamp(16px, 2.4vh, 28px);
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    text-align: center !important;
    color: #061d59 !important;
    background: #ffffff !important;
    border-radius: 0 0 clamp(28px, 8vw, 62px) clamp(28px, 8vw, 62px);
}

#hero::before,
#hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

#hero::before {
    inset: -8% -12% 44% -12%;
    background:
        radial-gradient(circle at 22% 10%, rgba(101, 207, 224, 0.22), transparent 26%),
        radial-gradient(circle at 78% 2%, rgba(221, 245, 249, 0.72), transparent 30%),
        linear-gradient(180deg, rgba(236, 250, 253, 0.94), rgba(255, 255, 255, 0));
    filter: blur(1px);
    animation: heroMistDrift 10s ease-in-out infinite alternate;
}

#hero::after {
    inset: 48% -14% -12% -14%;
    background:
        radial-gradient(ellipse at 18% 88%, rgba(9, 83, 132, 0.44), transparent 38%),
        radial-gradient(ellipse at 78% 64%, rgba(53, 171, 199, 0.34), transparent 42%),
        radial-gradient(ellipse at 68% 96%, rgba(5, 54, 103, 0.5), transparent 36%),
        linear-gradient(180deg, transparent 0%, rgba(213, 244, 250, 0.68) 28%, rgba(23, 127, 171, 0.5) 100%);
    clip-path: polygon(0 22%, 26% 32%, 45% 46%, 62% 35%, 83% 20%, 100% 30%, 100% 100%, 0 100%);
    animation: heroWaterRise 1.4s cubic-bezier(.2, .8, .2, 1) both, heroSeaBreathe 8s ease-in-out 1.4s infinite alternate;
}

.hero-watercolor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 19%, rgba(79, 209, 217, 0.7) 0 5px, transparent 6px),
        radial-gradient(circle at 24% 8%, rgba(79, 209, 217, 0.58) 0 4px, transparent 5px),
        radial-gradient(circle at 42% 6%, rgba(79, 209, 217, 0.48) 0 3px, transparent 4px),
        radial-gradient(circle at 12% 37%, rgba(79, 209, 217, 0.52) 0 5px, transparent 6px),
        radial-gradient(circle at 82% 82%, rgba(79, 209, 217, 0.36) 0 2px, transparent 3px);
    opacity: 0.9;
}

.hero-road {
    position: absolute;
    left: 50%;
    bottom: -8vh;
    z-index: 1;
    width: min(64vw, 390px);
    height: min(48vh, 500px);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-road::before,
.hero-road::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 0 0;
    filter: drop-shadow(0 0 18px rgba(83, 232, 240, 0.54));
}

.hero-road::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(222, 253, 255, 0.92));
    clip-path: polygon(48% 0, 58% 0, 52% 18%, 70% 35%, 56% 53%, 76% 72%, 61% 100%, 30% 100%, 50% 73%, 34% 55%, 48% 36%, 38% 18%);
    animation: roadReveal 1.5s 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.hero-road::after {
    background: linear-gradient(180deg, rgba(79, 209, 217, 0), rgba(79, 209, 217, 0.82), rgba(255, 255, 255, 0));
    clip-path: polygon(51% 0, 55% 0, 49% 18%, 66% 35%, 52% 53%, 72% 72%, 57% 100%, 52% 100%, 66% 73%, 47% 55%, 61% 36%, 49% 18%);
    opacity: 0.55;
    animation: roadGlow 2.8s ease-in-out infinite;
}

.hero-sparkles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4FD1D9;
    box-shadow: 0 0 16px rgba(79, 209, 217, 0.8);
    animation: sparkleFloat 4.6s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1) { right: 18%; top: 46%; animation-delay: 0.1s; }
.hero-sparkles span:nth-child(2) { left: 16%; top: 58%; animation-delay: 0.7s; }
.hero-sparkles span:nth-child(3) { right: 36%; bottom: 24%; animation-delay: 1.2s; }
.hero-sparkles span:nth-child(4) { left: 26%; bottom: 18%; animation-delay: 1.8s; }
.hero-sparkles span:nth-child(5) { right: 10%; bottom: 35%; animation-delay: 2.3s; }

.hero-home-content {
    position: relative;
    z-index: 3;
    width: min(100%, 720px);
    min-height: 0 !important;
    padding-inline: 0 !important;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: clamp(10px, 1.7vh, 18px);
    color: #061d59 !important;
    text-shadow: none !important;
}

#hero .hero-school-logo {
    width: clamp(132px, 24vw, 250px) !important;
    max-height: none;
    margin: 0 0 clamp(8px, 1.5vh, 16px) !important;
    padding: clamp(10px, 2.4vw, 18px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(6, 29, 89, 0.14);
    filter: none !important;
}

#hero h1 {
    margin: 0 !important;
    color: #061d59 !important;
    font-family: "Heebo", "Assistant", Arial, sans-serif !important;
    font-size: clamp(2.28rem, 8.8vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    text-shadow: 0 5px 0 rgba(6, 29, 89, 0.035);
}

#hero .hero-badge {
    margin: clamp(4px, 0.7vh, 8px) 0 clamp(10px, 1.6vh, 18px);
    padding: 7px 22px;
    color: #2dbfc9;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #2fc7d0;
    border-radius: 999px;
    font-size: clamp(1rem, 3.8vw, 1.45rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(47, 199, 208, 0.14);
}

#hero .hero-hook {
    margin: clamp(18px, 3.6vh, 48px) 0 0;
    color: #061d59 !important;
    font-size: clamp(4.5rem, 22vw, 10rem) !important;
    font-weight: 900 !important;
    line-height: 0.78 !important;
    white-space: nowrap;
    transform: rotate(-2deg);
    text-shadow: 0 10px 0 rgba(6, 29, 89, 0.045);
}

#hero .hero-divider {
    width: 54px;
    height: 7px;
    margin: 5px 0 clamp(12px, 2vh, 22px);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #36ccd0, transparent);
}

#hero .hero-subhook {
    margin: 0;
    color: #061d59 !important;
    font-size: clamp(1.38rem, 5.4vw, 2.1rem) !important;
    font-weight: 800;
    line-height: 1.38;
    text-wrap: balance;
}

#hero .hero-subhook mark {
    color: #23bfc7 !important;
    background: none;
    padding: 0;
    font-weight: 900;
}

#hero .hero-credit {
    margin: clamp(14px, 2.3vh, 26px) 0 0;
    color: #061d59;
    font-size: clamp(1rem, 3.2vw, 1.22rem);
    font-weight: 800;
}

#hero .hero-credit span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 10px;
    border-radius: 50%;
    vertical-align: middle;
    background: #25c4cb;
}

#hero .scroll-down-arrow {
    position: relative !important;
    z-index: 4;
    margin-top: auto;
    width: clamp(58px, 14vw, 78px);
    height: clamp(58px, 14vw, 78px);
    display: grid !important;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #0784a8 !important;
    font-size: clamp(1.7rem, 5vw, 2.3rem) !important;
    box-shadow: 0 14px 34px rgba(5, 54, 103, 0.18);
    cursor: pointer;
}

#hero .hero-start-btn {
    position: relative;
    z-index: 4;
    width: min(76vw, 440px);
    min-height: 64px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #53d8db, #37c8cc);
    color: #061d59;
    font-family: "Heebo", "Assistant", Arial, sans-serif;
    font-size: clamp(1.42rem, 5.2vw, 2.1rem);
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(45, 191, 201, 0.28);
    cursor: pointer;
}

#hero .hero-school-logo,
#hero h1,
#hero .hero-badge,
#hero .hero-hook,
#hero .hero-divider,
#hero .hero-subhook,
#hero .hero-credit,
#hero .scroll-down-arrow,
#hero .hero-start-btn {
    opacity: 0;
    animation: heroGateIn 900ms cubic-bezier(.2, .8, .2, 1) both;
}

#hero h1 { color: #0B214F;  animation-delay: 120ms; }
#hero .hero-badge { animation-delay: 220ms; }
#hero .hero-hook { animation-delay: 360ms; }
#hero .hero-divider { animation-delay: 480ms; }
#hero .hero-subhook { animation-delay: 580ms; }
#hero .hero-credit { animation-delay: 680ms; }
#hero .scroll-down-arrow { animation-delay: 920ms, 1.25s; animation-name: heroGateIn, arrowFloat; animation-duration: 900ms, 1.8s; animation-timing-function: cubic-bezier(.2, .8, .2, 1), ease-in-out; animation-iteration-count: 1, infinite; }
#hero .hero-start-btn { animation-delay: 1080ms; }

@keyframes heroGateIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroMistDrift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 1%, 0) scale(1.04); }
}

@keyframes heroWaterRise {
    from { opacity: 0; transform: translateY(8vh); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSeaBreathe {
    from { filter: saturate(0.95) brightness(1); }
    to { filter: saturate(1.1) brightness(1.04); }
}

@keyframes roadReveal {
    from { opacity: 0; transform: translateY(26vh) scaleY(0.2); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes roadGlow {
    0%, 100% { opacity: 0.34; transform: translateY(0); }
    50% { opacity: 0.86; transform: translateY(-8px); }
}

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.22; transform: translateY(0) scale(0.8); }
    50% { opacity: 1; transform: translateY(-12px) scale(1.18); }
}

@media (max-width: 760px) {
    #hero {
        padding: 34px 18px 28px !important;
        gap: 12px;
    }

    #hero .hero-school-logo {
        width: clamp(148px, 35vw, 180px) !important;
    }

    #hero h1 { color: #0B214F; 
        font-size: clamp(2.25rem, 11vw, 3.35rem) !important;
    }

    #hero .hero-badge {
        font-size: clamp(1rem, 4.6vw, 1.22rem);
    }

    #hero .hero-hook {
        font-size: clamp(5rem, 28vw, 7.5rem) !important;
        margin-top: 26px;
    }

    #hero .hero-subhook {
        font-size: clamp(1.42rem, 6.8vw, 1.92rem) !important;
    }

    #hero .hero-road {
        width: 84vw;
        height: 40vh;
        bottom: 7vh;
    }

    #hero .hero-start-btn {
        width: min(82vw, 360px);
        min-height: 62px;
        margin-bottom: 0;
    }
}

@media (max-height: 740px) and (max-width: 760px) {
    #hero {
        padding-top: 22px !important;
    }

    #hero .hero-school-logo {
        width: 126px !important;
        padding: 9px;
    }

    #hero .hero-hook {
        margin-top: 12px;
        font-size: clamp(4rem, 22vw, 5.6rem) !important;
    }

    #hero .hero-credit {
        margin-top: 8px;
    }

    #hero .scroll-down-arrow {
        width: 54px;
        height: 54px;
    }

    #hero .hero-start-btn {
        min-height: 54px;
    }
}

body.large-text .hero-subhook,
body.large-text .hero-credit {
    font-size: 1.28rem !important;
}

body.large-text #typewriter-container .hero-subhook,
body.large-text #typewriter-container .hero-credit {
    font-size: 1.36rem !important;
}

body.large-text .speech-pull-quote {
    font-size: clamp(2.15rem, 11.5vw, 3rem) !important;
}

body.large-text .reaction-bubble,
body.large-text .speech-nav {
    transform: scale(1.04);
}

@media (max-width: 700px) {
    html,
    body {
        overflow: hidden;
    }

    .floating-tools-sidebar.right {
        right: 12px !important;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

    .music-toggle {
        left: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
        font-size: 0.95rem;
    }

    .lang-select {
        width: 132px;
        max-width: 36vw;
    }

    .principal-slide {
        padding: 26px 16px !important;
    }

    .school-logo,
    .hero-school-logo {
        max-width: 150px;
    }

    .intro-content-wrapper {
        padding: 18px;
    }

    .intro-poem {
        font-size: clamp(1.22rem, 6vw, 1.85rem) !important;
    }

    .atara-speech-slide {
        padding: 18px 12px 80px !important;
        align-items: start;
        overflow-y: auto;
    }

    .atara-portrait-wrap,
    .atara-portrait {
        min-height: min(46vh, 360px);
    }

    .atara-portrait-wrap {
        width: 100%;
        box-shadow: 0 18px 46px rgba(11, 33, 79, 0.2);
    }

    .atara-portrait {
        object-position: center 24%;
    }

    .atara-portrait-wrap figcaption {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .atara-portrait-wrap figcaption strong {
        font-size: clamp(1.65rem, 8vw, 2.4rem);
    }

    .atara-portrait-wrap figcaption span {
        font-size: clamp(0.92rem, 4vw, 1.12rem);
    }

    .speech-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 24px 16px 24px;
        border-radius: 0 0 8px 8px;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .speech-orbit { order: 0; }
    .speech-kicker { order: 1; }
    .speech-part-label { order: 2; }
    .speech-pull-quote { order: 3; }
    .speech-reading-time { order: 4; }
    .speech-controls { order: 5; }
    .speech-body { order: 6; }
    .reaction-row { order: 7; }
    .reaction-collector { order: 8; }

    .speech-kicker,
    .speech-reading-time {
        font-size: 0.92rem;
        margin-bottom: 8px;
    }

    .speech-part-label {
        padding: 6px 12px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .speech-pull-quote {
        font-size: clamp(1.55rem, 8.8vw, 2.35rem);
        line-height: 1.14;
        margin: 8px 0 14px;
        padding-inline-start: 12px;
    }

    .speech-controls {
        position: relative;
        inset: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 62px;
        padding: 8px 10px;
        margin: 8px 0 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 14px 34px rgba(11, 33, 79, 0.16);
        backdrop-filter: blur(12px);
        pointer-events: none;
    }

    .speech-nav {
        position: static;
        width: 56px;
        height: 56px;
        transform: none;
        font-size: 1.25rem;
        box-shadow: 0 12px 26px rgba(11, 33, 79, 0.28), 0 0 0 4px rgba(79, 209, 217, 0.18);
    }

    .speech-nav:hover,
    .speech-nav:focus-visible {
        transform: scale(1.05);
    }

    .speech-dots {
        position: static;
        transform: none;
        padding: 0 8px;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .speech-body {
        max-height: min(30vh, 260px);
        font-size: clamp(1.04rem, 4.6vw, 1.32rem);
        line-height: 1.54;
        padding-inline-end: 6px;
    }

    .reaction-bubble {
        width: 46px;
        height: 46px;
        font-size: 1.32rem;
    }

    .reaction-row {
        gap: 9px;
        margin-top: 14px;
    }

    .reaction-collector {
        min-height: 26px;
        margin-top: 8px;
    }

    .events-swiper {
        min-height: 390px;
        padding-top: 24px !important;
    }

}

@media (max-width: 420px) {
    .atara-speech-slide {
        padding: 14px 10px 74px !important;
    }

    .speech-shell {
        width: min(100%, 96vw);
    }

    .atara-portrait-wrap,
    .atara-portrait {
        min-height: min(42vh, 315px);
    }

    .speech-card {
        padding: 20px 14px 24px;
    }

    .speech-pull-quote {
        font-size: clamp(1.38rem, 8vw, 2rem);
    }

    .speech-body {
        max-height: min(29vh, 230px);
        font-size: clamp(1rem, 4.35vw, 1.2rem);
    }

    .speech-controls {
        min-height: 58px;
        padding: 7px 8px;
        margin: 8px 0 12px;
    }

    .speech-nav {
        width: 52px;
        height: 52px;
    }

    .speech-dot {
        width: 12px;
        height: 12px;
    }

    .speech-dot.is-active {
        width: 28px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Final mobile-first flow: natural scrolling, no intro gate, no vertical snap. */
html,
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100%;
}

body {
    background: #f7fbff;
}

#intro-sequence {
    display: none !important;
}

#main-content {
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    scroll-snap-type: none !important;
    scroll-behavior: smooth;
}

.principal-slide {
    scroll-snap-align: none !important;
}

#hero {
    isolation: isolate;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(circle at 22% 20%, rgba(79, 209, 217, 0.24), transparent 28%),
        radial-gradient(circle at 78% 76%, rgba(79, 209, 217, 0.16), transparent 26%);
    animation: heroAlive 9s ease-in-out infinite alternate;
}

@keyframes heroAlive {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

#hero > * {
    position: relative;
    z-index: 1;
}

#hero .hero-school-logo {
    animation: heroLogoSoftIn 980ms cubic-bezier(.2, .8, .2, 1) both, heroLogoFloat 5.8s ease-in-out 1.2s infinite;
}

#hero h1 { color: #0B214F; 
    animation: heroTitleSoftIn 1050ms 160ms cubic-bezier(.2, .8, .2, 1) both;
}

#typewriter-container .hero-badge {
    animation: heroTextSoftIn 680ms 240ms ease both;
}

#typewriter-container .hero-hook {
    animation: heroTextSoftIn 760ms 360ms ease both;
}

#typewriter-container .hero-subhook {
    animation: heroTextSoftIn 780ms 500ms ease both;
}

#typewriter-container .hero-credit {
    animation: heroTextSoftIn 780ms 640ms ease both;
}

#scroll-arrow {
    animation: arrowFloat 1.8s ease-in-out infinite, heroArrowGlow 2.8s ease-in-out infinite !important;
}

@keyframes heroLogoSoftIn {
    from { opacity: 0; transform: translateY(24px) scale(0.86); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

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

@keyframes heroTitleSoftIn {
    from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroTextSoftIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroArrowGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(79, 209, 217, 0); }
    50% { text-shadow: 0 0 18px rgba(79, 209, 217, 0.85); }
}

.atara-quote-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
    background:
        radial-gradient(circle at 12% 12%, rgba(79, 209, 217, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fcff 0%, #ffffff 48%, #eef8ff 100%);
    overflow: hidden;
}

.atara-quote-shell {
    width: min(1120px, 94vw);
    display: grid;
    grid-template-columns: minmax(330px, 0.86fr) minmax(380px, 1fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    direction: ltr;
}

.atara-quote-card {
    position: relative;
    min-height: min(72vh, 620px);
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #0B214F;
    box-shadow: 0 30px 80px rgba(11, 33, 79, 0.26);
    animation: ataraCardIn 780ms cubic-bezier(.2, .8, .2, 1) both;
}

.atara-quote-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(11, 33, 79, 0.72) 100%);
}

.atara-quote-img {
    width: 100%;
    height: 100%;
    min-height: min(72vh, 620px);
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
}

.atara-quote-card figcaption {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    gap: 5px;
    direction: rtl;
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.atara-quote-card figcaption strong {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
}

.atara-quote-card figcaption span {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 800;
}

.atara-typed-card {
    direction: rtl;
    padding: clamp(26px, 5vw, 56px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 70px rgba(11, 33, 79, 0.14);
    border: 1px solid rgba(18, 48, 104, 0.08);
    backdrop-filter: blur(14px);
    animation: ataraTextIn 920ms 160ms cubic-bezier(.2, .8, .2, 1) both;
}

.atara-typed-quote {
    display: grid;
    gap: 0.34em;
    min-height: 11em;
    color: #123068;
    font-family: "Varela Round", "Assistant", "Heebo", Arial, sans-serif;
    font-size: clamp(1.65rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.2;
}

.atara-typed-quote p {
    margin: 0;
}

.atara-typed-quote.is-typing::after {
    content: "";
    width: 0.8em;
    height: 4px;
    border-radius: 999px;
    background: #4FD1D9;
    animation: typingCursor 700ms steps(1) infinite;
}

@keyframes ataraCardIn {
    from { opacity: 0; transform: translateX(-28px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ataraTextIn {
    from { opacity: 0; transform: translateY(26px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.atara-speech-slide {
    min-height: 100vh;
    padding: clamp(30px, 5vw, 70px) clamp(16px, 4vw, 54px) !important;
    background:
        radial-gradient(circle at 84% 8%, rgba(79, 209, 217, 0.16), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
    overflow: visible;
}

.atara-speech-slide::before {
    display: none;
}

.atara-speech-slide .speech-shell {
    width: min(920px, 94vw);
    grid-template-columns: 1fr !important;
    direction: rtl;
}

.atara-speech-slide .atara-portrait-wrap {
    display: none !important;
}

.atara-speech-slide .speech-card {
    margin: 0 !important;
    min-height: auto;
    max-height: none;
    padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 64px) clamp(24px, 4vw, 42px);
    overflow: visible;
}

.atara-speech-slide .speech-pull-quote {
    color: #123068;
    font-family: "Heebo", "Assistant", Arial, sans-serif;
    font-size: clamp(2.1rem, 6vw, 4.2rem);
    line-height: 1.04;
    margin-bottom: 12px;
}

.atara-speech-slide .speech-body {
    max-height: none;
    overflow: visible;
    font-size: clamp(1.25rem, 2.4vw, 1.72rem);
    line-height: 1.62;
    padding: 0;
}

.atara-speech-slide .speech-body p {
    margin-bottom: 0.85em;
}

.atara-speech-slide .speech-controls {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 22px 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 40px rgba(11, 33, 79, 0.14);
    pointer-events: none;
}

.atara-speech-slide .speech-nav {
    position: static;
    transform: none;
    width: 62px;
    height: 62px;
}

.atara-speech-slide .speech-nav:hover,
.atara-speech-slide .speech-nav:focus-visible {
    transform: scale(1.06);
}

.atara-speech-slide .speech-dots {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.atara-speech-slide .reaction-row {
    justify-content: center;
}

.events-hub-section {
    overflow: hidden;
}

.events-swiper {
    width: min(100%, 1160px);
    margin-inline: auto;
}

@media (max-width: 760px) {
    #main-content {
        padding-bottom: 96px;
    }

    #hero {
        min-height: 100svh !important;
        padding: 28px 18px 74px !important;
    }

    #hero h1 { color: #0B214F; 
        font-size: clamp(1.65rem, 8vw, 2.45rem) !important;
    }

    #typewriter-container {
        min-height: 132px !important;
    }

    .hero-hook {
        font-size: clamp(1.42rem, 7vw, 2.1rem) !important;
    }

    .atara-quote-slide {
        min-height: auto;
        padding: 28px 14px 42px !important;
    }

    .atara-quote-shell {
        width: min(100%, 94vw);
        grid-template-columns: 1fr;
        gap: 0;
    }

    .atara-quote-card {
        min-height: min(48svh, 390px);
        border-radius: 8px 8px 0 0;
    }

    .atara-quote-img {
        min-height: min(48svh, 390px);
        object-position: center 22%;
    }

    .atara-typed-card {
        border-radius: 0 0 8px 8px;
        padding: 24px 18px 28px;
    }

    .atara-typed-quote {
        min-height: 9em;
        font-size: clamp(1.32rem, 6.4vw, 2rem);
        line-height: 1.24;
    }

    .atara-speech-slide {
        min-height: auto;
        padding: 24px 12px 42px !important;
        align-items: stretch;
    }

    .atara-speech-slide .speech-shell {
        width: min(100%, 94vw);
    }

    .atara-speech-slide .speech-card {
        display: flex;
        flex-direction: column;
        padding: 24px 16px 22px;
    }

    .speech-orbit { display: none; }
    .speech-kicker { order: 1; }
    .speech-part-label { order: 2; }
    .speech-pull-quote { order: 3; }
    .speech-reading-time { order: 4; }
    .speech-controls { order: 5; }
    .speech-body { order: 6; }
    .reaction-row { order: 7; }
    .reaction-collector { order: 8; }

    .atara-speech-slide .speech-pull-quote {
        font-size: clamp(1.85rem, 11vw, 2.7rem);
    }

    .atara-speech-slide .speech-body {
        font-size: clamp(1.15rem, 5.15vw, 1.42rem);
        line-height: 1.58;
    }

    .atara-speech-slide .speech-controls {
        justify-content: space-between;
        gap: 8px;
        margin: 14px 0 18px;
        padding: 8px 10px;
    }

    .atara-speech-slide .speech-nav {
        width: 56px;
        height: 56px;
    }

    .atara-speech-slide .reaction-row {
        gap: 10px;
    }

    .speech-final-note {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .speech-final-note img {
        width: min(190px, 58vw);
        justify-self: center;
    }

    .atara-summary-slide {
        min-height: 100svh;
        padding: 24px 14px 88px;
    }

    .atara-summary-card {
        width: min(100%, 94vw);
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px 26px;
    }

    .atara-summary-copy p {
        max-width: 16ch;
        font-size: clamp(1.42rem, 7vw, 2rem);
        line-height: 1.38;
    }

    .events-hub-section {
        padding-block: 14px 34px;
    }

    .section-title {
        padding-inline: 14px;
        text-align: center;
        margin-bottom: 18px !important;
        font-size: clamp(1.72rem, 8vw, 2.38rem) !important;
    }

    .events-swiper {
        direction: ltr;
        width: min(100%, 360px) !important;
        max-width: calc(100vw - 30px) !important;
        margin-inline: auto !important;
        box-sizing: border-box;
        min-height: 400px;
        padding: 10px 0 80px !important;
        overflow: hidden !important;
    }

    .event-slide {
        width: 100% !important;
        height: min(62vh, 460px) !important;
        opacity: 0;
        filter: saturate(0.7) brightness(0.92);
    }

    .event-slide .event-card-inner {
        direction: rtl;
        position: relative;
        left: 0; margin-inline: auto;
        width: min(85vw, 320px);
        margin-inline: auto;
    }

    .swiper-slide-active.event-slide {
        opacity: 1;
        transform: none !important;
    }

    .swiper-slide-prev.event-slide,
    .swiper-slide-next.event-slide {
        opacity: 0;
        filter: saturate(0.65) brightness(0.95);
    }

    .event-overlay {
        padding: 14px 12px 58px;
    }

    .event-title {
        font-size: clamp(1.08rem, 5.2vw, 1.42rem) !important;
        line-height: 1.12;
    }

    .heart-btn {
        width: 48px;
        height: 48px;
    }

    .event-back-glass {
        width: min(90%, 292px);
        padding: 18px 16px;
        gap: 9px;
    }

    .event-card-back h3 {
        font-size: clamp(1.18rem, 6vw, 1.52rem);
    }

    .event-card-back p {
        font-size: clamp(0.98rem, 4.4vw, 1.08rem);
    }

    .events-swiper .swiper-button-next {
        left: calc(50% - 62px) !important;
        top: auto !important;
        bottom: 8px !important;
        right: auto !important;
        transform: none !important;
    }

    .events-swiper .swiper-button-prev {
        right: calc(50% - 62px) !important;
        top: auto !important;
        bottom: 8px !important;
        left: auto !important;
        transform: none !important;
    }

    .events-swiper .swiper-slide-active {
        transform: none !important;
    }
}

@media (max-width: 420px) {
    .atara-speech-slide .speech-card {
        padding: 22px 14px 20px;
    }

    .atara-speech-slide .speech-controls {
        padding: 7px 8px;
    }

    .atara-speech-slide .speech-nav {
        width: 52px;
        height: 52px;
    }

    .event-slide {
        width: 100% !important;
        height: min(60vh, 440px) !important;
    }

    .event-slide .event-card-inner {
        direction: rtl;
        left: 0; margin-inline: auto;
        width: min(88vw, 320px);
    }
}

/* Reference-image gate: use the approved artwork as the actual first screen. */
#hero.hero-reference-gate {
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    background:
        url("assets/home-gate-reference.png") center top / auto 100% no-repeat,
        #ffffff !important;
    border-radius: 0 !important;
    animation: referenceGateIn 1050ms cubic-bezier(.2, .8, .2, 1) both;
}

#hero.hero-reference-gate::before,
#hero.hero-reference-gate .hero-watercolor,
#hero.hero-reference-gate .hero-road,
#hero.hero-reference-gate .hero-sparkles,
#hero.hero-reference-gate .hero-home-content {
    display: none !important;
}

#hero.hero-reference-gate::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0.6% !important;
    right: max(2%, calc((100vw - 390px) / 2 + 8px)) !important;
    z-index: 20 !important;
    width: 104px !important;
    height: 96px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 42%, rgba(255, 255, 255, 0.82) 58%, rgba(255, 255, 255, 0) 76%) !important;
    filter: blur(1px) !important;
    pointer-events: none !important;
}

#hero.hero-reference-gate .scroll-down-arrow,
#hero.hero-reference-gate .hero-start-btn {
    position: absolute !important;
    z-index: 5 !important;
    opacity: 0 !important;
    color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    animation: none !important;
}

#hero.hero-reference-gate .scroll-down-arrow {
    left: 50% !important;
    top: 85.1% !important;
    bottom: auto !important;
    width: min(18vw, 88px) !important;
    height: min(18vw, 88px) !important;
    transform: translate(-50%, -50%) !important;
}

#hero.hero-reference-gate .hero-start-btn {
    left: 50% !important;
    bottom: 2.4% !important;
    width: min(74vw, 440px) !important;
    height: min(9vh, 82px) !important;
    min-height: 0 !important;
    transform: translateX(-50%) !important;
}

#hero.hero-reference-gate .hero-start-btn:focus-visible,
#hero.hero-reference-gate .scroll-down-arrow:focus-visible {
    opacity: 1 !important;
    outline: 3px solid #24c5cf !important;
    outline-offset: 4px !important;
    border-radius: 999px !important;
}

@keyframes referenceGateIn {
    from { opacity: 0; transform: scale(1.025); filter: blur(10px) saturate(0.86); }
    to { opacity: 1; transform: scale(1); filter: blur(0) saturate(1); }
}

@media (min-aspect-ratio: 7 / 10) {
    #hero.hero-reference-gate {
        background-size: contain !important;
        background-position: center top !important;
    }
}

/* Final home lock: keep the approved gate above older hero rules. */
#hero {
    min-height: 100svh !important;
    padding: clamp(24px, 5vh, 54px) 18px clamp(28px, 5vh, 44px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: clamp(16px, 2.4vh, 28px) !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    text-align: center !important;
    color: #061d59 !important;
    background: #ffffff !important;
    border-radius: 0 0 clamp(28px, 8vw, 62px) clamp(28px, 8vw, 62px) !important;
}

#hero .hero-home-content {
    position: relative !important;
    z-index: 3 !important;
    width: min(100%, 720px) !important;
    min-height: 0 !important;
    padding-inline: 0 !important;
    display: grid !important;
    justify-items: center !important;
    align-content: start !important;
    gap: clamp(10px, 1.7vh, 18px) !important;
    color: #061d59 !important;
    text-shadow: none !important;
}

#hero .hero-watercolor,
#hero .hero-road,
#hero .hero-sparkles {
    position: absolute !important;
    pointer-events: none !important;
}

#hero .hero-watercolor {
    inset: 0 !important;
    z-index: 0 !important;
}

#hero .hero-road {
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1 !important;
}

#hero .hero-sparkles {
    inset: 0 !important;
    z-index: 2 !important;
}

#hero .hero-school-logo {
    width: clamp(132px, 24vw, 250px) !important;
    max-height: none !important;
    margin: 0 0 clamp(8px, 1.5vh, 16px) !important;
    padding: clamp(10px, 2.4vw, 18px) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 12px 30px rgba(6, 29, 89, 0.14) !important;
    filter: none !important;
}

#hero h1 {
    margin: 0 !important;
    color: #061d59 !important;
    font-size: clamp(2.28rem, 8.8vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

#hero .hero-badge {
    margin: clamp(4px, 0.7vh, 8px) 0 clamp(10px, 1.6vh, 18px) !important;
    padding: 7px 22px !important;
    color: #2dbfc9 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid #2fc7d0 !important;
    border-radius: 999px !important;
    font-size: clamp(1rem, 3.8vw, 1.45rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#hero .hero-hook {
    margin: clamp(18px, 3.6vh, 48px) 0 0 !important;
    color: #061d59 !important;
    font-size: clamp(4.5rem, 22vw, 10rem) !important;
    font-weight: 900 !important;
    line-height: 0.78 !important;
    white-space: nowrap !important;
    transform: rotate(-2deg) !important;
}

#hero .hero-subhook {
    margin: 0 !important;
    color: #061d59 !important;
    font-size: clamp(1.38rem, 5.4vw, 2.1rem) !important;
    font-weight: 800 !important;
    line-height: 1.38 !important;
}

#hero .hero-credit {
    margin: clamp(14px, 2.3vh, 26px) 0 0 !important;
    color: #061d59 !important;
    font-size: clamp(1rem, 3.2vw, 1.22rem) !important;
    font-weight: 800 !important;
}

#hero .scroll-down-arrow {
    position: relative !important;
    bottom: auto !important;
    z-index: 4 !important;
    margin-top: auto !important;
    width: clamp(58px, 14vw, 78px) !important;
    height: clamp(58px, 14vw, 78px) !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0784a8 !important;
    font-size: clamp(1.7rem, 5vw, 2.3rem) !important;
    box-shadow: 0 14px 34px rgba(5, 54, 103, 0.18) !important;
    cursor: pointer !important;
}

#hero .hero-start-btn {
    position: relative !important;
    z-index: 4 !important;
    width: min(76vw, 440px) !important;
    min-height: 64px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #53d8db, #37c8cc) !important;
    color: #061d59 !important;
    font-size: clamp(1.42rem, 5.2vw, 2.1rem) !important;
    font-weight: 900 !important;
}

@media (max-width: 760px) {
    #hero {
        height: 100svh !important;
        min-height: 100svh !important;
        padding: 22px 18px 20px !important;
        gap: 8px !important;
    }

    #hero .hero-school-logo {
        width: clamp(112px, 31vw, 140px) !important;
        padding: 9px !important;
    }

    #hero h1 { color: #0B214F; 
        font-size: clamp(2rem, 9.4vw, 2.8rem) !important;
    }

    #hero .hero-badge {
        padding: 6px 16px !important;
        font-size: clamp(0.9rem, 3.8vw, 1.08rem) !important;
    }

    #hero .hero-hook {
        margin-top: 12px !important;
        font-size: clamp(3.9rem, 21vw, 5.5rem) !important;
    }

    #hero .hero-subhook {
        font-size: clamp(1.14rem, 5.4vw, 1.44rem) !important;
    }

    #hero .hero-road {
        top: 58% !important;
        bottom: auto !important;
        width: 88vw !important;
        height: 35vh !important;
        opacity: 0.92 !important;
    }

    #hero .hero-start-btn {
        width: min(82vw, 360px) !important;
        min-height: 54px !important;
        font-size: clamp(1.24rem, 5vw, 1.52rem) !important;
    }

    #hero .scroll-down-arrow {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.55rem !important;
    }

    #hero .hero-credit {
        margin-top: 8px !important;
        font-size: clamp(0.86rem, 3.4vw, 1rem) !important;
    }

    #hero .hero-divider {
        margin-bottom: 6px !important;
    }

    .floating-tools-sidebar.right {
        display: none !important;
    }
}

/* Absolute last gate override. */
#hero.hero-reference-gate {
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    display: block !important;
    background: url("assets/home-gate-reference.png") center top / auto 100% no-repeat, #ffffff !important;
    overflow: hidden !important;
}

#hero.hero-reference-gate::before,
#hero.hero-reference-gate::after,
#hero.hero-reference-gate .hero-watercolor,
#hero.hero-reference-gate .hero-road,
#hero.hero-reference-gate .hero-sparkles,
#hero.hero-reference-gate .hero-home-content {
    display: none !important;
}

#hero.hero-reference-gate .scroll-down-arrow {
    position: absolute !important;
    left: 50% !important;
    top: 85.1% !important;
    bottom: auto !important;
    z-index: 5 !important;
    width: min(18vw, 88px) !important;
    height: min(18vw, 88px) !important;
    min-height: 0 !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
}

#hero.hero-reference-gate::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: max(0%, calc((100vw - 390px) / 2)) !important;
    z-index: 4 !important;
    width: 122px !important;
    height: 86px !important;
    border-radius: 0 0 0 48px !important;
    background: #ffffff !important;
    filter: none !important;
    pointer-events: none !important;
}

#hero.hero-reference-gate .hero-start-btn {
    position: absolute !important;
    left: 50% !important;
    bottom: 2.4% !important;
    z-index: 5 !important;
    width: min(74vw, 440px) !important;
    height: min(9vh, 82px) !important;
    min-height: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
}

@media (min-width: 761px) {
    #hero.hero-reference-gate {
        background:
            radial-gradient(ellipse at 13% 84%, rgba(11, 100, 154, 0.32), transparent 36%),
            radial-gradient(ellipse at 86% 58%, rgba(69, 190, 214, 0.32), transparent 42%),
            radial-gradient(ellipse at 22% 18%, rgba(96, 215, 225, 0.18), transparent 32%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(235, 250, 253, 0.12) 42%, rgba(235, 250, 253, 0.12) 58%, rgba(255, 255, 255, 0.32)),
            #ffffff !important;
    }

    #hero.hero-reference-gate::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        inset: -7% !important;
        z-index: 0 !important;
        background: url("assets/home-gate-reference.png") center center / cover no-repeat !important;
        filter: blur(20px) saturate(1.1) brightness(1.02) !important;
        opacity: 0.5 !important;
        transform: scale(1.08) !important;
        pointer-events: none !important;
    }

    #hero.hero-reference-gate .hero-watercolor {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;
        background: url("assets/home-gate-reference.png") center top / auto 100% no-repeat !important;
        filter: drop-shadow(0 24px 50px rgba(6, 29, 89, 0.1)) !important;
        pointer-events: none !important;
    }
}


/* --- NEW UPDATES FOR SCREEN 2 (ATARA SPEECH) --- */

/* Reorder elements so arrows and emojis are at the very bottom */
@media (max-width: 1000px) {
    .atara-speech-slide .speech-body { order: 5 !important; margin-bottom: 12px !important; }
    .atara-speech-slide .reaction-row { order: 6 !important; margin-top: 0 !important; margin-bottom: 8px !important; }
    .atara-speech-slide .speech-controls { order: 7 !important; margin-top: 0 !important; }
    .atara-speech-slide .reaction-collector { order: 8 !important; }
    
    /* Ensure the body is the only thing that scrolls and takes up available space */
    .atara-speech-slide .speech-body {
        flex: 1 1 auto !important;
        max-height: min(40vh, 320px) !important;
        overflow-y: auto !important;
    }
}

/* Crazier emoji selection animation */
@keyframes crazyEmoji {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.4) rotate(-25deg) translateY(-12px); filter: brightness(1.1); }
    40% { transform: scale(1.4) rotate(25deg) translateY(-12px); filter: brightness(1.1); }
    60% { transform: scale(1.4) rotate(-15deg) translateY(-12px); filter: brightness(1.1); }
    80% { transform: scale(1.4) rotate(15deg) translateY(-12px); filter: brightness(1.1); }
    100% { 
        transform: scale(1.18) rotate(0deg) translateY(-6px); 
        box-shadow: 0 20px 40px rgba(11,33,79,0.3), 0 0 0 5px #4FD1D9; 
    }
}

.reaction-bubble.is-active {
    animation: crazyEmoji 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    background: linear-gradient(145deg, #d3f9fb, #ffffff) !important;
    border: 2px solid #4FD1D9 !important;
    z-index: 10;
}


/* --- NEW UPDATES FOR UX PROMINENCE --- */

/* 1. Hero scroll down arrow: Most prominent color, larger, pulsing */
#hero .scroll-down-arrow {
    background: #4FD1D9 !important;
    color: #0B214F !important;
    box-shadow: 0 0 20px rgba(79, 209, 217, 0.6) !important;
    animation: bounceDown 1.5s infinite !important;
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* 2. Atara Speech Nav (Swipe hand animation) */
.nav-swipe {
    font-size: 2.2rem !important;
    color: #4FD1D9 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    animation: swipeHand 2s ease-in-out infinite !important;
}
@keyframes swipeHand {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
}
/* Right swipe for "previous" in RTL */
#speech-prev.nav-swipe {
    animation: swipeHandRight 2s ease-in-out infinite !important;
}
@keyframes swipeHandRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

/* 3. Screen 3: "לעבור לקרוסלת התמונות" Button */
.speech-gallery-jump {
    background: #4FD1D9 !important;
    color: #0B214F !important;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
    box-shadow: 0 8px 24px rgba(79, 209, 217, 0.5), 0 0 0 4px rgba(79, 209, 217, 0.2) !important;
    animation: pulsePop 1.5s infinite alternate !important;
}
@keyframes pulsePop {
    from { transform: scale(1); box-shadow: 0 8px 24px rgba(79, 209, 217, 0.5), 0 0 0 4px rgba(79, 209, 217, 0.2); }
    to { transform: scale(1.05); box-shadow: 0 12px 32px rgba(79, 209, 217, 0.8), 0 0 0 8px rgba(79, 209, 217, 0.4); }
}

/* 4. Gallery: Emphasize "לחצו על התמונות" */
.events-tap-hint {
    color: #4FD1D9 !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    background: rgba(11, 33, 79, 0.8) !important;
    padding: 8px 24px !important;
    border-radius: 999px !important;
    border: 2px solid #4FD1D9 !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    animation: shakeText 3s infinite !important;
}
@keyframes shakeText {
    0%, 90%, 100% { transform: rotate(0); }
    92% { transform: rotate(-5deg) scale(1.1); }
    94% { transform: rotate(5deg) scale(1.1); }
    96% { transform: rotate(-5deg) scale(1.1); }
    98% { transform: rotate(5deg) scale(1.1); }
}

/* 5. Gallery: Heart outside the frame */
.gallery-heart-out {
    position: absolute !important;
    z-index: 20 !important;
    bottom: -25px !important;
    right: -15px !important;
    width: auto !important;
    height: 60px !important;
    padding: 0 20px !important;
    border-radius: 30px !important;
    background: #ff2a5f !important;
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px rgba(255, 42, 95, 0.4), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 3px solid white !important;
    transform-origin: center !important;
}
.gallery-heart-out i { color: white !important; font-size: 1.5rem !important; }
.gallery-heart-out .like-label { display: inline-block !important; margin: 0 4px !important; }
.gallery-heart-out.liked {
    background: #e0003b !important;
    animation: popHeart 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
@keyframes popHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
