/* ==========================================================
   MAIKON SILVA — SWISS EDITORIAL EDITION
   Off-white paper · near-black ink · emerald accent
   ========================================================== */

:root,
[data-theme="light"] {
    --paper:      #f7f6f1;
    --paper2:     #efede5;
    --ink:        #131711;
    --ink-soft:   #2c332b;
    --muted:      #6b7365;
    --line:       rgba(19, 23, 17, 0.16);
    --line-soft:  rgba(19, 23, 17, 0.08);
    --accent:     #0b7a4b;
    --accent-hi:  #0e9a5e;
    --accent-dim: rgba(11, 122, 75, 0.08);
    --btn-fg:     #f7f6f1;
    color-scheme: light;
}

[data-theme="dark"] {
    --paper:      #101410;
    --paper2:     #171c16;
    --ink:        #edf1e8;
    --ink-soft:   #ccd4c6;
    --muted:      #8d968a;
    --line:       rgba(237, 241, 232, 0.16);
    --line-soft:  rgba(237, 241, 232, 0.07);
    --accent:     #35d68b;
    --accent-hi:  #56e6a3;
    --accent-dim: rgba(53, 214, 139, 0.09);
    --btn-fg:     #101410;
    color-scheme: dark;
}

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

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

html { scroll-behavior: smooth; }

::selection { background: var(--accent); color: var(--btn-fg); }

html, body { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--line); }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Exposed grid guides ---------- */

.grid-guides {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    pointer-events: none;
    z-index: 0;
}

.grid-guides span {
    width: 1px;
    height: 100%;
    background: var(--line-soft);
}

@media (max-width: 720px) {
    .grid-guides span:nth-child(2),
    .grid-guides span:nth-child(4) { display: none; }
}

/* ---------- Topbar ---------- */

.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 64px;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topbar__progress {
    position: absolute;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.1s linear;
}

.topbar__logo {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar__logo em { font-style: normal; color: var(--accent); }

.topbar__logo-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    align-self: center;
    margin-left: 0.15rem;
}

.topbar__nav {
    display: flex;
    gap: clamp(1rem, 2.2vw, 2rem);
}

.topbar__nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s ease;
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
}

.topbar__nav a sup { font-size: 0.55rem; color: var(--accent); }
.topbar__nav a:hover { color: var(--ink); }

.topbar__tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover { border-color: var(--accent); background: var(--accent-dim); }

[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="dark"]  .theme-toggle__moon { display: none; }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
}

.lang-toggle button {
    padding: 0.15rem 0.1rem;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle button.active { color: var(--ink); border-color: var(--accent); }
.lang-toggle button:hover { color: var(--ink); }

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 6px 2px;
}

.burger span {
    width: 22px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1rem clamp(1.25rem, 4vw, 4rem);
    border-top: 1px solid var(--line-soft);
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.mobile-menu a sup {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--accent);
}

/* ---------- Layout ---------- */

main { position: relative; z-index: 1; }

.section {
    padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 4rem) clamp(3.5rem, 7vw, 6rem);
    border-top: 1px solid var(--line);
    position: relative;
}

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; }

.section__num {
    position: absolute;
    top: 0.4rem;
    right: 0;
    color: var(--muted);
}

.section__label {
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.section__label::before { content: '● '; font-size: 0.55rem; vertical-align: 2px; }

.section__title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section__title span { color: var(--accent); }

.section__desc {
    margin-top: 1.25rem;
    max-width: 46ch;
    color: var(--muted);
}

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

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(64px + 3rem) clamp(1.25rem, 4vw, 4rem) 0;
    position: relative;
    z-index: 1;
}

.hero__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.hero__meta-mid { color: var(--accent); }

.hero__name {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(3.4rem, 15.5vw, 13.5rem);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4.5vw, 3.5rem);
}

.hero__name-row {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3.5vw, 3rem);
}

.hero__name-row--right { justify-content: flex-end; }

.hero__name-word--outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
}

