/* =====================================================================
   Greuter Medical Consultancy — Stylesheet
   Token-driven, dark-mode aware. See DESIGN-SPEC.md.
   ---------------------------------------------------------------------
   1. Tokens (light + dark)
   2. Reset & base
   3. Typography
   4. Layout primitives (container, section, eyebrow)
   5. Background (CSS mesh)
   6. Components: buttons, cards, header, footer, nav
   7. Pages (added in Phase 3)
   8. Motion (scroll-reveal)
   9. Responsive
   ===================================================================== */

/* ============================ 1. TOKENS ============================= */
:root {
    /* fonts */
    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Source Code Pro', monospace;

    /* color — light */
    --bg: #F6F8FA;
    --bg-subtle: #EEF2F6;
    --surface: #FFFFFF;
    --surface-2: #F9FBFC;
    --ink: #0F1E2E;
    --ink-muted: #51616F;
    --ink-subtle: #7C8B98;
    --brand: #20C997;
    --brand-strong: #1BAA80;
    --brand-soft: #D6F5EC;
    --accent-navy: #12324B;
    --border: #E2E8EE;
    --ring: rgba(32, 201, 151, 0.30);
    --on-brand: #FFFFFF;          /* text on solid brand */
    --shadow: 14 30 60;           /* rgb triplet */

    /* type scale (fluid) */
    --fs-eyebrow: 0.8125rem;
    --fs-sm: 0.875rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.1875rem;
    --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    --fs-h1: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
    --fs-display: clamp(2.75rem, 1.8rem + 3.6vw, 4rem);

    /* spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* elevation */
    --e1: 0 1px 2px rgb(var(--shadow) / 0.04), 0 1px 3px rgb(var(--shadow) / 0.06);
    --e2: 0 2px 6px rgb(var(--shadow) / 0.05), 0 4px 12px rgb(var(--shadow) / 0.08);
    --e3: 0 6px 14px rgb(var(--shadow) / 0.08), 0 12px 32px rgb(var(--shadow) / 0.12);

    /* motion */
    --dur-1: 150ms;
    --dur-2: 250ms;
    --dur-3: 400ms;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* layout */
    --maxw: 1080px;
    --gutter: 24px;

    /* header height — reserved so JS-injected header causes no CLS */
    --header-h: 68px;
}

[data-theme="dark"] {
    --bg: #0B131E;
    --bg-subtle: #0F1A28;
    --surface: #141F2E;
    --surface-2: #1A2738;
    --ink: #E8EEF4;
    --ink-muted: #9FB0BF;
    --ink-subtle: #6E8092;
    --brand: #63E6BE;
    --brand-strong: #81ECC9;
    --brand-soft: rgba(99, 230, 190, 0.12);
    --accent-navy: #1B4B6B;
    --border: #243244;
    --ring: rgba(99, 230, 190, 0.35);
    --on-brand: #0B131E;
    --shadow: 0 0 0;
}

/* ========================= 2. RESET & BASE ========================= */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

main { flex: 1 0 auto; }

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

a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); }

ul { list-style: none; }

button { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ========================== 3. TYPOGRAPHY ========================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { max-width: 65ch; }

/* shared lead paragraph */
.lead {
    font-size: var(--fs-lg);
    color: var(--ink-muted);
}

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

/* ===================== 4. LAYOUT PRIMITIVES ====================== */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--space-9); }

.section-head {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-head p { margin-inline: auto; }

/* mono kicker / eyebrow label */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-strong);
    margin-bottom: var(--space-3);
}
.eyebrow::before { content: '// '; opacity: 0.6; }

/* =========================== 5. BACKGROUND ======================== */
/* Static CSS mesh: radial brand/navy blobs + faint dot grid.
   Fixed, behind everything, theme-aware, reduced-motion safe. */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(40% 50% at 12% 8%, rgb(var(--bg-blob-a, 32 201 151) / 0.10), transparent 70%),
        radial-gradient(45% 55% at 92% 18%, rgb(18 50 75 / 0.08), transparent 70%),
        radial-gradient(50% 60% at 78% 96%, rgb(var(--bg-blob-a, 32 201 151) / 0.07), transparent 70%);
}
.site-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(var(--shadow) / 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 100%);
            mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 100%);
    opacity: 0.6;
}
[data-theme="dark"] .site-bg { --bg-blob-a: 99 230 190; }
[data-theme="dark"] .site-bg::after {
    background-image: radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px);
}

