/* ============================================================
   Liviu Dănicel — Executive portfolio
   Palette: warm paper / deep slate / bronze accent
   ============================================================ */

:root {
    /* Colour - paper + pine + sage */
    --paper: #f4f1e6;
    --paper-2: #ebe6d4;
    --ink: #1e2d25;
    --ink-soft: #2c3d33;
    --muted: #5c6a5f;
    --muted-2: #8c9890;
    --rule: #dcd5bf;
    --rule-soft: #e6e0ce;
    --accent: #6b8a63;
    --accent-deep: #4a6342;
    --accent-soft: rgba(107, 138, 99, 0.1);
    --shadow-sm: 0 1px 2px rgba(30, 45, 37, 0.05);
    --shadow-md: 0 10px 30px -12px rgba(30, 45, 37, 0.18);

    /* Type */
    --font-serif: "Lora", "Georgia", "Times New Roman", serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

    /* Spacing */
    --container: 1180px;
    --pad-x: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(1.75rem, 3.5vw, 3rem);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* ------------------- Reset / base ------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
    position: relative;
}

/* Subtle paper grain across the whole site */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: multiply;
}

/* Make sure content sits above grain */
.site-header, main, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

a {
    color: var(--accent-deep);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
a:hover { color: var(--accent); border-bottom-color: currentColor; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--accent); color: var(--paper); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: .75rem 1rem;
    z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Visually hidden (screen reader / SEO only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* ------------------- Header ------------------- */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(250, 248, 243, 0.72);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
    background: rgba(250, 248, 243, 0.9);
    border-bottom-color: var(--rule);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height .3s ease;
}
.site-header.is-scrolled .header-inner { height: 64px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    border-bottom: none;
    font-weight: 500;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav a:not(.btn) {
    font-size: 0.9rem;
    color: var(--ink-soft);
    border-bottom: none;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}
.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 10px; right: 10px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ------------------- Buttons ------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.35rem;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .2s ease;
    border-bottom-width: 1.5px;
    white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: 0.85rem; }

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: var(--paper);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule);
}
.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--paper-2);
}

/* ------------------- Hero ------------------- */

.hero {
    padding-top: calc(72px + clamp(2rem, 5vw, 4rem));
    padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -15%; right: -20%;
    width: 85%;
    height: 130%;
    background: radial-gradient(ellipse at center,
        rgba(107, 138, 99, 0.22),
        rgba(107, 138, 99, 0.05) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -20%; left: -10%;
    width: 45%;
    height: 70%;
    background: radial-gradient(circle at bottom left,
        rgba(74, 99, 66, 0.14),
        transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(3.25rem, 7.5vw, 5.75rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 400;
    margin-bottom: 1.25rem;
}
.hero-title .accent {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-deep);
}

.hero-role {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    font-style: italic;
}
.hero-role-link {
    color: var(--accent-deep);
    border-bottom: 1px solid transparent;
}
.hero-role-link:hover {
    color: var(--accent);
    border-bottom-color: currentColor;
}

.hero-lede {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    color: var(--muted);
    max-width: 36rem;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}
.hero-lede strong { color: var(--ink); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.hero-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.portrait-frame {
    position: relative;
    width: min(100%, 260px);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: var(--shadow-md);
}
.portrait-frame::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px solid var(--rule);
    border-radius: 22px;
    z-index: -1;
    transform: translate(12px, 12px);
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
}

/* Stats row */
.stats-row {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0;
}
.stat {
    background: var(--paper);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    min-height: 7rem;
}
.stat-value {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.stat-suffix {
    color: var(--accent);
    font-weight: 500;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}

/* ------------------- Sections ------------------- */

.section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
    border-top: 1px solid var(--rule);
}

.section-label {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.section-number {
    color: var(--accent);
    font-weight: 500;
}
.section-label::after {
    content: "";
    flex: 0 0 40px;
    height: 1px;
    background: var(--rule);
    margin-left: .25rem;
}

.section-title {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 500;
    max-width: 30ch;
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* ABOUT */
/* 2-column layout with widths matching .timeline-item so body text
   aligns vertically with the role titles in the experience timeline */
.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    padding-left: 1.5rem;
}
.about-grid .section-label {
    margin-bottom: 0;
    margin-top: .35rem;
}
.about-grid .section-label::after { display: none; }

.about-content .section-title { margin-bottom: 2rem; }

.about-body p {
    font-size: 1.08rem;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 1.35rem;
}

/* ------------------- Timeline ------------------- */

.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item:first-child { padding-top: 0; }

.timeline-marker {
    position: absolute;
    top: 2.35rem;
    left: calc(-1.5rem - 5px);
    width: 10px;
    height: 10px;
    background: var(--paper);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    transition: background .3s ease;
}
.timeline-item:hover .timeline-marker { background: var(--accent); }
.timeline-item:first-child .timeline-marker { top: 0.35rem; }

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding-top: .1rem;
}
.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.timeline-place {
    font-size: 0.85rem;
    color: var(--muted);
}

.timeline-role {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: .2rem;
    line-height: 1.25;
}
.timeline-org {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-deep);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.timeline-clients {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 1rem;
    padding: .65rem .9rem;
    background: var(--paper-2);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.timeline-clients .label {
    color: var(--ink);
    font-weight: 600;
    margin-right: .35rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.timeline-body p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.timeline-compact { padding: 1.25rem 0; }
.timeline-compact .timeline-marker { top: 1.6rem; }
.timeline-compact .timeline-role { font-size: 1.1rem; }
.timeline-compact .timeline-org { margin-bottom: 0; }

/* ------------------- Expertise grid ------------------- */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.expertise-card {
    padding: 2rem 1.75rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    transition: background .3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.expertise-card h3 { min-height: 1.5em; }
.expertise-card .tag-list { margin-bottom: 0; }
.expertise-card p { margin-top: auto; }

/* Featured (full-width) card */
.expertise-card.expertise-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
    background: var(--paper);
    padding: 2.25rem 2rem;
}
.expertise-card.expertise-featured .featured-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.expertise-card.expertise-featured h3 {
    min-height: 0;
    font-size: 1.4rem;
}
.expertise-card.expertise-featured p {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
}
@media (max-width: 760px) {
    .expertise-card.expertise-featured {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}
.expertise-card:hover {
    background: var(--paper-2);
}
.expertise-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.expertise-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.tag-list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-soft);
    padding: .3rem .6rem;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 3px;
    letter-spacing: 0.01em;
}
.expertise-card:hover .tag-list li {
    background: var(--paper);
}

/* ------------------- Education ------------------- */

.education-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.education-grid .section-label { margin-bottom: 0; margin-top: .6rem; }
.education-grid .section-label::after { display: none; }

.education-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rule-soft);
}
.education-list li:last-child { border-bottom: 0; }
.education-list li:first-child { padding-top: 0; }

.edu-main h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: .25rem;
}
.edu-org { color: var(--muted); font-size: 0.95rem; }
.edu-period {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink-soft);
    white-space: nowrap;
    padding-top: .3rem;
}

