:root {
    --color-sunrise: #F2AF00;
    --color-sky: #0B4AA7;
    --color-burgundy: #8C1F1F;
    --color-cream: #FFF5E6;
    --color-charcoal: #1F1A1A;
    --color-slate: #3F3D56;
    --max-width: 1100px;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 18px 36px rgba(140, 31, 31, 0.25);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 22px 44px rgba(140, 31, 31, 0.32);
        transform: translateY(-4px);
    }
    100% {
        box-shadow: 0 18px 36px rgba(140, 31, 31, 0.25);
        transform: translateY(0);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-charcoal);
    background: #FFFFFF;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 4px solid var(--color-burgundy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5vw;
    backdrop-filter: blur(6px);
    opacity: 0;
    animation: fade-down 0.7s ease-out 0.05s forwards;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 80px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-weight: 700;
    color: var(--color-burgundy);
}

.school-motto {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-slate);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.nav-toggle:focus-visible,
.nav-toggle:hover {
    box-shadow: 0 0 0 3px rgba(11, 74, 167, 0.25);
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--color-burgundy);
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.site-nav {
    position: static;
    border: none;
    backdrop-filter: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fade-up 0.55s ease-out forwards;
}

.site-nav a:nth-child(1) {
    animation-delay: 0.15s;
}

.site-nav a:nth-child(2) {
    animation-delay: 0.25s;
}

.site-nav a:nth-child(3) {
    animation-delay: 0.35s;
}

.site-nav a:nth-child(4) {
    animation-delay: 0.45s;
}

.site-nav a:nth-child(5) {
    animation-delay: 0.55s;
}

.site-nav a:nth-child(6) {
    animation-delay: 0.65s;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--color-sunrise);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-in-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    display: grid;
    gap: 4rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    padding: 6rem 5vw 4rem;
    background: linear-gradient(135deg, rgba(12, 74, 167, 0.08), rgba(242, 175, 0, 0.22));
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--color-burgundy);
    margin-bottom: 1rem;
}

.hero-content {
    opacity: 0;
    animation: hero-reveal 0.9s ease-out 0.1s forwards;
}

.hero-content p {
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.cta {
    display: inline-block;
    background: var(--color-sunrise);
    color: #000;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(242, 175, 0, 0.35);
}

.hero-visual {
    text-align: right;
}

.hero-visual img {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    animation: hero-float 8s ease-in-out 1.4s infinite;
}

section {
    padding: 4rem 5vw;
}

section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-burgundy);
    margin-bottom: 1.5rem;
}

.about {
    background: var(--color-cream);
}

.facts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.facts-grid article {
    background: #fff;
    border-left: 6px solid var(--color-sky);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(12, 74, 167, 0.12);
    opacity: 0;
    animation: card-rise 0.8s ease-out forwards;
}

.facts-grid article:nth-child(2) {
    animation-delay: 0.1s;
}

.facts-grid article:nth-child(3) {
    animation-delay: 0.2s;
}

.facts-grid article:nth-child(4) {
    animation-delay: 0.3s;
}

.facts-grid article:nth-child(5) {
    animation-delay: 0.4s;
}

.facts-grid article:nth-child(6) {
    animation-delay: 0.5s;
}

.facts-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--color-sky);
}

.phase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    font-weight: 500;
}

.mission {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mission-text {
    opacity: 0;
    animation: slide-in-left 0.85s ease-out 0.35s forwards;
}

.mission-text ul {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.mission-text li {
    padding-left: 1.5rem;
    position: relative;
}

.mission-text li::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-sunrise);
    left: 0;
    top: 0.5rem;
}

