:root {
  --bg: #080b12;
  --surface: #0f141d;
  --surface-2: #111827;
  --surface-rgb: 15, 20, 29;
  --text: #f5f7fa;
  --muted: #9ca3af;
  --muted-2: #7b8494;
  --accent: #5b8cff;
  --accent-hover: #7aa3ff;
  --accent-rgb: 91, 140, 255;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-glow: rgba(var(--accent-rgb), 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ok: #34d399;
  --font: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --nav-offset: 12px;
  --header-h: 52px;
  --scroll-pad: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.975rem;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#projects,
#experience,
#stack,
#certs,
#contact {
  scroll-margin-top: var(--scroll-pad);
}

/* ——— Background ——— */
.page-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(var(--accent-rgb), 0.07), transparent 60%);
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 12%, transparent 70%);
}

.page-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}

.page-bg__glow--a {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  top: -14%;
  left: -6%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4), transparent 70%);
}

.page-bg__glow--b {
  width: min(360px, 50vw);
  height: min(360px, 50vw);
  top: 22%;
  right: -8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
}

.nav-wrap,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ——— Navbar ——— */
.nav-wrap {
  position: sticky;
  top: var(--nav-offset);
  z-index: 40;
  padding: 0 clamp(0.85rem, 2.5vw, 1.25rem);
  margin-bottom: calc(var(--nav-offset) * -1);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0.35rem 0.55rem 0.35rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(var(--surface-rgb), 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 0.22s var(--ease-out), background 0.22s var(--ease-out);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.status-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(var(--surface-rgb), 0.45);
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.status-pill:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--accent-soft);
}

.status-pill__dot,
.status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
  flex-shrink: 0;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--surface-rgb), 0.4);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(var(--surface-rgb), 0.4);
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 4px;
  flex-direction: column;
}

.menu-btn span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  max-width: var(--max);
  margin: 0 auto;
  padding:
    calc(var(--nav-offset) + var(--header-h) + clamp(1.75rem, 5vh, 3rem))
    clamp(1.1rem, 3.5vw, 2.25rem)
    clamp(2rem, 5vh, 3.25rem);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(var(--surface-rgb), 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.hero-photo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
  background: var(--surface);
}

.hero-identity__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-role {
  margin: 0.65rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-bio {
  margin: 0.85rem 0 0;
  max-width: 33rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #061018;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(var(--surface-rgb), 0.5);
}

.btn-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--accent-soft);
}

.copy-email.is-copied {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
}

.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-top: 1.35rem;
}

.hero-tech li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-2);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(var(--surface-rgb), 0.55);
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.hero-tech li:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--accent-soft);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.95rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

/* ——— Architecture identity mark ——— */
.arch {
  position: absolute;
  top: -1.1rem;
  right: -0.4rem;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  opacity: 0.38;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.arch__node {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(var(--surface-rgb), 0.55);
}

.arch__node--accent {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
}

.arch__line {
  width: 1px;
  height: 10px;
  margin-right: 1.6rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.45), rgba(255, 255, 255, 0.1));
}

/* ——— Terminal ——— */
.terminal {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 24, 36, 0.95) 0%, rgba(10, 14, 22, 0.98) 100%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(var(--accent-rgb), 0.04);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.7);
}

.terminal__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.terminal__dot--r {
  background: #ff5f57;
}

.terminal__dot--y {
  background: #febc2e;
}

.terminal__dot--g {
  background: #28c840;
}

.terminal__title {
  margin-left: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-2);
}

.terminal__body {
  padding: 1.05rem 1.05rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
}

.terminal__line {
  margin: 0 0 0.35rem;
}

.terminal__prompt {
  color: var(--accent);
  margin-right: 0.4rem;
}

.terminal__cmd {
  color: var(--text);
}

.terminal__cmd.is-typing::after {
  content: "▋";
  color: var(--accent);
  margin-left: 1px;
  animation: blink 1.05s step-end infinite;
}

.terminal__out {
  color: var(--muted);
  padding-left: 0.1rem;
}

.terminal__tree {
  margin: 0.25rem 0 0.7rem;
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}

