:root {
    --bg: #0c0c16;
    --bg-raise: #161626;
    --ink: #f4f1ea;
    --muted: #a39db4;
    --line: rgba(198, 166, 100, 0.22);
    --gold: #c6a664;
    --gold-2: #e8d5a3;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(198, 166, 100, 0.16), transparent 60%),
        radial-gradient(700px 380px at -10% 20%, rgba(70, 80, 140, 0.25), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 6vw;
    background: rgba(12, 12, 22, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand {
    font-family: var(--serif);
    letter-spacing: 0.04em;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 1.1rem;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--gold-2); }

.wrap { width: min(1120px, calc(100% - 10vw)); margin: 0 auto; }
.hero, .band { padding: 5.5rem 0; }
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.kicker, .role {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.15; margin: 0.3rem 0 0.8rem; }
h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
h1 span { display: block; color: var(--gold-2); font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 16ch; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 46rem; }
.stats { display: flex; gap: 1.5rem; margin-top: 2rem; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--gold-2); }
.stats span { color: var(--muted); font-size: 0.86rem; }
.portrait {
    border-radius: 1.6rem;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--bg-raise);
}
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.monogram {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    font-family: var(--serif);
    font-size: 4rem;
    color: var(--gold);
}

.band + .band { border-top: 1px solid var(--line); }
.timeline { display: grid; gap: 0; margin-top: 2rem; }
.milestone {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
}
.milestone .label { color: var(--gold); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.milestone p, .card p, .edu p { color: var(--muted); margin: 0; }

.groups { display: grid; gap: 2rem; margin-top: 2rem; }
.group-name { font-family: var(--mono); color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.cards, .skills, .gallery, .schools { display: grid; gap: 1rem; }
.cards, .skills, .schools { grid-template-columns: repeat(2, 1fr); }
.gallery { grid-template-columns: repeat(4, 1fr); }
.card, .skill, .school {
    background: rgba(22, 22, 38, 0.86);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.2rem 1.25rem;
}
.card header, .school header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.code { font-family: var(--serif); font-size: 1.5rem; }
.badge, .level {
    color: var(--gold-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.num { font-family: var(--mono); color: var(--gold); font-size: 0.8rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1rem; border: 1px solid var(--line); }
.gallery figcaption { margin-top: 0.45rem; color: var(--muted); font-size: 0.86rem; }
.story {
    margin-top: 1.5rem;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid var(--line);
}
.story img { width: 100%; max-height: 520px; object-fit: cover; }

.quote {
    margin-top: 2.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.35;
}
.quote footer { margin-top: 0.8rem; color: var(--gold); font-family: var(--sans); font-size: 0.95rem; }

.socials { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.socials a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    color: var(--gold-2);
}
.socials a:hover { background: var(--gold); color: #1a1408; }

.footer {
    padding: 2rem 6vw 2.4rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
}

@media (max-width: 860px) {
    .nav { align-items: flex-start; flex-direction: column; }
    .nav-links { flex-wrap: wrap; }
    .hero, .cards, .skills, .schools, .milestone { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .stats { flex-direction: column; }
    .hero, .band { padding: 3.2rem 0; }
}