.values {
    background: linear-gradient(135deg, var(--color-burgundy), #a02a2a);
    color: #fff;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(140, 31, 31, 0.25);
    opacity: 0;
    animation: slide-in-right 0.9s ease-out 0.45s forwards;
}

.values h2 {
    color: #fff;
}

.value-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.value-tags span {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.55s ease-out forwards;
}

.value-tags span:nth-child(1) {
    animation-delay: 0.65s;
}

.value-tags span:nth-child(2) {
    animation-delay: 0.75s;
}

.value-tags span:nth-child(3) {
    animation-delay: 0.85s;
}

.value-tags span:nth-child(4) {
    animation-delay: 0.95s;
}

.value-tags span:nth-child(5) {
    animation-delay: 1.05s;
}

.academics {
    background: #f4f7ff;
}

.academics-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 2.5rem;
}

.academics-grid article {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    border-top: 6px solid var(--color-sunrise);
    box-shadow: 0 12px 30px rgba(242, 175, 0, 0.15);
    opacity: 0;
    animation: card-rise 0.8s ease-out 0.2s forwards;
}

.academics-grid h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-burgundy);
}

blockquote {
    border-left: 6px solid var(--color-sky);
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 74, 167, 0.15);
    opacity: 0;
    animation: fade-up 0.85s ease-out 0.4s forwards;
}

blockquote p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

blockquote cite {
    font-size: 0.95rem;
    color: var(--color-slate);
}

.life {
    background: radial-gradient(circle at top left, rgba(242, 175, 0, 0.25), transparent), #fff;
}

.life-content {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.life-content p {
    opacity: 0;
    animation: slide-in-left 0.8s ease-out 0.25s forwards;
}

.life ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.life li {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(11, 74, 167, 0.06);
    font-weight: 500;
    opacity: 0;
    animation: card-rise 0.8s ease-out 0.2s forwards;
}

.life li:nth-child(2) {
    animation-delay: 0.3s;
}

.life li:nth-child(3) {
    animation-delay: 0.4s;
}

.life li:nth-child(4) {
    animation-delay: 0.5s;
}

.life li:nth-child(5) {
    animation-delay: 0.6s;
}

.life li:nth-child(6) {
    animation-delay: 0.7s;
}

.poem {
    background: linear-gradient(135deg, rgba(11, 74, 167, 0.08), rgba(140, 31, 31, 0.12));
}

.poem-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
}

.poem-toggle h2 {
    margin-bottom: 0;
}

.toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-burgundy);
    position: relative;
    transition: transform 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-icon::before {
    width: 14px;
    height: 3px;
}

.toggle-icon::after {
    width: 3px;
    height: 14px;
    transition: transform 0.3s ease;
}

.poem-toggle[aria-expanded="true"] .toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.poem-toggle:hover .toggle-icon,
.poem-toggle:focus-visible .toggle-icon {
    transform: scale(1.1);
}

.poem-toggle:focus-visible {
    outline: 3px solid var(--color-sunrise);
    outline-offset: 4px;
}

.poem-content {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: auto 1fr;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
    opacity: 1;
}

.poem-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.poem-author {
    text-align: center;
    opacity: 0;
    animation: slide-in-left 0.85s ease-out 0.25s forwards;
}

.poem-author img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--color-sunrise);
    box-shadow: 0 12px 28px rgba(242, 175, 0, 0.3);
    margin-bottom: 1rem;
}

.poem-author .author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-burgundy);
}

.poem-author .author-title {
    font-size: 0.9rem;
    color: var(--color-sky);
    font-weight: 500;
    margin-top: 0.25rem;
}

.poem-text {
    background: #fff;
    padding: 2.5rem;
    border-radius: 18px;
    border-left: 6px solid var(--color-burgundy);
    box-shadow: 0 16px 36px rgba(140, 31, 31, 0.12);
    opacity: 0;
    animation: slide-in-right 0.85s ease-out 0.35s forwards;
}

.poem-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-charcoal);
}

.poem-text p:last-child {
    margin-bottom: 0;
    text-align: center;
    font-size: 1.15rem;
}

@media (max-width: 700px) {
    .poem-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .poem-author img {
        width: 140px;
        height: 140px;
    }

    .poem-text {
        padding: 1.75rem;
    }
}