.hero__name-asterisk {
    font-size: clamp(1.6rem, 4.5vw, 4rem);
    color: var(--accent);
    animation: spin 14s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero__name-fig {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hero__name-fig img {
    width: clamp(84px, 11vw, 150px);
    height: clamp(104px, 14vw, 190px);
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    border: 1px solid var(--line);
    transition: filter 0.4s ease;
}

.hero__name-fig:hover img { filter: grayscale(0%); }

.hero__name-fig small {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 400;
    text-transform: lowercase;
}

.hero__base {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2.5rem;
}

.hero__role { color: var(--accent); line-height: 2; }

.typed-cursor { animation: blink 1s steps(1) infinite; color: var(--accent); }

@keyframes blink { 50% { opacity: 0; } }

.hero__desc {
    margin-top: 1rem;
    max-width: 52ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.45rem 0.85rem;
}

.hero__status i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-dim); opacity: 1; }
    50% { box-shadow: 0 0 0 6px transparent; opacity: 0.55; }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow em { font-style: normal; transition: transform 0.25s ease; }

.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover em { transform: translate(3px, 0); }

/* ---------- Ticker ---------- */

.ticker {
    overflow: hidden;
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: var(--paper);
    padding: 0.8rem 0;
}

.ticker__track {
    display: flex;
    gap: 2.2rem;
    width: max-content;
    animation: ticker 36s linear infinite;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.ticker__track em { font-style: normal; color: var(--accent-hi); }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- About ---------- */

.about__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.about__text p + p { margin-top: 1.3rem; }
.about__text { color: var(--ink-soft); max-width: 62ch; }
.about__text strong { color: var(--ink); }

.about__lead {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.5;
    color: var(--ink);
}

.about__quote {
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin-top: 1.8rem !important;
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.stat {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 1.4rem 1.4rem;
    transition: background 0.25s ease;
}

.stat:hover { background: var(--accent-dim); }

.stat__num {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat--accent .stat__num { color: var(--accent); }

.stat__label {
    display: block;
    margin-top: 0.7rem;
    color: var(--muted);
    line-height: 1.5;
}

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

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service {
    position: relative;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2rem 1.8rem 4.2rem;
    transition: background 0.3s ease;
}

.service:hover { background: var(--accent-dim); }

.service__idx { color: var(--accent); display: block; margin-bottom: 2.4rem; }

.service__title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.service__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

.service__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.service__tags li {
    border: 1px solid var(--line);
    padding: 0.28rem 0.6rem;
    color: var(--ink-soft);
}

.service__arrow {
    position: absolute;
    right: 1.4rem;
    bottom: 1.1rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service:hover .service__arrow { transform: translate(4px, 4px); }

/* ---------- Stack ---------- */

.stack { border-top: 1px solid var(--line); }

.stack__row {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.stack__cat { color: var(--accent); }

.stack__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 2.6vw, 2rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.stack__items span { transition: color 0.2s ease; cursor: default; }
.stack__items span:hover { color: var(--accent); }

.stack__items em {
    font-style: normal;
    color: var(--muted);
    margin: 0 0.7rem;
    font-weight: 400;
}

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

.projects { border-top: 1px solid var(--line); }

.project {
    display: grid;
    grid-template-columns: 70px 1fr 1.2fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease, padding 0.25s ease;
}

.project:hover { background: var(--accent-dim); padding-left: 1rem; padding-right: 1rem; }

.project__idx { color: var(--muted); }

.project__name {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.project__desc { color: var(--muted); font-size: 0.92rem; max-width: 52ch; }

.project__link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project__link em { font-style: normal; transition: transform 0.25s ease; }
.project:hover .project__link em { transform: translate(2px, -2px); }

/* ---------- Dashboards ---------- */

.section--wide .dash-viewer { margin-top: 2rem; }

.dash-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    border: 1px solid var(--line);
    border-bottom: none;
}

.dash-index__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    position: relative;
    transition: background 0.25s ease;
}

.dash-index__item:last-child { border-right: none; }
.dash-index__item .mono { color: var(--muted); font-size: 0.62rem; }

.dash-index__item strong {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0;
}

.dash-index__item:hover { background: var(--accent-dim); }

.dash-index__item.active { background: var(--ink); color: var(--paper); }
.dash-index__item.active .mono { color: var(--accent-hi); }

.dash-index__item::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: transparent;
    transition: background 0.25s ease;
}

.dash-index__item.active::after { background: var(--accent); }

.dash-index__badge {
    position: absolute;
    top: 0.7rem; right: 0.8rem;
    font-style: normal;
    font-size: 0.58rem;
    background: var(--accent);
    color: var(--btn-fg);
    padding: 0.18rem 0.5rem;
}

.dash-viewer { border: 1px solid var(--line); position: relative; overflow: hidden; }

/* Painéis ocultos mantêm largura real para o Tableau dimensionar corretamente */
.dash-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dash-panel.active {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.dash-panel__bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.dash-panel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease infinite;
}

.dash-panel__tool { margin-left: auto; color: var(--muted); }

.tableau-wrap { background: #ffffff; padding: 0.5rem; }

.tableauPlaceholder {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Experience ---------- */

.xp { border-top: 1px solid var(--line); }

.xp__row {
    display: grid;
    grid-template-columns: minmax(160px, 260px) 1fr;
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
}

.xp__date { color: var(--accent); padding-top: 0.4rem; }

.xp__body h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.xp__body p { color: var(--muted); max-width: 72ch; font-size: 0.95rem; }

.subhead {
    margin: clamp(2.5rem, 5vw, 4rem) 0 1.2rem;
    color: var(--muted);
}

.subhead::before { content: '— '; color: var(--accent); }

/* ---------- Education ---------- */

.edu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.edu__card {
    position: relative;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 1.4rem;
    transition: background 0.25s ease;
}

.edu__card:hover { background: var(--accent-dim); }

.edu__badge {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 0.2rem 0.55rem;
    color: var(--muted);
    font-size: 0.6rem;
    margin-bottom: 1.1rem;
}

.edu__badge--live { border-color: var(--accent); color: var(--accent); }

.edu__card h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.edu__card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Certs ---------- */

.certs__list li {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.certs__list li .mono { color: var(--accent); min-width: 4ch; }

.certs__list li a { color: var(--ink-soft); transition: color 0.2s ease; }
.certs__list li a:hover { color: var(--accent); }
.certs__list li a em { font-style: normal; color: var(--accent); font-size: 0.8em; }

.certs__issuer { color: var(--muted); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }

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

.section--contact { padding-bottom: clamp(2rem, 4vw, 3rem); }

.contact__big {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 9vw, 8rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease;
}

.contact__big em {
    font-style: normal;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.contact__big:hover { color: var(--accent); }
.contact__big:hover em { transform: translateX(0.6rem); }

.contact__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-top: 2.5rem;
}

.contact__text { color: var(--muted); max-width: 52ch; }

.contact__links li { border-bottom: 1px solid var(--line-soft); }

.contact__links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--ink-soft);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.contact__links a:hover { color: var(--accent); padding-left: 0.5rem; }
.contact__links em { font-style: normal; color: var(--accent); }

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

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.4rem clamp(1.25rem, 4vw, 4rem);
    border-top: 1px solid var(--line);
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.footer a { color: var(--ink-soft); transition: color 0.2s ease; }
.footer a:hover { color: var(--accent); }

/* ---------- Reveal animations ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: none; }

[data-stagger] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
}

.reveal.visible[data-stagger] > *,
[data-stagger].visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .topbar__nav { display: none; }
    .burger { display: flex; }

    .services { grid-template-columns: 1fr; }
    .service { padding-bottom: 3.4rem; }

    .edu { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .hero__meta { flex-direction: column; gap: 0.3rem; }
    .hero__meta-mid { order: -1; }

    .hero__base { grid-template-columns: 1fr; }
    .hero__actions { align-items: flex-start; }

    .about__grid { grid-template-columns: 1fr; }

    .project {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .project__idx { display: none; }

    .xp__row { grid-template-columns: 1fr; gap: 0.5rem; }
    .xp__date { padding-top: 0; }

    .contact__grid { grid-template-columns: 1fr; }

    .stack__row { grid-template-columns: 1fr; gap: 0.5rem; }

    .footer { flex-direction: column; }
}

@media (max-width: 560px) {
    .hero__name-fig img { display: none; }
    .hero__name-fig small { display: none; }
    .about__stats { grid-template-columns: 1fr 1fr; }
    .dash-index { grid-template-columns: 1fr; }
    .dash-index__item { border-right: none; }
}
