/* =========================================================
   Design tokens — dark theme is the default (no JS required)
   ========================================================= */
:root {
    --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 16px;
    color-scheme: light;

    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #000000;
    --text-muted: #1f2937;
    --text-dim: #4b5563;
    --accent: #65a30d;
    --accent-strong: #4d7c0f;
    --accent-soft: rgba(101, 163, 13, 0.08);
    --accent-glow: rgba(101, 163, 13, 0.2);
    --header-bg: #0a1224;
    --dot-color: rgba(15, 23, 42, 0.10);
    --spotlight-color: rgba(101, 163, 13, 0.16);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px -4px rgba(15, 23, 42, 0.07);
    --shadow-card-hover: 0 1px 2px rgba(15, 23, 42, 0.08), 0 14px 30px -8px rgba(15, 23, 42, 0.14), 0 0 0 1px var(--accent-soft);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a1224;
    --bg-elevated: #111a2e;
    --surface: #131e36;
    --surface-2: #1a2845;
    --border: #1f2d4d;
    --border-strong: #2d3f63;
    --text: #ffffff;
    --text-muted: #e2e8f0;
    --text-dim: #94a3b8;
    --accent: #a3e635;
    --accent-strong: #84cc16;
    --accent-soft: rgba(163, 230, 53, 0.10);
    --accent-glow: rgba(163, 230, 53, 0.22);
    --header-bg: #060c1a;
    --dot-color: rgba(163, 230, 53, 0.21);
    --spotlight-color: rgba(163, 230, 53, 0.18);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 28px -16px rgba(0, 0, 0, 0.7);
    --shadow-card-hover: 0 1px 0 rgba(163, 230, 53, 0.18) inset, 0 14px 36px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--accent-soft);
}

/* =========================================================
   Base
   ========================================================= */
html, body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-image:
        radial-gradient(900px 500px at 92% -10%, var(--accent-soft), transparent 60%),
        radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 1.5px);
    background-size: auto, 28px 28px;
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.08s linear;
}

.font-mono { font-family: var(--font-mono); }

/* =========================================================
   Section heading — small mono number above the title
   ========================================================= */
.section-head {
    margin-bottom: 2rem;
    padding-top: 1rem;
}
.section-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.section-title {
    position: relative;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.25;
    margin: 0;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 8px var(--accent-glow);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}
.reveal.is-visible .section-title::after {
    transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
    .section-title::after { transform: scaleX(1); transition: none; }
}

/* =========================================================
   Tech card
   ========================================================= */
.tech-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.tech-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 2px;
    z-index: 1;
}
.tech-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(240px circle at var(--mx, -200px) var(--my, -200px), var(--spotlight-color), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.tech-card > * { position: relative; z-index: 2; }
.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-strong);
}
.tech-card:hover::before {
    opacity: 1;
}
.tech-card:hover::after {
    opacity: 1;
}
.tech-card .card-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}
.tech-card .card-role {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}
.tech-card .card-meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-style: italic;
}
.tech-card .card-body {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 450;
    margin-top: 0.4rem;
    line-height: 1.6;
}

.tech-card-flat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}
.tech-card-flat::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, -200px) var(--my, -200px), var(--spotlight-color), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.tech-card-flat > * { position: relative; z-index: 2; }
.tech-card-flat:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-strong);
}
.tech-card-flat:hover::after {
    opacity: 1;
}

/* =========================================================
   Stats strip — animated counters
   ========================================================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0;
    padding: 2.25rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
@media (min-width: 768px) {
    .stats-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
    position: relative;
}
[data-audience="company"] .stat-years { order: 99; }
@media (min-width: 768px) {
    [data-audience="company"] .stat-clients::before {
        display: none !important;
    }
    [data-audience="company"] .stat-years::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background: var(--border);
        display: block;
    }
}
@media (min-width: 768px) {
    .stat-item + .stat-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background: var(--border);
    }
}
.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-label {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* =========================================================
   Download CTA — accent bg, dark text on dark, white text on light
   ========================================================= */
#btn-download-cv { color: #ffffff; }
[data-theme="dark"] #btn-download-cv { color: #0a1224; }

/* =========================================================
   Profile photo — rotating accent arc + hover glow
   ========================================================= */
