/* ==========================================================================
   Marcin Stefanko — Data Engineer Terminal
   Dark-first, mono accents, OKLCH teal/lime
   ========================================================================== */

:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --bg:        oklch(0.16 0.012 240);
    --bg-2:      oklch(0.19 0.014 240);
    --surface:   oklch(0.22 0.016 240);
    --surface-2: oklch(0.26 0.018 240);
    --border:    oklch(0.32 0.02 240);
    --border-strong: oklch(0.4 0.025 240);

    --text:    oklch(0.96 0.005 240);
    --text-2:  oklch(0.78 0.01 240);
    --muted:   oklch(0.6 0.01 240);

    --accent:        oklch(0.82 0.14 185);
    --accent-strong: oklch(0.88 0.16 185);
    --accent-soft:   oklch(0.82 0.14 185 / 0.14);
    --accent-line:   oklch(0.82 0.14 185 / 0.36);
    --accent-2:      oklch(0.88 0.18 130);
    --warn:          oklch(0.78 0.18 60);

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow:    0 8px 32px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 20px 60px oklch(0 0 0 / 0.55);

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 22px;

    --container: 1200px;
    --gap: clamp(16px, 2vw, 28px);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
    --bg:        oklch(0.98 0.005 240);
    --bg-2:      oklch(0.96 0.006 240);
    --surface:   oklch(1 0 0);
    --surface-2: oklch(0.97 0.005 240);
    --border:    oklch(0.9 0.01 240);
    --border-strong: oklch(0.82 0.012 240);
    --text:      oklch(0.18 0.014 240);
    --text-2:    oklch(0.36 0.012 240);
    --muted:     oklch(0.5 0.01 240);
    --accent:        oklch(0.55 0.14 185);
    --accent-strong: oklch(0.45 0.16 185);
    --accent-soft:   oklch(0.55 0.14 185 / 0.12);
    --accent-line:   oklch(0.55 0.14 185 / 0.45);
    --accent-2:      oklch(0.6 0.18 130);
    --shadow:    0 8px 32px oklch(0.5 0.05 240 / 0.15);
    --shadow-lg: 0 20px 60px oklch(0.5 0.05 240 / 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }

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

.skip-link {
    position: fixed; top: -100px; left: 16px; z-index: 9999;
    padding: 10px 16px; background: var(--accent); color: var(--bg);
    border-radius: var(--r-sm); font-weight: 600;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.bg-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
    opacity: 0.35;
}
.bg-glow {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 12% 8%, var(--accent-soft), transparent 60%),
        radial-gradient(ellipse 50% 35% at 88% 4%, oklch(0.72 0.18 280 / 0.18), transparent 60%);
}