.founders {
    background: linear-gradient(135deg, rgba(255, 245, 230, 0.8), rgba(242, 175, 0, 0.18));
    text-align: center;
}

.founders-intro {
    max-width: 760px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: var(--color-slate);
    opacity: 0;
    animation: fade-up 0.85s ease-out 0.25s forwards;
}

.founders-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.founders-grid article {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem 1.9rem;
    box-shadow: 0 18px 36px rgba(11, 74, 167, 0.12);
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    opacity: 0;
    animation: card-rise 0.85s ease-out forwards;
}

.founders-grid article:nth-child(1) {
    animation-delay: 0.35s;
}

.founders-grid article:nth-child(2) {
    animation-delay: 0.45s;
}

.founders-grid article:nth-child(3) {
    animation-delay: 0.55s;
}

.founder-photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 6px solid rgba(11, 74, 167, 0.1);
    box-shadow: 0 16px 32px rgba(11, 74, 167, 0.18);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.founders-grid article:hover .founder-photo img,
.founders-grid article:focus-within .founder-photo img {
    transform: scale(1.08);
}

.founders-grid h3 {
    font-size: 1.2rem;
    color: var(--color-burgundy);
}

.founders-grid p {
    color: var(--color-charcoal);
    font-size: 0.98rem;
    line-height: 1.5;
}

.admissions {
    background: linear-gradient(135deg, rgba(140, 31, 31, 0.92), rgba(11, 74, 167, 0.85));
    color: #fff;
    text-align: center;
}

.admissions h2 {
    color: #fff;
}

.admissions-cta {
    margin-top: 2rem;
    display: inline-flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    opacity: 0;
    animation: card-rise 0.85s ease-out 0.3s forwards, glow-pulse 6s ease-in-out 3s infinite alternate;
}

.admissions .cta {
    background: #fff;
    color: var(--color-burgundy);
}

.contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-grid article {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    animation: card-rise 0.85s ease-out forwards;
}

.contact-grid article:nth-child(1) {
    animation-delay: 0.25s;
}

.contact-grid article:nth-child(2) {
    animation-delay: 0.35s;
}

.contact-grid article:nth-child(3) {
    animation-delay: 0.45s;
}

.contact-grid article:nth-child(4) {
    animation-delay: 0.55s;
}

.contact-grid article:hover,
.contact-grid article:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.contact-grid h3 {
    color: var(--color-sky);
    margin-bottom: 0.75rem;
}

.map-wrapper {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}

.map-wrapper iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(11, 74, 167, 0.2);
    opacity: 0;
    animation: card-rise 0.85s ease-out 0.2s forwards;
}

.map-details {
    background: rgba(242, 175, 0, 0.12);
    border-left: 5px solid var(--color-burgundy);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    animation: card-rise 0.8s ease-out 0.2s forwards;
}

.map-details h3 {
    color: var(--color-burgundy);
}

.map-details p {
    color: var(--color-charcoal);
}

.site-footer {
    text-align: center;
    padding: 1.5rem 5vw 2.5rem;
    background: var(--color-charcoal);
    color: #fff;
    font-size: 0.9rem;
}

.site-footer .created-by {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .created-by strong {
    color: var(--color-sunrise);
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-nav a,
    .hero-content,
    .hero-visual img,
    .mission-text,
    .values,
    .value-tags span,
    .founders-intro,
    .founders-grid article,
    .founder-photo img,
    .facts-grid article,
    .academics-grid article,
    blockquote,
    .life-content p,
    .life li,
    .poem-author,
    .poem-text,
    .admissions-cta,
    .contact-grid article,
    .map-wrapper iframe,
    .map-details {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.6rem 1.2rem;
        color: var(--color-charcoal);
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 5rem;
    }

    .hero-visual {
        text-align: center;
    }

    .hero-visual img {
        max-width: 260px;
    }
}