.profile-photo {
    position: relative;
    flex-shrink: 0;
    border-radius: 50%;
}
.profile-photo::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--accent) 0deg,
        var(--accent) 35deg,
        var(--accent-strong) 90deg,
        transparent 140deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
            mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    animation: profile-arc-spin 18s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.profile-photo::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.profile-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.5s ease;
}
.profile-photo:hover img {
    transform: scale(1.04);
    box-shadow: 0 0 60px var(--accent-glow);
}
@keyframes profile-arc-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .profile-photo::before { animation: none; }
    .profile-photo:hover img { transform: none; }
}
@media print {
    .profile-photo::before, .profile-photo::after { display: none !important; }
    .profile-photo:hover img { transform: none !important; box-shadow: none !important; }
}

/* =========================================================
   Audience switcher (Agency / Company)
   ========================================================= */
.audience-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 1rem 1rem;
}
.audience-caption {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.audience-heading {
    font-family: var(--font-sans);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0;
    text-align: center;
}
.audience-switcher {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-card);
}
.audience-switcher button {
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.audience-switcher button:hover { color: var(--text); }
.audience-switcher button.is-active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px -4px var(--accent-glow);
}
[data-theme="dark"] .audience-switcher button.is-active { color: #0a1224; }

.audience-agency, .audience-company { display: none; }
[data-audience="agency"] .audience-agency,
[data-audience="company"] .audience-company { display: revert; }

/* =========================================================
   Trust strip — full-width infinite marquee
   ========================================================= */
.trust-strip {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-strip-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marquee 60s linear infinite;
}
.trust-strip:hover .trust-strip-track {
    animation-play-state: paused;
}
@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
.trust-strip img {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.trust-strip img:hover {
    opacity: 1;
    transform: scale(1.12);
}
[data-theme="dark"] .trust-strip img {
    background: #ffffff;
    padding: 5px 9px;
    border-radius: 5px;
    box-sizing: content-box;
}
@media (prefers-reduced-motion: reduce) {
    .trust-strip-track { animation: none; }
}

/* =========================================================
   Company logo grid — uniform tile, mono-grayscale -> color on hover
   ========================================================= */
.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (min-width: 640px) { .company-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .company-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .company-grid { grid-template-columns: repeat(5, 1fr); } }

.company-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .company-tile {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}
.company-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, var(--accent-soft) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.company-tile img {
    max-height: 44px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.company-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.company-tile:hover::after {
    opacity: 1;
}
.company-tile:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================================
   Courses table
   ========================================================= */
.courses-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}
.courses-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}
.courses-table tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text);
}
.courses-table tbody tr:last-child td { border-bottom: 0; }
.courses-table tbody tr:hover td { background: var(--surface-2); }
.courses-table .col-year {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    white-space: nowrap;
    width: 1%;
}
.courses-table .col-provider {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    white-space: nowrap;
    width: 1%;
}
.courses-table .col-cert { width: 1%; text-align: right; }
.courses-table .col-cert a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.courses-table .col-cert a:hover { color: var(--accent); }

/* =========================================================
   Header controls cluster (theme + lang, top-right)
   ========================================================= */
.header-controls {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}
.lang-switch a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.lang-switch a:not(.is-current) { color: rgba(255, 255, 255, 0.65); }
.lang-switch a:not(.is-current):hover { color: #fff; }
.lang-switch a.is-current {
    color: var(--accent);
    background: rgba(163, 230, 53, 0.1);
}
.wcag-badge {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 10px;
}
.wcag-badge i { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
@media (min-width: 768px) {
    .wcag-badge { display: inline-flex; }
}

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0); }

/* =========================================================
   Aurora mesh — soft drifting blobs in the header
   ========================================================= */
.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}
.aurora-blob-1 {
    width: 620px;
    height: 620px;
    top: -25%;
    left: -10%;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.55), transparent 65%);
}
.aurora-blob-2 {
    width: 540px;
    height: 540px;
    top: 20%;
    right: -12%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.40), transparent 65%);
}
.aurora-blob-3 {
    width: 460px;
    height: 460px;
    bottom: -35%;
    left: 35%;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.32), transparent 65%);
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .tech-card, .tech-card-flat, .skill-chip, .company-tile { transition: none; }
    body { background-attachment: scroll; }
}

