* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #a0d9b8;
    --accent-color: #99e1dd;
    --tertiary-color: #dad377;
    --text-color: #2a2a2a;
    --light-bg: #fafafa;
    --white: #ffffff;
    --transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-soft: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

main {
    display: block;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1600;
    padding: 0.8rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--secondary-color) 78%, white 22%);
    outline-offset: 4px;
}

.home-page {
    max-width: 100vw;
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1400;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    box-shadow: 0 0 18px rgba(184, 134, 11, 0.22);
}

body.js-enhanced .enhanced-media,
body.js-enhanced .enhanced-video {
    opacity: 0.01;
    filter: blur(14px);
    transform: scale(1.035);
    transition: opacity 0.8s ease, filter 0.95s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.page-ready .enhanced-media.media-loaded,
body.page-ready .enhanced-video.media-loaded {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fffaf0;
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.35rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 65px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.35s ease;
}

.logo-image {
    display: block;
    width: auto;
    height: 65px;
    max-width: min(72vw, 900px);
    transition: filter 0.35s ease;
}

.logo::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: -4px;
    height: 1px;
    background: rgba(47, 68, 59, 0.8);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}

.logo:hover,
.logo:focus-visible {
    transform: translateY(-4px);
}

.logo:hover::after,
.logo:focus-visible::after {
    transform: scaleX(1);
}

.logo:hover .logo-image,
.logo:focus-visible .logo-image {
    filter: saturate(1.03);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.18125rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: color 0.35s ease, transform 0.35s ease;
    position: relative;
    padding: 0.2rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    margin-top: 80px;
    width: 100%;
    max-width: 100%;
}

.hero-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffaf0 0%, #fff6e6 100%);
    min-width: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease-out;
}

.hero-single-image {
    display: block;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6rem;
    background: #ffffff;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -1px;
    line-height: 1.2;
    max-width: 11ch;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 500px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
    width: fit-content;
}

.cta-link .arrow {
    transition: var(--transition);
}

.cta-link:hover .arrow {
    transform: translateX(10px);
}

.stats-section {
    padding: 8rem 4rem;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8ec 100%);
}

.stats-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--secondary-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.image-text-section {
    padding: 8rem 4rem;
    background: var(--light-bg);
}

.image-text-section.reverse {
    background: var(--white);
}

.content-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.text-block h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.text-block p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: var(--text-color);
}

.image-block img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.image-block img.hover-scale:hover {
    transform: scale(1.028);
    filter: saturate(1.03) contrast(1.02);
}

.image-block,
.photo-item,
.story-image,
.founder-image-wrap,
.scholar-image-large,
.leadership-image-wrap,
.board-image-wrap {
    padding: 16px;
    background: #fbf4e8;
    transition: transform 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
}

.image-block:hover,
.photo-item:hover,
.story-image:hover,
.founder-image-wrap:hover,
.scholar-image-large:hover,
.leadership-image-wrap:hover,
.board-image-wrap:hover {
    transform: translateY(-5px);
    background: #fff7e8;
    box-shadow: 0 24px 54px rgba(53, 82, 74, 0.1);
}

.image-block:hover img,
.photo-item:hover img,
.story-image:hover img,
.founder-image-wrap:hover img,
.scholar-image-large:hover img,
.leadership-image-wrap:hover img,
.board-image-wrap:hover img {
    transform: scale(1.025);
    filter: saturate(1.04);
}

.full-width-image {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background: #111;
}

.parallax-bg {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
}

.impact-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    z-index: 0;
}

.impact-tile {
    position: relative;
    overflow: hidden;
    background-color: #1b1b1b;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.impact-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.12) 0%, rgba(12, 12, 12, 0.34) 100%);
}

.impact-tile.is-swapping {
    animation: tileRefresh 1.8s ease;
}

.tile-large {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.tile-r1c1 {
    grid-column: 2;
    grid-row: 1;
}

.tile-r1c2 {
    grid-column: 3;
    grid-row: 1;
}

.tile-r1c3 {
    grid-column: 4;
    grid-row: 1;
}

.tile-r2c1 {
    grid-column: 2;
    grid-row: 2;
}

.tile-r2c2 {
    grid-column: 3;
    grid-row: 2;
}

.tile-r2c3 {
    grid-column: 4;
    grid-row: 2;
}

.tile-r3c1 {
    grid-column: 2;
    grid-row: 3;
}

.tile-r3c2 {
    grid-column: 3;
    grid-row: 3;
}

.tile-r3c3 {
    grid-column: 4;
    grid-row: 3;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.full-width-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.52) 68%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.22) 35%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.overlay-text h2 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.overlay-text p {
    font-size: 1.2rem;
    font-weight: 300;
}

