:root {
    --bg: #f6f2ed;
    --surface: #fffdfa;
    --surface-strong: #ffffff;
    --surface-tint: #f2f5f8;
    --line: #d9e2ea;
    --line-soft: rgba(24, 50, 74, 0.10);
    --text: #213345;
    --muted: #667788;
    --accent: #9f2d32;
    --accent-deep: #7b1d22;
    --accent-soft: #f6e8e7;
    --ink-soft: #edf3f8;
    --shadow-soft: 0 18px 45px rgba(25, 45, 66, 0.08);
    --shadow-card: 0 20px 50px rgba(25, 45, 66, 0.10);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1380px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(159, 45, 50, 0.07), transparent 22%),
        linear-gradient(180deg, #fbf8f4 0%, #f6f2ed 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
}

.site-shell {
    width: 100%;
    overflow: hidden;
}

.container {
    width: min(var(--container), calc(100% - clamp(28px, 4vw, 64px)));
    margin: 0 auto;
}

.hero-band {
    position: relative;
    padding: 24px 0 72px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32)),
        linear-gradient(135deg, #eef4f8 0%, #fff8f3 48%, #f3eeea 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
    opacity: 0.6;
}

.hero-orb-one {
    top: -120px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(159, 45, 50, 0.16), rgba(159, 45, 50, 0));
    animation: floatOrb 18s ease-in-out infinite;
}

.hero-orb-two {
    right: -80px;
    top: 80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(31, 72, 103, 0.16), rgba(31, 72, 103, 0));
    animation: floatOrb 20s ease-in-out infinite reverse;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(24, 50, 74, 0.08);
    box-shadow: var(--shadow-soft);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text h1,
.brand-text p {
    margin: 0;
}

.brand-text h1,
.hero-copy h2,
.section-intro h3,
.message-aside h3,
.institution-card h4 {
    font-family: "Source Serif 4", Georgia, serif;
}

.brand-text h1 {
    font-size: clamp(0.96rem, 0.55vw + 0.9rem, 1.12rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.95rem;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(24, 50, 74, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(25, 45, 66, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.topbar-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.topbar-link {
    border: 1px solid rgba(24, 50, 74, 0.10);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(25, 45, 66, 0.06);
}

.topbar-link:hover,
.button:hover {
    transform: translateY(-1px);
}

.topbar-link-secondary,
.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 16px 32px rgba(159, 45, 50, 0.22);
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(24, 50, 74, 0.14);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: center;
}

.hero-copy {
    padding: 22px 0 0;
}

.hero-eyebrow,
.section-kicker,
.focus-label,
.contact-label,
.hero-note-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-eyebrow,
.section-kicker,
.focus-label,
.contact-label {
    color: var(--accent);
}

.hero-copy h2 {
    margin: 18px 0 18px;
    font-size: clamp(3rem, 5vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 10.5ch;
}

.hero-description {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(1rem, 0.4vw + 0.95rem, 1.08rem);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.hero-stat-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(24, 50, 74, 0.08);
    box-shadow: 0 14px 32px rgba(25, 45, 66, 0.06);
    backdrop-filter: blur(10px);
}

.hero-stat-card span,
.fact-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text);
}

.hero-showcase {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.hero-banner-panel,
.hero-note-card,
.banner-carousel-square {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(24, 50, 74, 0.08);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.hero-banner-panel {
    padding: 14px;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.hero-note-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(31, 72, 103, 0.06), rgba(31, 72, 103, 0.02)),
        #ffffff;
}

.hero-note-label {
    color: #1f4867;
}

.hero-note-card p {
    margin: 16px 0 0;
    line-height: 1.8;
    color: var(--muted);
}

.hero-layout > *,
.hero-side-grid > *,
.focus-grid > *,
.about-grid > *,
.about-facts > *,
.message-layout > *,
.contact-grid > *,
.footer-layout > *,
.institution-grid > * {
    min-width: 0;
}

.banner-carousel {
    position: relative;
}

.banner-track {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 8px);
    background: #d8e2ea;
}

.banner-carousel-wide .banner-track {
    aspect-ratio: 16 / 8.8;
}

.banner-carousel-square {
    padding: 12px;
}

.banner-carousel-square .banner-track {
    aspect-ratio: 1 / 1;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 33, 47, 0.03), rgba(16, 33, 47, 0.16)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%);
    z-index: 1;
    pointer-events: none;
}

