:root {
    --bg: #f7f1e8;
    --surface: rgba(255, 248, 240, 0.82);
    --surface-strong: #fff8f0;
    --text: #1d1b18;
    --muted: #5e554b;
    --accent: #0f766e;
    --accent-strong: #0a4f4a;
    --highlight: #e98a15;
    --line: rgba(29, 27, 24, 0.1);
    --shadow: 0 20px 50px rgba(70, 45, 16, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(233, 138, 21, 0.16), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.18), transparent 25%),
        linear-gradient(180deg, #f8efe3 0%, #f4ede4 48%, #efe7dd 100%);
}

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

.page-shell {
    min-height: 100vh;
}

.hero,
.section,
.footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    padding: 1.25rem 0 3rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    background: rgba(255, 248, 240, 0.62);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.92rem;
}

.menu {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.menu a {
    color: var(--muted);
    font-size: 0.96rem;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 5rem 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-strong);
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.hero-copy h1,
.section-heading h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    line-height: 0.96;
    margin: 0;
}

.hero-copy h1 {
    font-size: clamp(3.4rem, 10vw, 6.8rem);
    max-width: 11ch;
}

.lead {
    max-width: 62ch;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--muted);
    margin: 1.4rem 0 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    transition: transform 0.25s ease, background 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--text);
    color: #fff8f0;
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.hero-card,
.info-card,
.profile-panel,
.news-card,
.biography-text,
.timeline {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -20% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(233, 138, 21, 0.28), transparent 70%);
}

.card-label,
.meta {
    color: var(--highlight);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-card h2,
.info-card h3,
.news-card h3,
.profile-panel h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
}

.hero-card p,
.info-card p,
.news-card p,
.profile-panel p,
.biography-text p,
.timeline li {
    line-height: 1.75;
    color: var(--muted);
}

.hero-card ul {
    padding-left: 1.1rem;
    margin: 1rem 0 0;
    color: var(--text);
}

.section {
    padding: 2rem 0 4rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    max-width: 11ch;
}

.cards-grid,
.profile-layout,
.news-layout,
.biography-layout {
    display: grid;
    gap: 1.25rem;
}

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

.info-card,
.profile-panel,
.news-card,
.biography-text,
.timeline {
    padding: 1.6rem;
}

.tag {
    display: inline-flex;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--accent-strong);
    font-size: 0.92rem;
    margin-top: 0.6rem;
}

.profile-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-panel.accent {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.92), rgba(10, 79, 74, 0.94));
}

.profile-panel.accent h3,
.profile-panel.accent p {
    color: #f6f1ea;
}

.news-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--accent-strong);
    font-size: 0.88rem;
}

.news-card a {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
}

.biography-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.timeline {
    margin: 0;
    padding-left: 2.6rem;
}

.timeline li + li {
    margin-top: 1rem;
}

.footer {
    padding: 0 0 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero-content,
    .portfolio-grid,
    .profile-layout,
    .news-layout,
    .biography-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .section-heading h2 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .topbar {
        border-radius: 28px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.8rem;
    }

    .menu.is-open {
        display: flex;
    }

    .hero {
        padding-top: 0.8rem;
    }

    .hero-content {
        padding-top: 3rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.9rem, 14vw, 4.4rem);
    }

    .footer {
        flex-direction: column;
    }
}
