/* ---------- Tokens ---------- */
:root {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-sunken: #eef1f5;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-text: #ffffff;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --silver: #475569;
  --silver-soft: #e2e8f0;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px -12px rgb(15 23 42 / .12);
  --dot: rgb(15 23 42 / .14);
  --glow-1: rgb(13 148 136 / .16);
  --glow-2: rgb(99 102 241 / .10);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f14;
    --bg-elev: #121820;
    --bg-sunken: #0f141b;
    --text: #e6edf3;
    --text-soft: #c2ccd6;
    --muted: #8b98a8;
    --border: #1f2935;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: rgb(45 212 191 / .12);
    --accent-text: #04201c;
    --gold: #fbbf24;
    --gold-soft: rgb(251 191 36 / .12);
    --silver: #cbd5e1;
    --silver-soft: rgb(203 213 225 / .1);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -16px rgb(0 0 0 / .6);
    --dot: rgb(148 163 184 / .15);
    --glow-1: rgb(45 212 191 / .12);
    --glow-2: rgb(129 140 248 / .09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-elev: #121820;
  --bg-sunken: #0f141b;
  --text: #e6edf3;
  --text-soft: #c2ccd6;
  --muted: #8b98a8;
  --border: #1f2935;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: rgb(45 212 191 / .12);
  --accent-text: #04201c;
  --gold: #fbbf24;
  --gold-soft: rgb(251 191 36 / .12);
  --silver: #cbd5e1;
  --silver-soft: rgb(203 213 225 / .1);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -16px rgb(0 0 0 / .6);
  --dot: rgb(148 163 184 / .15);
  --glow-1: rgb(45 212 191 / .12);
  --glow-2: rgb(129 140 248 / .09);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Subtle backdrop: a dot grid that fades out toward the edges, plus two soft glows. */
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 30%, transparent 100%);
}
body::after {
  background:
    radial-gradient(48rem 32rem at 85% -8%, var(--glow-1), transparent 70%),
    radial-gradient(40rem 30rem at -5% 35%, var(--glow-2), transparent 70%);
}
main, .footer { position: relative; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-text); }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--sm { padding: 6px 14px; font-size: .85rem; margin-top: 14px; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text); cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg.fill { fill: currentColor; stroke: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav__brand {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: .85rem;
}
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--text-soft); font-size: .9rem; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--bg-sunken); text-decoration: none; }
.nav__actions { display: flex; gap: 8px; }
.nav__menu { display: none; }

.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

@media (max-width: 960px) {
  .nav__menu { display: inline-grid; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 10px 12px; font-size: 1rem; }
  .nav__actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 72px;
}
.eyebrow { color: var(--accent-strong); font-size: .85rem; letter-spacing: .04em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
.hero__role {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 500;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent-strong), var(--text-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--text-soft); font-size: 1.075rem; margin-top: 22px; max-width: 58ch; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.socials { display: flex; gap: 8px; margin-left: 4px; }

.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 12px; border-radius: 16px; font-size: .85rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-strong);
}
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }

.hero__visual { position: relative; padding: 0 0 0 40px; }
.hero__photo {
  width: 78%; aspect-ratio: 1; object-fit: cover; margin-left: auto;
  border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--bg-sunken);
}
.hero__visual .term { position: relative; width: 82%; margin-top: -14%; }
.hero__visual .term__body { font-size: .8rem; padding: 16px 18px 18px; }