.banner-slide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--banner-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.02);
    transform: scale(1.06);
    opacity: 0.3;
}

.banner-media {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
}

.banner-media-item {
    width: 100%;
    height: 100%;
    display: block;
    object-position: center;
}

.banner-carousel-wide .banner-media-item {
    object-fit: cover;
}

.banner-carousel-square .banner-media-item,
.banner-slide-video .banner-media-item {
    object-fit: contain;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 50, 74, 0.18);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.banner-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.banner-dot:hover {
    transform: translateY(-1px);
}

.section-band {
    position: relative;
    padding: 88px 0;
    background: var(--surface);
}

.section-band-soft {
    background:
        linear-gradient(180deg, rgba(31, 72, 103, 0.04), rgba(31, 72, 103, 0.02)),
        #fbfcfd;
}

.section-band-quiet {
    background:
        linear-gradient(135deg, rgba(159, 45, 50, 0.04), rgba(255, 255, 255, 0)),
        #f9f5f1;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-intro h3,
.message-aside h3 {
    margin: 16px 0 14px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.section-intro p,
.message-aside p,
.about-copy p,
.message-card p,
.focus-panel p,
.contact-card p,
.institution-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.focus-panel,
.message-card,
.contact-card,
.institution-card,
.fact-tile {
    background: var(--surface-strong);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
}

.focus-panel {
    padding: 30px;
    border-radius: var(--radius-xl);
}

.focus-panel p {
    margin-top: 16px;
}

.about-layout,
.contact-layout {
    display: block;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.about-copy {
    padding-right: 10px;
}

.about-copy p + p,
.message-card p + p {
    margin-top: 18px;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fact-tile {
    padding: 24px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(31, 72, 103, 0.04), rgba(31, 72, 103, 0)),
        #ffffff;
}

.fact-tile strong {
    display: block;
    margin-top: 10px;
    font-size: 1.16rem;
    line-height: 1.55;
    color: var(--text);
    font-family: "Source Serif 4", Georgia, serif;
}

.message-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
    gap: 28px;
    align-items: start;
}

.message-card {
    padding: 34px;
    border-radius: var(--radius-xl);
}

.message-signature {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 50, 74, 0.10);
}

.message-signature strong,
.message-signature span {
    display: block;
}

.message-signature strong {
    color: var(--accent-deep);
    font-size: 1.2rem;
    font-family: "Source Serif 4", Georgia, serif;
}

.message-signature span {
    margin-top: 4px;
    color: var(--muted);
}

.institution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.institution-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border-radius: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.institution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(25, 45, 66, 0.12);
    border-color: rgba(159, 45, 50, 0.14);
}

