@charset "UTF-8";
/* ─── CONFIGURATION ─────────────────────────────────────────────────── */
:root {
    --font-narrative: 'Lato', sans-serif;
    --font-technical: 'IBM Plex Mono', monospace;
    --cover-height-mobile: 150px;
    --cover-height-desktop: 420px;
    --max-w: 1152px;
    --px: 1.5rem;

    /* Light theme tokens */
    --bg: #ffffff;
    --fg: #000000;
    --bg-header: rgba(255, 255, 255, 0.9);
    --border-header: #f4f4f5;
    --bg-toggle: #f4f4f5;
    --border-toggle: #e4e4e7;
    --bg-thumb: #000000;
    --fg-thumb: #ffffff;
    --bg-mobile-menu: #ffffff;
    --border-mobile-menu: #e4e4e7;
    --bg-cover: #e4e4e7;
    --border-section: #e4e4e7;
    --bg-exp-hover: rgba(250, 250, 250, 0.5);
    --bg-exp-open: rgba(250, 250, 250, 0.2);
    --border-exp: #f4f4f5;
    --tag-bg: #000000;
    --tag-fg: #ffffff;
    --social-bg: #fafafa;
    --social-fg: #000000;
    --social-hover-bg: #000000;
    --social-hover-fg: #ffffff;
    --border-footer: #f4f4f5;
    --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    --nav-inactive: #a1a1aa;
    --back-to-top-bg: #f4f4f5;
    --back-to-top-fg: #000000;
    --back-to-top-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --profile-border: #e4e4e7;
    --explore-btn-bg: #000000;
    --explore-btn-fg: #ffffff;
    --explore-btn-hover: #27272a;
    --scroll-progress-color: #71717a;
    --accent: #000000;
}

/* ─── DARK THEME TOKENS ─────────────────────────────────────────────── */
.dark-theme {
    --bg: #18181b;
    --fg: #e4e4e7;
    --bg-header: rgba(24, 24, 27, 0.85);
    --border-header: #27272a;
    --bg-toggle: #3f3f46;
    --border-toggle: #52525b;
    --bg-thumb: #ffffff;
    --fg-thumb: #000000;
    --bg-mobile-menu: #18181b;
    --border-mobile-menu: #27272a;
    --bg-cover: #3f3f46;
    --border-section: #27272a;
    --bg-exp-hover: rgba(39, 39, 42, 0.3);
    --bg-exp-open: rgba(39, 39, 42, 0.4);
    --border-exp: #27272a;
    --tag-bg: #e4e4e7;
    --tag-fg: #18181b;
    --social-bg: #27272a;
    --social-fg: #ffffff;
    --social-hover-bg: #e4e4e7;
    --social-hover-fg: #18181b;
    --border-footer: #27272a;
    --dropdown-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    --nav-inactive: #a1a1aa;
    --back-to-top-bg: #3f3f46;
    --back-to-top-fg: #ffffff;
    --back-to-top-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --profile-border: #3f3f46;
    --explore-btn-bg: #ffffff;
    --explore-btn-fg: #09090b;
    --explore-btn-hover: #e4e4e7;
    --scroll-progress-color: #a1a1aa;
    --accent: #e4e4e7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-narrative);
    letter-spacing: 0;
    margin: 0;
    background-color: var(--bg);
    color: var(--fg);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
}

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

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

.app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip-to-content link — off-screen until focused via keyboard */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 300;
    background: var(--fg);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

#main-content:focus {
    outline: none;
}

/* Keyboard focus ring. Browsers without :focus-visible drop this rule and
   keep their default outline. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Screen-reader-only content (e.g. aria-live announcements) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.main-content {
    flex-grow: 1;
}

.nav-left {
    display: flex;
    align-items: center;
}

.bio-btn-wrap {
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.email-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-inactive);
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.email-copy-btn:hover {
    color: var(--fg);
    background-color: var(--bg-exp-hover);
}

.email-copy-btn.copied {
    color: #22c55e;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────── */
