/* ---------- tokens ---------- */
:root {
  --bg: #0e1220;
  --bg-soft: #161c2c;
  --surface: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.13);
  --text: #eef0f6;
  --muted: #bcc3d4;
  --faint: #8f97ac;
  --grad-a: #3b82f6;
  --grad-b: #22d3ee;
  --accent: #5ac8ff;
  --accent-deep: #2a7fd4;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1080px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- animated background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-blob {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.blob-1 {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, var(--grad-a), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 460px; height: 460px;
  top: 30%; right: -160px;
  background: radial-gradient(circle, var(--grad-b), transparent 70%);
  opacity: 0.35;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 80px) scale(1.15); }
}

/* ---------- pixel boot loading screen ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #05070e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.45s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
html.boot-seen .boot { display: none; }
.boot__inner { text-align: center; }
.boot__logo {
  display: grid;
  grid-template-columns: repeat(17, 11px);
  gap: 3px;
  justify-content: center;
  margin-bottom: 36px;
}
.boot__logo i {
  width: 11px;
  height: 11px;
  background: var(--accent);
  opacity: 0;
  animation: bootcell 0.18s steps(2) forwards;
}
.boot__logo i.off { background: transparent; animation: none; }
@keyframes bootcell {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}
.boot__bar { display: flex; gap: 4px; justify-content: center; margin-bottom: 18px; }
.boot__bar i { width: 16px; height: 12px; background: rgba(255, 255, 255, 0.07); }
.boot__bar i.on { background: var(--accent); }
.boot__pct {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.boot__pct b { color: var(--text); font-weight: 500; }
.boot__skip {
  position: absolute;
  bottom: 28px; right: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.boot__skip:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 480px) {
  .boot__logo { grid-template-columns: repeat(17, 9px); }
  .boot__logo i { width: 9px; height: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(14, 18, 32, 0.8), transparent);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section { padding: clamp(90px, 13vw, 170px) 0; }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 54px;
}
.section__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}
.section__head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.hero__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 8.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero__tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lede {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  margin-top: clamp(40px, 8vw, 80px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--faint), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 20px;
  background: var(--accent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(60px); }
}

/* ---------- hero portrait ---------- */
.portrait {
  position: relative;
  border-radius: var(--radius);
  transform: rotate(1.5deg);
  transition: transform 0.35s ease;
}
.portrait:hover { transform: rotate(0deg) scale(1.015); }
.portrait__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.portrait__corner { position: absolute; width: 26px; height: 26px; z-index: 2; }
.portrait__corner.tl { top: -6px; left: -6px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.portrait__corner.tr { top: -6px; right: -6px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.portrait__corner.bl { bottom: -6px; left: -6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.portrait__corner.br { bottom: -6px; right: -6px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.portrait__badge {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(90, 200, 255, 0.45);
  border-radius: 8px;
  padding: 7px 12px;
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; transform: rotate(0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn--sm { padding: 9px 18px; font-size: 0.86rem; }
.btn--primary {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: #0a0a12;
  box-shadow: 0 8px 30px -12px var(--grad-a);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--grad-a); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- about ---------- */
.about { max-width: 720px; display: grid; gap: 20px; }
.about p { color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.28rem); }
.about strong { color: var(--text); font-weight: 600; }

/* ---------- featured project ---------- */
.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-soft), rgba(59, 130, 246, 0.05));
  padding: clamp(26px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}
.project::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.project__tag {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.project__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.project__stakes {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 22px;
  max-width: 640px;
}
.project__label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--faint);
  margin-bottom: 14px;
}
.project__desc { color: var(--muted); max-width: 640px; margin-bottom: 30px; }
.project__desc em { color: var(--text); font-style: normal; border-bottom: 1px solid var(--accent); }
.project__desc strong { color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
}
.stat__num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat__label { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }

.project__stack, .card__stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.project__stack li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.project__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- secondary cards ---------- */
.project-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 70px -34px rgba(90, 200, 255, 0.3);
}
.card__type {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.card__title { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; margin-bottom: 10px; }
.card__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.card__desc strong { color: var(--text); }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card__more {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.card__more:hover { text-decoration: underline; }

.pubs {
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.pubs__label {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.pubs a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); white-space: nowrap; }
.pubs a:hover { color: var(--accent); }
.card__stack {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------- skills ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.skills__col h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.skills__col ul { list-style: none; display: grid; gap: 10px; }
.skills__col li { color: var(--muted); font-size: 0.98rem; position: relative; padding-left: 20px; }
.skills__col li::before {
  content: "▹";
  position: absolute; left: 0;
  color: var(--accent);
}

/* ---------- contact ---------- */
.section--contact { text-align: center; padding-bottom: clamp(90px, 14vw, 160px); }
.contact__eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.contact__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.contact__lede { color: var(--muted); margin-bottom: 34px; }
.contact__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--faint);
  font-size: 0.82rem;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-blob, .hero__scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- project story pages ---------- */
.story {
  max-width: 840px;
  margin: 0 auto;
  padding: 140px clamp(20px, 5vw, 48px) 60px;
}
.story__crumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.story__crumb a { color: var(--faint); text-decoration: none; }
.story__crumb a:hover { color: var(--accent); }
.story__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.story__hook {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 22px 0 26px;
  max-width: 680px;
}
.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.story__meta span {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.story__links { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.story h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 60px 0 18px;
}
.story h2 .story__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin-right: 12px;
}
.story p { color: var(--muted); font-size: 1.04rem; margin-bottom: 18px; }
.story p strong { color: var(--text); }
.story ul { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.story ul li { color: var(--muted); font-size: 1rem; padding-left: 20px; position: relative; }
.story ul li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.story a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); }
.story a:hover { color: var(--accent); }
.story a.btn { border-bottom: none; }
.story a.btn--primary { color: #0a0a12; }
.callout {
  border-left: 2px solid var(--accent);
  padding: 16px 22px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  margin: 26px 0;
  font-size: 1rem;
}
.callout strong { color: var(--text); }
.figure { margin: 34px 0; }
.figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(90, 200, 255, 0.18);
  background: #fff;
}
.figure__ph {
  aspect-ratio: 16 / 9;
  border: 1.5px dashed rgba(90, 200, 255, 0.35);
  border-radius: 14px;
  background: rgba(90, 200, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px;
}
.figure__ph b { color: var(--accent); font-weight: 600; letter-spacing: 0.18em; }
.figure figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.86rem;
  text-align: center;
}
.story__nav {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.story__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: none;
}
.story__nav a:hover { color: var(--accent); }

/* ---------- résumé page ---------- */
.resume { max-width: 860px; margin: 0 auto; padding: 120px clamp(20px, 5vw, 48px) 40px; }
.resume__head { padding-bottom: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--border); }
.resume__head h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.resume__role { color: var(--accent); font-size: clamp(0.95rem, 2.4vw, 1.15rem); font-weight: 500; margin-bottom: 14px; }
.resume__contact { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }
.resume__contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.resume__contact a:hover { border-color: var(--accent); }
.resume__dl { margin-top: 22px; }

.r-block { margin-bottom: 40px; }
.r-h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.r-summary { color: var(--muted); font-size: 1.05rem; max-width: 760px; }

.r-item { margin-bottom: 24px; }
.r-item:last-child { margin-bottom: 0; }
.r-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.r-item__title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.r-item__date { color: var(--faint); font-size: 0.85rem; font-family: var(--mono); white-space: nowrap; }
.r-item__meta { color: var(--accent); font-size: 0.85rem; margin: 4px 0 8px; }
.r-item ul, .r-pubs { list-style: none; display: grid; gap: 7px; margin-top: 8px; }
.r-item li, .r-pubs li { color: var(--muted); font-size: 0.96rem; padding-left: 18px; position: relative; line-height: 1.55; }
.r-item li::before, .r-pubs li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.r-item a, .r-pubs a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); }
.r-pubs em { color: var(--text); font-style: italic; }

