:root {
    --cream: #F5F1EA;
    --cream-light: #FBF8F3;
    --paper: #FFFFFF;
    --navy: #0F2A44;
    --navy-deep: #081A2C;
    --copper: #A6602F;
    --copper-light: #C68B5A;
    --ink: #1A1F2E;
    --text-muted: #5A6677;
    --border: #D8D2C5;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 19px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 48px;
    --text-4xl: clamp(48px, 6vw, 72px);
    --text-5xl: clamp(64px, 8vw, 96px);
    --text-6xl: clamp(80px, 10vw, 140px);
}

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

html {
    background-color: var(--cream);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    line-height: 1.65;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography Helpers */
.text-serif-display {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
    font-weight: 300;
}

.text-serif-body {
    font-family: 'Source Serif 4', serif;
    line-height: 1.65;
    font-size: var(--text-lg);
}

.text-sans-body {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
}

.text-center { text-align: center; }

.text-copper { color: var(--copper); }
.text-copper-light { color: var(--copper-light); }
.text-copper-override { color: var(--copper) !important; }

/* Grid Layout */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.span-1 { grid-column: span 1; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }

/* Backgrounds */
.bg-paper { background-color: var(--paper); }
.bg-navy { 
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--cream);
}

/* Components */
.eyebrow {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
    font-size: var(--text-xs);
    color: var(--copper);
    margin-bottom: 24px;
}

.eyebrow-light {
    color: var(--copper-light);
}

.eyebrow-line {
    border: none;
    height: 1px;
    background-color: var(--copper);
    width: 32px;
    margin-top: 16px;
    margin-bottom: 0;
}

.eyebrow-line.center {
    margin-left: auto;
    margin-right: auto;
    width: 48px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--navy);
    color: var(--cream);
    padding: 18px 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: var(--navy-deep);
    box-shadow: 0 4px 16px rgba(15, 42, 68, 0.15);
}

.btn-inverse {
    background-color: var(--cream);
    color: var(--navy);
}

.btn-inverse:hover {
    background-color: var(--paper);
    color: var(--navy-deep);
}

.btn-secondary {
    display: inline-block;
    font-family: 'Source Serif 4', serif;
    color: var(--ink);
    position: relative;
    padding-bottom: 4px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--copper);
    transform-origin: bottom right;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.btn-secondary:hover {
    color: var(--copper);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    height: 72px;
    background-color: var(--cream);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: box-shadow 300ms ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.02);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-line-1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--ink);
}

.logo-line-2 {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink);
}

.nav-sep {
    color: var(--copper);
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--copper);
    transform-origin: bottom right;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section */
.section-hero {
    min-height: max(720px, 100vh);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--navy-deep);
}

.hero-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.05) saturate(0.92);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 26, 44, 0.8) 0%, rgba(8, 26, 44, 0.5) 50%, rgba(8, 26, 44, 0.1) 100%);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: var(--text-4xl);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--cream);
    margin-bottom: 32px;
}

.hero-subtitle {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: var(--text-xl);
    color: rgba(245, 241, 234, 0.85);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-credentials {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--copper-light);
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.btn-secondary-hero {
    color: var(--cream) !important;
}

.btn-secondary-hero::after {
    background-color: var(--cream) !important;
}

.btn-secondary-hero:hover {
    color: var(--copper-light) !important;
}

.btn-secondary-hero:hover::after {
    background-color: var(--copper-light) !important;
}

.hero-caption {
    position: absolute;
    bottom: 24px;
    right: 64px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    color: rgba(245, 241, 234, 0.5);
    z-index: 2;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-image {
    opacity: 0;
    transform: scale(1.02);
}

.line-wrap {
    overflow: hidden;
    display: block;
}

.line-inner {
    display: block;
    transform: translateY(100%);
}

/* Stats Section */
.section-stats {
    padding: 120px 0;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(166, 96, 47, 0.3); /* copper/0.3 */
    padding-left: 24px;
}

.stat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: var(--text-6xl);
    line-height: 1;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: var(--text-xs);
    color: var(--copper-light);
    letter-spacing: 0.12em;
    line-height: 1.4;
}

/* Profile Section */
.section-profile {
    padding: clamp(80px, 10vh, 160px) 0;
}

.profile-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.profile-image {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 32px;
}

.profile-badge {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--ink);
}

.badge-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.badge-cred {
    color: var(--text-muted);
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 48px;
    line-height: 1.15;
}

.profile-body p {
    margin-bottom: 1.5em;
}

.pull-quote {
    position: relative;
    margin-top: 64px;
    padding-left: 48px;
}

.quote-mark {
    position: absolute;
    top: -24px;
    left: 0;
    font-family: 'Fraunces', serif;
    font-size: var(--text-5xl);
    color: var(--copper);
    opacity: 0.3;
    line-height: 1;
}

.quote-text {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: var(--text-2xl);
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 24px;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: normal;
}

/* Technology Section */
.section-technology {
    padding-bottom: clamp(80px, 10vh, 160px);
}