/* IBM Plex Mono ships at 700 only (fonts/fonts.css), so every rule that uses it
   says 700. Any other weight silently renders as 700 anyway: to use one, add
   its face to fonts.css first. */
footer,
.technical-font {
    font-family: var(--font-technical) !important;
}

header {
    font-family: var(--font-narrative) !important;
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────────────────── */
.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.space-y-12>*+* {
    margin-top: 3rem;
}

/* ─── SCROLL PROGRESS ────────────────────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: var(--scroll-progress-color);
    z-index: 200;
    transform: scaleX(0);
    transform-origin: left;
}

/* ─── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-header);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-nav {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 7rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid var(--border-toggle);
    background-color: var(--bg-toggle);
    padding: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-thumb {
    position: absolute;
    height: 1.75rem;
    width: 52px;
    border-radius: 9999px;
    background-color: var(--bg-thumb);
    color: var(--fg-thumb);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-toggle-thumb.dark {
    transform: translateX(48px);
}

.theme-toggle-thumb.light {
    transform: translateX(0);
}

.theme-toggle-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-inline: 0.75rem;
    opacity: 0.2;
    pointer-events: none;
}

.site-title {
    margin-left: 1rem;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.8;
    display: inline;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
    gap: 2rem;
}

.nav-btn {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nav-inactive);
    border: none;
    background: none;
    transition: color 0.2s;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

.nav-btn.active {
    color: var(--fg);
    border-bottom: 2px solid var(--fg);
    padding-bottom: 0.25rem;
}

.nav-btn:hover {
    color: var(--fg);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem var(--px);
    background-color: var(--bg-mobile-menu);
    border-bottom: 1px solid var(--border-mobile-menu);
    transition: background-color 0.3s;
}

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

.mobile-menu-item {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    transition: opacity 0.2s;
    min-height: 2.75rem;
    width: 100%;
}

.mobile-menu-item:hover {
    opacity: 0.7;
}

/* ─── COVER ──────────────────────────────────────────────────────────── */
.cover-container {
    height: var(--cover-height-mobile);
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-cover);
}

.cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}

.cover-attribution {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    pointer-events: none; /* Let hover fall through to icon */
}

