/* ==========================================================================
   tomas.hujer.eu – site styles
   No framework: modern CSS (custom properties, grid, clamp, :focus-visible)
   ========================================================================== */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens ------------------------------------------------------------ */

:root {
    --c-bg: #ffffff;
    --c-bg-alt: #f3f6f6;
    --c-surface: #ffffff;
    --c-ink: #13232a;
    --c-ink-soft: #4b5d64;
    --c-line: #dde5e7;
    --c-dark: #0f2a2e;
    --c-dark-2: #163a40;
    --c-on-dark: #e8f1f2;
    --c-on-dark-soft: #a9c0c4;
    --c-accent: #f5b400;          /* amber – brand colour from the original site */
    --c-accent-ink: #1b1400;
    --c-link: #0a7d99;
    --c-cyan: #22b8d6;
    --c-tag-bg: #e8f3f5;
    --c-tag-ink: #0b5d70;

    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(15 42 46 / .06), 0 8px 24px rgb(15 42 46 / .08);
    --shadow-hover: 0 2px 4px rgb(15 42 46 / .08), 0 16px 40px rgb(15 42 46 / .14);
    --container: 1180px;
    --header-h: 68px;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: #0b1517;
        --c-bg-alt: #0f1d20;
        --c-surface: #132428;
        --c-ink: #e6eef0;
        --c-ink-soft: #a3b6ba;
        --c-line: #23383d;
        --c-link: #5fd0ea;
        --c-tag-bg: #17343a;
        --c-tag-ink: #9fe3f2;
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
        --shadow-hover: 0 2px 4px rgb(0 0 0 / .35), 0 16px 40px rgb(0 0 0 / .4);
    }
}