.r-skills { display: grid; gap: 12px; }
.r-skills div { color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.r-skills__k {
  display: inline-block;
  min-width: 130px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.r-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.r-grid2 ul { list-style: none; display: grid; gap: 7px; }
.r-grid2 li { color: var(--muted); font-size: 0.94rem; padding-left: 18px; position: relative; line-height: 1.5; }
.r-grid2 li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

@media (max-width: 620px) {
  .r-grid2 { grid-template-columns: 1fr; gap: 30px; }
  .r-skills__k { min-width: auto; display: block; margin-bottom: 2px; }
}

/* ---------- expandable certificates ---------- */
.certd summary {
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.certd summary::-webkit-details-marker { display: none; }
.certd summary:hover { color: var(--text); }
.certd__hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  white-space: nowrap;
}
.certd[open] .certd__hint { background: rgba(90, 200, 255, 0.08); }
.certd img {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 14px 0 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

/* ---------- elevation pass ---------- */
::selection { background: rgba(90, 200, 255, 0.28); }

.net {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #05070e;
  transform: scaleY(1);
  transform-origin: top;
  pointer-events: none;
  animation: curtain-out 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.1s forwards;
}
.curtain.closing {
  animation: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.curtain.closing.on { transform: scaleY(1); }
@keyframes curtain-out { to { transform: scaleY(0); } }

.split .split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .split-w > span { display: inline-block; will-change: transform; }

.glow-target { position: relative; --gx: 50%; --gy: 50%; }
.glow-target::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(340px circle at var(--gx) var(--gy), rgba(90, 200, 255, 0.09), transparent 65%);
}
.glow-target:hover::after { opacity: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 4px; }
.filters button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 18px;
  font: 500 0.85rem "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button.active { background: rgba(90, 200, 255, 0.12); border-color: var(--accent); color: var(--accent); }
.card.hide { display: none; }

.timeline { position: relative; max-width: 720px; padding-left: 38px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline__progress {
  position: absolute;
  left: 8px; top: 4px;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--grad-a), var(--grad-b));
}
.tl-item { position: relative; padding-bottom: 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-item time { font-family: var(--mono); color: var(--accent); font-size: 0.82rem; letter-spacing: 0.12em; }
.tl-item h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; margin: 7px 0 6px; }
.tl-item p { color: var(--muted); font-size: 0.98rem; max-width: 560px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(4, 6, 12, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .curtain, .net { display: none; }
  .split .split-w > span { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .nav__links { gap: 14px; }
  .nav__links a:not(:last-child) { display: none; }
  .footer { flex-direction: column; }
}