.cover-attr-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.cover-attr-icon:hover,
.cover-attribution.is-open .cover-attr-icon {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* On the photo and the dark tooltip the theme accent can vanish — always white */
.cover-attr-icon:focus-visible,
.kurzgesagt-link:focus-visible {
    outline-color: #fff;
}

.cover-attr-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 9.5px;
    font-family: var(--font-technical);
    font-weight: 700;
    line-height: 1.5;
    max-width: 420px;
    margin-left: 8px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    /* visibility keeps the hidden link out of the tab order and the
       accessibility tree; its delay lets the fade-out finish first */
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cover-attr-tooltip::before {
    content: "";
    position: absolute;
    left: -12px;
    top: -10px;
    bottom: -10px;
    width: 12px;
}

/* Opened by the toggle button (click, tap, Enter, Space) */
.cover-attribution.is-open .cover-attr-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

/* Hover is an extra on real pointer devices only — on touch screens a tap
   would leave :hover stuck on */
@media (hover: hover) {
    .cover-attribution:hover .cover-attr-tooltip {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
        transition-delay: 0s;
    }
}

.cover-attr-tooltip p {
    margin: 0;
}

.kurzgesagt-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 2px;
    font-weight: 700;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.kurzgesagt-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* ─── PAGES ──────────────────────────────────────────────────────────── */
.page-transition {
    animation: slideInFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── HOME PAGE ──────────────────────────────────────────────────────── */
.home-section {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.home-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    flex-grow: 1;
}

.home-heading {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.home-subtitle {
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0;
}

.home-bio {
    max-width: 36rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-bio p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.home-profile {
    width: 100%;
}

/* A <button>: the whole photo switches it, with the offset shadow as decoration */
.profile-frame-wrap {
    position: relative;
    display: block;
    width: calc(100% - 12px);
    aspect-ratio: 4/5;
    margin: 0 12px 12px 0;
    padding: 0;
    cursor: pointer;
}

.profile-frame-wrap:focus-visible {
    outline-offset: 4px;
}

.profile-shadow {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    background: var(--border-section);
    transition: transform 0.15s ease;
}

.profile-frame-wrap:hover .profile-shadow {
    transform: translate(2px, 2px);
}

.profile-frame-wrap:active .profile-shadow {
    transform: translate(4px, 4px);
}

.profile-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--profile-border);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    background-color: var(--explore-btn-bg);
    color: var(--explore-btn-fg);
    transition: background-color 0.2s;
    cursor: pointer;
}

.explore-btn:hover {
    background-color: var(--explore-btn-hover);
}

.explore-btn svg {
    transition: transform 0.2s;
}

.explore-btn:hover svg {
    transform: translateX(8px);
}

/* ─── WORK EXPERIENCE ────────────────────────────────────────────────── */
.section-wrap {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 2.5rem;
}

.section-title-mb {
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 48rem;
    margin: 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.header-controls-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 2.25rem;
}

.header-actions-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.expand-toggle-row {
    display: flex;
    justify-content: flex-end;
}

.exp-collapse-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.65rem;
    height: 1.625rem;
    background: none;
    border: 1px solid var(--border-section);
    border-radius: 4px;
    color: var(--fg);
    opacity: 0.5;
    cursor: pointer;
    font-family: var(--font-technical);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.exp-collapse-toggle:hover {
    opacity: 1;
    background-color: var(--bg-exp-hover);
    border-color: var(--fg);
}

.view-toggle-wrap {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border-section);
    border-radius: 4px;
    overflow: hidden;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.75rem;
    background: none;
    border: none;
    color: var(--fg);
    opacity: 0.35;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.view-toggle-btn:hover {
    opacity: 0.75;
    background-color: var(--bg-exp-hover);
}

.view-toggle-btn.active {
    opacity: 1;
    background-color: var(--fg);
    color: var(--bg);
}

.view-controls-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.7rem;
    height: 1.75rem;
    background: none;
    border: 1px solid var(--border-section);
    color: var(--fg);
    opacity: 0.55;
    cursor: pointer;
    border-radius: 4px;
    font-family: var(--font-technical);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.header-action-btn:hover {
    opacity: 1;
    background-color: var(--bg-exp-hover);
    border-color: var(--fg);
}

.compact-view {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.compact-group {
    display: flex;
    flex-direction: column;
}

.compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.875rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-exp);
}

.compact-row:last-child {
    border-bottom: none;
}

.compact-role {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.compact-period {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    white-space: nowrap;
    font-family: var(--font-narrative);
}

/* Company group */
.company-group {
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.company-group:hover {
    background-color: var(--bg-exp-hover);
}

.company-label {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.divider-line {
    flex-grow: 1;
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--border-section), transparent);
}

/* Experience row */
.exp-row {
    border-bottom: 1px solid var(--border-exp);
    transition: background-color 0.3s;
    padding-inline: 0;
}

.exp-row.is-open {
    background-color: var(--bg-exp-open);
    border-left: 3px solid var(--fg);
    padding-left: 1rem;
}

.exp-toggle-btn {
    width: 100%;
    padding-block: 1.5rem;
    padding-inline: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: none;
    background: none;
    color: var(--fg);
    cursor: pointer;
}

.exp-role {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.exp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.exp-dates {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1.4;
}

.exp-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.exp-chevron {
    transition: transform 0.3s;
}

/* Opens by growing its single grid row from 0fr to 1fr: the easing runs over
   the content's real height, whatever it is. .exp-body-clip is the row's item;
   it has no padding, so it can shrink to nothing and clip what's inside. */
.exp-body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.exp-body.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.exp-body-clip {
    min-height: 0;
    overflow: hidden;
}

.exp-body-inner {
    max-width: 56rem;
    padding-bottom: 2rem;
    padding-top: 0.5rem;
    padding-left: 0;
}

.exp-description {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 10px;
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-technical);
    background-color: var(--tag-bg);
    color: var(--tag-fg);
}

/* ─── EDUCATION ──────────────────────────────────────────────────────── */
.edu-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-row {
    padding-block: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-inst {
    font-size: clamp(20px, 2.5vw, 22px);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.edu-cert {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.edu-field {
    font-size: 16px;
    opacity: 0.8;
    margin: 0;
}

.edu-period {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    white-space: nowrap;
}

/* ─── SKILLS ─────────────────────────────────────────────────────────── */
.skill-cat {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-cat-title {
    font-size: clamp(20px, 2.5vw, 22px);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.skill-cat-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.skill-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
}

/* Language proficiency cards */
.skill-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.skill-lang-card {
    border: 1px solid var(--border-section);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background-color 0.2s;
}

.skill-lang-card:hover {
    background-color: var(--bg-exp-hover);
}

.skill-lang-name {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.skill-lang-note {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.skill-lang-levels {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.skill-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.skill-lang-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.5;
}

.skill-lang-value {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--tag-bg);
    color: var(--tag-fg);
    padding: 0.2rem 0.5rem;
}

/* Job-related numbered list */
.skill-job-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    counter-reset: skill-counter;
}

.skill-job-item {
    counter-increment: skill-counter;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--border-exp);
    align-items: start;
}

.skill-job-item:last-child {
    border-bottom: none;
}

.skill-job-item::before {
    content: counter(skill-counter, decimal-leading-zero);
    font-family: var(--font-technical);
    font-size: 11px;
    font-weight: 700;
    color: var(--nav-inactive);
    padding-top: 0.3rem;
    line-height: 1;
}


/* ─── PRIVACY / TERMS ────────────────────────────────────────────────── */
.legal-section {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.legal-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    font-family: var(--font-narrative);
}

.legal-subtitle {
    font-size: 13px;
    opacity: 0.5;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-narrative);
    margin: 0 0 3rem;
}

.legal-body {
    max-width: 56rem;
    font-family: var(--font-narrative);
}

.legal-body p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0;
}

.legal-section-heading {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-narrative);
    margin: 0 0 0.5rem;
    opacity: 1;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-section);
}

.legal-block {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-footer);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.footer-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.footer-email-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    transition: opacity 0.2s;
}