.institution-badge {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.institution-card h4 {
    margin: 18px 0 10px;
    font-size: 1.28rem;
    line-height: 1.2;
}

.institution-domain {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.institution-link {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--text);
    color: #fff;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.institution-link:hover {
    transform: translateY(-1px);
    background: #172736;
}

.institution-link-disabled {
    background: #eef2f5;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.3fr) repeat(2, minmax(220px, 0.75fr));
    gap: 18px;
}

.contact-card {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.contact-card-wide {
    background:
        linear-gradient(135deg, rgba(31, 72, 103, 0.05), rgba(31, 72, 103, 0.01)),
        #ffffff;
}

.contact-card p {
    margin-top: 16px;
}

.site-footer {
    padding: 32px 0 42px;
    background: #eef3f7;
    border-top: 1px solid rgba(24, 50, 74, 0.08);
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-layout p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-layout strong {
    color: var(--text);
}

@media (min-width: 1600px) {
    :root {
        --container: 1460px;
    }

    .hero-layout {
        gap: 44px;
    }

    .institution-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -20px, 0) scale(1.05);
    }
}

@media (max-width: 1240px) {
    .hero-layout,
    .about-grid,
    .message-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        max-width: 100%;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .institution-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .topbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .focus-grid,
    .footer-layout {
        grid-template-columns: 1fr;
    }

    .about-facts,
    .hero-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .institution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-side-grid {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 26px;
    }

    .section-band {
        padding: 76px 0;
    }
}

@media (max-width: 820px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
    }

    .brand {
        align-items: center;
        min-width: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text h1 {
        line-height: 1.25;
    }

    .menu-toggle {
        display: inline-flex;
        grid-column: 2;
        justify-self: end;
        align-self: center;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(24, 50, 74, 0.10);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 36px rgba(25, 45, 66, 0.08);
    }

    .topbar-actions.is-open {
        display: flex;
    }

    .topbar-link {
        flex: 1 1 100%;
    }

    .hero-copy {
        padding-top: 6px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .focus-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid,
    .about-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stat-grid .hero-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .banner-carousel-wide .banner-track {
        aspect-ratio: 16 / 10;
    }

    .hero-band {
        padding-bottom: 58px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .hero-band {
        padding: 16px 0 54px;
    }

    .topbar-actions,
    .hero-actions {
        width: 100%;
    }

    .topbar-link,
    .button {
        width: 100%;
    }

    .topbar-link {
        flex-basis: 100%;
    }

    .hero-copy h2 {
        font-size: clamp(2.5rem, 14vw, 3.6rem);
    }

    .hero-layout,
    .hero-showcase {
        gap: 22px;
    }

    .section-band {
        padding: 68px 0;
    }

    .section-intro h3,
    .message-aside h3 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .banner-carousel-wide .banner-track {
        aspect-ratio: 16 / 9;
    }

    .banner-carousel-square .banner-track {
        aspect-ratio: 1 / 1;
    }

    .hero-banner-panel,
    .banner-carousel-square {
        padding: 10px;
    }

    .hero-note-card,
    .banner-carousel-square {
        max-width: 440px;
        margin-inline: auto;
        width: 100%;
    }

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

    .contact-card,
    .message-card,
    .focus-panel,
    .fact-tile,
    .institution-card,
    .hero-note-card,
    .hero-stat-card {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .brand {
        gap: 12px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .brand-text h1 {
        letter-spacing: 0.05em;
    }

    .hero-copy h2 {
        margin-top: 14px;
        line-height: 1.02;
    }

    .hero-stat-grid,
    .about-facts {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid .hero-stat-card:last-child {
        grid-column: auto;
    }

    .hero-description,
    .section-intro p,
    .about-copy p,
    .message-card p,
    .contact-card p,
    .institution-card p {
        line-height: 1.75;
    }

    .section-band {
        padding: 58px 0;
    }

    .section-intro {
        margin-bottom: 26px;
    }

    .section-intro h3,
    .message-aside h3 {
        margin-top: 12px;
    }

    .hero-banner-panel,
    .hero-note-card,
    .banner-carousel-square,
    .focus-panel,
    .message-card,
    .contact-card,
    .institution-card,
    .fact-tile {
        border-radius: 22px;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 20px);
    }

    .hero-band {
        padding-top: 12px;
    }

    .topbar {
        gap: 16px;
        padding-bottom: 22px;
    }

    .hero-copy h2 {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
    }

    .hero-stat-card strong,
    .fact-tile strong,
    .institution-card h4 {
        font-size: 1.05rem;
    }

    .banner-dot {
        width: 10px;
        height: 10px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