.tech-hero {
    width: 100%;
    height: 60vh;
    position: relative;
}

.tech-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-caption {
    position: absolute;
    bottom: -32px;
    right: 64px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.tech-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 64px 0 64px;
}

.tech-list {
    list-style: none;
    margin-top: 32px;
}

.tech-list li {
    padding: 6px 0;
}

.bullet {
    color: var(--copper);
    margin-right: 12px;
    font-weight: bold;
}

/* Areas Section */
.section-areas {
    padding: clamp(80px, 10vh, 160px) 0;
}

.areas-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.areas-list {
    margin-top: 64px;
}

.area-item {
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    transition: all 300ms ease;
}

.area-item:first-child {
    border-top: 1px solid var(--border);
}

.area-num {
    font-family: 'Fraunces', serif;
    font-size: var(--text-xl);
    color: var(--copper);
    transition: color 300ms ease;
}

.area-name {
    font-family: 'Fraunces', serif;
    font-size: var(--text-xl);
    color: var(--ink);
    transition: color 300ms ease;
}

.area-desc {
    color: var(--text-muted);
}

.area-item:hover .area-name {
    color: var(--copper);
}

/* Centers Section */
.section-centers {
    padding: clamp(80px, 10vh, 160px) 0;
}

.centers-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.center-card {
    background-color: var(--cream-light);
    border-bottom: 1px solid var(--border);
    padding: 32px;
    transition: border-color 400ms ease;
    display: flex;
    flex-direction: column;
}

.center-map-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
    background-color: var(--border);
    overflow: hidden;
    position: relative;
}

.center-map-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) contrast(1.1);
}

.center-card:hover {
    border-bottom-color: var(--copper);
}

.center-name {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink);
}

.center-line {
    border: none;
    height: 1px;
    background-color: var(--copper);
    width: 24px;
    margin: 16px 0 24px 0;
}

.center-address {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 32px;
}

.center-info {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    margin-bottom: 32px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    width: 80px;
    color: var(--text-muted);
}

/* Science Section */
.section-science {
    padding: clamp(80px, 10vh, 120px) 0;
}

.science-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.citation-list {
    list-style: none;
    margin-top: 48px;
}

.citation-item {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    line-height: 1.7;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.citation-item:first-child {
    border-top: 1px solid var(--border);
}

.citation-year {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.citation-body {
    color: var(--ink);
    max-width: 800px;
}

/* CTA Section */
.section-cta {
    padding: 160px 0;
}

.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: var(--text-4xl);
    color: var(--cream);
    margin-bottom: 32px;
}

.cta-desc {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: var(--text-lg);
    color: rgba(245, 241, 234, 0.85); /* cream/0.85 */
    margin-bottom: 64px;
}

.contact-channels {
    margin-bottom: 64px;
}

.channel-line {
    border: none;
    border-bottom: 1px solid var(--copper);
    opacity: 0.3;
}

.channel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    transition: background-color 300ms ease;
}

.channel-row:hover {
    background-color: var(--navy-deep);
}

.channel-label {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    color: var(--copper-light);
    text-transform: uppercase;
}

.channel-val {
    font-family: 'Source Serif 4', serif;
    font-size: var(--text-lg);
    color: var(--cream);
    display: flex;
    align-items: center;
}

.arrow {
    color: var(--copper);
    margin-left: 16px;
    transition: transform 300ms ease;
}

.channel-row:hover .arrow {
    transform: translateX(4px);
}

/* Footer */
.site-footer {
    background-color: var(--navy-deep);
    padding: 64px 0 32px 0;
    color: rgba(245, 241, 234, 0.7); /* cream/0.7 */
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.footer-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-sub {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: var(--text-sm);
    margin-bottom: 24px;
}

.footer-legal {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    line-height: 1.6;
}

.footer-nav {
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a:hover {
    color: var(--copper-light);
}

.footer-divider {
    border: none;
    border-bottom: 1px solid rgba(245, 241, 234, 0.1);
    margin-bottom: 32px;
}

.footer-bottom {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    color: rgba(245, 241, 234, 0.4);
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        padding-right: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 24px;
    }
    
    .stat-item {
        border-left: none;
        padding-left: 0;
    }
    
    .profile-container {
        flex-direction: column;
        gap: 64px;
    }
    
    .tech-container {
        flex-direction: column;
        gap: 64px;
    }
    
    .areas-list .grid-12 {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .centers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 24px;
    }
    
    .header-center {
        display: none; /* simple drawer logic left to JS or omitted for pure layout */
    }
    
    .hero-container, .stats-container, .profile-container, .tech-container, .areas-container, .centers-container, .science-container, .cta-container, .footer-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(8, 26, 44, 0.95) 0%, rgba(8, 26, 44, 0.8) 100%);
    }
    
    .hero-caption {
        right: 24px;
        bottom: 16px;
    }
    
    .centers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        max-width: 100%;
    }
    
    .channel-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