/* =========================== 6. COMPONENTS ======================== */
/* ---- Buttons ---- */
.btn,
.btn-outline,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.8rem 1.6rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform var(--dur-2) var(--ease),
                box-shadow var(--dur-2) var(--ease),
                background-color var(--dur-2) var(--ease),
                color var(--dur-2) var(--ease),
                border-color var(--dur-2) var(--ease);
}

.btn {
    background-color: var(--brand);
    color: var(--on-brand);
    box-shadow: var(--e2);
}
.btn:hover {
    background-color: var(--brand-strong);
    color: var(--on-brand);
    transform: translateY(-2px);
    box-shadow: var(--e3);
}
.btn:active { transform: translateY(0); box-shadow: var(--e1); }

.btn-outline {
    background-color: transparent;
    color: var(--brand-strong);
    border-color: var(--brand);
}
.btn-outline:hover {
    background-color: var(--brand);
    color: var(--on-brand);
    transform: translateY(-2px);
    box-shadow: var(--e2);
}

.btn-ghost {
    background-color: transparent;
    color: var(--ink-muted);
}
.btn-ghost:hover { color: var(--brand-strong); background-color: var(--brand-soft); }

/* ---- Card ---- */
.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--e2);
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.card--interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--e3);
}
/* optional accent top border on hover */
.card--accent {
    position: relative;
    overflow: hidden;
}
.card--accent::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-3) var(--ease);
}
.card--accent:hover::before { transform: scaleX(1); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    background-color: rgb(var(--header-rgb, 255 255 255) / 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
            backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
[data-theme="dark"] .site-header { --header-rgb: 11 19 30; }

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.logo .logo-accent { color: var(--brand-strong); }

/* ---- Nav ---- */
.main-nav ul {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}
.main-nav a {
    position: relative;
    color: var(--ink-muted);
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color var(--dur-2) var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    height: 2px; width: 0;
    background-color: var(--brand);
    transition: width var(--dur-2) var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.icon-btn:hover { color: var(--brand-strong); background-color: var(--brand-soft); }
.icon-btn svg { width: 22px; height: 22px; }

/* theme icon swap */
#theme-toggle .sun, #theme-toggle .moon { display: none; }
html:not([data-theme="dark"]) #theme-toggle .moon { display: block; }
html[data-theme="dark"] #theme-toggle .sun { display: block; }

#hamburger { display: none; }

/* ---- Footer ---- */
.site-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: var(--space-6);
    margin-top: var(--space-9);
    color: var(--ink-subtle);
    font-size: var(--fs-sm);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.footer-inner nav ul { display: flex; gap: var(--space-5); }
.footer-inner a { color: var(--ink-muted); }
.footer-inner a:hover { color: var(--brand-strong); }

/* ============================= 7. PAGES =========================== */
/* ---- Hero ---- */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-8);
    padding-block: clamp(3rem, 2rem + 6vw, 6rem);
    min-height: min(78vh, 720px);
}
.hero-content h1 { margin-block: var(--space-2) var(--space-4); }
.hero-content .lead { margin-bottom: var(--space-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-figure { display: flex; justify-content: center; }
.hero-portrait {
    position: relative;
    width: min(360px, 80%);
    aspect-ratio: 1;
    border-radius: var(--r-pill);
    padding: 6px;
    background: conic-gradient(from 200deg, var(--brand), var(--accent-navy), var(--brand));
    box-shadow: var(--e3);
}
.hero-portrait::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    background: radial-gradient(closest-side, rgb(var(--bg-blob-a, 32 201 151) / 0.25), transparent 70%);
    z-index: -1;
}
[data-theme="dark"] .hero-portrait::after { --bg-blob-a: 99 230 190; }
.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    border: 4px solid var(--surface);
}

/* ---- Value grid ---- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}
.value-card { padding: var(--space-6); }
.value-card h3 { margin-bottom: var(--space-3); }
.value-card p { color: var(--ink-muted); }
.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand-strong);
    margin-bottom: var(--space-4);
}
.value-icon svg { width: 28px; height: 28px; }

/* ---- CTA band ---- */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    background:
        linear-gradient(135deg, var(--brand-soft), transparent 60%),
        var(--surface);
}
.cta-band h2 { margin-block: var(--space-2) var(--space-3); }
.cta-band p { color: var(--ink-muted); margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ---- Page header (About/Services/Contact) ---- */
.page-header {
    text-align: center;
    max-width: 760px;
    padding-top: var(--space-9);
    padding-bottom: var(--space-2);
}
.page-header h1 { margin-bottom: var(--space-4); }
.page-header .lead { margin-inline: auto; }

/* ---- About ---- */
.about-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-8);
    align-items: start;
}
.about-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    display: grid;
    gap: var(--space-5);
}
.about-portrait {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--e2);
}
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-facts { padding: var(--space-5); }
.about-facts h3 { margin-bottom: var(--space-3); }
.fact-list { display: grid; gap: var(--space-2); }
.fact-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
}
.fact-list li:last-child { border-bottom: none; }
.fact-list span { color: var(--ink-subtle); }
.fact-list strong { color: var(--ink); font-weight: 600; }