.gallery-section {
    padding: 8rem 4rem;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8ec 100%);
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.photo-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.photo-item {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.community-image-focus-center {
    object-position: center 62%;
}

.photo-item:hover img {
    transform: scale(1.025);
    filter: saturate(1.04);
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(53, 82, 74, 0.1);
}

.cta-final {
    padding: 10rem 4rem;
    background: var(--primary-color);
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, color 0.35s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 14px 28px rgba(53, 82, 74, 0.12);
}

.cta-button:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 22px 34px rgba(53, 82, 74, 0.18);
}

.page-hero-minimal {
    padding: 12rem 4rem 6rem;
    text-align: center;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.page-hero-minimal h1 {
    font-size: 6rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.page-hero-minimal p {
    font-size: 1.404rem;
    color: var(--text-color);
    font-weight: 300;
    white-space: nowrap;
}

.about-hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: #0d0d0d;
}

.about-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scholars-hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: #0d0d0d;
}

.scholars-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.54) 100%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.28) 75%);
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.about-hero h1,
.about-hero p,
.scholars-hero h1,
.scholars-hero p {
    color: var(--white);
}

.scholar-showcase {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.scholar-feature {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    margin-bottom: 10rem;
    align-items: start;
}

.scholar-feature.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.scholar-feature.reverse .scholar-image-large {
    order: 2;
}

.scholar-feature.reverse .scholar-details {
    order: 1;
}

.scholar-image-large img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.scholar-image-focus-center {
    object-position: center 30%;
}

.scholar-details h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.education-path {
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 1px solid var(--secondary-color);
}

.path-item {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.path-item .level {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    font-weight: 400;
}

.path-item .school {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 300;
}

.path-item .degree {
    font-size: 0.95rem;
    color: var(--text-color);
    font-style: italic;
    font-weight: 300;
}

.impact-story {
    background: var(--light-bg);
    padding: 2.5rem;
}

.impact-story h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
}

.impact-story p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
    color: var(--text-color);
}

.founders-elegant {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.founder-profile {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    margin-bottom: 8rem;
    align-items: center;
}

.founder-profile.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.founder-profile.reverse .founder-image-wrap {
    order: 2;
}

.founder-profile.reverse .founder-bio {
    order: 1;
}

.founder-image-wrap img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.founder-bio h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.founder-bio h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.founder-bio p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.story-section-elegant {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    padding: 8rem 4rem;
    background: var(--light-bg);
    align-items: center;
}

.story-content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.story-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.story-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.leadership-section,
.board-section {
    padding: 8rem 4rem;
}

.leadership-section {
    background: var(--white);
}

.board-section {
    background: var(--light-bg);
}

.section-intro {
    max-width: 820px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-intro h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.section-intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    font-weight: 300;
}

.leadership-grid,
.board-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

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

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

.leadership-card,
.board-card {
    background: var(--white);
    padding: 3rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.leadership-card {
    min-height: 100%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.leadership-card:hover,
.board-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.07);
}

.leadership-image-wrap,
.board-image-wrap {
    margin-bottom: 2rem;
    overflow: hidden;
}

.leadership-image-wrap img,
.board-image-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.leadership-image-wrap img {
    height: 340px;
}

.leadership-image-focus-top {
    object-position: center 18%;
}

.board-image-wrap img {
    height: 320px;
}

.leadership-card h3,
.board-card h3 {
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.leadership-role,
.board-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.leadership-card > p:last-child,
.board-card p:last-child {
    color: var(--text-color);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 0;
}

.contact-elegant {
    padding: 8rem 4rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-panel {
    width: min(680px, 100%);
    padding: 2.5rem;
    background: rgba(22, 22, 22, 0.46);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.contact-wrapper h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.contact-panel > p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0;
}

.contact-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    text-align: left;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.18);
}

.contact-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.95fr 1.1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
    z-index: 0;
}

.contact-tile {
    position: relative;
    overflow: hidden;
    background-color: #ebe9e4;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    opacity: 0.92;
}

.contact-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(245, 243, 238, 0.26) 100%);
}

.contact-tile.is-wave-out {
    animation: contactTileOut 0.8s ease forwards;
}

.contact-tile.is-wave-in {
    animation: contactTileIn 0.9s ease forwards;
}

.contact-tile-wide {
    grid-column: 1 / span 2;
}

.contact-tile-tall {
    grid-column: 4;
    grid-row: 1 / span 2;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 8, 8, 0.74) 0%, rgba(8, 8, 8, 0.46) 38%, rgba(8, 8, 8, 0.42) 100%),
        linear-gradient(180deg, rgba(22, 22, 22, 0.26) 0%, rgba(22, 22, 22, 0.44) 100%);
    z-index: 1;
}