.topnav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 16px;
    padding: 12px clamp(16px, 4vw, 32px);
    background: oklch(from var(--bg) l c h / 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
[data-theme="light"] .topnav {
    background: oklch(from var(--bg) l c h / 0.8);
}
.topnav-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-weight: 700;
    color: var(--text); letter-spacing: -0.02em;
}
.brand-mark {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px;
    background: var(--accent); color: var(--bg);
    border-radius: 8px;
    font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.brand-name { font-size: 14px; color: var(--text-2); }
.topnav-menu {
    display: flex; gap: 4px; margin-left: auto;
}
.topnav-link {
    display: inline-flex; align-items: center;
    padding: 8px 14px;
    font-size: 14px; font-weight: 500; color: var(--text-2);
    border-radius: var(--r-sm);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.topnav-link:hover { color: var(--text); background: var(--surface); }
.topnav-link.active { color: var(--accent); background: var(--accent-soft); }
.topnav-actions { display: flex; gap: 6px; }
.icon-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px;
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.lang-btn { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.topnav-burger { display: none; }

@media (max-width: 880px) {
    .topnav-burger {
        display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
        width: 38px; height: 38px;
        margin-left: auto;
        border: 1px solid var(--border); border-radius: var(--r-sm);
        background: var(--surface);
    }
    .topnav-burger span {
        display: block; width: 18px; height: 2px;
        background: var(--text); border-radius: 2px;
        transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
    }
    .topnav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .topnav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .topnav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .topnav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        margin: 0; padding: 8px;
        background: oklch(from var(--bg) l c h / 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }
    .topnav-menu.open { max-height: 500px; }
    .topnav-link { padding: 12px 14px; }
    .topnav-actions { order: 1; }
}

main { position: relative; z-index: 1; }
.section, .hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
}

.hero { padding-top: clamp(24px, 4vw, 48px); }
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero-meta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 18px;
    font-family: var(--font-mono); font-size: 13px;
    color: var(--accent); letter-spacing: 0.04em;
}
.hero-prompt { color: var(--accent-2); }
.hero-meta::after {
    content: '';
    display: inline-block;
    width: 8px; height: 16px;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-name {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero-title {
    margin-top: 12px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--text-2);
    font-family: var(--font-mono);
}
.hero-tagline {
    margin-top: 20px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-2);
    max-width: 56ch;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-plus { color: var(--accent-2); }
.stat-label {
    font-size: 12px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}

.hero-actions {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 28px;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    border-radius: var(--r-sm);
    font-weight: 500; font-size: 14px;
    border: 1px solid transparent;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent); color: var(--bg);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px var(--accent-soft);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
    background: var(--surface); color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.btn-icon-only { padding: 11px 13px; }

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-line), transparent 50%, oklch(0.72 0.18 280 / 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.hero-card-header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--border-strong);
}
.dot-r { background: oklch(0.65 0.2 25); }
.dot-y { background: oklch(0.78 0.18 80); }
.dot-g { background: oklch(0.7 0.18 145); }
.hero-card-title {
    margin-left: auto;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--muted);
}
.hero-card-body { padding: 24px; }
.hero-photo {
    display: grid; place-items: center;
    margin-bottom: 18px;
}
.hero-photo img {
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 2px solid var(--accent-line);
    box-shadow: 0 0 0 6px var(--accent-soft);
    object-fit: cover;
}
.hero-code {
    margin: 0;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 13px; line-height: 1.65;
    color: var(--text-2);
    overflow-x: auto;
    white-space: pre;
}
.c-comment { color: var(--muted); }
.c-kw      { color: oklch(0.78 0.16 280); font-weight: 500; }
.c-num     { color: var(--accent-2); }
.c-str     { color: var(--warn); }

.section { position: relative; }
.section-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.section-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
}
.section-num::before { content: '['; color: var(--accent); }
.section-num::after  { content: ']'; color: var(--accent); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    flex: 1;
}
.section-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--accent);
    padding: 8px 14px; border: 1px solid var(--accent-line); border-radius: var(--r-sm);
    transition: background 0.2s var(--ease);
}
.section-link:hover { background: var(--accent-soft); }

.summary-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--gap);
    align-items: start;
}
@media (max-width: 880px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-text {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.75;
}
.strengths-list {
    display: grid; gap: 10px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.strengths-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    font-size: 14px;
}
.strengths-list li:last-child { border-bottom: 0; }
.strengths-list i { color: var(--accent); width: 20px; text-align: center; }

.timeline { display: grid; gap: 20px; }
.timeline-item { display: grid; grid-template-columns: 28px 1fr; gap: 18px; }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-dot {
    position: absolute; top: 22px;
    width: 14px; height: 14px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-rail::before {
    content: '';
    position: absolute; top: 36px; bottom: -20px; left: 50%;
    width: 2px; transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--accent-line), var(--border) 30%, transparent);
}
.timeline-item:last-child .timeline-rail::before { display: none; }