.terminal__meta {
  color: var(--muted);
}

.terminal__key {
  color: #64748b;
  margin-right: 0.3rem;
}

.terminal__ok {
  color: var(--ok);
}

.terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  opacity: 0.85;
  animation: blink 1.05s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ——— Metrics ——— */
.section-pad,
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(1.1rem, 3.5vw, 2.25rem);
  padding-right: clamp(1.1rem, 3.5vw, 2.25rem);
}

.metrics {
  padding-top: 0;
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(var(--surface-rgb), 0.55);
  backdrop-filter: blur(8px);
}

.metric {
  text-align: center;
  padding: 0.7rem 0.35rem;
}

.metric + .metric {
  border-left: 1px solid var(--border);
}

.metric__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.metric__label {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* ——— Sections ——— */
.section {
  padding-top: clamp(3.25rem, 7vh, 5rem);
  padding-bottom: clamp(3.25rem, 7vh, 5rem);
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.65rem;
  max-width: 36rem;
}

.section-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Projects ——— */
.project {
  position: relative;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.32);
  background: var(--surface-2);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--accent-rgb), 0.08),
    0 0 28px rgba(var(--accent-rgb), 0.06);
}

.project__num {
  position: absolute;
  top: 0.95rem;
  right: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(156, 163, 175, 0.45);
  letter-spacing: 0.08em;
  z-index: 1;
}

.project__media {
  margin: 0 0 0.95rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #070a10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.project__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ease);
}

.project:hover .project__media img {
  transform: scale(1.015);
}

.project__media--logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #000;
}

.project__media--logo img {
  width: auto;
  max-width: 72%;
  max-height: 62%;
  aspect-ratio: auto;
  object-fit: contain;
}

.project__media--photo img {
  object-fit: cover;
  object-position: center 42%;
}

.project__media--mark {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    #070a10;
}

.project__mark {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.project--featured {
  margin-bottom: 1rem;
  padding: 1rem;
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(var(--accent-rgb), 0.08), transparent 55%),
    var(--surface);
  border-color: rgba(var(--accent-rgb), 0.16);
}

.project--featured .project__media {
  margin: 0;
  border: 0;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.project--featured .project__media--wordmark {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 80% 90% at 16% 8%, rgba(236, 72, 153, 0.26), transparent 54%),
    #08090a;
}

.project--featured .project__media--wordmark span {
  display: block;
  margin: 0;
  padding-left: 0.1em;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  letter-spacing: 0.1em;
  line-height: 1;
  color: #f9a8d4;
}

.project__media--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(255, 31, 147, 0.14), transparent 62%),
    #05070c;
}

.project__media--brand img {
  width: auto;
  height: auto;
  max-width: 38%;
  max-height: 48%;
  aspect-ratio: auto;
  object-fit: contain;
}

.project__brand-name {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f5f7fa;
}

.project:hover .project__media--brand img {
  transform: none;
}

.project__layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}

.project__body {
  min-width: 0;
}

.project__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.25rem;
  padding-right: 1.75rem;
}

.project__badge {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project__top .project__badge {
  margin-bottom: 0;
}

.project h3 {
  margin: 0.1rem 0 0.55rem;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project--featured h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.project p,
.project__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.project__live {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.22s ease;
}

.project__live:hover {
  color: var(--accent-hover);
}

.project__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.28s var(--ease), transform 0.28s var(--ease);
}

.project:hover .project__cta,
.project__cta:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.bullets {
  margin: 0.85rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.bullets li + li {
  margin-top: 0.4rem;
}

.bullets--compact {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.bullets--compact li + li {
  margin-top: 0.28rem;
}

.bullets--job {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.bullets--job li + li {
  margin-top: 0.28rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.95rem;
}

.tag-row span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted-2);
  padding: 0.26rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(var(--surface-rgb), 0.45);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.project:hover .tag-row span,
.stack-group .tag-row span:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--accent-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ——— Experience timeline ——— */
.timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0 0 0 1.35rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.06));
}

.timeline__item {
  position: relative;
}

