:root {
    --cornell-red: #b31b1b;
    --cornell-red-hover: #e02020;
    --dark-blue: #0033a0;
    --dark-blue-2: #2a3545;
    --gray-section: #f0f2f4;
    --gray-text: #646464;
    --sunglow: #ffc72c;
    --white: #ffffff;
    --black: #000000;
    --border: #e4e4e4;
    --max-width: 1200px;
    --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cornell-red); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cornell-red);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus { left: 0; }

/* ===== HEADER ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand { flex-shrink: 0; }

.brand-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.header.scrolled .brand-logo { filter: none; }

.nav {
    display: flex;
    gap: 22px;
    flex: 1;
    justify-content: center;
}

.nav a {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 0;
    transition: color 0.2s;
}

.header.scrolled .nav a { color: var(--dark-blue-2); }
.nav a:hover { color: var(--cornell-red); text-decoration: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--white);
    padding: 6px;
    transition: color 0.3s;
}

.header.scrolled .search-btn { color: var(--dark-blue-2); }

.visit-btn {
    background: var(--cornell-red);
    color: var(--white);
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.visit-btn:hover {
    background: var(--cornell-red-hover);
    text-decoration: none;
    color: var(--white);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: background 0.3s, transform 0.3s;
}

.header.scrolled .menu-btn span { background: var(--dark-blue-2); }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 53, 69, 0.15) 0%, rgba(42, 53, 69, 0.55) 100%);
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    padding: 0 28px;
    color: var(--white);
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 560px;
    line-height: 1.55;
    opacity: 0.95;
}

.hero-pause {
    position: absolute;
    bottom: 40px;
    left: 28px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.hero-pause:hover { background: rgba(255, 255, 255, 0.35); }

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    opacity: 0.8;
}

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

/* ===== NEWS ===== */

.news-section {
    padding: 80px 0 60px;
    background: var(--gray-section);
}

.news-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.news-row::-webkit-scrollbar { display: none; }

.news-card {
    flex: 0 0 320px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.news-img-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }

.tag {
    display: inline-block;
    background: var(--cornell-red);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.tag:hover { background: var(--cornell-red-hover); color: var(--white); text-decoration: none; }

.news-body h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 16px;
    flex: 1;
}

.news-body h3 a { color: var(--dark-blue-2); font-weight: 700; }
.news-body h3 a:hover { color: var(--cornell-red); text-decoration: none; }

.read-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cornell-red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-link .arrow { transition: transform 0.2s; }
.read-link:hover .arrow { transform: translateX(4px); }
.read-link:hover { text-decoration: none; }

.news-nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.arrow-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #c8ced8;
    background: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--dark-blue-2);
    transition: all 0.2s;
}

.arrow-btn:hover {
    border-color: var(--cornell-red);
    color: var(--cornell-red);
}

.arrow-btn:disabled { opacity: 0.35; cursor: default; }

.news-footer {
    margin-top: 28px;
    color: var(--gray-text);
    font-size: 0.95rem;
}

.news-footer a { font-weight: 700; }

/* ===== SPLIT SECTIONS ===== */

.split-section {
    padding: 90px 0;
    background: var(--gray-section);
}

.split-section + .split-section { padding-top: 0; }

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-reverse .split-grid { direction: rtl; }
.split-reverse .split-grid > * { direction: ltr; }

.split-media {
    position: relative;
    overflow: hidden;
}

.split-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(179, 27, 27, 0.9);
    color: var(--white);
    border: 3px solid var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.play-btn:hover { transform: scale(1.08); background: var(--cornell-red); }

.split-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--dark-blue-2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    line-height: 1.15;
}

.split-text p {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.7;
    max-width: 480px;
}

/* ===== ALUMNI ===== */

.alumni-section {
    padding: 90px 0;
    background: var(--white);
}

.alumni-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: start;
}

.alumni-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.alumni-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cornell-red);
    margin-bottom: 4px;
}

.alumni-header h3 {
    font-size: 1.3rem;
    color: var(--dark-blue-2);
}

.alumni-quote blockquote {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--dark-blue-2);
    margin-bottom: 36px;
    border: none;
    padding: 0;
}

.alumni-stats {
    display: flex;
    gap: 50px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cornell-red);
    line-height: 1;
    margin-bottom: 8px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray-text);
    max-width: 200px;
    line-height: 1.5;
}

.alumni-program img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    margin: 12px 0 16px;
}

.alumni-program h3 {
    font-size: 1.1rem;
    line-height: 1.4;
}

.alumni-program h3 a {
    color: var(--dark-blue);
    font-weight: 700;
}