/* Base --------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--c-link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--c-accent); color: var(--c-accent-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); box-shadow: 0 6px 18px rgb(245 180 0 / .3); }
.btn--primary:hover { background: #ffc629; }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn--ghost-dark { border-color: var(--c-line); color: var(--c-ink); background: var(--c-surface); }
.btn--ghost-dark:hover { border-color: var(--c-ink-soft); }
.btn--small { padding: .5em 1.1em; font-size: .875rem; }
.btn--large { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }

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

.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgb(15 42 46 / .92);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    color: var(--c-on-dark);
    border-bottom: 1px solid rgb(255 255 255 / .06);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; }
.brand__mark {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    background: var(--c-accent); color: var(--c-accent-ink); font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
}
.brand__name { font-size: 1.05rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
    display: block; padding: .5rem .8rem; border-radius: var(--radius-sm);
    color: var(--c-on-dark-soft); text-decoration: none; font-weight: 600; font-size: .925rem;
    transition: color .15s, background-color .15s;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: #fff; background: rgb(255 255 255 / .07); }
.site-nav .btn { margin-left: .5rem; }
.site-nav .lang-switch { font-size: .8rem; letter-spacing: .06em; border: 1px solid rgb(255 255 255 / .2); margin-left: .25rem; }

.nav-toggle {
    display: none; background: none; border: 0; color: #fff; padding: .5rem; margin-right: -.5rem; cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        background: var(--c-dark); border-bottom: 1px solid rgb(255 255 255 / .08);
        padding: .75rem 1.25rem 1.25rem;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
    .site-nav a:not(.btn) { padding: .8rem .75rem; font-size: 1rem; }
    .site-nav .btn { margin: .5rem 0 0; }
    .site-nav .lang-switch { margin: .5rem 0 0; text-align: center; }
}

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

.hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--c-dark); color: var(--c-on-dark);
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 7.5rem);
}
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 85% 10%, rgb(34 184 214 / .22), transparent 55%),
        linear-gradient(180deg, rgb(15 42 46 / .82), rgb(15 42 46 / .97)),
        url("/img/top-image/01.webp") center / cover no-repeat;
}
.hero__inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--c-on-dark-soft); max-width: 52ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__photo img {
    width: 200px; aspect-ratio: 200 / 212; object-fit: cover;
    border-radius: 50%; box-shadow: 0 30px 60px rgb(0 0 0 / .35), 0 0 0 6px rgb(255 255 255 / .06);
}

.eyebrow {
    display: inline-block; margin-bottom: 1rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
}
.eyebrow--dark { color: var(--c-link); }

@media (max-width: 720px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__photo { order: -1; }
    .hero__photo img { width: 120px; }
}

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

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .section__head p { color: var(--c-on-dark-soft); }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { position: relative; padding-bottom: .5em; }
.section__head h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-cyan));
}
.section__head p { color: var(--c-ink-soft); font-size: 1.1rem; margin: 0; }
.section__foot { margin: 2.5rem 0 0; text-align: center; }

/* Services ----------------------------------------------------------------- */

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: 2rem 1.75rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.service-card__icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--c-dark), var(--c-dark-2)); color: var(--c-accent);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.3rem; }
.service-card > p { color: var(--c-ink-soft); font-size: 1rem; }
.service-card__focus { font-weight: 700; color: var(--c-ink) !important; margin: .5rem 0 .5rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; font-size: .975rem; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: var(--c-tag-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b8d6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.service-card__more { margin-top: auto; border-top: 1px solid var(--c-line); padding-top: 1rem; font-size: .975rem; color: var(--c-ink-soft); }
.service-card__more summary { cursor: pointer; font-weight: 700; color: var(--c-link); list-style: none; }
.service-card__more summary::-webkit-details-marker { display: none; }
.service-card__more summary::after { content: " +"; }
.service-card__more[open] summary::after { content: " −"; }
.service-card__more p:first-of-type { margin-top: .75rem; }

/* Tags --------------------------------------------------------------------- */

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.tags li, .tags a {
    display: inline-block; padding: .25em .7em; border-radius: 999px;
    background: var(--c-tag-bg); color: var(--c-tag-ink); font-size: .8rem; font-weight: 600; line-height: 1.5;
    text-decoration: none;
}
.tags--stack li { padding: 0; background: none; }
.tags--stack li:not(:has(a)) { padding: .25em .7em; background: var(--c-tag-bg); }
.tags--stack a { transition: background-color .15s, color .15s; }
.tags--stack a:hover { background: var(--c-dark); color: #fff; }

/* Projects ----------------------------------------------------------------- */

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.project-card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.project-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--c-bg-alt); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__count {
    position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem;
    padding: .2rem .6rem; border-radius: 999px; background: rgb(15 42 46 / .8); color: #fff; font-size: .78rem; font-weight: 700;
}
.project-card__body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.project-card__year { margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; color: var(--c-ink-soft); letter-spacing: .06em; }
.project-card__title { font-size: 1.15rem; margin-bottom: .4rem; }
.project-card__desc { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.project-card .tags { margin-bottom: 1.1rem; }
.project-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--c-link); }
.project-card__more .icon { transition: transform .2s; }
.project-card:hover .project-card__more .icon { transform: translateX(4px); }

/* Project detail page ------------------------------------------------------ */

.project-page { padding: 2rem 0 5rem; }
.breadcrumb a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; font-size: .95rem; }
.project-page__head { margin: 2rem 0 2.5rem; max-width: 820px; }
.project-page__lead { font-size: 1.2rem; color: var(--c-ink-soft); }
.project-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.project-page__aside {
    position: sticky; top: calc(var(--header-h) + 1.5rem);
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.project-page__aside h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ink-soft); margin: 0 0 .6rem; }
.project-page__aside .tags { margin-bottom: 1.4rem; }
.link-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; font-size: .95rem; }
.link-list a { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; text-decoration: none; word-break: break-word; }
.link-list a:hover { text-decoration: underline; }
.project-page__detail { margin-top: 2rem; }
.project-page__other { margin-top: 5rem; }
.project-page__other h2 { margin-bottom: 1.5rem; }