.contact-label {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.contact-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--white);
}

.contact-card a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 300;
    line-height: 1.8;
}

.contact-card a:hover {
    color: var(--tertiary-color);
}

.contact-card p {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92) !important;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
}

.social-link:hover {
    background: rgba(160, 217, 184, 0.34);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.footer {
    background: #fffaf0;
    color: var(--text-color);
    padding: 2rem 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin-bottom: 0.25rem;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--primary-color);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(44px);
    filter: blur(6px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes tileRefresh {
    0% {
        opacity: 1;
        transform: scale(1.02);
        filter: brightness(1);
    }

    42% {
        opacity: 0.28;
        transform: scale(1.06);
        filter: brightness(0.86) blur(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1.02);
        filter: brightness(1) blur(0);
    }
}

@keyframes contactTileOut {
    0% {
        opacity: 0.92;
        transform: scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 0.14;
        transform: scale(0.95);
        filter: blur(2px);
    }
}

@keyframes contactTileIn {
    0% {
        opacity: 0.14;
        transform: scale(1.05);
        filter: blur(2px);
    }

    100% {
        opacity: 0.92;
        transform: scale(1.02);
        filter: blur(0);
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 2rem;
    }

    .hero-split {
        min-height: auto;
    }

    .hero-text {
        padding: 4rem 2.5rem 4.5rem;
    }

    .hero-split,
    .content-grid,
    .scholar-feature,
    .scholar-feature.reverse,
    .founder-profile,
    .founder-profile.reverse,
    .story-section-elegant {
        grid-template-columns: 1fr;
    }

    .scholar-feature.reverse .scholar-image-large,
    .founder-profile.reverse .founder-image-wrap {
        order: 1;
    }

    .scholar-feature.reverse .scholar-details,
    .founder-profile.reverse .founder-bio {
        order: 2;
    }

    .stats-grid,
    .photo-grid,
    .contact-grid,
    .leadership-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }

    .contact-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, minmax(140px, 1fr));
    }

    .contact-tile-wide,
    .contact-tile-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .impact-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }

    .tile-large,
    .tile-r1c1,
    .tile-r1c2,
    .tile-r1c3,
    .tile-r2c1,
    .tile-r2c2,
    .tile-r2c3,
    .tile-r3c1,
    .tile-r3c2,
    .tile-r3c3 {
        grid-column: auto;
        grid-row: auto;
    }

    .nav-container,
    .stats-section,
    .image-text-section,
    .gallery-section,
    .cta-final,
    .page-hero-minimal,
    .scholar-showcase,
    .founders-elegant,
    .story-section-elegant,
    .contact-elegant {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .page-hero-minimal {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    .page-hero-minimal h1,
    .hero-title,
    .cta-content h2,
    .story-content h2,
    .section-intro h2,
    .section-title,
    .text-block h2 {
        font-size: clamp(2.5rem, 5vw, 3.35rem);
    }

    .founder-profile,
    .story-section-elegant,
    .scholar-feature,
    .content-grid {
        gap: 3rem;
    }

    .image-block img,
    .story-image img,
    .founder-image-wrap img,
    .scholar-image-large img {
        height: 520px;
    }

    .contact-wrapper h2 {
        font-size: 2.6rem;
    }

    .about-hero {
        min-height: 68vh;
    }

    .scholars-hero {
        min-height: 62vh;
    }

    .contact-wrapper {
        min-height: auto;
    }

    .contact-panel {
        width: 100%;
    }

    .footer {
        padding: 2rem;
    }

}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        min-height: auto;
        flex-wrap: wrap;
        row-gap: 0.8rem;
    }

    .logo {
        height: 56px;
    }

    .logo-image {
        height: 56px;
        max-width: min(78vw, 900px);
    }

    .nav-menu {
        width: 100%;
        gap: 1.2rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 1rem;
    }

    .hero-split {
        margin-top: 118px;
    }

    .hero-image {
        min-height: 46vh;
    }

    .hero-text {
        padding: 3rem 1.5rem 3.5rem;
    }

    .hero-title {
        max-width: none;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        max-width: none;
        font-size: 1rem;
        line-height: 1.7;
    }

    .stats-section,
    .image-text-section,
    .gallery-section,
    .cta-final,
    .scholar-showcase,
    .founders-elegant,
    .story-section-elegant,
    .leadership-section,
    .board-section,
    .contact-elegant {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .leadership-image-wrap img,
    .board-image-wrap img {
        height: 280px;
    }

    .full-width-image {
        height: 72vh;
    }

    .impact-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(5, minmax(110px, 1fr));
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .overlay-text {
        width: calc(100% - 3rem);
    }

    .overlay-text h2 {
        font-size: 2.6rem;
    }

    .overlay-text p {
        font-size: 1rem;
    }

    .contact-mosaic {
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .contact-panel {
        padding: 1.5rem;
    }

    .contact-wrapper h2,
    .page-hero-minimal h1,
    .cta-content h2 {
        font-size: 2.4rem;
    }

    .contact-panel > p,
    .page-hero-minimal p {
        font-size: 1rem;
        white-space: normal;
    }

    .contact-card,
    .leadership-card,
    .board-card,
    .impact-story {
        padding: 1.35rem;
    }

    .scholar-image-large img,
    .founder-image-wrap img,
    .story-image img,
    .image-block img {
        height: 420px;
    }

    .footer {
        padding: 1.75rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        gap: 1rem 1.2rem;
    }

    .hero-split {
        margin-top: 136px;
    }

    .page-hero-minimal {
        padding-top: 11rem;
        padding-bottom: 4.5rem;
    }

    .hero-title,
    .page-hero-minimal h1,
    .overlay-text h2,
    .cta-content h2,
    .section-title,
    .text-block h2,
    .story-content h2,
    .section-intro h2,
    .founder-bio h2,
    .scholar-details h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 2rem 1.25rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .photo-grid,
    .leadership-grid,
    .board-grid,
    .contact-grid {
        gap: 1rem;
    }

    .contact-panel {
        padding: 1.25rem;
    }

    .social-links {
        gap: 0.55rem;
    }

    .social-pill {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }

    .scholar-showcase {
        padding-top: 4rem;
    }

    .scholar-feature {
        margin-bottom: 6rem;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .stats-section,
    .image-text-section,
    .gallery-section,
    .cta-final,
    .page-hero-minimal,
    .scholar-showcase,
    .founders-elegant,
    .story-section-elegant,
    .contact-elegant,
    .leadership-section,
    .board-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        height: 48px;
    }

    .logo-image {
        height: 48px;
    }

    .hero-split {
        margin-top: 126px;
    }

    .hero-image {
        min-height: 40vh;
    }

    .hero-text {
        padding: 2.4rem 1rem 3rem;
    }

    .overlay-text {
        width: calc(100% - 2rem);
    }

    .overlay-text h2 {
        font-size: 2rem;
    }

    .cta-button {
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .contact-wrapper h2 {
        font-size: 2.1rem;
    }

    .scholar-image-large img,
    .founder-image-wrap img,
    .story-image img,
    .image-block img,
    .leadership-image-wrap img,
    .board-image-wrap img {
        height: 340px;
    }
}

/* Theme override: Sampaguita Morning */
:root {
    --primary-color: #35524a;
    --secondary-color: #7bc47f;
    --accent-color: #ffe8b6;
    --tertiary-color: #b8860b;
    --text-color: #40514e;
    --light-bg: #fffefc;
    --white: #fffefc;
}

body {
    background: #fffefc;
}

.navbar {
    background: #fffaf0;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.hero-text {
    background: #ffffff;
}

.page-hero-minimal,
.image-text-section,
.board-section,
.story-section-elegant {
    background: linear-gradient(180deg, #fffefc 0%, #fffdf9 100%);
}

.image-text-section.reverse,
.leadership-section,
.contact-elegant {
    background: linear-gradient(180deg, #fffefc 0%, #fffdf8 100%);
}

.full-width-image::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.42) 100%);
}

.stat-item,
.education-path {
    border-color: color-mix(in srgb, #7bc47f 72%, white 28%);
}

.contact-panel {
    background: rgba(53, 82, 74, 0.62);
}

.contact-card {
    background: rgba(255, 253, 247, 0.20);
}

.contact-overlay {
    background:
        linear-gradient(90deg, rgba(53, 82, 74, 0.62) 0%, rgba(12, 12, 12, 0.24) 42%, rgba(12, 12, 12, 0.38) 100%),
        linear-gradient(180deg, rgba(12, 12, 12, 0.16) 0%, rgba(12, 12, 12, 0.34) 100%);
}

.cta-final {
    background: linear-gradient(135deg, #fff4d6 0%, #7bc47f 48%, #b8860b 100%);
}

.cta-button:hover,
.social-link:hover {
    background: #ffe8b6;
}

.contact-label,
.contact-eyebrow,
.founder-bio h3,
.path-item .level,
.leadership-role,
.board-card p,
.mockup-number {
    color: #b8860b;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