.term {
  border-radius: var(--radius); overflow: hidden;
  background: #0d1117; border: 1px solid #1f2935; box-shadow: var(--shadow);
  color: #c9d1d9;
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #161b22; border-bottom: 1px solid #1f2935; }
.term__bar > span:not(.term__title) { width: 11px; height: 11px; border-radius: 50%; background: #3b4350; }
.term__bar > span:nth-child(1) { background: #ff5f57; }
.term__bar > span:nth-child(2) { background: #febc2e; }
.term__bar > span:nth-child(3) { background: #28c840; }
.term__title { margin-left: 10px; font-size: .78rem; color: #8b98a8; }
.term__body { margin: 0; padding: 20px 22px 24px; font-size: .88rem; line-height: 1.75; white-space: pre-wrap; overflow-x: auto; }
.c-p { color: #2dd4bf; } .c-v { color: #e6edf3; } .c-k { color: #7dd3fc; } .c-s { color: #a5d6a7; } .c-n { color: #fbbf24; }
.cursor { display: inline-block; width: 9px; height: 1.1em; vertical-align: -3px; background: #2dd4bf; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
  .hero__visual { order: -1; padding: 0; max-width: 460px; }
  .hero__photo { width: 60%; }
  .hero__visual .term { width: 92%; margin-top: -12%; }
}

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 24px; }
.section__head { margin-bottom: 32px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section__sub { color: var(--muted); margin-top: 10px; max-width: 70ch; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li {
  font-family: var(--font-mono); font-size: .75rem; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text-soft);
}
.bullets { list-style: none; display: grid; gap: 8px; color: var(--text-soft); }
.bullets li { position: relative; padding-left: 20px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.bullets strong { color: var(--text); font-weight: 600; }
.bullets--sm { font-size: .925rem; gap: 6px; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-soft); border: 1px solid var(--border);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }

/* ---------- Experience ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 16px; bottom: 16px; width: 2px; background: var(--border); }
.xp { display: grid; grid-template-columns: 64px 1fr; gap: 20px; position: relative; }
.xp__logo {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; z-index: 1; padding: 8px;
}
.xp__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo--light { background: #ffffff; }
.logo--dark { background: #0b0b0b; }
.xp__body {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; min-width: 0;
}
.xp__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.xp__top h3 { font-size: 1.25rem; }
.xp__company { font-weight: 600; margin-top: 4px; }
.xp__meta { text-align: right; font-size: .8rem; color: var(--muted); white-space: nowrap; line-height: 1.6; }
.xp__did { color: var(--text-soft); }
.xp__about { color: var(--muted); font-size: .925rem; padding-left: 12px; border-left: 2px solid var(--accent-soft); }

.shot {
  display: block; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; background: var(--bg-sunken); text-align: left; max-width: 520px; width: 100%;
}
.shot img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: top left; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.02); }
.shot__cap { display: block; padding: 8px 12px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .timeline::before { display: none; }
  .xp { grid-template-columns: 1fr; gap: 0; }
  .xp__logo { width: 52px; height: 52px; border-radius: 14px; margin: 0 0 -26px 20px; }
  .xp__body { padding: 36px 18px 20px; }
  .xp__top { flex-direction: column; gap: 6px; }
  .xp__meta { text-align: left; }
  .xp__meta br { display: none; }
  .xp__meta span::before { content: " · "; }
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  font-size: .875rem; font-weight: 500; color: var(--text-soft); cursor: pointer;
}
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project {
  display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.project:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.project.is-hidden { display: none; }
.project__media, .ach__media, .activity__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-sunken); overflow: hidden;
}
.project__media { border-bottom: 1px solid var(--border); }
.project__media img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .35s ease; }
.project__media:hover img, .ach__media:hover img, .activity__media:hover img { transform: scale(1.03); }
.project__media img.contain { object-fit: contain; background: #fff; }
.project__media img.contain[src*="password"] { background: #0c0c0c; }
.project__count {
  position: absolute; right: 10px; bottom: 10px; font-size: .7rem; padding: 3px 8px; border-radius: 999px;
  background: rgb(0 0 0 / .6); color: #fff;
}
.project__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; }
.project__body h3 { font-size: 1.25rem; }
.project__body > p { color: var(--text-soft); font-size: .95rem; }
.project__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 4px; font-weight: 600; font-size: .9rem; }

@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skill { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.skill h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.skill__icon {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-strong); font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
}
.langs { list-style: none; display: grid; gap: 8px; }
.langs li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--bg-sunken); font-weight: 500; font-size: .925rem; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .skills { grid-template-columns: 1fr; } }

/* ---------- Education & certs ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; }
.card__org { font-weight: 500; margin: 6px 0 4px; color: var(--text-soft); }
.card__logo {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; padding: 4px;
  background: #fff; border: 1px solid var(--border);
}
.card__logo img { width: 100%; height: 100%; object-fit: contain; }
.cert__badge { display: block; width: 56px; transition: transform .2s ease; }
.cert__badge:hover { transform: scale(1.06) rotate(-3deg); }
.cert__badge img { width: 56px; height: 56px; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Achievements ---------- */
.achievements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ach {
  display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.ach__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.ach__body { padding: 18px 20px 22px; display: grid; gap: 10px; }
.ach__body h3 { font-size: 1.1rem; }
.ach__body p { color: var(--text-soft); font-size: .95rem; }
.ach__body p.muted { color: var(--muted); }
.ach__rank { display: flex; align-items: center; gap: 12px; font-size: .8rem; }
.rank {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 2px 12px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
}
.rank--gold { background: var(--gold-soft); color: var(--gold); }
.rank--silver { background: var(--silver-soft); color: var(--silver); }
.ach--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.ach--feature .ach__media img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.ach--feature .ach__body { align-content: center; padding: 28px; }
.ach--feature h3 { font-size: 1.4rem; }
@media (max-width: 760px) {
  .achievements { grid-template-columns: 1fr; }
  .ach--feature { grid-template-columns: 1fr; }
  .ach--feature .ach__media img { min-height: 0; aspect-ratio: 16 / 9; }
  .ach--feature .ach__body { padding: 18px 20px 22px; }
}

/* ---------- Activities ---------- */
.activity {
  display: grid; grid-template-columns: 1fr 1.25fr; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.activity__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.activity__body { padding: 28px; display: grid; gap: 22px; align-content: center; }
.activity__org { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-strong); }
.role { display: grid; gap: 10px; }
.role__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.role h3 { font-size: 1.15rem; }
@media (max-width: 760px) {
  .activity { grid-template-columns: 1fr; }
  .activity__media img { aspect-ratio: 4 / 3; height: auto; }
  .activity__body { padding: 20px; }
}

/* ---------- Contact ---------- */
.contact {
  text-align: center; padding: 56px 24px; border-radius: 24px;
  background:
    radial-gradient(600px 220px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact__lead { color: var(--text-soft); max-width: 52ch; margin: 14px auto 0; }
.contact__lead strong { color: var(--text); }
.facts {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  max-width: 720px; margin: 28px auto 0; text-align: left;
}
.facts li {
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px;
  background: var(--bg-sunken); border: 1px solid var(--border); font-size: .925rem; font-weight: 500;
}
.facts__k { font-size: .72rem; color: var(--accent-strong); font-weight: 500; }
@media (max-width: 580px) { .facts { grid-template-columns: 1fr; } }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.contact__actions .btn--primary { word-break: break-all; }
.copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy__check { display: none; }
.copy.is-copied { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.copy.is-copied .copy__icon { display: none; }
.copy.is-copied .copy__check { display: block; animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.contact__links { list-style: none; display: flex; justify-content: center; gap: 24px; margin-top: 22px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 40px; padding-bottom: 40px; margin-top: 48px; border-top: 1px solid var(--border); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgb(5 8 12 / .92); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 64px 72px; max-width: 100%; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 160px); width: auto; border-radius: 10px; }
.lightbox figcaption { font-size: .9rem; color: #c2ccd6; text-align: center; max-width: 70ch; }
.lightbox .icon-btn { position: fixed; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); color: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox figure { padding: 64px 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .status__dot::after { animation: none; }
  * { transition: none !important; }
}