.timeline__marker {
  position: absolute;
  left: -1.35rem;
  top: 1.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  z-index: 1;
}

.job {
  padding: 1.15rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.timeline__item:hover .job {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: var(--surface-2);
}

.job__meta {
  margin-bottom: 0.15rem;
}

.job__dates {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.job__meta h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.job__meta h3 a,
.job .bullets a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job__meta h3 a:hover,
.job .bullets a:hover {
  color: var(--accent-hover);
}

.job__role {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.job .tag-row {
  margin-top: 0.85rem;
}

/* ——— Stack ——— */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.stack-group {
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.stack-group:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: var(--surface-2);
}

.stack-group h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.stack-group--edu p {
  color: var(--muted-2);
}

.stack-group .tag-row {
  margin-top: 0;
}

/* ——— Certificados ——— */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cert-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--surface-2);
}

.cert-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #0a0d14;
  border-bottom: 1px solid var(--border);
}

.cert-card__body {
  padding: 1rem 1.05rem 1.15rem;
}

.cert-card__org {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cert-card__meta {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.cert-card__pdf {
  display: grid;
  place-content: center;
  gap: 0.65rem;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 153, 0, 0.22), transparent 45%),
    linear-gradient(160deg, #1a2332 0%, #0d121c 100%);
  border-bottom: 1px solid var(--border);
}

.cert-card__pdf-badge {
  justify-self: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.45);
  color: #ffb84d;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.cert-card__pdf-brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ——— Contact ——— */
.contact {
  border-top: 1px solid var(--border);
}

.contact__panel {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(ellipse 65% 70% at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 55%),
    var(--surface);
}

.contact__headline {
  margin: 0.2rem 0 0;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text);
}

.contact__headline-accent {
  color: var(--accent);
}

.contact .section-lead {
  max-width: 30rem;
  margin-top: 0.7rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.contact-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(var(--surface-rgb), 0.35);
  transition:
    border-color 0.28s var(--ease),
    background 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.contact-links a:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.contact-links__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-links__value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.35rem clamp(1.1rem, 3.5vw, 2.25rem) 1.75rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.site-footer__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}

.site-footer__sep {
  opacity: 0.45;
}

.site-footer__tech {
  color: var(--muted-2);
}

.site-footer__links {
  display: flex;
  gap: 0.9rem;
}

.site-footer__links a {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.22s ease;
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */
@media (min-width: 1100px) {
  .status-pill {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .stack-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: calc(var(--nav-offset) + var(--header-h) + 1.5rem);
  }

  .hero-visual {
    order: 1;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project__layout {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --nav-offset: 10px;
    --header-h: 48px;
    --scroll-pad: 74px;
  }

  .site-header {
    border-radius: 16px;
    padding: 0.3rem 0.5rem 0.3rem 0.85rem;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(var(--surface-rgb), 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
  }

  .nav a.is-active::after {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .status-pill {
    display: none !important;
  }

  .stack-groups {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .metrics__grid {
    padding: 0.45rem 0.35rem;
  }

  .metric {
    padding: 0.55rem 0.2rem;
  }

  .metric__value {
    font-size: 1.35rem;
  }

  .metric__label {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .timeline {
    padding-left: 1.15rem;
  }

  .site-footer__inner {
    align-items: center;
  }

  .section-pad,
  .section,
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-cta,
  .contact__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-name {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .hero-photo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .contact__headline {
    font-size: clamp(1.85rem, 11vw, 2.5rem);
  }

  .project,
  .project--featured,
  .job,
  .contact__panel {
    padding: 1rem;
  }

  .terminal__body {
    font-size: 0.74rem;
  }

  .metrics__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.25rem 0.85rem;
  }

  .metric + .metric {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .metric {
    padding: 0.75rem 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .project:hover,
  .stack-group:hover,
  .contact-links a:hover,
  .project__cta:hover,
  .project:hover .project__cta {
    transform: none;
  }

  .project:hover .project__media img {
    transform: none;
  }

  .terminal__cmd.is-typing::after,
  .terminal__cursor {
    animation: none;
  }
}