/* ------------------- Contact ------------------- */

.section-contact {
    background: var(--ink);
    color: var(--paper);
    border-top: 0;
}

.section-contact .section-label { color: rgba(250, 248, 243, 0.6); }
.section-contact .section-number { color: var(--accent); }
.section-contact .section-label::after { background: rgba(250, 248, 243, 0.15); }
.section-contact .section-title { color: var(--paper); max-width: none; }

.contact-inner { max-width: 900px; }

.contact-lede {
    font-size: 1.15rem;
    color: rgba(250, 248, 243, 0.75);
    max-width: 50ch;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(250, 248, 243, 0.1);
    border: 1px solid rgba(250, 248, 243, 0.1);
}
.contact-card {
    background: var(--ink);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    color: var(--paper);
    border-bottom: none;
    transition: background .2s ease;
}
.contact-card:hover:not(.contact-static) {
    background: var(--ink-soft);
    color: var(--paper);
}
.contact-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(250, 248, 243, 0.5);
}
.contact-value {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--paper);
    letter-spacing: -0.01em;
}
.contact-card:hover:not(.contact-static) .contact-value {
    color: var(--accent);
}

/* ------------------- Footer ------------------- */

.site-footer {
    background: var(--ink);
    color: rgba(250, 248, 243, 0.55);
    padding: 2rem 0;
    border-top: 1px solid rgba(250, 248, 243, 0.08);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}
.footer-brand {
    font-family: var(--font-serif);
    color: rgba(250, 248, 243, 0.85);
}
.footer-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.footer-meta a {
    color: rgba(250, 248, 243, 0.55);
    border-bottom: none;
}
.footer-meta a:hover { color: var(--accent); }
.footer-meta .sep { color: rgba(250, 248, 243, 0.25); }

/* ------------------- Reveal animations ------------------- */
/* Only hidden when JS is available — no-JS users see everything */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s cubic-bezier(.2,.65,.25,1),
                transform .9s cubic-bezier(.2,.65,.25,1);
    will-change: opacity, transform;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside the expertise grid */
.expertise-grid .expertise-card { transition-delay: 0s; }
.expertise-grid .expertise-card.reveal.is-visible:nth-child(1) { transition-delay: .02s; }
.expertise-grid .expertise-card.reveal.is-visible:nth-child(2) { transition-delay: .08s; }
.expertise-grid .expertise-card.reveal.is-visible:nth-child(3) { transition-delay: .14s; }
.expertise-grid .expertise-card.reveal.is-visible:nth-child(4) { transition-delay: .20s; }
.expertise-grid .expertise-card.reveal.is-visible:nth-child(5) { transition-delay: .26s; }
.expertise-grid .expertise-card.reveal.is-visible:nth-child(6) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------- Responsive ------------------- */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-portrait { order: -1; }
    .portrait-frame { width: min(80%, 280px); }

    .stats-row { grid-template-columns: repeat(2, 1fr); }

    .about-grid, .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: .5rem;
    }
    .timeline-item:first-child .timeline-marker { top: 2.35rem; }
    .timeline-compact .timeline-marker { top: 1.6rem; }
}

@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }

    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem var(--pad-x) 2rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .site-nav.is-open { max-height: 100vh; }
    .site-nav a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--rule-soft);
        font-size: 1.05rem;
    }
    .site-nav a:last-child { border-bottom: 0; margin-top: 1rem; }
    .site-nav a.btn { justify-content: center; }
    .site-nav a:not(.btn)::after { display: none; }

    .hero { padding-top: calc(72px + 2.5rem); }

    .stats-row { grid-template-columns: 1fr 1fr; }

    .education-list li {
        flex-direction: column;
        gap: .35rem;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; }
    .stat { padding: 1.25rem; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