.about-body h2 {
    font-size: var(--fs-h2);
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
}
.about-body h2:first-child { margin-top: 0; }
.about-body p { color: var(--ink-muted); margin-bottom: var(--space-4); }

/* timeline */
.timeline {
    position: relative;
    margin: var(--space-5) 0 var(--space-6);
    padding-left: var(--space-6);
}
.timeline::before {
    content: '';
    position: absolute;
    top: 6px; bottom: 6px; left: 5px;
    width: 2px;
    background: linear-gradient(var(--brand), var(--border));
}
.timeline-item { position: relative; margin-bottom: var(--space-5); }
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-6) + 0px);
    top: 7px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--border);
}
.timeline-item h3 { font-size: var(--fs-lg); margin-bottom: 2px; }
.timeline-date { color: var(--ink-subtle); font-size: var(--fs-sm); margin: 0; }

/* skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
}
.skill-group h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-list li {
    font-size: var(--fs-sm);
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.35rem 0.8rem;
}

/* ---- Services ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}
.service-card { padding: var(--space-6); }
.service-card h3 { margin-bottom: var(--space-3); }
.service-card p { color: var(--ink-muted); }

/* process (rebuilt — robust grid, no floats) */
.process {
    display: grid;
    gap: var(--space-4);
    max-width: 760px;
    margin-inline: auto;
    counter-reset: step;
}
.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-5);
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--e1);
    padding: var(--space-5);
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.process-step:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}
.process-step h3 { margin-bottom: var(--space-2); }
.process-step p { color: var(--ink-muted); margin: 0; }

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}
.contact-card { text-align: center; padding: var(--space-6); }
.contact-card .value-icon { margin-inline: auto; }
.contact-card h3 { margin-bottom: var(--space-2); }
.contact-card p { color: var(--ink-muted); margin-inline: auto; }

.form-container {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.form-container > h2 { text-align: center; }
.form-container > .lead { text-align: center; margin: var(--space-2) auto var(--space-6); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.form-group { margin-bottom: var(--space-4); }
.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--ink-muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .input-error { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,0.18); }
[data-theme="dark"] .form-group .input-error { border-color: #f17c88; box-shadow: 0 0 0 3px rgba(241,124,136,0.25); }

.error-message {
    display: block;
    margin-top: var(--space-1);
    min-height: 1.2em;
    font-size: var(--fs-sm);
    color: #dc3545;
}
[data-theme="dark"] .error-message { color: #f17c88; }

.hidden { display: none !important; }

/* form status messages */
.form-status-message { text-align: center; margin-top: var(--space-4); font-weight: 600; }
.form-message--error { color: #dc3545; }
[data-theme="dark"] .form-message--error { color: #f17c88; }
.form-message--info { color: var(--brand-strong); }

.form-success-message {
    background: var(--brand-soft);
    color: var(--brand-strong);
    border: 1px solid var(--brand);
    border-radius: var(--r-md);
    padding: var(--space-5);
    text-align: center;
}
.form-success-message h3 { color: var(--brand-strong); margin-bottom: var(--space-2); }

/* ---- FAQ (details accordion) ---- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--e1);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-lg);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--brand-strong);
    transition: transform var(--dur-2) var(--ease);
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--ink-muted);
    max-width: none;
}

/* ============================ 8. MOTION =========================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ========================= 9. RESPONSIVE ========================== */
@media (min-width: 768px) {
    :root { --gutter: 32px; }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background-color: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--e2);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-2) var(--gutter);
    }
    .main-nav li { border-bottom: 1px solid var(--border); }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: var(--space-4) 0; }
    .main-nav a::after { display: none; }

    #hamburger { display: inline-flex; }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
        min-height: 0;
    }
    .hero-figure { order: -1; }
    .hero-content .lead { margin-inline: auto; }
    .hero-cta { justify-content: center; }

    .cta-band { flex-direction: column; text-align: center; align-items: center; }
    .cta-band p { margin-inline: auto; }
    .cta-band-actions { justify-content: center; }

    .about-layout { grid-template-columns: 1fr; gap: var(--space-6); }
    .about-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
    .about-aside { grid-template-columns: 1fr; }
}