/* =========================================================
   Skip link, snackbar, focus
   ========================================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: #0a0a0a;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}
.skip-link:focus { top: 6px; }

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible, button:focus-visible {
    box-shadow: 0 0 0 4px var(--accent-soft);
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--accent);
    text-align: center;
    border-radius: 8px;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
}
#snackbar.show {
    visibility: visible;
    -webkit-animation: snackbar-fade 3s;
    animation: snackbar-fade 3s;
}
@keyframes snackbar-fade {
    0% { bottom: 0; opacity: 0; }
    15% { bottom: 30px; opacity: 1; }
    85% { bottom: 30px; opacity: 1; }
    100% { bottom: 0; opacity: 0; }
}

/* =========================================================
   Custom scrollbar (subtle)
   ========================================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* =========================================================
   Skill list (intro bullets)
   ========================================================= */
.skill-list strong {
    color: var(--accent);
    font-weight: 600;
}
.skill-list li {
    border-bottom: 1px solid var(--border);
}
.skill-list li:hover {
    background: var(--surface-2);
    padding-left: 0.5rem;
    transition: padding-left 0.2s ease, background 0.2s ease;
}

/* =========================================================
   Section accordion (native details/summary)
   ========================================================= */
.section-accordion {
    border: 0;
    width: 100%;
}
.section-accordion summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    padding: 0.6rem 0.75rem 0.6rem 0;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1), color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.section-accordion .section-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}
.section-accordion summary:hover {
    transform: translateX(6px);
}
.section-accordion summary:hover .section-num {
    color: var(--accent-strong);
}
.section-accordion summary:hover .section-title {
    color: var(--accent);
}
.section-accordion summary::-webkit-details-marker { display: none; }
.section-accordion summary::marker { content: ''; display: none; }
.section-accordion summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}
.section-accordion .section-chevron {
    color: var(--text-dim);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), color 0.25s ease;
    font-size: 0.9rem;
    line-height: 1;
}
.section-accordion summary:hover .section-chevron { color: var(--text); }
.section-accordion[open] .section-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}
.section-accordion[open] summary { margin-bottom: 2rem; }
.section-accordion[open] { margin-bottom: 2.25rem; }
.section-accordion:not([open]) .section-head { margin-bottom: 0; }
.section-body {
    animation: accordion-fade 0.4s ease;
}
@keyframes accordion-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .section-body { animation: none; }
    .section-accordion .section-chevron { transition: none; }
}

/* =========================================================
   Print — force light theme for PDF/printed output
   ========================================================= */
@media print {
    .section-accordion .section-chevron { display: none !important; }
    .section-accordion .section-body { display: block !important; animation: none !important; }
    :root, [data-theme="dark"] {
        color-scheme: light;
        --bg: #ffffff;
        --bg-elevated: #ffffff;
        --surface: #ffffff;
        --surface-2: #f5f5f5;
        --border: #d4d4d4;
        --border-strong: #a3a3a3;
        --text: #0a0a0a;
        --text-muted: #404040;
        --text-dim: #525252;
        --accent: #4d7c0f;
        --accent-strong: #3f6212;
        --accent-soft: rgba(77, 124, 15, 0.08);
        --accent-glow: rgba(77, 124, 15, 0.15);
        --header-bg: #ffffff;
        --grid-color: transparent;
        --shadow-card: none;
        --shadow-card-hover: none;
    }
    body {
        background-image: none !important;
        background-color: #ffffff !important;
        color: #0a0a0a !important;
        font-size: 12px !important;
    }
    .aurora, .particles-canvas { display: none !important; }
    .tech-card, .tech-card-flat {
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .trust-strip img { filter: none !important; opacity: 1 !important; }
    .company-tile img { filter: none !important; opacity: 1 !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .section-title { color: #0a0a0a !important; }
    .section-num { color: #4d7c0f !important; }

    .flex.lg\:flex-row, .flex.md\:flex-row { flex-direction: row !important; }
    .lg\:items-end { align-items: flex-end !important; }
    .md\:items-start { align-items: flex-start !important; }
    .md\:justify-start { justify-content: flex-start !important; }
    .md\:text-left { text-align: left !important; }
    .md\:h-\[220px\] { height: 220px !important; }
    .md\:gap-0 { gap: 0 !important; }
    .md\:absolute { position: absolute !important; }
    .grid.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    header { color: #0a0a0a !important; }
    header * { color: #0a0a0a !important; }
}
