:root {
    --ink: #1a1a2e;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --cream: #f8f4ed;
    --white: #ffffff;
    --muted: #6b6b7a;
    --accent: #2e4a7a;
    --accent2: #8b3a3a;
    --border: rgba(201,168,76,0.25);
    --shadow: 0 8px 40px rgba(26,26,46,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

/* ── HEADER ── */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(26,26,46,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}
.hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--gold); border-radius: 2px;
    transition: all .3s;
}
nav {
    display: flex; align-items: center; gap: 4px;
}
nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem .85rem;
    border-radius: 4px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--gold); background: rgba(201,168,76,.08); }

/* ── HERO ── */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ink) 0%, #16213e 50%, #0f3460 100%);
    display: flex; align-items: center;
    padding: 80px 2rem 4rem;
    position: relative; overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,168,76,.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-grid {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: center;
}
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900; color: var(--white);
    line-height: 1.1; margin-bottom: 1rem;
}
.hero-text h1 span { color: var(--gold); }
.hero-subtitle {
    font-size: .95rem; color: rgba(255,255,255,.55);
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 2rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.tag {
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--gold-light);
    font-size: .75rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 50px;
}
.hero-info { display: flex; flex-direction: column; gap: .75rem; }
.hero-info-row {
    display: flex; align-items: baseline; gap: .75rem;
    font-size: .87rem; color: rgba(255,255,255,.7);
}
.hero-info-row strong { color: var(--gold-light); font-weight: 600; min-width: 122px; }

.hero-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
    backdrop-filter: blur(8px);
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px; background: var(--gold); border-radius: 0 0 4px 4px;
}
.hero-card img {
    width: 140px; height: 140px; object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(201,168,76,.15);
}
.card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--white); text-align: center; line-height: 1.3;
}
.card-role { font-size: .78rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.btn-primary {
    display: inline-block;
    background: var(--gold); color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .75rem 2rem; border-radius: 50px;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(201,168,76,.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(201,168,76,.45); }

/* ── SECTIONS GENERAL ── */
section { padding: 80px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 3rem; }
.section-label {
    font-size: .7rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--gold);
    display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
}
.section-label::before {
    content: ''; display: block;
    width: 28px; height: 2px; background: var(--gold);
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700; line-height: 1.15;
}

/* ── MATERIALS ── */
#materials { background: var(--white); }

.tabs {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(26,26,46,.08);
    padding-bottom: 1rem;
}
.tab-btn {
    background: none; border: 1px solid rgba(26,26,46,.12);
    color: var(--muted); font-family: 'Montserrat', sans-serif;
    font-size: .78rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; padding: .5rem 1.1rem; border-radius: 50px;
    cursor: pointer; transition: all .2s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--ink); }
.tab-btn.active { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.file-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(26,26,46,.09);
    border-radius: 12px; text-decoration: none;
    color: var(--ink); background: var(--cream);
    transition: all .2s;
}
.file-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.file-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.file-icon.pdf { background: rgba(139,58,58,.12); color: var(--accent2); }
.file-icon.doc { background: rgba(46,74,122,.12); color: var(--accent); }
.file-icon.pptx { background: rgba(201,168,76,.15); color: #8b6914; }
.file-icon.video { background: rgba(46,160,67,.12); color: #2ea043; }
.file-icon.link { background: rgba(139,58,58,.12); color: var(--accent2); }
.file-name { font-size: .84rem; font-weight: 500; line-height: 1.35; }
.file-type { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

/* ── SCIENCE / AWARDS ── */
#science { background: var(--cream); }
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.award-block {
    background: var(--white);
    border-radius: 16px; padding: 2rem;
    border: 1px solid rgba(26,26,46,.07);
    box-shadow: 0 2px 16px rgba(26,26,46,.05);
}
.award-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 1.2rem; padding-bottom: .75rem;
    border-bottom: 2px solid var(--gold);
    display: flex; align-items: center; gap: .6rem;
}
.award-block h3 .ico { font-size: 1.2rem; }

.award-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.award-list li {
    display: flex; align-items: flex-start; gap: .75rem;
    font-size: .84rem; line-height: 1.5; color: #3a3a4a;
}
.award-list li::before {
    content: '▸';
    color: var(--gold); font-size: .8rem; margin-top: .15rem; flex-shrink: 0;
}
.year-badge {
    background: rgba(201,168,76,.15); color: #7a5c10;
    font-size: .67rem; font-weight: 700; letter-spacing: .06em;
    padding: .15rem .5rem; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}

/* ── GALLERY ── */
#gallery { background: var(--ink); }
#gallery .section-title { color: var(--white); }
#gallery .section-label { color: var(--gold); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}
.gallery-item {
    aspect-ratio: 1;
    overflow: hidden; border-radius: 10px; cursor: pointer;
    position: relative;
    background: rgba(255,255,255,.05);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '⊕';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--gold);
    background: rgba(26,26,46,.5);
    opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(10,10,20,.92);
    align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw; max-height: 88vh;
    border-radius: 8px; border: 2px solid rgba(201,168,76,.3);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lb-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: rgba(201,168,76,.15); border: 1px solid var(--gold);
    color: var(--gold); font-size: 1.2rem; width: 44px; height: 44px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lb-close:hover { background: var(--gold); color: var(--ink); }
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(201,168,76,.12); border: 1px solid var(--gold);
    color: var(--gold); font-size: 1.4rem; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--ink); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* ── LINKS ── */
#links { background: var(--cream); }
.links-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.link-card {
    display: flex; align-items: center; gap: .8rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1px solid rgba(26,26,46,.09);
    border-radius: 12px; text-decoration: none;
    color: var(--accent); font-size: .88rem; font-weight: 600;
    transition: all .2s;
}
.link-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.link-card .icon { font-size: 1.2rem; }

/* ── FOOTER ── */
footer {
    background: var(--ink);
    border-top: 1px solid rgba(201,168,76,.2);
    padding: 2.5rem 2rem;
    text-align: center;
}
.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; color: var(--gold); margin-bottom: .5rem;
}
footer p { font-size: .78rem; color: rgba(255,255,255,.4); }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-card { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 400px; margin: 0 auto; }
    .awards-grid { grid-template-columns: 1fr; }
    .hero-info-row { justify-content: center; }
    .hero-tags { justify-content: center; }
}

@media (max-width: 1023px) {
    nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(26,26,46,.98); padding: 1rem; gap: .25rem; }
    nav.open { display: flex; }
    .hamburger { display: flex; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .file-grid { grid-template-columns: 1fr; }
    .lb-prev { left: .5rem; }
    .lb-next { right: .5rem; }
}

/* scroll animations */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