.footer-email:hover {
    opacity: 0.6;
}

.footer-location {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--social-bg);
    color: var(--social-fg);
    transition: background-color 0.2s, color 0.2s;
}

.social-link:hover {
    background-color: var(--social-hover-bg);
    color: var(--social-hover-fg);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-footer);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-transform: uppercase;
    color: var(--nav-inactive);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-link {
    font-size: 10px;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-link:hover,
.footer-link.active {
    color: var(--fg);
}

.footer-copy {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
}

/* ─── BACK TO TOP ────────────────────────────────────────────────────── */
/* Bottom-right, clear of the centred .ee-toast */
.back-to-top {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    right: calc(2rem + env(safe-area-inset-right, 0px));
    z-index: 50;
}

.back-to-top-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--back-to-top-bg);
    color: var(--back-to-top-fg);
    box-shadow: var(--back-to-top-shadow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.back-to-top-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Back-to-top wrapper: hidden by default, shown via JS class toggle */
#back-to-top-wrap {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#back-to-top-wrap.visible {
    visibility: visible;
    opacity: 1;
}

/* ─── MAGNETIC BUTTON ────────────────────────────────────────────────── */
.magnetic-button {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.magnetic-button:active {
    transform: translateY(0) scale(0.98);
}

/* ─── DOWNLOAD BUTTON ───────────────────────────────────────────────── */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: 2px solid var(--border-section);
    background-color: transparent;
    color: var(--fg);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.download-btn:hover {
    background-color: var(--bg-exp-hover);
    border-color: var(--fg);
}

.download-btn svg {
    opacity: 0.6;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }

/* ─── PAGE LEAVING ──────────────────────────────────────────────────── */
.page-leaving {
    animation: pageLeave 0.25s ease-in forwards;
}

@keyframes pageLeave {
    to {
        opacity: 0;
        transform: translateX(-15px);
    }
}

/* ─── RESOURCES LAYOUT ───────────────────────────────────────────────── */
.res-stack {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.res-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.res-cat-header--icon {
    align-items: center;
    gap: 0.45rem;
}

.res-col-icon-sm {
    display: flex;
    align-items: center;
    opacity: 0.6;
    flex-shrink: 0;
}

.res-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.res-inner-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.res-sub-title {
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: 0.01em;
    font-family: var(--font-technical);
}

.res-last-updated {
    font-size: 12px;
    font-family: var(--font-technical);
    opacity: 0.4;
    margin: 0.35rem 0 0 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 820px) {
    .res-inner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.resource-empty {
    font-size: 14px;
    opacity: 0.45;
    font-family: var(--font-technical);
    font-weight: 700;
    margin: 0;
    padding: 0.5rem 0;
}

/* Book list */
.book-list-preamble {
    font-size: 14px;
    opacity: 0.55;
    font-style: italic;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

.book-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.book-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-section);
    transition: opacity 0.15s;
    cursor: default;
}

.book-list-item:last-child {
    border-bottom: none;
}

.book-list-item:hover {
    opacity: 0.7;
}

/* Trilogy grouping — see .trilogy-first / .trilogy-item / .trilogy-last below .movie-note */

.book-list-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.book-list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* Article titles reuse .book-list-title but are real links out to the source */
a.article-list-title-link {
    color: inherit;
    text-decoration: none;
    width: fit-content;
}

a.article-list-title-link:hover {
    text-decoration: underline;
}

.book-list-author {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.4;
    font-family: var(--font-technical);
}

.movie-note {
    font-size: 12px;
    font-style: italic;
    opacity: 0.85;
    line-height: 1.4;
    margin-top: 0.25rem;
    padding-left: 0.6rem;
    border-left: 2px solid var(--accent);
}

.trilogy-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 9px;
    font-family: var(--font-technical);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.4;
    padding: 0.5rem 0 0.25rem 0;
    width: 100%;
}

.trilogy-label-note {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

.trilogy-first {
    margin-top: 0.25rem;
    flex-direction: column;
    align-items: flex-start;
    border-left: 2px solid var(--border-section);
    padding-left: 0.75rem;
}

.trilogy-first .book-list-main {
    width: 100%;
}

.trilogy-item {
    border-bottom-color: transparent;
}

.trilogy-item:not(.trilogy-first) {
    border-left: 2px solid var(--border-section);
    padding-left: 0.75rem;
}

.trilogy-last {
    border-bottom-color: var(--border-section);
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
}

/* ─── NOT FOUND ─────────────────────────────────────────────────────── */
.not-found-section {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--px);
    padding-top: 6rem;
    padding-bottom: 8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.not-found-code {
    font-family: var(--font-technical);
    font-size: clamp(64px, 15vw, 120px);
    font-weight: 700;
    line-height: 1;
    opacity: 0.1;
    margin: 0;
}

.not-found-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.not-found-desc {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 28rem;
    margin: 0 0 1rem;
}

/* ─── MOBILE FIXES ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Section header controls: full-width row, right-aligned */
    .header-controls-wrap {
        width: 100%;
        justify-content: flex-end;
    }

    /* Hide header action button labels on small screens — icon is enough */
    .header-action-btn span,
    .exp-collapse-toggle span {
        display: none;
    }

    .header-action-btn,
    .exp-collapse-toggle {
        padding: 0 0.5rem;
        min-width: 1.75rem;
        justify-content: center;
    }


    /* Two-row header: controls on top, site title below */
    .site-nav {
        flex-wrap: wrap;
        height: auto;
        padding-block: 0.75rem;
        gap: 0.25rem;
    }

    .nav-left {
        flex-wrap: wrap;
        flex: 1;
    }

    .site-title {
        display: block;
        width: 100%;
        margin-left: 0;
        font-size: 11px;
        order: 10;
        padding-top: 0.75rem;
        opacity: 0.8;
    }

    /* Slightly smaller toggles to free up space */
    .theme-toggle {
        width: 5rem;
        height: 2rem;
    }

    .theme-toggle-thumb {
        height: 1.375rem;
        width: 38px;
        font-size: 6.5px;
        gap: 0.15rem;
    }

    .theme-toggle-thumb.dark {
        transform: translateX(34px);
    }

    /* Full-width CTA buttons for better thumb reach */
    .explore-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }


    /* Prevent role names from overflowing in compact view */
    .compact-row {
        gap: 0.75rem;
    }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .cover-container {
        height: var(--cover-height-desktop);
    }

    .site-title {
        font-size: 15px;
        margin-left: 2rem;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .home-grid {
        flex-direction: row;
        align-items: stretch;
        gap: 6rem;
    }

    .home-content {
        order: 1;
    }

    .home-profile {
        width: 40%;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-section {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .section-header {
        flex-direction: row;
        align-items: flex-end;
    }

    /* Keep the header actions beside the title; the description wraps instead */
    .section-header-row {
        flex-wrap: nowrap;
    }

    .exp-toggle-btn {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .exp-meta {
        justify-content: flex-end;
    }

    .exp-dates {
        text-align: right;
    }

    .edu-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer-top {
        flex-direction: row;
        align-items: flex-end;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* The one-line desktop header needs ~1,030px: two toggles, the site title and
   the nav. Below that, tighten the nav and drop the decorative title rather
   than let the row wrap or scroll sideways (it did both at 768px). */
@media (min-width: 768px) and (max-width: 1099px) {
    .desktop-nav {
        gap: 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-title {
        display: none;
    }
}

@media (min-width: 1024px) {
    .home-profile {
        width: 33.333%;
    }

    .home-grid {
        gap: 8rem;
    }
}

/* ─── PRINT / PDF EXPORT ─────────────────────────────────────────────── */

/* The printable CV. app.js fills it on beforeprint (Work Experience only) and
   empties it on afterprint; it is never shown on screen. */
#print-root { display: none; }

@media print {
    /* ── Print is never themed ──
       Paper is white, so the export always uses the light palette. Redeclared
       for .dark-theme as well, so dark tokens can never reach the page.
       Keep in sync with the light theme tokens in :root at the top of this file. */
    :root,
    .dark-theme {
        --bg: #ffffff;
        --fg: #000000;
        --bg-header: rgba(255, 255, 255, 0.9);
        --border-header: #f4f4f5;
        --bg-toggle: #f4f4f5;
        --border-toggle: #e4e4e7;
        --bg-thumb: #000000;
        --fg-thumb: #ffffff;
        --bg-mobile-menu: #ffffff;
        --border-mobile-menu: #e4e4e7;
        --bg-cover: #e4e4e7;
        --border-section: #e4e4e7;
        --bg-exp-hover: rgba(250, 250, 250, 0.5);
        --bg-exp-open: rgba(250, 250, 250, 0.2);
        --border-exp: #f4f4f5;
        --tag-bg: #000000;
        --tag-fg: #ffffff;
        --social-bg: #fafafa;
        --social-fg: #000000;
        --social-hover-bg: #000000;
        --social-hover-fg: #ffffff;
        --border-footer: #f4f4f5;
        --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
        --nav-inactive: #a1a1aa;
        --back-to-top-bg: #f4f4f5;
        --back-to-top-fg: #000000;
        --back-to-top-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        --profile-border: #e4e4e7;
        --explore-btn-bg: #000000;
        --explore-btn-fg: #ffffff;
        --explore-btn-hover: #27272a;
        --scroll-progress-color: #71717a;
        --accent: #000000;
    }

    /* ── While the printable CV exists, it replaces the page ── */
    .print-cv #root {
        display: none !important;
    }

    .print-cv #print-root {
        display: block;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── Hide interactive / screen-only elements ── */
    #scroll-progress,
    #modal-root,
    .site-header,
    .cover-container,
    .back-to-top,
    .skip-link,
    .view-controls-row,
    .expand-toggle-row,
    .header-action-btn,
    .section-desc,
    .section-header,
    .download-btn {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    /* ── Kill all animations ── */
    .page-transition { animation: none !important; }
    .animate-in      { animation: none !important; }
    .page-leaving     { animation: none !important; }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .book-list-item { break-inside: avoid; }

    .section-wrap {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
    }

    /* ── Tighter typography for A4 ── */
    .company-name {
        font-size: 16px !important;
    }

    .exp-role {
        font-size: 13px !important;
    }

    .exp-dates {
        font-size: 10px !important;
    }

    .exp-toggle-btn {
        cursor: default;
        padding-block: 0.75rem !important;
        gap: 0.35rem !important;
    }

    .exp-body-inner {
        padding-bottom: 0.75rem !important;
        padding-top: 0.25rem !important;
    }

    .exp-description {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }

    /* ── Description bullet points (printable CV) ── */
    .exp-description-bullets {
        font-size: 12px !important;
        line-height: 1.5;
        margin: 0 0 0.5rem 0;
        padding-left: 1.25rem;
        list-style: disc;
    }

    .exp-description-bullets li {
        margin-bottom: 0.2rem;
    }

    .exp-description-bullets li:last-child {
        margin-bottom: 0;
    }

    /* ── Detailed view — show all bodies expanded ── */
    .exp-body {
        display: block !important;
        opacity: 1 !important;
    }

    .exp-body-clip {
        overflow: visible !important;
    }

    .exp-chevron {
        display: none !important;
    }

    .exp-row {
        border-bottom: 1px solid #ddd;
        break-inside: avoid;
    }

    /* Expanded and collapsed rows print identically */
    .exp-row.is-open {
        background-color: transparent;
        border-left: none;
        padding-left: 0;
    }

    /* Allow company groups to split across pages, but keep each role together */
    .company-group {
        break-inside: auto;
        page-break-inside: auto;
    }

    .space-y-12 > * + * {
        margin-top: 1rem !important;
    }

    .compact-view {
        gap: 1rem !important;
    }

    /* ── Skill tags: comma-separated inline text ── */
    .skills-list {
        display: inline !important;
    }

    .skill-tag {
        display: inline !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 10px !important;
        color: #555 !important;
    }

    .skill-tag::after {
        content: ", ";
    }

    .skill-tag:last-child::after {
        content: "";
    }

    /* ── Compact view ── */
    .compact-row {
        break-inside: avoid;
        padding-block: 0.5rem !important;
    }

    .compact-role {
        font-size: 13px !important;
    }

    .compact-period {
        font-size: 10px !important;
    }

    .compact-group {
        gap: 0 !important;
    }

    /* Keep a company name with the first role under it, so it can't print
       alone at the foot of a page. */
    .company-label {
        margin-bottom: 0.25rem !important;
        break-after: avoid;
        page-break-after: avoid;
    }

    /* ── Education and skills (printable CV) ── */
    .print-edu-item {
        break-inside: avoid;
    }

    .print-skills-group {
        break-inside: avoid;
    }

    /* ── Footer hidden ── */
    .site-footer {
        display: none !important;
    }

    /* ── Page setup ── */
    @page {
        margin: 1.5cm 2cm 2cm;
        size: A4;
    }
}

/* Printable CV blocks — only ever rendered inside #print-root */
.print-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.print-header-name {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.3rem;
}

.print-header-meta {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0;
    letter-spacing: 0.03em;
}

.print-view-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.35;
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}

.print-summary {
    font-size: 11px;
    line-height: 1.55;
    margin: 0.75rem 0 0;
    color: #333;
}

.print-section-divider {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.4rem;
    margin: 1.25rem 0 0.5rem;
    border-bottom: 1px solid #000;
}

.print-education {
    margin-top: 0.5rem;
}

.print-edu-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.print-edu-item:last-child {
    border-bottom: none;
}

.print-edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.print-edu-inst {
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.print-edu-period {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    white-space: nowrap;
    margin: 0;
}

.print-edu-cert {
    font-size: 11px;
    font-weight: 700;
    margin: 0.15rem 0 0;
}

.print-edu-field {
    font-size: 11px;
    opacity: 0.7;
    margin: 0.1rem 0 0;
}

.print-skills {
    margin-top: 0.5rem;
}

.print-skills-group {
    margin-bottom: 0.6rem;
}

.print-skills-group:last-child {
    margin-bottom: 0;
}

.print-skills-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.2rem;
}

.print-skills-lang {
    font-size: 11px;
    margin: 0;
    color: #333;
}

.print-skills-list {
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
    color: #333;
}

.print-skills-list li {
    margin-bottom: 0.1rem;
}

/* ─── MODAL UI ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--px);
}

.modal-content {
    background-color: var(--bg);
    color: var(--fg);
    border: 1px solid var(--border-section);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 2rem;
    opacity: 0.85;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.modal-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.modal-btn-primary {
    background-color: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-btn-primary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background-color: transparent;
    color: var(--fg);
    border: 1px solid var(--border-section);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-btn-secondary:hover {
    background-color: var(--bg-exp-hover);
    border-color: var(--fg);
}

/* ─── EASTER EGG STYLES ─────────────────────────────────────────────── */

/* Konami / WTF portal modal */
.ee-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: ee-fade-in 0.25s ease;
}

@keyframes ee-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ee-box {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--border-section);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: ee-slide-up 0.3s ease;
}

@keyframes ee-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.ee-box-emoji {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.ee-box-title {
    font-family: var(--font-technical);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ee-box-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.75;
    margin-bottom: 2rem;
}

.ee-box-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ee-btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.ee-btn-primary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.ee-btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-section);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ee-btn-secondary:hover {
    background: var(--bg-exp-hover);
    border-color: var(--fg);
}

/* Toast notification */
.ee-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--fg);
    color: var(--bg);
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
    white-space: normal;
}

.ee-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* On narrow screens a wrapped toast is wide enough to reach the back-to-top
   button in the corner, so it sits above it instead */
@media (max-width: 767px) {
    .ee-toast {
        bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Profile photo wobble on repeated clicks */
@keyframes ee-wobble {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-4deg); }
    40%  { transform: rotate(4deg); }
    60%  { transform: rotate(-3deg); }
    80%  { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

.ee-wobble {
    animation: ee-wobble 0.5s ease;
}

/* ─── REDUCED MOTION ────────────────────────────────────────────────── */
/* Keep this block LAST: it overrides rules above at equal specificity, so
   anything defined after it would win. Colour and opacity fades stay; every
   slide, lift, wobble and parallax goes. The JS side (cover parallax, page
   leave delay, back-to-top scroll) checks prefersReducedMotion() in app.js. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .page-transition,
    .page-leaving,
    .animate-in,
    .ee-overlay,
    .ee-box,
    .ee-wobble {
        animation: none;
    }
    .exp-body,
    .exp-chevron,
    .skip-link,
    .theme-toggle-thumb,
    .cover-attr-tooltip,
    .profile-shadow,
    .explore-btn svg,
    .magnetic-button,
    .back-to-top-btn,
    .modal-btn-primary,
    .ee-btn-primary,
    .ee-toast {
        transition: none;
    }
    .magnetic-button:hover,
    .magnetic-button:active,
    .back-to-top-btn:hover,
    .explore-btn:hover svg,
    .modal-btn-primary:hover,
    .ee-btn-primary:hover,
    .profile-frame-wrap:hover .profile-shadow,
    .profile-frame-wrap:active .profile-shadow {
        transform: none;
    }
    .cover-attr-tooltip {
        transform: none;
    }
    .ee-toast,
    .ee-toast.visible {
        transform: translateX(-50%);
    }
}