@media (max-width: 860px) {
    .project-page__layout { grid-template-columns: 1fr; }
    .project-page__aside { position: static; }
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; align-items: start; }
.gallery__fig { margin: 0; min-width: 0; }
.gallery__fig--main { grid-column: 1 / -1; }
.gallery__caption { margin-top: .4rem; font-size: .8rem; line-height: 1.35; color: var(--c-ink-soft); }
.gallery__fig--main .gallery__caption { margin-top: .6rem; font-size: .9rem; text-align: center; }
.gallery__item { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-bg-alt); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .2s; }
.gallery__item:hover img { transform: scale(1.05); }
/* Main image keeps its own proportions (wide screenshots must not be cropped) */
.gallery__item--main { aspect-ratio: auto; border-radius: var(--radius); background: var(--c-dark); }
/* Never upscale small sources (blurry); transparent PNGs get breathing room */
.gallery__item--main img { width: auto; max-width: 100%; height: auto; max-height: 75vh; object-fit: contain; margin-inline: auto; }
.gallery__item--main:has(img[src*="door_unlock_01"]) { padding: 2rem; }
.gallery__item--main:hover img { transform: none; opacity: .92; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.lightbox {
    border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
    background: rgb(5 14 16 / .94); color: #fff;
}
.lightbox::backdrop { background: rgb(5 14 16 / .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: .75rem; justify-items: center; padding: 4rem 4.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { font-size: .9rem; color: var(--c-on-dark-soft); }
.lightbox__btn {
    position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background-color .15s;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .2); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) {
    .lightbox figure { padding: 4rem .75rem 5rem; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
}

/* Click-to-load YouTube video (no third-party request before consent) */
.video { margin-top: 2rem; }
.video__play, .video iframe {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
    border-radius: var(--radius); overflow: hidden; background: var(--c-dark); cursor: pointer;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s; }
.video__play:hover img { opacity: .7; }
.video__icon {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center;
    width: 76px; height: 76px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink);
    box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: transform .2s;
}
.video__icon svg { width: 34px; height: 34px; margin-left: 4px; }
.video__play:hover .video__icon { transform: scale(1.08); }
.video__label { position: absolute; left: 0; right: 0; bottom: 1.25rem; color: #fff; font-weight: 700; text-align: center; }
.video__note { margin: .5rem 0 0; font-size: .85rem; color: var(--c-ink-soft); }

/* Prose (rich text from DB / about) --------------------------------------- */

.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--c-ink); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--c-cyan); }
.about .prose { font-size: 1.1rem; }
.about .prose p:first-child { font-size: 1.25rem; font-weight: 500; }

/* Tech stack --------------------------------------------------------------- */

.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.stack-group { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.stack-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ink-soft); margin-bottom: .9rem; }

/* CV timeline -------------------------------------------------------------- */

.timeline { list-style: none; padding: 0; margin: 0 0 2.5rem; max-width: 880px; }
.timeline__item { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; position: relative; padding-bottom: 2rem; }
.timeline__item::before {
    content: ""; position: absolute; left: 130px; margin-left: .75rem; top: .55rem; bottom: 0; width: 2px; background: var(--c-line);
}
.timeline__item:last-child::before { display: none; }
.timeline__body { position: relative; padding-left: 1.5rem; }
.timeline__body::before {
    content: ""; position: absolute; left: -.85rem; top: .4rem; width: 14px; height: 14px; border-radius: 50%;
    background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-bg);
}
.timeline__date { margin: 0; font-weight: 700; font-size: .9rem; color: var(--c-ink-soft); padding-top: .1rem; text-align: right; }
.timeline h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.timeline__company { font-weight: 500; color: var(--c-ink-soft); }
.timeline ul { margin: 0; padding-left: 1.1rem; color: var(--c-ink-soft); font-size: .975rem; }
.timeline li::marker { color: var(--c-cyan); }

@media (max-width: 640px) {
    .timeline__item { grid-template-columns: 1fr; gap: .25rem; padding-left: 1.5rem; }
    .timeline__item::before { left: 0; margin-left: 6px; }
    .timeline__body { padding-left: 0; }
    .timeline__body::before { left: -1.5rem; top: -1.4rem; }
    .timeline__date { text-align: left; }
}

.cv-downloads { display: flex; flex-wrap: wrap; gap: .85rem; }

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

.contact-list {
    list-style: none; padding: 0; margin: 0 0 2.5rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.contact-list li {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08);
}
.contact-list .icon { width: 24px; height: 24px; color: var(--c-accent); margin-top: .15rem; }
.contact-list__label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-on-dark-soft); margin-bottom: .15rem; }
.contact-list a, .contact-list span:not(.contact-list__label) { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--c-accent); }
.contact__cta { margin: 0; }

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

.site-footer { background: #0a1f22; color: var(--c-on-dark-soft); font-size: .9rem; padding: 1.75rem 0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.social { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c-on-dark-soft); transition: color .15s, background-color .15s; }
.social a:hover { color: #fff; background: rgb(255 255 255 / .08); }

/* Error page --------------------------------------------------------------- */

.error-page { padding: clamp(4rem, 12vw, 9rem) 0; text-align: center; }
.error-page__code {
    font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; margin-bottom: .25em;
    background: linear-gradient(90deg, var(--c-accent), var(--c-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: clamp(1.4rem, 1rem + 2vw, 2rem); margin-bottom: 1.5rem; }