.timeline-card {
    padding: clamp(20px, 2.5vw, 28px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.timeline-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.exp-head {
    display: flex; flex-wrap: wrap; gap: 16px;
    justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}
.exp-role {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 4px;
}
.exp-company {
    font-family: var(--font-mono); font-size: 13px;
    color: var(--text-2);
}
.company-name { color: var(--accent); font-weight: 700; }
.exp-period {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    font-family: var(--font-mono); font-size: 13px;
    text-align: right;
}
.period-range { color: var(--text-2); }
.period-len {
    padding: 2px 10px;
    background: var(--accent-soft); color: var(--accent);
    border-radius: 999px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .exp-period { align-items: flex-start; text-align: left; }
}

.exp-summary { color: var(--text-2); margin-bottom: 18px; }
.exp-bullets {
    display: grid; gap: 10px;
    padding-left: 0;
    margin-bottom: 18px;
}
.exp-bullets li {
    position: relative;
    padding-left: 24px;
    color: var(--text-2);
    font-size: 14px;
}
.exp-bullets li::before {
    content: '\25B8';
    position: absolute; left: 6px; top: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tags li {
    padding: 4px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
}

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    grid-auto-flow: dense;
}
.bento-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.bento-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.bento-card:nth-child(1) { grid-column: span 3; }   /* Bazy danych */
.bento-card:nth-child(2) { grid-column: span 3; }   /* Programowanie */
.bento-card:nth-child(3) { grid-column: span 2; }   /* Azure */
.bento-card:nth-child(4) { grid-column: span 2; }   /* ETL/ELT */
.bento-card:nth-child(5) { grid-column: span 2; }   /* Inne */
.bento-card:nth-child(6) { grid-column: span 3; }   /* Adobe */
.bento-card:nth-child(7) { grid-column: span 3; }   /* Języki obce */
@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card, .bento-card:nth-child(n) { grid-column: span 1; }
    .bento-card:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .bento-card, .bento-card:nth-child(n) { grid-column: span 1; }
}

.bento-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.bento-tag {
    padding: 3px 8px;
    background: var(--accent-soft); color: var(--accent);
    border-radius: 5px;
    font-family: var(--font-mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.bento-head h3 { font-size: 1.1rem; color: var(--text); }

.skill-list { display: grid; gap: 12px; }
.skill {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    position: relative;
}
.skill-name { font-size: 14px; color: var(--text); font-weight: 500; }
.skill::after {
    content: attr(data-rating) "/10";
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.skill::before {
    content: '';
    grid-column: 1 / -1;
    grid-row: 2;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    width: calc(var(--rating, 0) * 10%);
    box-shadow: 0 0 12px var(--accent-soft);
    transition: width 1s var(--ease);
}
.skill[data-rating="1"]  { --rating: 1; }
.skill[data-rating="2"]  { --rating: 2; }
.skill[data-rating="3"]  { --rating: 3; }
.skill[data-rating="4"]  { --rating: 4; }
.skill[data-rating="5"]  { --rating: 5; }
.skill[data-rating="6"]  { --rating: 6; }
.skill[data-rating="7"]  { --rating: 7; }
.skill[data-rating="8"]  { --rating: 8; }
.skill[data-rating="9"]  { --rating: 9; }
.skill[data-rating="10"] { --rating: 10; }
.skill[data-rating="10"]::after { color: var(--accent-2); font-weight: 700; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.cert-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cert-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
a.cert-card { cursor: pointer; }
.cert-logo {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-size: 26px;
}
.cert-logo-snowflake { color: oklch(0.78 0.13 230); }
.cert-logo-azure     { color: oklch(0.7 0.18 240); }
.cert-meta { display: grid; gap: 4px; }
.cert-issuer {
    font-family: var(--font-mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--muted);
}
.cert-name { font-size: 1.05rem; color: var(--text); }
.cert-dates {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--text-2);
}
.cert-id {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--muted);
}
.cert-arrow {
    color: var(--muted);
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
a.cert-card:hover .cert-arrow {
    color: var(--accent); transform: translate(2px, -2px);
}

.hobby-intro {
    color: var(--text-2);
    margin-bottom: 24px;
}
.hero-tagline, .summary-text, .exp-summary, .hobby-intro {
    text-wrap: pretty;
}
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .hobby-grid { grid-template-columns: repeat(3, 1fr); }
}
.hobby-card span { text-wrap: balance; }
.hobby-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.hobby-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.hobby-card i {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    font-size: 16px;
}
.hobby-card span { font-weight: 500; font-size: 14px; }

.footer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px clamp(20px, 4vw, 48px) 48px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); }
.footer-right { display: flex; gap: 6px; }
.footer-right a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-right a:hover { color: var(--accent); border-color: var(--accent-line); }

.fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: var(--accent); color: var(--bg);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg), 0 0 0 6px var(--accent-soft);
    z-index: 50;
    transition: transform 0.2s var(--ease);
}
.fab:hover { transform: scale(1.05); }

.dialog {
    margin: auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    max-width: 420px; width: calc(100% - 32px);
}
.dialog::backdrop {
    background: oklch(from var(--bg) l c h / 0.7);
    backdrop-filter: blur(8px);
}
.dialog-form { display: contents; }
.dialog-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.dialog-head h3 { font-size: 1.1rem; }
.dialog-body { display: grid; padding: 12px; gap: 4px; }
.dialog-link {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 14px;
    transition: background 0.2s var(--ease);
}
.dialog-link:hover { background: var(--accent-soft); color: var(--accent); }
.dialog-link i { width: 18px; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
    .section {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    }
    .section.visible { opacity: 1; transform: none; }
}

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

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