.alumni-program h3 a:hover { color: var(--cornell-red); text-decoration: none; }

/* ===== CAMPUS ===== */

.campus-section {
    padding: 90px 0;
    background: var(--white);
    text-align: center;
}

.campus-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--dark-blue-2);
    margin-bottom: 14px;
}

.campus-intro {
    color: var(--gray-text);
    max-width: 580px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.campus-gallery { max-width: 900px; margin: 0 auto; }

.campus-main {
    position: relative;
    overflow: hidden;
}

.campus-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: opacity 0.35s ease;
}

.campus-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--cornell-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 14px;
}

.campus-caption {
    text-align: left;
    padding: 24px 0 16px;
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.65;
}

.campus-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.campus-thumbs button {
    width: 72px;
    height: 54px;
    border: 3px solid transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.campus-thumbs button.active {
    opacity: 1;
    border-color: var(--cornell-red);
}

.campus-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campus-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.campus-links {
    margin-top: 32px;
    color: var(--gray-text);
}

.campus-links a { font-weight: 700; }

/* ===== JACOBS ===== */

.jacobs-section {
    padding: 90px 0;
    background: var(--gray-section);
    text-align: center;
}

.jacobs-logo {
    height: 48px;
    margin: 0 auto 24px;
}

.jacobs-inner h2 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 16px;
}

.jacobs-inner > p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--gray-text);
    line-height: 1.7;
}

.jacobs-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.jacobs-news article {
    background: var(--white);
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.jacobs-img-link {
    display: block;
    overflow: hidden;
}

.jacobs-img-link img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.jacobs-img-link:hover img { transform: scale(1.03); }

.jacobs-news article .jacobs-tag,
.jacobs-news article > a:not(.jacobs-img-link) {
    padding: 0 24px;
}

.jacobs-news article .jacobs-tag {
    display: block;
    padding-top: 20px;
}

.jacobs-news article > a:not(.jacobs-img-link) {
    display: block;
    padding-bottom: 24px;
}

.jacobs-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-text);
    letter-spacing: 0.06em;
}

.jacobs-news a {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue-2);
    line-height: 1.4;
}

.jacobs-news a:hover { color: var(--cornell-red); text-decoration: none; }

/* ===== IMPACT ===== */

.impact-section {
    padding: 90px 0;
    background: var(--white);
}

.impact-section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--dark-blue-2);
    margin-bottom: 44px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.impact-card {
    background: var(--gray-section);
    padding: 28px 22px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
    display: block;
}

.impact-card:hover {
    background: #e4e4e4;
    transform: translateY(-2px);
    text-decoration: none;
}

.impact-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 16px;
}

.impact-card h4 {
    font-size: 1rem;
    color: var(--cornell-red);
    margin-bottom: 8px;
}

.impact-card p {
    font-size: 0.88rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.impact-more {
    background: var(--cornell-red);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.impact-more:hover {
    background: var(--cornell-red-hover);
    color: var(--white);
    text-decoration: none;
}

.arrow-circle {
    width: 44px;
    height: 44px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ===== ENTREPRENEUR ===== */

.entrepreneur {
    position: relative;
    padding: 100px 0 140px;
    background: var(--gray-section);
    overflow: hidden;
}

.entrepreneur-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('https://tech.cornell.edu/wp-content/uploads/2019/10/HOME_YELLOW_BRICKS--1440x326.png') center bottom / cover no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

.entrepreneur-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.entrepreneur h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--dark-blue-2);
    margin-bottom: 18px;
}

.entrepreneur p {
    max-width: 740px;
    margin: 0 auto 32px;
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cornell-red);
}

.link-btn span { transition: transform 0.2s; }
.link-btn:hover span { transform: translateX(4px); }
.link-btn:hover { text-decoration: none; }

/* ===== FOOTER ===== */

.footer {
    background: var(--dark-blue-2);
    color: #c8ced8;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-brand p { line-height: 1.7; margin-bottom: 8px; font-size: 0.9rem; }

.footer-col h4 {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #c8ced8;
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #8a9199;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px 28px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    .nav.open a {
        color: var(--dark-blue-2);
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }
    .menu-btn { display: flex; }
    .split-grid, .alumni-grid { grid-template-columns: 1fr; gap: 36px; }
    .split-reverse .split-grid { direction: ltr; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .jacobs-news { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero-content { bottom: 100px; }
    .alumni-stats { flex-direction: column; gap: 24px; }
    .impact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .visit-btn { display: none; }
    .campus-main img { height: 280px; }
    .news-card { flex: 0 0 280px; }
}